-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
48 lines (38 loc) · 936 Bytes
/
configure.ac
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
# NOTE
# This configure.ac is only used when building libqcdm separately from
# ModemManager.
#
AC_PREREQ(2.52)
AC_INIT(libqcdm, 0.1, [email protected], libqcdm)
AM_INIT_AUTOMAKE([1.9 subdir-objects tar-ustar no-dist-gzip dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS(config.h)
dnl Define _GNU_SOURCE for various things like strcasestr()
AC_GNU_SOURCE
dnl Required programs
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
dnl
dnl Tests
dnl
AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libqcdm tests]))
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
case $with_tests in
yes)
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.18)
AC_SUBST(MM_CFLAGS)
AC_SUBST(MM_LIBS)
;;
*) ;;
esac
AM_CONDITIONAL(QCDM_STANDALONE, test "yes" = "yes")
AC_CONFIG_FILES([
Makefile
src/Makefile
tests/Makefile
])
AC_OUTPUT