]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/relocate.cc
*** empty log message ***
[lilypond.git] / lily / relocate.cc
index 2783973d630cc7b19c97d4c277b125194ba36113..d8efda1a41d3115efc4c5384d56f1f85109a636a 100644 (file)
@@ -50,6 +50,16 @@ set_env_file (char const *key, String value)
   return -1;
 }
 
+static int
+set_env_dir (char const *key, String value)
+{
+  if (is_dir (value))
+    return sane_putenv (key, value, false);
+  else if (be_verbose_global)
+    warning (_f ("no such directory: %s for %s", value, key));
+  return -1;
+}
+
 static int
 prepend_env_path (char const *key, String value)
 {
@@ -127,7 +137,7 @@ set_relocation (String bindir, String prefix)
                                 SCM_MAJOR_VERSION, SCM_MINOR_VERSION));
   set_env_file ("PANGO_RC_FILE", sysconfdir + "/pango/pangorc");
 
-  sane_putenv ("PANGO_PREFIX", prefix, true);
+  set_env_dir ("PANGO_PREFIX", prefix);
                
   prepend_env_path ("PATH", bindir);
 }