1 # get rid of that stupid cache mechanism
4 AC_INIT([embryo], [0.9.9.050], [enlightenment-devel@lists.sourceforge.net])
6 AC_CONFIG_SRCDIR([configure.ac])
11 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
12 AM_CONFIG_HEADER(config.h)
15 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
16 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
19 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
20 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
21 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
22 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
23 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
24 AC_SUBST(version_info)
27 ### Default options with respect to host
30 embryoincludedir="${datadir}/include"
33 ### Additional options to configure
36 ### Checks for libraries
40 # Evil library for compilation on Windows
45 PKG_CHECK_MODULES([EVIL], [evil])
46 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
47 requirement_embryo="evil ${requirement_embryo}"
48 EFL_EMBRYO_BUILD="-DEFL_EMBRYO_BUILD"
51 AC_SUBST(EFL_EMBRYO_BUILD)
54 ### Checks for header files
56 AC_CHECK_HEADER([fnmatch.h],
58 [AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file. MinGW users: see the INSTALL file])])
61 ### Checks for programs
64 # doxygen program for documentation building
66 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
72 ### Checks for structures
75 ### Checks for compiler characteristics
88 EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420"
91 EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420"
92 EMBRYO_CFLAGS="-mwin32"
95 AC_SUBST(EMBRYO_CPPFLAGS)
96 AC_SUBST(EMBRYO_CFLAGS)
99 ### Checks for linker characteristics
101 lt_enable_auto_import=""
104 lt_enable_auto_import="-Wl,--enable-auto-import"
107 AC_SUBST(lt_enable_auto_import)
110 ### Checks for library functions
115 AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW / CeGCC platform)])
118 AC_CHECK_FUNCS(gettimeofday)
123 AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"])
124 if test "x$res" = "xno"; then
125 AC_SEARCH_LIBS([fnmatch],
126 [fnmatch iberty evil],
129 if test "x$res" = "xno"; then
130 AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty, nor libevil])
132 fnmatch_libs="${ac_cv_search_fnmatch}"
134 AC_SUBST(fnmatch_libs)
137 AC_SUBST(requirement_embryo)
138 AC_SUBST(embryoincludedir)
154 #####################################################################
160 echo "------------------------------------------------------------------------"
161 echo "$PACKAGE $VERSION"
162 echo "------------------------------------------------------------------------"
164 echo "Configuration Options Summary:"
166 echo " Documentation........: ${enable_doc}"
168 echo " Compilation..........: make"
170 echo " Installation.........: make install"
172 echo " prefix.............: $prefix"