-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
72 lines (61 loc) · 1.74 KB
/
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
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
AC_INIT([Tor provider configuration module], patsubst(esyscmd([dpkg-parsechangelog | sed -n '/^Version: \(.*\)$/ {s//\1/;p}']), [
]),[],[libicd-provider-tor])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([foreign])
AC_PREFIX_DEFAULT([/usr])
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.8.6)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6.4)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)
PKG_CHECK_MODULES(ICD2, icd2 >= 0.37)
AC_SUBST(ICD2_CFLAGS)
AC_MSG_CHECKING([where ICd2 plugin dir is])
ICD_PLUGIN_DIR=`$PKG_CONFIG --variable=icdplugindir icd2`
AC_SUBST(ICD_PLUGIN_DIR)
AC_MSG_RESULT($ICD_PLUGIN_DIR)
PKG_CHECK_MODULES(OSSO_IC_DEV, osso-ic >= 0.1)
AC_SUBST(OSSO_IC_DEV_CFLAGS)
AC_MSG_CHECKING([wheter to send logs to stderr])
AC_ARG_ENABLE(log_stderr,
[AS_HELP_STRING([--enable-log-stderr],
[send logs to stderr (default=no)]
)],
[],
enable_log_stderr=no)
if (test x$enable_log_stderr = xyes); then
AC_DEFINE(ICD_LOG_STDERR, 1, [Log messages to stderr.])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([wheter to build doxygen documentation])
AC_ARG_ENABLE(doxygen,
[AS_HELP_STRING([--enable-doxygen],
[enable doxygen document creation (default=no)]
)])
if (test x$enable_doxygen = xyes); then
AC_MSG_RESULT(yes)
AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, [])
if (test x$DOXYGEN = x); then
AC_MSG_WARN([doxygen requested but doxygen not found])
else
echo -n
AC_SUBST(DOXYGEN)
fi
else
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(DOXYGEN_DOCS_ENABLED, [test x$DOXYGEN != x])
CFLAGS="$CFLAGS -Wall -Werror -Wmissing-prototypes"
CFLAGS="$CFLAGS -include config.h"
AC_OUTPUT([
Makefile
src/Makefile
etc/Makefile
scripts/Makefile
])