summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libconninet/configure.ac
blob: 2a383ee13014bd1346faf013e0ceb8c23a9a2818 (plain)
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
AC_INIT([libconninet], patsubst(esyscmd([dpkg-parsechangelog | sed -n '/^Version: \(.*\)$/ {s//\1/;p}']), [
]), [jukka.rissanen@nokia.com])
AM_INIT_AUTOMAKE([foreign])

AC_PROG_CXX
AC_PROG_LIBTOOL

AC_ARG_ENABLE(docs,     [ --enable-docs      Build DOXYGEN documentation (requires Doxygen)],enable_docs=$enableval,enable_docs=auto)

AC_PATH_PROG(DOXYGEN, doxygen, no)
AC_MSG_CHECKING([whether to build Doxygen documentation])

if test x$DOXYGEN = xno ; then
    have_doxygen=no
else
    have_doxygen=yes
fi
if test x$enable_docs = xauto ; then
    if test x$have_doxygen = xno ; then
        enable_docs=no
    else
        enable_docs=yes
    fi
fi
if test x$enable_docs = xyes; then
    if test x$have_doxygen = xno; then
        AC_MSG_ERROR([Building Doxygen docs explicitly required, but Doxygen not found])
    else 
	AC_MSG_RESULT(yes)
    fi
else
    AC_MSG_RESULT(no)
fi
 
AM_CONDITIONAL(DOXYGEN_DOCS_ENABLED, test x$enable_docs = xyes)
AC_SUBST(DOXYGEN)

PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

PKG_CHECK_MODULES(QTCORE, QtCore)
AC_SUBST(QTCORE_CFLAGS)
AC_SUBST(QTCORE_LIBS)

PKG_CHECK_MODULES(QTNETWORK, QtNetwork)
AC_SUBST(QTNETWORK_CFLAGS)
AC_SUBST(QTNETWORK_LIBS)

PKG_CHECK_MODULES(QTDBUS, QtDBus)
AC_SUBST(QTDBUS_CFLAGS)
AC_SUBST(QTDBUS_LIBS)

PKG_CHECK_MODULES(QTTEST, QtTest)
AC_SUBST(QTTEST_CFLAGS)
AC_SUBST(QTTEST_LIBS)

PKG_CHECK_MODULES(DBUS, dbus-glib-1)
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)

PKG_CHECK_MODULES(CONNSETTINGS, connsettings)
AC_SUBST(CONNSETTINGS_CFLAGS)
AC_SUBST(CONNSETTINGS_LIBS)

PKG_CHECK_MODULES(OSSO_IC, osso-ic)
AC_SUBST(OSSO_IC_CFLAGS)
AC_SUBST(OSSO_IC_LIBS)

PKG_CHECK_MODULES(ICD_DEV, icd2)
AC_SUBST(ICD_DEV_CFLAGS)
AC_SUBST(ICD_DEV_LIBS)

PKG_CHECK_MODULES(GCONF, gconf-2.0)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)

PKG_CHECK_MODULES(QGCONF, gq-gconf)
AC_SUBST(QGCONF_CFLAGS)
AC_SUBST(QGCONF_LIBS)

CONCFLAGS="-Wall -Werror -Wmissing-prototypes"
AC_SUBST(CONCFLAGS)

AC_CONFIG_FILES([Makefile \
	src/Makefile \
	tests/Makefile \
	conninet.pc \
	doxygen.cfg])
AC_OUTPUT