2007-02-15 02:20:21 -08: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)
|
|
|
|
AM_INIT_AUTOMAKE(ephoto, 2.15.0)
|
|
|
|
AM_CONFIG_HEADER(src/bin/config.h)
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
|
|
|
AM_ENABLE_SHARED
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AM_WITH_DMALLOC
|
|
|
|
|
|
|
|
dnl Add the languages which your application supports here.
|
2007-12-11 03:48:50 -08:00
|
|
|
ALL_LINGUAS="sv de it fr eo"
|
2007-02-15 02:20:21 -08:00
|
|
|
AC_SUBST(ALL_LINGUAS)
|
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.12.1])
|
|
|
|
|
|
|
|
dnl Set PACKAGE_LOCALE_DIR in config.h.
|
|
|
|
if test "x$LIBINTL" = "x"; then
|
|
|
|
LIBINTL="$INTLLIBS"
|
|
|
|
fi
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/share/locale", [Locale-specific data directory])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/share/locale", [Locale-specific data directory])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_DATA_DIR in config.h.
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Shared Data Directory])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Shared Data Directory])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_BIN_DIR in config.h.
|
|
|
|
if test "x${datadir}" = 'x${prefix}/bin'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Installation directory for user executables])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Installation directory for user executables])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Installation directory for user executables])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_LIB_DIR in config.h.
|
|
|
|
if test "x${datadir}" = 'x${prefix}/lib'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Installation directory for libraries])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Installation directory for libraries])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Installation directory for libraries])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
|
|
|
packagesrcdir=`cd $srcdir && pwd`
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code directory])
|
|
|
|
|
2007-03-15 22:56:00 -07:00
|
|
|
PKG_CHECK_MODULES([SQLITE], sqlite3,
|
|
|
|
[
|
|
|
|
have_sqlite3="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_sqlite3="No"
|
2007-03-22 19:06:31 -07:00
|
|
|
echo "Sqlite3 was not found by pkg-config!";
|
2007-03-15 22:56:00 -07:00
|
|
|
AC_MSG_ERROR([Ephoto needs sqlite3 to compile.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES([EXIF], libexif >= 0.6.13,
|
|
|
|
[
|
|
|
|
have_exif="Yes"
|
|
|
|
AC_DEFINE(BUILD_EXIF_SUPPORT, 1, [Enable Exif Support])
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_exif="No"
|
|
|
|
]
|
|
|
|
)
|
2007-02-15 02:20:21 -08:00
|
|
|
|
2007-03-22 19:06:31 -07:00
|
|
|
PKG_CHECK_MODULES([EVAS], evas,
|
|
|
|
[
|
|
|
|
have_evas="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_evas="No"
|
|
|
|
echo "Evas was not found by pkg-config!";
|
|
|
|
AC_MSG_ERROR([Ephoto needs evas to compile.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2007-03-29 07:21:51 -07:00
|
|
|
PKG_CHECK_MODULES([ECORE], ecore-file,
|
2007-03-22 19:06:31 -07:00
|
|
|
[
|
|
|
|
have_ecore="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_ecore="No"
|
|
|
|
echo "Ecore was not found by pkg-config!";
|
|
|
|
AC_MSG_ERROR([Ephoto needs ecore to compile.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES([EDJE], edje,
|
|
|
|
[
|
|
|
|
have_edje="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_edje="No"
|
|
|
|
echo "Edje was not found by pkg-config!";
|
|
|
|
AC_MSG_ERROR([Ephoto needs edje to compile.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES([EWL], ewl,
|
|
|
|
[
|
|
|
|
have_ewl="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_ewl="No"
|
|
|
|
echo "Ewl was not found by pkg-config!";
|
|
|
|
AC_MSG_ERROR([Ephoto needs ewl to compile.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2007-09-14 11:23:38 -07:00
|
|
|
PKG_CHECK_MODULES([EFREET_MIME], efreet-mime,
|
|
|
|
[
|
|
|
|
have_efreet_mime="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_efreet_mime="No"
|
|
|
|
echo "Efreet_Mime was not found by pkg-config!";
|
|
|
|
AC_MSG_ERROR([Ephoto needs efreet_mime to compile.])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2007-03-22 19:06:31 -07:00
|
|
|
PKG_CHECK_MODULES([EPSILON], epsilon,
|
|
|
|
[
|
|
|
|
have_epsilon="Yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
have_epsilon="No"
|
|
|
|
echo "Epsilon was not found by pkg-config!";
|
|
|
|
AC_MSG_ERROR([Ephoto needs epsilon to compile.])
|
|
|
|
]
|
|
|
|
)
|
2007-02-15 02:20:21 -08:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
ephoto.spec
|
|
|
|
data/Makefile
|
|
|
|
data/images/Makefile
|
|
|
|
po/Makefile
|
|
|
|
src/Makefile
|
|
|
|
src/bin/Makefile
|
2007-02-17 18:38:28 -08:00
|
|
|
debian/changelog
|
2007-02-15 02:20:21 -08:00
|
|
|
])
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo " ________ ________ ___ ___ ________ ________ ________"
|
|
|
|
echo " / _____/ / __ / / / / / / __ / /__ ___/ / __ /"
|
|
|
|
echo " / /____ / /_/ / / /_/ / / / / / / / / / / / "
|
|
|
|
echo " / _____/ / _____/ / __ / / / / / / / / / / / "
|
|
|
|
echo "/ /_____ / / / / / / / /_/ / / / / /_/ / "
|
|
|
|
echo "________/ /__/ /__/ /__/ /_______/ /_/ /_______/ "
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
2007-03-22 19:06:31 -07:00
|
|
|
echo " Evas ............: $have_evas"
|
|
|
|
echo " Ecore ...........: $have_ecore"
|
|
|
|
echo " Edje ............: $have_edje"
|
2007-09-14 11:23:38 -07:00
|
|
|
echo " Efreet_Mime .....: $have_efreet_mime"
|
2007-03-22 19:06:31 -07:00
|
|
|
echo " Epsilon .........: $have_epsilon"
|
|
|
|
echo " Ewl .............: $have_ewl"
|
2007-03-15 21:34:22 -07:00
|
|
|
echo " Libexif .........: $have_exif"
|
|
|
|
echo " Sqlite3 .........: $have_sqlite3"
|
2007-02-15 02:20:21 -08:00
|
|
|
echo
|
|
|
|
echo "Installation Path.........: $prefix"
|
|
|
|
echo
|
|
|
|
echo "Compilation...............: make"
|
|
|
|
echo "Installation..............: make install"
|
|
|
|
echo
|