1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT([e_dbus], [0.5.0.063], [enlightenment-devel@lists.sourceforge.net])
release="ver-pre-svn-05"
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
AM_CONFIG_HEADER([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC
AC_HEADER_STDC
AM_PROG_CC_C_O
AC_C___ATTRIBUTE__
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
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);}'`
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
econnman_release_info="-release $release"
ebluez_release_info="-release $release"
eofono_release_info="-release $release"
edbus_release_info="-release $release"
ehal_release_info="-release $release"
eukit_release_info="-release $release"
enotify_release_info="-release $release"
AC_SUBST(version_info)
AC_SUBST(econnman_release_info)
AC_SUBST(ebluez_release_info)
AC_SUBST(eofono_release_info)
AC_SUBST(edbus_release_info)
AC_SUBST(ehal_release_info)
AC_SUBST(eukit_release_info)
AC_SUBST(enotify_release_info)
want_ehal="yes"
want_econnman="yes"
want_ebluez="yes"
want_eofono="yes"
want_enotify="yes"
want_eukit="yes"
case "$host_os" in
mingw*)
want_ehal="no"
want_econnman="no"
want_ebluez="no"
want_eofono="no"
want_enotify="no"
want_eukit="no"
;;
esac
dnl Check enabled modules to build
AC_ARG_ENABLE([ehal],
[AC_HELP_STRING([--disable-ehal], [Disable ehal build])],
[enable_ehal=$enableval],
[enable_ehal="${want_ehal}"])
AC_ARG_ENABLE([econnman],
[AC_HELP_STRING([--enable-econnman], [Enable econnman build])],
[enable_econnman=$enableval],
[enable_econnman="${want_econnman}"])
AC_ARG_ENABLE([ebluez],
[AC_HELP_STRING([--enable-ebluez], [Enable ebluez build])],
[enable_ebluez=$enableval],
[enable_ebluez="${want_ebluez}"])
AC_ARG_ENABLE([eofono],
[AC_HELP_STRING([--enable-eofono], [Enable eofono build])],
[enable_eofono=$enableval],
[enable_eofono="${want_eofono}"])
AC_ARG_ENABLE([enotify],
[AC_HELP_STRING([--disable-enotify], [Disable enotify build])],
[enable_enotify=$enableval],
[enable_enotify="${want_enotify}"])
AC_ARG_ENABLE([eukit],
[AC_HELP_STRING([--disable-eukit], [Disable eukit build])],
[enable_eukit=$enableval],
[enable_eukit="${want_eukit}"])
# pkg-config
PKG_PROG_PKG_CONFIG
# Check whether pkg-config supports Requires.private
if $PKG_CONFIG --atleast-pkgconfig-version 0.22 ; then
pkgconfig_requires_private="Requires.private"
else
pkgconfig_requires_private="Requires"
fi
AC_SUBST(pkgconfig_requires_private)
PKG_CHECK_MODULES([EINA], [eina-0])
PKG_CHECK_MODULES([EDBUS], [
dbus-1 >= 0.62
ecore >= 0.9.9
])
##### Find out the version of DBUS we're using
dbus_version=`pkg-config --modversion dbus-1`
DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
if test "z$DBUS_VERSION_MAJOR" = "z" ; then
DBUS_VERSION_MAJOR="0"
fi
if test "z$DBUS_VERSION_MINOR" = "z" ; then
DBUS_VERSION_MINOR="0"
fi
if test "z$DBUS_VERSION_MICRO" = "z" ; then
DBUS_VERSION_MICRO="0"
fi
DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
AC_SUBST(DBUS_VERSION_CFLAGS)
AC_FUNC_ALLOCA
dnl evas
if test "x${enable_enotify}" = "xyes" ; then
PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9], [], [enable_enotify="no"])
fi
AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"])
AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"])
AM_CONDITIONAL([BUILD_EOFONO], [test "x${enable_eofono}" = "xyes"])
EFL_EDBUS_BUILD=""
lt_enable_auto_import=""
case "$host_os" in
mingw*)
EFL_EDBUS_BUILD="-DEFL_EDBUS_BUILD"
lt_enable_auto_import="-Wl,--enable-auto-import"
;;
esac
AC_SUBST(EFL_EDBUS_BUILD)
AC_SUBST(lt_enable_auto_import)
AC_OUTPUT([
e_dbus.spec
Makefile
src/Makefile
src/lib/Makefile
src/lib/dbus/Makefile
src/lib/hal/Makefile
src/lib/ukit/Makefile
src/lib/notification/Makefile
src/lib/connman/Makefile
src/lib/bluez/Makefile
src/lib/ofono/Makefile
src/bin/Makefile
edbus.pc
ehal.pc
eukit.pc
enotify.pc
econnman.pc
ebluez.pc
eofono.pc
])
#####################################################################
## Info
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Configuration Options Summary:"
echo
echo " Modules:"
echo
echo " EHal...............: $enable_ehal"
echo " EUkit..............: $enable_eukit"
echo " EConnman...........: $enable_econnman"
echo " EBluez.............: $enable_ebluez"
echo " EOfono.............: $enable_eofono"
echo " ENotify............: $enable_enotify"
echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
echo " CFLAGS...............: $CFLAGS"
echo " LDFLAGS..............: $LDFLAGS"
echo
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
echo
|