Build w/o .po files.
[e.git] / configure.in
blob27acdd4dec33179ed35daf1f8f940bbc91803e9d
1 # get rid of that stupid cache mechanism
2 rm -f config.cache
4 AC_INIT(enlightenment, 0.16.999.043, enlightenment-devel@lists.sourceforge.net)
5 AC_PREREQ(2.52)
6 AC_CONFIG_SRCDIR(configure.in)
7 AC_CANONICAL_BUILD
8 AC_CANONICAL_HOST
9 AC_ISC_POSIX
11 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
12 AM_CONFIG_HEADER(config.h)
14 AC_C_BIGENDIAN
15 AC_PROG_CC
16 AM_PROG_CC_STDC
17 AM_PROG_CC_C_O
18 AC_HEADER_STDC
19 AC_C_CONST
20 AM_ENABLE_SHARED
21 AM_PROG_LIBTOOL
22 AC_FUNC_ALLOCA
23 AC_C___ATTRIBUTE__
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])
35         else
36                 fnmatch_libs="-lfnmatch"
37         fi
39                                 
40 AC_SUBST(fnmatch_libs)
42 have_pam=no
43 AC_CHECK_HEADERS(security/pam_appl.h, [
44     LIBS="$LIBS -lpam"
45     have_pam=yes
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.
51 #have_valgrind="no"
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
56 #        AC_MSG_RESULT(yes)
57 #        have_valgrind="yes"
58 #      else
59 #        AC_MSG_RESULT(no)
60 #       have_valgrind="no"
61 #        VALGRIND_CFLAGS=""
62 #        VALGRIND_LIBS=""
63 #      fi
64 #  ], [
65 #    have_valgrind=$have_valgrind
66 #  ]
69 #if test x$have_valgrind = "xyes"; then
70 #  AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
71 #fi
73 AC_SUBST(VALGRIND_CFLAGS)
74 AC_SUBST(VALGRIND_LIBS)
76 MODULE_ARCH="$host_os-$host_cpu"
77 AC_SUBST(MODULE_ARCH)
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"
83   else
84     PACKAGE_BIN_DIR="${prefix}/bin"
85   fi
86 else
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"
94   else
95     PACKAGE_LIB_DIR="${prefix}/lib"
96   fi
97 else
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"
106 else
107   PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
108   LOCALE_DIR="${prefix}/share/locale"
109   PACKAGE_SYSCONF_DIR="${sysconfdir}"
111 AC_SUBST(PACKAGE_DATA_DIR)
112 AC_SUBST(LOCALE_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 ]
122     
123 x_dir=""
124 x_cflags=""
125 x_libs=""
126 AC_PATH_XTRA
127 AC_CHECK_HEADER(X11/X.h,
128   [
129     if test "x$want_evas_simple_x11" = "xyes"; then
130       x_libs="${x_libs} -lX11 -lXext"
131     else
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"
135     fi
136   ],[
137     AC_MSG_ERROR([Cannot find X headers and libraries.])
138   ]
140 AC_SUBST(x_cflags)
141 AC_SUBST(x_libs)
143 cf_cflags=""
144 cf_libs=""
145 PCPPFLAGS="${CPPFLAGS}"
146 CPPFLAGS="${CPPFLAGS} -I /System/Library/Frameworks/CoreFoundation.framework/Headers"
147 AC_CHECK_HEADERS(CFBase.h,
148   [
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'"
152   ]
154 CPPFLAGS="${PCPPFLAGS}"
155 AC_SUBST(cf_cflags)
156 AC_SUBST(cf_libs)
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"
162 ALL_LINGUAS=""
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
168   LIBINTL="$INTLLIBS"
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, [
185   evas
186   ecore
187   ecore-evas
188   ecore-file
189   ecore-ipc
190   ecore-con
191   ecore-job
192   ecore-imf
193   ecore-imf-evas
194   edje
195   eet >= 1.0.1
196   embryo
197   efreet
198   efreet-mime
201 PKG_CHECK_MODULES(ECORE_TXT, [
202   ecore-txt
203 ], [
204   have_temp="yes"
205   have_battery="yes"
206   # This test will succeed as these modules are also checked before
207   PKG_CHECK_MODULES(TEMPERATURE, [
208     ecore
209     ecore-file
210   ])
211   PKG_CHECK_MODULES(BATTERY, [
212     ecore
213     ecore-file
214     ecore-con
215   ])
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])
228   fi
231 e_libs=$E_LIBS" "$LIBINTL" "$fnmatch_libs" "
232 e_cflags="-DUSE_E_CONFIG_H "$E_CFLAGS" "$E_DBUS_CFLAGS" "
233 AC_SUBST(e_libs)
234 AC_SUBST(e_cflags)
236 profile="SLOW_PC"
237 AC_ARG_WITH(profile,
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 ],
242   v=$withval;
243   profile=$v
244   echo "  Enlightenment build profile set to "$profile;
246   profile="SLOW_PC"
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
250 AC_SUBST(EDJE_DEF)
252 AC_ARG_WITH(edje-cc,
253 [  --with-edje-cc=PATH              specify a specific path to edje_cc],
255   v=$withval;
256   edje_cc=$v
257   echo "  Enlightenment edje_cc explicitly set to "$edje_cc;
259   edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
261 AC_SUBST(edje_cc)
263 AC_DEFINE(E_INTERNAL, 1, "This define can be used to wrap internal E stuff, as config.h isn't exported")
266 AC_OUTPUT([
267 Makefile
268 enlightenment.spec
269 enlightenment.pc
270 src/Makefile
271 src/bin/Makefile
272 src/modules/Makefile
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
379 src/preload/Makefile
380 data/Makefile
381 data/fonts/Makefile
382 data/images/Makefile
383 data/init/Makefile
384 data/init/images/Makefile
385 data/input_methods/Makefile
386 data/themes/Makefile
387 data/themes/images/Makefile
388 data/other/Makefile
389 data/xsession/Makefile
390 data/xsession/enlightenment.desktop
391 data/backgrounds/Makefile
392 data/etc/Makefile
393 data/icons/Makefile
394 doc/Makefile
395 po/Makefile.in
396 enlightenment-config
398 chmod +x enlightenment-config