2003-06-02 16:49:56 -07:00
dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT(configure.in)
2004-02-16 23:13:12 -08:00
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_ISC_POSIX
2007-08-26 07:33:41 -07:00
AM_INIT_AUTOMAKE(edje, 0.5.0.041)
2003-06-02 16:49:56 -07:00
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AM_PROG_CC_STDC
2007-08-26 05:54:51 -07:00
AM_PROG_CC_C_O
2003-06-02 16:49:56 -07:00
AC_HEADER_STDC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
2004-04-01 16:16:21 -08:00
AC_FUNC_ALLOCA
2003-06-02 16:49:56 -07:00
2007-08-26 05:54:51 -07:00
create_shared_lib=""
case "$host_os" in
mingw|mingw32)
create_shared_lib="-no-undefined "
;;
esac
AC_SUBST(create_shared_lib)
2004-10-20 09:48:58 -07:00
AC_CHECK_FUNCS(realpath)
2007-08-26 05:54:51 -07:00
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 MinGW users: see the INSTALL file]))
2004-10-12 09:20:12 -07:00
2007-08-26 05:54:51 -07:00
fnmatch_libs=""
2004-10-12 09:20:12 -07:00
AC_CHECK_FUNCS(fnmatch, res=yes, res=no)
if test "x$res" = "xno"; then
2007-08-26 05:54:51 -07:00
AC_CHECK_LIB(fnmatch, fnmatch, res=yes fnmatch_libs="-lfnmatch", res=no)
dnl Test for compilation with MinGW.
dnl fnmatch function is in the libiberty library
if test "x$res" = "xno"; then
AC_CHECK_LIB(iberty, fnmatch, res=yes fnmatch_libs="-liberty", res=no)
fi
if test "x$res" = "xno"; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty])
fi
2004-10-12 09:20:12 -07:00
fi
AC_SUBST(fnmatch_libs)
2003-06-21 22:16:12 -07:00
2003-06-02 16:49:56 -07:00
if test "x${bindir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${ac_default_prefix}/bin"
2003-06-02 16:49:56 -07:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${prefix}/bin"
2003-06-02 16:49:56 -07:00
fi
else
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${bindir}"
2003-06-02 16:49:56 -07:00
fi
2006-07-13 09:35:46 -07:00
AC_SUBST(PACKAGE_BIN_DIR)
2003-06-02 16:49:56 -07:00
if test "x${libdir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${ac_default_prefix}/lib"
2003-06-02 16:49:56 -07:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${prefix}/lib"
2003-06-02 16:49:56 -07:00
fi
else
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${libdir}"
2003-06-02 16:49:56 -07:00
fi
2006-07-13 09:35:46 -07:00
AC_SUBST(PACKAGE_LIB_DIR)
if test "x${prefix}" = "xNONE"; then
PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
else
PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
fi
AC_SUBST(PACKAGE_DATA_DIR)
2004-02-16 23:13:12 -08:00
AC_MSG_CHECKING(whether to build edje_cc)
have_edje_cc="yes"
AC_ARG_ENABLE(edje-cc, [ --disable-edje-cc disable building of edje_cc ], [
2005-10-12 16:15:17 -07:00
if test x"$enableval" = x"yes" ; then
2004-02-16 23:13:12 -08:00
AC_MSG_RESULT(yes)
have_edje_cc="yes"
else
AC_MSG_RESULT(no)
have_edje_cc="no"
fi
], [
AC_MSG_RESULT($have_edje_cc)
]
)
2007-03-21 08:36:26 -07:00
PKG_CHECK_MODULES(EDJE, [
evas >= 0.9.9
ecore-evas >= 0.9.9
2007-03-21 09:20:06 -07:00
ecore-job >= 0.9.9
2007-03-21 08:36:26 -07:00
eet >= 0.9.10
embryo >= 0.9.1
])
2004-11-09 01:31:08 -08:00
2004-03-06 09:20:04 -08:00
AC_MSG_CHECKING([for location of Vim data files])
2004-03-06 07:18:57 -08:00
install_vim="yes";
2004-03-06 09:20:04 -08:00
AC_ARG_WITH(vim,
2004-04-04 03:59:50 -07:00
[ --with-vim=DIR Location of Vim data files [[autodetect]]],
2004-03-06 09:20:04 -08:00
[if test -d "${withval}"; then
vimdir="${withval}"
fi])
if test "x${vimdir}" = "x" ; then
if test -d "${prefix}/share/vim"; then
vimdir="${prefix}/share/vim"
elif test -d "/usr/share/vim"; then
vimdir="/usr/share/vim"
elif test -d "/usr/local/share/vim"; then
vimdir="/usr/local/share/vim"
elif test -d "/opt/share/vim"; then
vimdir="/opt/share/vim"
else
install_vim="no"
fi
fi
if test "${install_vim}" = "yes"; then
AC_MSG_RESULT([$vimdir])
2004-03-06 07:18:57 -08:00
else
2004-03-06 09:20:04 -08:00
AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
2004-03-06 07:18:57 -08:00
fi
2005-09-03 11:52:10 -07:00
AC_SUBST(vimdir)
2004-11-09 01:31:08 -08:00
2004-10-20 23:33:22 -07:00
EDJE_CC_PRG=""
EDJE_DECC_PRG=""
2005-01-09 01:50:16 -08:00
EDJE_RECC_PRG=""
EDJE_THUMB_PRG=""
2004-10-20 23:33:22 -07:00
if test "x$have_edje_cc" = "xyes"; then
AM_CONDITIONAL(BUILD_EDJE_CC, true)
AM_CONDITIONAL(BUILD_EDJE_DECC, true)
2005-01-09 01:50:16 -08:00
AM_CONDITIONAL(BUILD_EDJE_THUMB, true)
2004-10-20 23:33:22 -07:00
EDJE_CC_PRG="edje_cc"
EDJE_DECC_PRG="edje_decc"
EDJE_RECC_PRG="edje_recc"
else
AM_CONDITIONAL(BUILD_EDJE_CC, false)
AM_CONDITIONAL(BUILD_EDJE_DECC, false)
fi
AC_SUBST(EDJE_CC_PRG)
AC_SUBST(EDJE_DECC_PRG)
AC_SUBST(EDJE_RECC_PRG)
2004-11-09 01:31:08 -08:00
2003-06-02 16:49:56 -07:00
AC_OUTPUT([
2004-07-30 11:18:50 -07:00
edje.pc
2005-10-24 20:45:52 -07:00
edje.spec
2003-06-02 16:49:56 -07:00
Makefile
2004-05-12 13:14:18 -07:00
data/Makefile
data/include/Makefile
2003-06-02 16:49:56 -07:00
src/Makefile
src/lib/Makefile
src/bin/Makefile
2005-10-07 15:22:37 -07:00
debian/changelog
2003-06-02 16:49:56 -07:00
])