From: <enl...@li...> - 2004-05-13 09:54:07
|
Enlightenment CVS committal Author : handyande Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_config Modified Files: convenience.c Log Message: instead of assuming /usr/local use the specified --prefix =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/convenience.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- convenience.c 12 May 2004 23:24:36 -0000 1.13 +++ convenience.c 13 May 2004 09:53:58 -0000 1.14 @@ -1,6 +1,8 @@ #include "Ecore_Config.h" #include "Ecore.h" +#include "config.h" + #include <string.h> #include <stdio.h> #include <stdlib.h> @@ -299,7 +301,7 @@ int len; home = getenv("HOME"); - len = strlen("/usr/local/share/") + strlen(__ecore_config_app_name) + + len = strlen(PACKAGE_DATA_DIR "/../") + strlen(__ecore_config_app_name) + strlen("/themes/") + 1; if (home) len += strlen(home) + strlen("/.e/apps/") + @@ -317,7 +319,7 @@ strcat(path, __ecore_config_app_name); strcat(path, "/themes/|"); } - strcat(path, "/usr/local/share/"); + strcat(path, PACKAGE_DATA_DIR "/../"); strcat(path, __ecore_config_app_name); strcat(path, "/themes/"); |