1 # get rid of that stupid cache mechanism
4 AC_INIT([e_dbus], [0.5.0.063], [enlightenment-devel@lists.sourceforge.net])
5 release="ver-pre-svn-05"
7 AC_CONFIG_SRCDIR([configure.ac])
8 AC_CONFIG_MACRO_DIR([m4])
12 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
13 AM_CONFIG_HEADER([config.h])
14 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
22 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
23 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
26 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
27 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
28 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
29 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
30 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
31 econnman_release_info="-release $release"
32 ebluez_release_info="-release $release"
33 edbus_release_info="-release $release"
34 ehal_release_info="-release $release"
35 enm_release_info="-release $release"
36 enotify_release_info="-release $release"
37 AC_SUBST(version_info)
38 AC_SUBST(econnman_release_info)
39 AC_SUBST(ebluez_release_info)
40 AC_SUBST(edbus_release_info)
41 AC_SUBST(ehal_release_info)
42 AC_SUBST(enm_release_info)
43 AC_SUBST(enotify_release_info)
45 dnl Check enabled modules to build
47 [AC_HELP_STRING([--disable-ehal], [Disable ehal build])],
48 [enable_ehal=$enableval],
52 [AC_HELP_STRING([--enable-enm], [Enable enm (network manager) build])],
53 [enable_enm=$enableval],
56 AC_ARG_ENABLE([econnman],
57 [AC_HELP_STRING([--enable-econnman], [Enable econnman build])],
58 [enable_econnman=$enableval],
59 [enable_econnman="yes"])
61 AC_ARG_ENABLE([ebluez],
62 [AC_HELP_STRING([--enable-ebluez], [Enable ebluez build])],
63 [enable_ebluez=$enableval],
64 [enable_ebluez="yes"])
66 AC_ARG_ENABLE([enotify],
67 [AC_HELP_STRING([--disable-enotify], [Disable enotify build])],
68 [enable_enotify=$enableval],
69 [enable_enotify="yes"])
74 # Check whether pkg-config supports Requires.private
75 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
76 pkgconfig_requires_private="Requires.private"
78 pkgconfig_requires_private="Requires"
80 AC_SUBST(pkgconfig_requires_private)
82 PKG_CHECK_MODULES([EINA], [eina-0])
84 PKG_CHECK_MODULES([EDBUS], [
89 ##### Find out the version of DBUS we're using
90 dbus_version=`pkg-config --modversion dbus-1`
91 DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
92 DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
93 DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
94 if test "z$DBUS_VERSION_MAJOR" = "z"; then
95 DBUS_VERSION_MAJOR="0"
97 if test "z$DBUS_VERSION_MINOR" = "z"; then
98 DBUS_VERSION_MINOR="0"
100 if test "z$DBUS_VERSION_MICRO" = "z"; then
101 DBUS_VERSION_MICRO="0"
103 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
104 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
105 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
106 AC_SUBST(DBUS_VERSION_CFLAGS)
111 if test "x${enable_enotify}" = "xyes" ; then
112 PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9], [], [enable_enotify="no"])
115 AC_ARG_ENABLE([build-test-gui],
116 [AS_HELP_STRING([--enable-build-test-gui], [Build with gui for testing])],
117 [PKG_CHECK_MODULES([HAL_TEST_GUI],
119 # temporarily disable until update to newer tree2 api
120 [AC_DEFINE([EWL_GUI], 0, [An ewl gui for e_dbus_hal])],
121 [AC_DEFINE([EWL_GUI], 0, [An ewl gui for e_dbus_hal])])
124 AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
125 AM_CONDITIONAL([BUILD_ENM], [test "x${enable_enm}" = "xyes"])
126 AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
127 AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
128 AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"])
131 lt_enable_auto_import=""
134 EFL_EDBUS_BUILD="-DEFL_EDBUS_BUILD"
135 lt_enable_auto_import="-Wl,--enable-auto-import"
138 AC_SUBST(EFL_EDBUS_BUILD)
139 AC_SUBST(lt_enable_auto_import)
146 src/lib/dbus/Makefile
149 src/lib/notification/Makefile
150 src/lib/connman/Makefile
151 src/lib/bluez/Makefile
162 #####################################################################
168 echo "------------------------------------------------------------------------"
169 echo "$PACKAGE $VERSION"
170 echo "------------------------------------------------------------------------"
172 echo "Configuration Options Summary:"
176 echo " EHal...............: $enable_ehal"
177 echo " ENM................: $enable_enm"
178 echo " EConnman...........: $enable_econnman"
179 echo " EBluez.............: $enable_ebluez"
180 echo " ENotify............: $enable_enotify"
182 echo "Compilation............: make (or gmake)"
183 echo " CPPFLAGS.............: $CPPFLAGS"
184 echo " CFLAGS...............: $CFLAGS"
185 echo " LDFLAGS..............: $LDFLAGS"
187 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
188 echo " prefix...............: $prefix"