1 # get rid of that stupid cache mechanism
4 AC_INIT(enlightenment, 0.16.999.043, enlightenment-devel@lists.sourceforge.net)
6 AC_CONFIG_SRCDIR(configure.in)
11 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
12 AM_CONFIG_HEADER(config.h)
25 AC_CHECK_FUNCS(setenv)
26 AC_CHECK_FUNCS(unsetenv)
28 AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
30 AC_CHECK_FUNCS(fnmatch, res=yes, res=no)
31 if test "x$res" = "xno"; then
32 AC_CHECK_LIB(fnmatch, fnmatch, res=yes, res=no)
33 if test "x$res" = "xno"; then
34 AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch])
36 fnmatch_libs="-lfnmatch"
40 AC_SUBST(fnmatch_libs)
43 AC_CHECK_HEADERS(security/pam_appl.h, [
46 AC_DEFINE(HAVE_PAM, 1, [PAM Authentication Support])])
48 # Setting have_valgrind to "no" seems pointless, but we just need to
49 # put something in as the 4th parameter, so configure doesn't abort
50 # when valgrind.pc isn't found.
52 #PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
53 #AC_ARG_ENABLE(valgrind,
54 # [ --enable-valgrind enable valgrind support], [
55 # if test x"$enableval" = x"yes" ; then
65 # have_valgrind=$have_valgrind
69 #if test x$have_valgrind = "xyes"; then
70 # AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
73 AC_SUBST(VALGRIND_CFLAGS)
74 AC_SUBST(VALGRIND_LIBS)
76 MODULE_ARCH="$host_os-$host_cpu"
78 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
80 if test "x${bindir}" = 'xNONE'; then
81 if test "x${prefix}" = "xNONE"; then
82 PACKAGE_BIN_DIR="${ac_default_prefix}/bin"
84 PACKAGE_BIN_DIR="${prefix}/bin"
87 PACKAGE_BIN_DIR="${bindir}"
89 AC_SUBST(PACKAGE_BIN_DIR)
91 if test "x${libdir}" = 'xNONE'; then
92 if test "x${prefix}" = "xNONE"; then
93 PACKAGE_LIB_DIR="${ac_default_prefix}/lib"
95 PACKAGE_LIB_DIR="${prefix}/lib"
98 PACKAGE_LIB_DIR="${libdir}"
100 AC_SUBST(PACKAGE_LIB_DIR)
102 if test "x${prefix}" = "xNONE"; then
103 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
104 LOCALE_DIR="${ac_default_prefix}/share/locale"
105 PACKAGE_SYSCONF_DIR="${ac_default_prefix}/etc"
107 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
108 LOCALE_DIR="${prefix}/share/locale"
109 PACKAGE_SYSCONF_DIR="${sysconfdir}"
111 AC_SUBST(PACKAGE_DATA_DIR)
113 AC_SUBST(PACKAGE_SYSCONF_DIR)
115 #######################################
116 ## Simple X11 build/link
118 AC_ARG_ENABLE(simple-x11,
119 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
120 [ want_evas_simple_x11=$enableval ]
127 AC_CHECK_HEADER(X11/X.h,
129 if test "x$want_evas_simple_x11" = "xyes"; then
130 x_libs="${x_libs} -lX11 -lXext"
132 x_dir=${x_dir:-/usr/X11R6}
133 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
134 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
137 AC_MSG_ERROR([Cannot find X headers and libraries.])
145 PCPPFLAGS="${CPPFLAGS}"
146 CPPFLAGS="${CPPFLAGS} -I /System/Library/Frameworks/CoreFoundation.framework/Headers"
147 AC_CHECK_HEADERS(CFBase.h,
149 cf_cflags="-I /System/Library/Frameworks/CoreFoundation.framework/Headers"
150 cf_cflags="${cf_cflags} -I /System/Library/Frameworks/IOKit.framework/Headers"
151 cf_libs="-framework 'CoreFoundation' -framework 'IOKit'"
154 CPPFLAGS="${PCPPFLAGS}"
158 #ALL_LINGUAS="bg de eo es fi fr ja pl pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW ko"
159 #ALL_LINGUAS="bg de eo es fi fr ja pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW"
160 # a lot of .po's are broken
161 #ALL_LINGUAS="bg de eo es fi fr ja ru zh_CN hu sl it zh_TW ko pt_BR ca fr_CH"
163 AC_SUBST(ALL_LINGUAS)
165 AM_GNU_GETTEXT([external])
166 AM_GNU_GETTEXT_VERSION([0.12.1])
167 if test "x$LIBINTL" = "x"; then
171 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
172 AC_SUBST(dlopen_libs)
174 AC_MSG_CHECKING([whether to enable Files menu item])
175 AC_ARG_ENABLE([files],
176 AS_HELP_STRING([--enable-files],[enable Files menu item @<:@yes@:>@]),
177 [e_cv_enable_files=$enableval],
178 AC_CACHE_VAL([e_cv_enable_files], [e_cv_enable_files=yes]))
179 if test "[${e_cv_enable_files}]" = yes; then
180 AC_DEFINE_UNQUOTED([ENABLE_FILES],[1],[enable Files menu item])
182 AC_MSG_RESULT([$e_cv_enable_files])
184 PKG_CHECK_MODULES(E, [
201 PKG_CHECK_MODULES(ECORE_TXT, [
206 # This test will succeed as these modules are also checked before
207 PKG_CHECK_MODULES(TEMPERATURE, [
211 PKG_CHECK_MODULES(BATTERY, [
216 ], [ have_temp="no"])
217 AM_CONDITIONAL(HAVE_TEMPERATURE, test x$have_temp = "xyes")
218 AM_CONDITIONAL(HAVE_BATTERY, test x$have_bat = "xyes")
220 PKG_CHECK_MODULES(E_DBUS, edbus, have_edbus=yes, have_edbus=no)
221 PKG_CHECK_MODULES(E_HAL, ehal, have_ehal=yes, have_ehal=no)
223 # this is used to conditionally build modules which depend on E_DBUS
224 AM_CONDITIONAL(HAVE_EDBUS, test x$have_edbus = "xyes")
225 if test x$have_edbus = "xyes"; then
226 if test x$have_ehal = "xyes"; then
227 AC_DEFINE(HAVE_EDBUS, 1, [E_Dbus support])
231 e_libs=$E_LIBS" "$LIBINTL" "$fnmatch_libs" "
232 e_cflags="-DUSE_E_CONFIG_H "$E_CFLAGS" "$E_DBUS_CFLAGS" "
238 [ --with-profile=TARGET_PROFILE specify a target format profile of:
239 LOWRES_PDA, MEDIUMRES_PDA, HIRES_PDA,
240 SLOW_PC, MEDIUM_PC, FAST_PC ],
244 echo " Enlightenment build profile set to "$profile;
248 EDJE_DEF="-DLOWRES_PDA=1 -DMEDIUMRES_PDA=2 -DHIRES_PDA=3 -DSLOW_PC=4 -DMEDIUM_PC=5 -DFAST_PC=6"
249 EDJE_DEF=$EDJE_DEF" -DE17_PROFILE"=$profile
253 [ --with-edje-cc=PATH specify a specific path to edje_cc],
257 echo " Enlightenment edje_cc explicitly set to "$edje_cc;
259 edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
263 AC_DEFINE(E_INTERNAL, 1, "This define can be used to wrap internal E stuff, as config.h isn't exported")
273 src/modules/ibar/Makefile
274 src/modules/ibar/module.desktop
275 src/modules/dropshadow/Makefile
276 src/modules/dropshadow/module.desktop
277 src/modules/clock/Makefile
278 src/modules/clock/module.desktop
279 src/modules/pager/Makefile
280 src/modules/pager/module.desktop
281 src/modules/battery/Makefile
282 src/modules/battery/module.desktop
283 src/modules/temperature/Makefile
284 src/modules/temperature/module.desktop
285 src/modules/cpufreq/Makefile
286 src/modules/cpufreq/module.desktop
287 src/modules/ibox/Makefile
288 src/modules/ibox/module.desktop
289 src/modules/start/Makefile
290 src/modules/start/module.desktop
291 src/modules/exebuf/Makefile
292 src/modules/exebuf/module.desktop
293 src/modules/winlist/Makefile
294 src/modules/winlist/module.desktop
295 src/modules/fileman/Makefile
296 src/modules/fileman/module.desktop
297 src/modules/wizard/Makefile
298 src/modules/wizard/module.desktop
299 src/modules/conf/Makefile
300 src/modules/conf/module.desktop
301 src/modules/conf_wallpaper/Makefile
302 src/modules/conf_wallpaper/module.desktop
303 src/modules/conf_theme/Makefile
304 src/modules/conf_theme/module.desktop
305 src/modules/conf_colors/Makefile
306 src/modules/conf_colors/module.desktop
307 src/modules/conf_fonts/Makefile
308 src/modules/conf_fonts/module.desktop
309 src/modules/conf_borders/Makefile
310 src/modules/conf_borders/module.desktop
311 src/modules/conf_icon_theme/Makefile
312 src/modules/conf_icon_theme/module.desktop
313 src/modules/conf_mouse_cursor/Makefile
314 src/modules/conf_mouse_cursor/module.desktop
315 src/modules/conf_transitions/Makefile
316 src/modules/conf_transitions/module.desktop
317 src/modules/conf_startup/Makefile
318 src/modules/conf_startup/module.desktop
319 src/modules/conf_intl/Makefile
320 src/modules/conf_intl/module.desktop
321 src/modules/conf_imc/Makefile
322 src/modules/conf_imc/module.desktop
323 src/modules/conf_profiles/Makefile
324 src/modules/conf_profiles/module.desktop
325 src/modules/msgbus_lang/Makefile
326 src/modules/msgbus_lang/module.desktop
327 src/modules/conf_engine/Makefile
328 src/modules/conf_engine/module.desktop
329 src/modules/conf_applications/Makefile
330 src/modules/conf_applications/module.desktop
331 src/modules/conf_desks/Makefile
332 src/modules/conf_desks/module.desktop
333 src/modules/conf_desk/Makefile
334 src/modules/conf_desk/module.desktop
335 src/modules/conf_display/Makefile
336 src/modules/conf_display/module.desktop
337 src/modules/conf_desklock/Makefile
338 src/modules/conf_desklock/module.desktop
339 src/modules/conf_screensaver/Makefile
340 src/modules/conf_screensaver/module.desktop
341 src/modules/conf_dpms/Makefile
342 src/modules/conf_dpms/module.desktop
343 src/modules/conf_shelves/Makefile
344 src/modules/conf_shelves/module.desktop
345 src/modules/conf_keybindings/Makefile
346 src/modules/conf_keybindings/module.desktop
347 src/modules/conf_mousebindings/Makefile
348 src/modules/conf_mousebindings/module.desktop
349 src/modules/conf_mouse/Makefile
350 src/modules/conf_mouse/module.desktop
351 src/modules/conf_window_display/Makefile
352 src/modules/conf_window_display/module.desktop
353 src/modules/conf_window_focus/Makefile
354 src/modules/conf_window_focus/module.desktop
355 src/modules/conf_window_remembers/Makefile
356 src/modules/conf_window_remembers/module.desktop
357 src/modules/conf_window_manipulation/Makefile
358 src/modules/conf_window_manipulation/module.desktop
359 src/modules/conf_menus/Makefile
360 src/modules/conf_menus/module.desktop
361 src/modules/conf_clientlist/Makefile
362 src/modules/conf_clientlist/module.desktop
363 src/modules/conf_dialogs/Makefile
364 src/modules/conf_dialogs/module.desktop
365 src/modules/conf_performance/Makefile
366 src/modules/conf_performance/module.desktop
367 src/modules/conf_winlist/Makefile
368 src/modules/conf_winlist/module.desktop
369 src/modules/conf_exebuf/Makefile
370 src/modules/conf_exebuf/module.desktop
371 src/modules/conf_paths/Makefile
372 src/modules/conf_paths/module.desktop
373 src/modules/conf_mime/Makefile
374 src/modules/conf_mime/module.desktop
375 src/modules/conf_interaction/Makefile
376 src/modules/conf_interaction/module.desktop
377 src/modules/gadman/Makefile
378 src/modules/gadman/module.desktop
384 data/init/images/Makefile
385 data/input_methods/Makefile
387 data/themes/images/Makefile
389 data/xsession/Makefile
390 data/xsession/enlightenment.desktop
391 data/backgrounds/Makefile
398 chmod +x enlightenment-config