~phablet-team/ofono/ofono-bug-updates

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Denis Kenzior
  • Author(s): Lucas De Marchi
  • Date: 2011-03-18 23:31:14 UTC
  • Revision ID: git-v1:888e07863b24026413bac8f449de377c879e1044
message: add cancelled state

Based on patch from Yang Gu <gyagp0@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.60)
2
 
AC_INIT(ofono, 1.12)
 
2
AC_INIT(ofono, 0.45)
3
3
 
4
 
AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
 
4
AM_INIT_AUTOMAKE([foreign subdir-objects])
5
5
AM_CONFIG_HEADER(config.h)
6
6
 
7
7
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
22
22
AM_PROG_CC_C_O
23
23
AC_PROG_CC_PIE
24
24
AC_PROG_INSTALL
25
 
AC_PROG_MKDIR_P
 
25
AM_PROG_MKDIR_P
26
26
 
27
27
m4_define([_LT_AC_TAGCONFIG], [])
28
28
m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
45
45
        fi
46
46
])
47
47
 
 
48
AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test],
 
49
                [enable test/example scripts]), [enable_test=${enableval}])
 
50
AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
 
51
 
48
52
AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
49
53
                        [enable position independent executables flag]), [
50
54
        if (test "${enableval}" = "yes" &&
63
67
AC_CHECK_LIB(dl, dlopen, dummy=yes,
64
68
                        AC_MSG_ERROR(dynamic linking loader is required))
65
69
 
66
 
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28, dummy=yes,
67
 
                                AC_MSG_ERROR(GLib >= 2.28 is required))
 
70
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.22, dummy=yes,
 
71
                                AC_MSG_ERROR(GLib >= 2.22 is required))
68
72
AC_SUBST(GLIB_CFLAGS)
69
73
AC_SUBST(GLIB_LIBS)
70
74
 
76
80
        GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
77
81
fi
78
82
 
79
 
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.4, dummy=yes,
80
 
                                AC_MSG_ERROR(D-Bus >= 1.4 is required))
 
83
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes,
 
84
                                AC_MSG_ERROR(D-Bus >= 1.0 is required))
 
85
AC_CHECK_LIB(dbus-1, dbus_watch_get_unix_fd, dummy=yes,
 
86
        AC_DEFINE(NEED_DBUS_WATCH_GET_UNIX_FD, 1,
 
87
                [Define to 1 if you need the dbus_watch_get_unix_fd() function.]))
 
88
AC_CHECK_LIB(dbus-1, dbus_connection_can_send_type, dummy=yes,
 
89
        AC_DEFINE(NEED_DBUS_CONNECTION_CAN_SEND_TYPE, 1,
 
90
                [Define to 1 if you need the dbus_connection_can_send_type() function.]
 
91
))
81
92
AC_SUBST(DBUS_CFLAGS)
82
93
AC_SUBST(DBUS_LIBS)
83
94
 
110
121
fi
111
122
AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
112
123
 
113
 
AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test],
114
 
                [enable test/example scripts]), [enable_test=${enableval}])
115
 
AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
116
 
 
117
 
AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools],
118
 
                [enable testing tools]), [enable_tools=${enableval}])
119
 
if (test "${enable_tools}" = "yes"); then
120
 
        PKG_CHECK_MODULES(USB, libusb-1.0, dummy=yes,
121
 
                                AC_MSG_ERROR(USB library is required))
122
 
        AC_SUBST(USB_CFLAGS)
123
 
        AC_SUBST(USB_LIBS)
 
124
AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng],
 
125
                [enable capabilities support]), [enable_capng=${enableval}])
 
126
if (test "${enable_capng}" = "yes"); then
 
127
        PKG_CHECK_MODULES(CAPNG, libcap-ng, dummy=yes,
 
128
                                AC_MSG_ERROR(Capabilities library is required))
 
129
        AC_SUBST(CAPNG_CFLAGS)
 
130
        AC_SUBST(CAPNG_LIBS)
 
131
        AC_DEFINE(HAVE_CAPNG, 1, [Define to 1 if you have capabilities library.])
124
132
fi
125
 
AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes")
126
 
 
127
 
AC_ARG_ENABLE(dundee, AC_HELP_STRING([--enable-dundee],
128
 
                [enable dialup deamon support]), [enable_dundee=${enableval}])
129
 
AM_CONDITIONAL(DUNDEE, test "${enable_dundee}" = "yes")
130
133
 
131
134
AC_ARG_ENABLE(udev, AC_HELP_STRING([--disable-udev],
132
 
                        [disable udev modem detection support]),
 
135
                        [don't use udev support even if available]),
133
136
                                                [enable_udev=${enableval}])
134
137
if (test "${enable_udev}" != "no"); then
135
138
        PKG_CHECK_MODULES(UDEV, libudev >= 143, [enable_udev="yes"],
146
149
AC_SUBST(UDEV_LIBS)
147
150
AM_CONDITIONAL(UDEV, test "${enable_udev}" = "yes")
148
151
 
 
152
AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools],
 
153
                [enable testing tools]), [enable_tools=${enableval}])
 
154
if (test "${enable_tools}" = "yes"); then
 
155
        PKG_CHECK_MODULES(USB, libusb-1.0, dummy=yes,
 
156
                                AC_MSG_ERROR(USB library is required))
 
157
        AC_SUBST(USB_CFLAGS)
 
158
        AC_SUBST(USB_LIBS)
 
159
fi
 
160
AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes")
 
161
 
149
162
AC_ARG_ENABLE(atmodem, AC_HELP_STRING([--disable-atmodem],
150
163
                                [disable ETSI AT modem support]),
151
164
                                        [enable_atmodem=${enableval}])
167
180
                                        [enable_isimodem=${enableval}])
168
181
AM_CONDITIONAL(ISIMODEM, test "${enable_isimodem}" != "no")
169
182
 
170
 
AC_ARG_ENABLE(rilmodem, AC_HELP_STRING([--disable-rilmodem],
171
 
                                [disable RIL modem support]),
172
 
                                        [enable_rilmodem=${enableval}])
173
 
AM_CONDITIONAL(RILMODEM, test "${enable_rilmodem}" != "no")
174
 
 
175
 
AC_ARG_ENABLE(qmimodem, AC_HELP_STRING([--disable-qmimodem],
176
 
                                [disable Qualcomm QMI modem support]),
177
 
                                        [enable_qmimodem=${enableval}])
178
 
AM_CONDITIONAL(QMIMODEM, test "${enable_qmimodem}" != "no")
179
 
 
180
183
AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--disable-bluetooth],
181
184
                                [disable Bluetooth modem support]),
182
185
                                        [enable_bluetooth=${enableval}])
183
186
if (test "${enable_bluetooth}" != "no"); then
184
 
        PKG_CHECK_MODULES(BLUEZ, bluez >= 4.99, dummy=yes,
185
 
                        AC_MSG_ERROR(Bluetooth library >= 4.99 is required))
 
187
        PKG_CHECK_MODULES(BLUEZ, bluez >= 4.30, dummy=yes,
 
188
                        AC_MSG_ERROR(Bluetooth library >= 4.30 is required))
186
189
fi
187
190
AC_SUBST(BLUEZ_CFLAGS)
188
191
AC_SUBST(BLUEZ_LIBS)
189
192
AM_CONDITIONAL(BLUETOOTH, test "${enable_bluetooth}" != "no")
190
193
 
191
 
AC_ARG_ENABLE(nettime, AC_HELP_STRING([--disable-nettime],
192
 
                                [disable Nettime plugin]),
193
 
                                        [enable_nettime=${enableval}])
194
 
AM_CONDITIONAL(NETTIME, test "${enable_nettime}" != "no")
195
 
 
196
 
AC_ARG_WITH([provisiondb], AC_HELP_STRING([--with-provisiondb=FILE],
197
 
        [location of provision database]), [path_provisiondb=${withval}])
198
 
 
199
 
AC_ARG_ENABLE(provision, AC_HELP_STRING([--disable-provision],
200
 
                                [disable provisioning suport]),
201
 
                                        [enable_provision=${enableval}])
202
 
if (test "${enable_provision}" != "no"); then
203
 
        if (test -n "${path_provisiondb}"); then
204
 
                AC_DEFINE_UNQUOTED(PROVIDER_DATABASE, "${path_provisiondb}",
205
 
                                                [Mobile provider database])
206
 
        else
207
 
                AC_MSG_CHECKING([for mobile-broadband-provider-info])
208
 
                PKG_CHECK_EXISTS(mobile-broadband-provider-info,
209
 
                        _PKG_CONFIG(PROVIDER_DATABASE, [variable=database],
210
 
                                        [mobile-broadband-provider-info])
211
 
                        AC_DEFINE_UNQUOTED(PROVIDER_DATABASE,
212
 
                                                "$pkg_cv_PROVIDER_DATABASE",
213
 
                                                [Mobile provider database])
214
 
                        AC_MSG_RESULT([yes]),
215
 
                        AC_MSG_ERROR(Mobile broadband provider database is required))
216
 
        fi
217
 
fi
218
 
AM_CONDITIONAL(PROVISION, test "${enable_provision}" != "no")
219
 
 
220
194
AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles],
221
 
                        [do not install configuration and data files]),
 
195
                        [don't install configuration and data files]),
222
196
                                        [enable_datafiles=${enableval}])
 
197
 
223
198
AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
224
199
 
225
200
if (test "${prefix}" = "NONE"); then
247
222
AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}",
248
223
                        [Directory for the configuration files])
249
224
 
250
 
AC_OUTPUT(Makefile include/version.h src/ofono.service ofono.pc \
251
 
                dundee/dundee.service)
 
225
AC_OUTPUT(Makefile include/version.h src/ofono.service ofono.pc)