1 # get rid of that stupid cache mechanism
4 AC_INIT([embryo], [0.9.9.062], [enlightenment-devel@lists.sourceforge.net])
6 AC_CONFIG_SRCDIR([configure.ac])
7 AC_CONFIG_MACRO_DIR([m4])
12 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
13 AM_CONFIG_HEADER(config.h)
16 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
17 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
20 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
21 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
22 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
23 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
24 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
25 AC_SUBST(version_info)
27 release="ver-pre-svn-04"
32 release_info="-release $release"
35 AC_SUBST(release_info)
38 ### Default options with respect to host
41 embryoincludedir="${datadir}/include"
44 ### Additional options to configure
47 ### Checks for programs
50 # doxygen program for documentation building
52 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
58 # Check whether pkg-config supports Requires.private
59 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
60 pkgconfig_requires_private="Requires.private"
62 pkgconfig_requires_private="Requires"
64 AC_SUBST(pkgconfig_requires_private)
67 ### Checks for libraries
69 # Evil library for compilation on Windows
74 PKG_CHECK_MODULES([EVIL], [evil])
75 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
76 requirement_embryo="evil ${requirement_embryo}"
77 EFL_EMBRYO_BUILD="-DEFL_EMBRYO_BUILD"
80 AC_SUBST(EFL_EMBRYO_BUILD)
83 ### Checks for header files
85 AC_CHECK_HEADER([fnmatch.h],
87 [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])])
93 ### Checks for structures
96 ### Checks for compiler characteristics
109 EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420"
112 EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420"
113 EMBRYO_CFLAGS="-mwin32"
116 AC_SUBST(EMBRYO_CPPFLAGS)
117 AC_SUBST(EMBRYO_CFLAGS)
120 ### Checks for linker characteristics
122 lt_enable_auto_import=""
125 lt_enable_auto_import="-Wl,--enable-auto-import"
128 AC_SUBST(lt_enable_auto_import)
131 ### Checks for library functions
136 AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW / CeGCC platform)])
139 AC_CHECK_FUNCS(gettimeofday)
144 AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"])
145 if test "x$res" = "xno"; then
146 AC_SEARCH_LIBS([fnmatch],
147 [fnmatch evil iberty],
150 if test "x$res" = "xno"; then
151 AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty, nor libevil])
153 fnmatch_libs="${ac_cv_search_fnmatch}"
155 AC_SUBST(fnmatch_libs)
158 AC_SUBST(requirement_embryo)
159 AC_SUBST(embryoincludedir)
175 #####################################################################
181 echo "------------------------------------------------------------------------"
182 echo "$PACKAGE $VERSION"
183 echo "------------------------------------------------------------------------"
185 echo "Configuration Options Summary:"
187 echo " Documentation........: ${build_doc}"
189 echo " Compilation..........: make"
191 echo " Installation.........: make install"
193 echo " prefix.............: $prefix"