2003-09-23 01:09:32 -07:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(configure.in)
|
2004-02-16 23:12:01 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_ISC_POSIX
|
2005-06-09 20:59:52 -07:00
|
|
|
AM_INIT_AUTOMAKE(ecore, 0.9.9.010)
|
2003-09-23 01:09:32 -07:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_PROG_CC
|
2004-01-03 09:29:44 -08:00
|
|
|
AM_PROG_CC_STDC
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
2004-12-08 12:29:45 -08:00
|
|
|
AC_CHECK_SIZEOF(int, 4)
|
2003-09-23 01:09:32 -07:00
|
|
|
AM_ENABLE_SHARED
|
|
|
|
AM_PROG_LIBTOOL
|
2005-03-01 23:06:44 -08:00
|
|
|
AC_C___ATTRIBUTE__
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2005-01-04 21:05:30 -08:00
|
|
|
if test "x${bindir}" = 'x${exec_prefix}/bin'; then
|
|
|
|
if test "x${exec_prefix}" = "xNONE"; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
bindir="${ac_default_prefix}/bin";
|
|
|
|
else
|
|
|
|
bindir="${prefix}/bin";
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2005-01-04 21:05:30 -08:00
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
bindir="${ac_default_prefix}/bin";
|
|
|
|
else
|
|
|
|
bindir="${prefix}/bin";
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2005-01-04 21:05:30 -08:00
|
|
|
if test "x${libdir}" = 'x${exec_prefix}/lib'; then
|
|
|
|
if test "x${exec_prefix}" = "xNONE"; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
libdir="${ac_default_prefix}/lib";
|
|
|
|
else
|
|
|
|
libdir="${prefix}/lib";
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2005-01-04 21:05:30 -08:00
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
libdir="${ac_default_prefix}/lib";
|
|
|
|
else
|
|
|
|
libdir="${prefix}/lib";
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Set PACKAGE_DATA_DIR in config.h.
|
|
|
|
if test "x${datadir}" = 'x${prefix}/share'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Shared Data Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Shared Data Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Shared Data Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_BIN_DIR in config.h.
|
|
|
|
if test "x${bindir}" = 'xNONE'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Installation Directory for User Executables])
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Installation Directory for User Executables])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Installation Directory for User Executables])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
|
2003-12-05 08:57:32 -08:00
|
|
|
dnl Set PACKAGE_LIB_DIR in config.h.
|
|
|
|
if test "x${libdir}" = 'xNONE'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Installation Directory for Libraries])
|
2003-12-05 08:57:32 -08:00
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Installation Directory for Libraries])
|
2003-12-05 08:57:32 -08:00
|
|
|
fi
|
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Installation Directory for Libraries])
|
2003-12-05 08:57:32 -08:00
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
|
|
|
packagesrcdir=`cd $srcdir && pwd`
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source Code Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
dnl Use -Wall if we have gcc.
|
|
|
|
changequote(,)dnl
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
changequote([,])dnl
|
|
|
|
|
2004-10-20 10:51:29 -07:00
|
|
|
AC_CHECK_FUNCS(gettimeofday)
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(netinet/in.h)
|
|
|
|
|
|
|
|
case "$host_os" in
|
|
|
|
mingw|mingw32)
|
|
|
|
winsock_libs="-lwsock32"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(winsock_libs)
|
|
|
|
|
2003-12-15 20:57:42 -08:00
|
|
|
AC_MSG_CHECKING(whether ecore_txt module is to be built)
|
|
|
|
|
|
|
|
iconv_cflags=""
|
|
|
|
iconv_libs=""
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_txt="no";
|
2003-12-15 20:57:42 -08:00
|
|
|
ecore_txt_cflags="";
|
|
|
|
ecore_txt_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-txt,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-txt disable the ecore_txt module], [
|
2003-12-15 20:57:42 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2004-11-07 18:48:12 -08:00
|
|
|
AC_ARG_WITH(iconv-link,
|
|
|
|
[ --with-iconv-link=ICONV_LINK explicitly specify an iconv link option],
|
|
|
|
[
|
|
|
|
v=$withval;
|
|
|
|
iconv_libs=$v;
|
|
|
|
echo " Ecore iconv link flags explicitly set to: "$iconv_libs;
|
|
|
|
])
|
|
|
|
|
2003-12-15 20:57:42 -08:00
|
|
|
if test "x$have_ecore_txt" = "xyes"; then
|
2004-11-07 18:48:12 -08:00
|
|
|
if test -z "$iconv_libs"; then
|
2004-10-24 03:49:05 -07:00
|
|
|
AC_CHECK_LIB(iconv, libiconv,
|
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
iconv_libs="-liconv"
|
2004-11-07 18:48:12 -08:00
|
|
|
ecore_txt_libs="-lecore_txt "$iconv_libs
|
2004-10-24 03:49:05 -07:00
|
|
|
have_ecore_txt="yes"
|
|
|
|
], [
|
|
|
|
have_ecore_txt="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2004-11-07 18:48:12 -08:00
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(iconv, iconv,
|
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
iconv_libs="-liconv"
|
|
|
|
ecore_txt_libs="-lecore_txt "$iconv_libs
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
], [
|
|
|
|
have_ecore_txt="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(c, libiconv,
|
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
ecore_txt_libs="-lecore_txt "$iconv_libs
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
], [
|
|
|
|
have_ecore_txt="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(c, iconv,
|
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
ecore_txt_libs="-lecore_txt "$iconv_libs
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT("no - disabling ecore_txt")
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, false)
|
|
|
|
have_ecore_txt="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
ecore_txt_libs="-lecore_txt "$iconv_libs
|
|
|
|
have_ecore_txt="yes"
|
2004-01-04 12:23:36 -08:00
|
|
|
fi
|
2003-12-15 20:57:42 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, false)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(iconv_cflags)
|
|
|
|
AC_SUBST(iconv_libs)
|
|
|
|
|
|
|
|
AC_SUBST(ecore_txt_cflags)
|
|
|
|
AC_SUBST(ecore_txt_libs)
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_x="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_x_cflags="";
|
|
|
|
ecore_x_libs="";
|
|
|
|
|
|
|
|
x_dir="";
|
|
|
|
x_includes="";
|
|
|
|
x_cflags="";
|
|
|
|
x_libs="";
|
|
|
|
x_ldflags="";
|
|
|
|
|
2003-12-15 20:57:42 -08:00
|
|
|
if test "x$have_ecore_txt" = "xyes"; then
|
|
|
|
AC_MSG_CHECKING(whether ecore_x module is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-x,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-x disable the ecore_x module], [
|
2003-12-15 20:57:42 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_x="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2003-10-14 21:20:38 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_x="yes"
|
2003-12-15 20:57:42 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-17 08:25:51 -08:00
|
|
|
else
|
2003-12-17 08:30:10 -08:00
|
|
|
AC_MSG_RESULT(ecore_txt not enabled, so ecore_x will not be enabled)
|
2003-12-15 20:57:42 -08:00
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_x" = "xyes"; then
|
2003-12-17 08:25:51 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_X, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_X, 1, [Build Ecore_X Module])
|
2004-08-27 03:12:31 -07:00
|
|
|
BUILD_ECORE_X=1
|
2003-12-15 18:46:31 -08:00
|
|
|
x_dir="/usr/X11R6";
|
|
|
|
x_includes="";
|
2005-01-04 02:26:17 -08:00
|
|
|
x_cflags="-I"$x_dir"/include";
|
|
|
|
x_libs="-L"$x_dir"/lib -lX11 -lXext";
|
|
|
|
x_ldflags=" "$ecore_x_libs;
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_x_libs="-lecore_x";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_X, false)
|
2004-08-27 03:12:31 -07:00
|
|
|
BUILD_ECORE_X=0
|
2003-12-15 18:46:31 -08:00
|
|
|
fi
|
|
|
|
|
2004-08-27 03:12:31 -07:00
|
|
|
AC_SUBST(BUILD_ECORE_X)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(x_cflags)
|
|
|
|
AC_SUBST(x_includes)
|
|
|
|
AC_SUBST(x_ldflags)
|
|
|
|
AC_SUBST(x_libs)
|
|
|
|
|
2005-01-04 02:26:17 -08:00
|
|
|
Xcursor_libs=""
|
|
|
|
Xcursor_cflags=""
|
|
|
|
use_Xcursor="no"
|
2005-01-04 06:22:04 -08:00
|
|
|
PCFLAGS=$CFLAGS
|
|
|
|
CFLAGS=$x_cflags" "$x_includes
|
2005-01-04 02:26:17 -08:00
|
|
|
AC_CHECK_HEADER(X11/Xcursor/Xcursor.h, [
|
|
|
|
AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor, [
|
|
|
|
AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
|
|
|
|
Xcursor_cflags=""
|
2005-01-04 06:07:03 -08:00
|
|
|
Xcursor_libs="-lXcursor"
|
2005-01-04 02:26:17 -08:00
|
|
|
use_Xcursor="yes"
|
|
|
|
], [
|
|
|
|
Xcursor_cflags=""
|
|
|
|
Xcursor_libs=""
|
|
|
|
use_Xcursor="no"
|
2005-01-04 06:22:04 -08:00
|
|
|
], [
|
|
|
|
$x_libs $x_ldflags -lXrender
|
2005-01-04 02:26:17 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
], [
|
|
|
|
Xcursor_cflags=""
|
|
|
|
Xcursor_libs=""
|
|
|
|
use_Xcursor="no"
|
|
|
|
], [
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
]
|
|
|
|
)
|
2005-01-04 06:22:04 -08:00
|
|
|
CFLAGS=$PCFLAGS
|
2005-01-04 02:26:17 -08:00
|
|
|
|
|
|
|
AC_SUBST(Xcursor_cflags)
|
|
|
|
AC_SUBST(Xcursor_libs)
|
|
|
|
|
2005-03-23 03:49:48 -08:00
|
|
|
Xprint_libs=""
|
|
|
|
Xprint_cflags=""
|
|
|
|
use_Xprint="no"
|
|
|
|
PCFLAGS=$CFLAGS
|
|
|
|
CFLAGS=$x_cflags" "$x_includes
|
|
|
|
AC_CHECK_HEADER(X11/extensions/Print.h, [
|
|
|
|
AC_CHECK_LIB(Xp, XpQueryScreens, [
|
|
|
|
AC_DEFINE(ECORE_XPRINT, 1, [Build support for Xprint])
|
|
|
|
Xprint_cflags=""
|
|
|
|
Xprint_libs="-lXp"
|
|
|
|
use_Xprint="yes"
|
|
|
|
], [
|
|
|
|
Xprint_cflags=""
|
|
|
|
Xprint_libs=""
|
|
|
|
use_Xprint="no"
|
|
|
|
], [
|
|
|
|
$x_libs $x_ldflags
|
|
|
|
]
|
|
|
|
)
|
|
|
|
], [
|
|
|
|
Xprint_cflags=""
|
|
|
|
Xprint_libs=""
|
|
|
|
use_Xprint="no"
|
|
|
|
], [
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
]
|
|
|
|
)
|
|
|
|
CFLAGS=$PCFLAGS
|
|
|
|
|
|
|
|
AC_SUBST(Xprint_cflags)
|
|
|
|
AC_SUBST(Xprint_libs)
|
|
|
|
|
2005-01-10 05:11:50 -08:00
|
|
|
Xinerama_libs=""
|
|
|
|
Xinerama_cflags=""
|
|
|
|
use_Xinerama="no"
|
|
|
|
PCFLAGS=$CFLAGS
|
|
|
|
CFLAGS=$x_cflags" "$x_includes
|
|
|
|
AC_CHECK_HEADER(X11/extensions/Xinerama.h, [
|
|
|
|
AC_CHECK_LIB(Xinerama, XineramaQueryScreens, [
|
|
|
|
AC_DEFINE(ECORE_XINERAMA, 1, [Build support for Xinerama])
|
|
|
|
Xinerama_cflags=""
|
|
|
|
Xinerama_libs="-lXinerama"
|
|
|
|
use_Xinerama="yes"
|
|
|
|
], [
|
|
|
|
Xinerama_cflags=""
|
|
|
|
Xinerama_libs=""
|
|
|
|
use_Xinerama="no"
|
|
|
|
], [
|
|
|
|
$x_libs $x_ldflags -lXrender
|
|
|
|
]
|
|
|
|
)
|
|
|
|
], [
|
|
|
|
Xinerama_cflags=""
|
|
|
|
Xinerama_libs=""
|
|
|
|
use_Xinerama="no"
|
|
|
|
], [
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
]
|
|
|
|
)
|
|
|
|
CFLAGS=$PCFLAGS
|
|
|
|
|
|
|
|
AC_SUBST(Xinerama_cflags)
|
|
|
|
AC_SUBST(Xinerama_libs)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_x_cflags)
|
|
|
|
AC_SUBST(ecore_x_libs)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_job module is to be built)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_job="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_job_cflags="";
|
|
|
|
ecore_job_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-job,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-job disable the ecore_job module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_job="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_job="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_job" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_JOB, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_JOB, 1, [Build Ecore_Job Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_job_libs="-lecore_job";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_JOB, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_job_cflags)
|
|
|
|
AC_SUBST(ecore_job_libs)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_fb="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_fb_cflags="";
|
|
|
|
ecore_fb_libs="";
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_fb module is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-fb,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-fb disable the ecore_fb module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_fb="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_fb="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_fb" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(linux/fb.h,
|
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FB, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_FB, 1, [Build Ecore_FB Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_fb_libs="-lecore_fb";
|
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FB, false)
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_fb="no"
|
2003-12-15 18:46:31 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FB, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_fb_cflags)
|
|
|
|
AC_SUBST(ecore_fb_libs)
|
|
|
|
|
|
|
|
ecore_evas_cflags="";
|
|
|
|
ecore_evas_libs="";
|
|
|
|
|
|
|
|
evas_cflags="";
|
|
|
|
evas_libs="";
|
2004-11-11 18:32:30 -08:00
|
|
|
AC_ARG_WITH(evas-config, [ --with-evas-config=EVAS_CONFIG use evas-config specified ],
|
|
|
|
[ EVAS_CONFIG=$withval;
|
|
|
|
echo "using "$EVAS_CONFIG" for evas-config"; ],
|
|
|
|
[ if test -z "$EVAS_CONFIG"; then
|
|
|
|
AC_PATH_PROG(EVAS_CONFIG, "evas-config", "", $PATH)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
])
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_evas="no"
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas module is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-evas,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-evas disable the ecore_evas module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_evas="yes";
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas="yes";
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_evas" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS, 1, [Build Ecore_Evas Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
if [ test -z $EVAS_CONFIG ]; then
|
|
|
|
echo $PROG " is not in your \$PATH. Please ensure it is.";
|
|
|
|
echo "Read the manual page for you shell as to how to extend your path.";
|
2005-04-28 19:54:37 -07:00
|
|
|
AC_MSG_ERROR(Cannot find $PROG)
|
2003-12-15 18:46:31 -08:00
|
|
|
fi
|
|
|
|
evas_cflags=`$EVAS_CONFIG --cflags`
|
|
|
|
evas_libs=`$EVAS_CONFIG --libs`
|
|
|
|
ecore_evas_libs="-lecore_evas";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(evas_cflags)
|
|
|
|
AC_SUBST(evas_libs)
|
|
|
|
|
|
|
|
AC_SUBST(ecore_evas_cflags)
|
|
|
|
AC_SUBST(ecore_evas_libs)
|
|
|
|
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_evas_gl="no";
|
2003-12-15 18:46:31 -08:00
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas gl support is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-evas-gl,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-evas-gl disable gl in the ecore_evas module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_evas_gl="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_gl="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2004-12-27 06:40:57 -08:00
|
|
|
dnl GL support requires X support, so we should
|
|
|
|
dnl handle the case where our user is on crack
|
|
|
|
dnl i.e. user disables X but enables GL
|
|
|
|
if test "x$have_ecore_evas_gl" = "xyes" -a "x$have_ecore_x" = "xyes"; then
|
2004-01-03 16:31:29 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_GL_X11.h,
|
2003-12-15 18:46:31 -08:00
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_GL, 1, [Support for GL Engine in Ecore_Evas])
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, false)
|
|
|
|
have_ecore_evas_gl="no"
|
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
#include <Evas.h>
|
2004-01-03 16:31:29 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 18:46:31 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, false)
|
2004-12-27 06:40:57 -08:00
|
|
|
if test "x$have_ecore_evas_gl" = "xyes"; then
|
|
|
|
have_ecore_evas_gl="no"
|
|
|
|
AC_MSG_WARN(Silly monkey: ecore_evas_gl requires ecore_x ... disabling ecore_evas_gl)
|
|
|
|
fi
|
2003-12-15 18:46:31 -08:00
|
|
|
fi
|
|
|
|
|
2004-02-03 12:12:28 -08:00
|
|
|
if test "x$have_ecore_evas_gl" = "xyes"; then
|
|
|
|
BUILD_ECORE_EVAS_GL=1
|
|
|
|
else
|
|
|
|
BUILD_ECORE_EVAS_GL=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ECORE_EVAS_GL)
|
|
|
|
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_evas_fb="no";
|
2003-12-15 21:54:46 -08:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_evas fb support is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-evas-fb,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-evas-fb disable fb in the ecore_evas module], [
|
2003-12-15 21:54:46 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_fb="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_fb="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$have_ecore_evas_fb" = "xyes"; then
|
2004-01-03 16:31:29 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_FB.h,
|
2003-12-15 21:54:46 -08:00
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_FB, 1, [Support for Linux FB in Ecore_Evas])
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, false)
|
|
|
|
have_ecore_evas_fb="no"
|
|
|
|
], [
|
2003-12-15 21:54:46 -08:00
|
|
|
#include <Evas.h>
|
2004-01-03 16:31:29 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 21:54:46 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, false)
|
|
|
|
fi
|
|
|
|
|
2004-02-03 12:12:28 -08:00
|
|
|
if test "x$have_ecore_evas_fb" = "xyes"; then
|
|
|
|
BUILD_ECORE_EVAS_FB=1
|
|
|
|
else
|
|
|
|
BUILD_ECORE_EVAS_FB=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ECORE_EVAS_FB)
|
|
|
|
|
2005-01-08 10:40:32 -08:00
|
|
|
have_ecore_evas_buffer="no";
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_evas buffer support is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-evas-buffer,
|
|
|
|
[ --disable-ecore-evas-buffer disable buffer in the ecore_evas module], [
|
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_buffer="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_buffer="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$have_ecore_evas_buffer" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(Evas_Engine_Buffer.h,
|
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_BUFFER, true)
|
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_BUFFER, 1, [Support for Buffers in Ecore_Evas])
|
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_BUFFER, false)
|
|
|
|
have_ecore_evas_buffer="no"
|
|
|
|
], [
|
|
|
|
#include <Evas.h>
|
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_BUFFER, false)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_ecore_evas_buffer" = "xyes"; then
|
|
|
|
BUILD_ECORE_EVAS_BUFFER=1
|
|
|
|
else
|
|
|
|
BUILD_ECORE_EVAS_BUFFER=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ECORE_EVAS_BUFFER)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_con module is to be built)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_con="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_con_cflags="";
|
|
|
|
ecore_con_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-con,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-con disable the ecore_con module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_con="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_con="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_con" = "xyes"; then
|
2003-12-17 08:25:51 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CON, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_CON, 1, [Build Ecore_Con Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_con_libs="-lecore_con"
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CON, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_con_cflags)
|
|
|
|
AC_SUBST(ecore_con_libs)
|
|
|
|
|
2004-03-31 08:47:45 -08:00
|
|
|
AC_ARG_ENABLE(openssl,
|
|
|
|
[ --enable-openssl enable openssl support (default: autodetect)],
|
|
|
|
[use_openssl=$enableval], use_openssl=yes)
|
|
|
|
|
|
|
|
if test "x$use_openssl" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES(SSL, openssl, use_openssl=yes, use_openssl=no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$use_openssl" = "xyes"; then
|
|
|
|
USE_OPENSSL=1
|
|
|
|
else
|
|
|
|
USE_OPENSSL=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(USE_OPENSSL)
|
|
|
|
AC_DEFINE_UNQUOTED(USE_OPENSSL, $USE_OPENSSL, [Use OpenSSL])
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_ipc="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_ipc_cflags="";
|
|
|
|
ecore_ipc_libs="";
|
|
|
|
|
2003-12-17 08:25:51 -08:00
|
|
|
if test "x$have_ecore_con" = "xyes"; then
|
|
|
|
AC_MSG_CHECKING(whether ecore_ipc module is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-ipc,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-ipc disable the ecore_ipc module], [
|
2003-12-17 08:25:51 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_ipc="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2003-10-14 21:20:38 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_ipc="yes"
|
2003-12-17 08:25:51 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
2003-12-17 08:30:10 -08:00
|
|
|
AC_MSG_RESULT(ecore_con not enabled, so ecore_ipc will not be enabled)
|
2003-12-17 08:25:51 -08:00
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_ipc" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_IPC, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_IPC, 1, [Build Ecore_Ipc Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_ipc_libs="-lecore_ipc"
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_IPC, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_ipc_cflags)
|
|
|
|
AC_SUBST(ecore_ipc_libs)
|
|
|
|
|
2003-10-09 00:49:59 -07:00
|
|
|
|
2005-04-28 22:29:29 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_dbus module is to be built)
|
|
|
|
have_ecore_dbus="no";
|
|
|
|
ecore_dbus_cflags="";
|
|
|
|
ecore_dbus_libs="";
|
|
|
|
dbus_dir="";
|
|
|
|
dbus_includes="";
|
|
|
|
dbus_cflags="";
|
|
|
|
dbus_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-con,
|
|
|
|
[ --disable-ecore-dbus disable the ecore_dbus module], [
|
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_dbus="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_dbus="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$have_ecore_dbus" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_DBUS, true)
|
|
|
|
AC_DEFINE(BUILD_ECORE_DBUS, 1, [Build Ecore_DBus Module])
|
|
|
|
BUILD_ECORE_DBUS=1
|
|
|
|
#dbus_dir="/usr";
|
|
|
|
#dbus_includes="";
|
|
|
|
#dbus_cflags="-I"$dbus_dir"/include/dbus-1.0 -I"$dbus_dir"/lib/dbus-1.0/include"
|
|
|
|
#dbus_libs="-L"$dbus_dir"/lib"
|
|
|
|
#dbus_ldflags="-ldbus-1";
|
|
|
|
ecore_dbus_libs="-lecore_dbus";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_DBUS, false)
|
|
|
|
BUILD_ECORE_DBUS=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ECORE_DBUS)
|
|
|
|
|
|
|
|
AC_SUBST(dbus_cflags)
|
|
|
|
AC_SUBST(dbus_includes)
|
|
|
|
AC_SUBST(dbus_ldflags)
|
|
|
|
AC_SUBST(dbus_libs)
|
|
|
|
|
|
|
|
AC_SUBST(ecore_dbus_cflags)
|
|
|
|
AC_SUBST(ecore_dbus_libs)
|
|
|
|
|
|
|
|
|
2003-12-05 07:02:17 -08:00
|
|
|
AC_MSG_CHECKING(whether ecore_config module is to be built)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_config="no";
|
2003-12-05 07:02:17 -08:00
|
|
|
ecore_config_cflags="";
|
|
|
|
ecore_config_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-config,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-config disable the ecore_config module], [
|
2003-12-05 07:02:17 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_config="yes";
|
2003-12-05 07:02:17 -08:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_config="yes";
|
2003-12-05 07:02:17 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_config" = "xyes"; then
|
2004-11-11 18:32:30 -08:00
|
|
|
AC_ARG_WITH(eet-config, [ --with-eet-config=EET_CONFIG use eet-config specified ],
|
|
|
|
[ EET_CONFIG=$withval;
|
|
|
|
echo "using "$EET_CONFIG" for eet-config"; ],
|
|
|
|
[ if test -z "$EET_CONFIG"; then
|
2004-12-08 08:23:09 -08:00
|
|
|
AC_PATH_PROG(EET_CONFIG, "eet-config", "", $PATH)
|
2004-11-11 18:32:30 -08:00
|
|
|
fi
|
2003-12-22 20:58:47 -08:00
|
|
|
])
|
2004-10-18 23:34:21 -07:00
|
|
|
eet_cflags=`$EET_CONFIG --cflags`
|
|
|
|
eet_libs=`$EET_CONFIG --libs`
|
2004-07-15 06:34:46 -07:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CONFIG, true)
|
|
|
|
ecore_config_libs="-lecore_config";
|
|
|
|
AC_DEFINE(BUILD_ECORE_CONFIG, 1, [Build Ecore_Config Module])
|
2004-10-18 23:34:21 -07:00
|
|
|
AC_SUBST(eet_libs)
|
|
|
|
AC_SUBST(eet_cflags)
|
2003-12-15 18:46:31 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
|
|
|
|
fi
|
|
|
|
|
2005-02-20 04:18:09 -08:00
|
|
|
have_ecore_file="no"
|
|
|
|
ecore_file_libs=""
|
2005-03-29 22:35:12 -08:00
|
|
|
use_fam="no"
|
|
|
|
use_inotify="no"
|
|
|
|
use_poll="no"
|
2005-02-20 04:18:09 -08:00
|
|
|
|
2005-03-31 01:50:03 -08:00
|
|
|
AC_MSG_CHECKING(whether ecore_file module is to be built)
|
2005-02-20 04:18:09 -08:00
|
|
|
AC_ARG_ENABLE(ecore-file,
|
|
|
|
[ --disable-ecore-file disable the ecore_file module], [
|
2005-03-29 22:35:12 -08:00
|
|
|
if test "$enableval" = "yes"; then
|
2005-02-20 04:18:09 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_file="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_file="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2005-03-31 01:50:03 -08:00
|
|
|
AC_MSG_CHECKING(whether inotify is to be used for filemonitoring)
|
2005-03-29 22:35:12 -08:00
|
|
|
AC_ARG_ENABLE(inotify,
|
|
|
|
[ --disable-inotify disable inotify in the ecore_file module], [
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
use_inotify="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
use_inotify="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$use_inotify" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(linux/inotify.h,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
|
|
|
|
use_inotify="yes"
|
|
|
|
], [
|
|
|
|
use_inotify="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2005-03-31 01:50:03 -08:00
|
|
|
#AC_MSG_CHECKING(whether FAM is to be used for filemonitoring)
|
2005-03-29 22:35:12 -08:00
|
|
|
#AC_ARG_ENABLE(fam,
|
|
|
|
#[ --disable-fam disable fam in the ecore_file module], [
|
|
|
|
# if test "$enableval" = "yes"; then
|
|
|
|
# AC_MSG_RESULT(yes)
|
|
|
|
# use_fam="yes"
|
|
|
|
# else
|
|
|
|
# AC_MSG_RESULT(no)
|
|
|
|
# fi
|
|
|
|
#], [
|
|
|
|
# AC_MSG_RESULT(yes)
|
|
|
|
# use_fam="yes"
|
|
|
|
#]
|
|
|
|
#)
|
|
|
|
|
2005-02-20 04:18:09 -08:00
|
|
|
fam_libs=""
|
2005-03-29 22:35:12 -08:00
|
|
|
#if test "x$use_fam" = "xyes"; then
|
2005-02-20 04:18:09 -08:00
|
|
|
# AC_CHECK_LIB(fam, FAMOpen,
|
|
|
|
# [
|
|
|
|
# AC_DEFINE(HAVE_FAM, 1, [ File monitoring with FAM ])
|
|
|
|
# use_fam="yes"
|
|
|
|
# fam_libs="-lfam"
|
|
|
|
# ], [
|
|
|
|
# use_fam="no"
|
|
|
|
# ]
|
|
|
|
# )
|
2005-03-29 22:35:12 -08:00
|
|
|
#fi
|
|
|
|
|
2005-03-31 01:50:03 -08:00
|
|
|
AC_MSG_CHECKING(whether polling is to be used for filemonitoring)
|
2005-03-29 22:35:12 -08:00
|
|
|
AC_ARG_ENABLE(poll,
|
|
|
|
[ --disable-poll disable poll in the ecore_file module], [
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
use_poll="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
use_poll="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$use_poll" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_POLL, 1, [ File monitoring with polling ])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_ecore_file" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FILE, true)
|
|
|
|
ecore_file_libs="-lecore_file"
|
|
|
|
AC_DEFINE(HAVE_POLL, 1, [ File monitoring with polling ])
|
2005-02-20 04:18:09 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FILE, false)
|
|
|
|
fi
|
|
|
|
ecore_file_libs="$ecore_file_libs $fam_libs"
|
|
|
|
AC_SUBST(fam_libs)
|
|
|
|
AC_SUBST(ecore_file_libs)
|
|
|
|
|
|
|
|
|
2004-03-17 21:30:48 -08:00
|
|
|
AC_ARG_ENABLE(pthreads,
|
|
|
|
[--disable-pthreads disable building with pthread support],
|
|
|
|
[
|
|
|
|
if test x$enableval = xyes; then
|
|
|
|
pthreads=yes
|
|
|
|
else
|
|
|
|
pthreads=no
|
|
|
|
fi
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test x$pthreads = xyes ; then
|
|
|
|
AC_CHECK_HEADERS(pthread.h,pthread_header_ok="yes", pthread_header_ok="no")
|
|
|
|
if test "$pthread_header_ok" = "yes"; then
|
|
|
|
AC_CHECK_LIB(pthread, main, PTHREAD_LIBS="-lpthread", PTHREAD_LIBS="error")
|
|
|
|
if test "$PTHREAD_LIBS" = "error"; then
|
|
|
|
AC_CHECK_LIB(c_r, main, PTHREAD_LIBS="-pthread", pthread_lib_ok="no")
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$pthread_header_ok" = "no" -o "$pthread_lib_ok" = "no"; then
|
|
|
|
HAVE_PTHREADS=0
|
|
|
|
else
|
|
|
|
HAVE_PTHREADS=1
|
|
|
|
fi
|
|
|
|
if test "$PTHREAD_LIBS" = "-pthread"; then
|
|
|
|
LIBS="$LIBS $PTHREAD_LIBS"
|
|
|
|
else
|
|
|
|
PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
|
|
|
|
LIBS="$LIBS $PTHREAD_LIBS"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
HAVE_PTHREADS=0
|
|
|
|
PTHREAD_LIBS=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(PTHREAD_LIBS)
|
|
|
|
AC_SUBST(HAVE_PTHREADS)
|
|
|
|
|
|
|
|
AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
|
|
|
|
AC_SUBST(dlopen_libs)
|
|
|
|
|
|
|
|
dnl Checking for Perl:
|
|
|
|
AC_PATH_PROG(PERL,perl,0)
|
|
|
|
AC_SUBST(PERL)
|
|
|
|
|
|
|
|
|
2003-12-05 07:02:17 -08:00
|
|
|
AC_SUBST(ecore_config_cflags)
|
|
|
|
AC_SUBST(ecore_config_libs)
|
|
|
|
|
2004-04-05 23:20:39 -07:00
|
|
|
AC_SUBST(USE_OPENSSL)
|
|
|
|
|
2004-07-11 01:08:03 -07:00
|
|
|
requirements=""
|
|
|
|
AC_SUBST(requirements)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2004-07-11 01:08:03 -07:00
|
|
|
ecore.pc
|
2004-05-12 11:57:57 -07:00
|
|
|
data/Makefile
|
|
|
|
data/fonts/Makefile
|
|
|
|
data/images/Makefile
|
|
|
|
data/pointers/Makefile
|
2003-09-23 01:09:32 -07:00
|
|
|
src/Makefile
|
|
|
|
src/bin/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/lib/ecore/Makefile
|
|
|
|
src/lib/ecore_job/Makefile
|
|
|
|
src/lib/ecore_x/Makefile
|
|
|
|
src/lib/ecore_fb/Makefile
|
|
|
|
src/lib/ecore_evas/Makefile
|
|
|
|
src/lib/ecore_con/Makefile
|
|
|
|
src/lib/ecore_ipc/Makefile
|
2003-10-09 00:49:59 -07:00
|
|
|
src/lib/ecore_txt/Makefile
|
2003-12-05 07:02:17 -08:00
|
|
|
src/lib/ecore_config/Makefile
|
2005-02-20 04:18:09 -08:00
|
|
|
src/lib/ecore_file/Makefile
|
2005-04-28 22:29:29 -07:00
|
|
|
src/lib/ecore_dbus/Makefile
|
2004-05-07 21:44:04 -07:00
|
|
|
examples/Makefile
|
2005-03-10 07:19:43 -08:00
|
|
|
ecore-config
|
|
|
|
README
|
|
|
|
ecore.spec
|
|
|
|
ecore.oe
|
|
|
|
ecore-native.oe
|
|
|
|
ecore.bb
|
|
|
|
ecoreXnative.bb
|
|
|
|
debian/changelog
|
|
|
|
],[
|
2003-09-23 01:09:32 -07:00
|
|
|
chmod +x ecore-config
|
2005-03-10 07:19:43 -08:00
|
|
|
])
|
2004-01-02 11:08:32 -08:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo
|
|
|
|
echo "Optional Modules:"
|
|
|
|
echo
|
2004-01-03 16:31:29 -08:00
|
|
|
echo " Ecore_Job...............: $have_ecore_job"
|
2004-03-31 08:47:45 -08:00
|
|
|
echo " Ecore_Con...............: $have_ecore_con (OpenSSL: $use_openssl)"
|
2004-01-03 16:31:29 -08:00
|
|
|
echo " Ecore_Txt...............: $have_ecore_txt"
|
2005-03-23 03:49:48 -08:00
|
|
|
echo " Ecore_X.................: $have_ecore_x (Xcursor: $use_Xcursor) (Xprint: $use_Xprint) (Xinerama: $use_Xinerama)"
|
2004-01-03 16:31:29 -08:00
|
|
|
echo " Ecore_FB................: $have_ecore_fb"
|
|
|
|
echo " Ecore_Evas..............: $have_ecore_evas"
|
|
|
|
echo " Ecore_Evas GL Support...: $have_ecore_evas_gl"
|
|
|
|
echo " Ecore_Evas FB Support...: $have_ecore_evas_fb"
|
2005-01-08 10:40:32 -08:00
|
|
|
echo " Ecore_Buffer............: $have_ecore_evas_buffer"
|
2004-04-05 23:20:39 -07:00
|
|
|
echo " Ecore_Ipc...............: $have_ecore_ipc (OpenSSL: $use_openssl)"
|
2004-01-03 16:31:29 -08:00
|
|
|
echo " Ecore_Config............: $have_ecore_config"
|
2005-04-28 22:29:29 -07:00
|
|
|
echo " Ecore_DBUS..............: $have_ecore_dbus"
|
2005-03-29 22:35:12 -08:00
|
|
|
#echo " Ecore_File..............: $have_ecore_file (Inotify: $use_inotify) (FAM: $use_fam) (Poll: $use_poll)"
|
|
|
|
echo " Ecore_File..............: $have_ecore_file (Inotify: $use_inotify) (Poll: $use_poll)"
|
2004-01-02 11:08:32 -08:00
|
|
|
echo
|
|
|
|
echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE."
|
|
|
|
echo
|