2007-11-04 02:28:23 -08:00
|
|
|
rm -f config.cache
|
|
|
|
|
2009-02-03 01:03:53 -08:00
|
|
|
AC_INIT([efreet], [0.5.0.050], [enlightenment-devel@lists.sourceforge.net])
|
|
|
|
AC_PREREQ([2.52])
|
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2007-02-03 05:05:30 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2007-11-04 02:28:23 -08:00
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
|
2007-02-03 05:05:30 -08:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C___ATTRIBUTE__
|
|
|
|
|
2007-11-04 02:28:23 -08:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2007-11-12 23:13:51 -08:00
|
|
|
VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
|
|
|
|
VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
|
|
|
|
VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
|
|
|
|
SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
|
2007-11-04 02:28:23 -08:00
|
|
|
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
|
2009-04-17 03:01:45 -07:00
|
|
|
efreet_release_info="-release ver-pre-svn-00"
|
|
|
|
efreet_mime_release_info="-release ver-pre-svn-00"
|
|
|
|
efreet_trash_release_info="-release ver-pre-svn-00"
|
2007-11-04 02:28:23 -08:00
|
|
|
AC_SUBST(version_info)
|
2009-04-17 03:01:45 -07:00
|
|
|
AC_SUBST(efreet_release_info)
|
|
|
|
AC_SUBST(efreet_mime_release_info)
|
|
|
|
AC_SUBST(efreet_trash_release_info)
|
2007-11-04 02:28:23 -08:00
|
|
|
|
|
|
|
AC_FUNC_ALLOCA
|
2007-02-03 05:05:30 -08:00
|
|
|
|
2009-03-27 04:29:20 -07:00
|
|
|
PKG_CHECK_MODULES(EFREET, [eina-0 ecore >= 0.9.9 ecore-file >= 0.9.9])
|
|
|
|
PKG_CHECK_MODULES(EINA, [eina-0])
|
2007-02-03 05:05:30 -08:00
|
|
|
|
2009-03-27 04:29:20 -07:00
|
|
|
requirements="ecore-file ecore eina-0"
|
2007-02-03 05:05:30 -08:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(strict-spec,
|
|
|
|
[AC_HELP_STRING([--enable-strict-spec],[Enable strict spec compliance])],
|
|
|
|
[enable_strict_spec=$enableval], [enable_strict_spec="auto"])
|
|
|
|
if test "x$enable_strict_spec" = "xyes" ; then
|
2007-04-04 03:41:53 -07:00
|
|
|
AC_DEFINE(STRICT_SPEC, 1, [Strict Spec Compliance])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(sloppy-spec,
|
2007-04-04 03:50:35 -07:00
|
|
|
[AC_HELP_STRING([--disable-sloppy-spec],[Enable sloppy spec compliance])],
|
|
|
|
[enable_sloppy_spec=$enableval], [enable_sloppy_spec="yes"])
|
2007-04-04 03:41:53 -07:00
|
|
|
if test "x$enable_sloppy_spec" = "xyes" ; then
|
|
|
|
AC_DEFINE(SLOPPY_SPEC, 1, [Sloppy Spec Compliance])
|
2007-02-03 05:05:30 -08:00
|
|
|
fi
|
|
|
|
|
2007-11-04 01:32:35 -08:00
|
|
|
AC_ARG_ENABLE(hidden-visibility,
|
|
|
|
[AC_HELP_STRING([--enable-hidden-visibility],[Enable hidden visibility])],
|
|
|
|
[enable_hidden_visibility=$enableval], [enable_hidden_visibility="auto"])
|
|
|
|
if test "x$enable_hidden_visibility" = "xyes" ; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
|
|
|
|
else
|
|
|
|
AC_DEFINE(DEFAULT_VISIBLITY, 1, [Default visibility])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(DEFAULT_VISIBILITY, test "x$enable_hidden_visibility" != "xyes")
|
2009-02-03 01:03:53 -08:00
|
|
|
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
2007-11-04 01:32:35 -08:00
|
|
|
|
2007-02-03 05:05:30 -08:00
|
|
|
AC_SUBST(requirements)
|
|
|
|
AC_OUTPUT([
|
2007-11-06 21:42:08 -08:00
|
|
|
efreet.spec
|
2007-03-21 10:54:54 -07:00
|
|
|
efreet.pc
|
2007-06-30 22:10:14 -07:00
|
|
|
efreet-mime.pc
|
2008-07-16 12:45:12 -07:00
|
|
|
efreet-trash.pc
|
2007-02-03 05:05:30 -08:00
|
|
|
Makefile
|
2009-02-03 01:03:53 -08:00
|
|
|
doc/Makefile
|
|
|
|
doc/Doxyfile
|
2007-02-03 05:05:30 -08:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/bin/Makefile
|
|
|
|
src/bin/data/Makefile
|
|
|
|
src/bin/data/sub/Makefile
|
|
|
|
src/bin/compare/Makefile
|
|
|
|
], []
|
|
|
|
)
|