source code open - smack
[framework/security/smack.git] / configure.ac
1 AC_PREREQ(2.60)
2 AC_INIT([libsmack],
3         [1.0],
4         [jarkko.sakkinen@intel.com],
5         [libsmack],
6         [https://github.com/organizations/smack-team/smack])
7 AC_CONFIG_SRCDIR([libsmack/libsmack.c])
8 AC_CONFIG_AUX_DIR([build-aux])
9 AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 foreign])
10 AC_USE_SYSTEM_EXTENSIONS
11 AC_CONFIG_MACRO_DIR([m4])
12 AM_SILENT_RULES([yes])
13 LT_INIT([disable-static])
14 AC_PREFIX_DEFAULT([/usr])
15
16 AC_CHECK_PROG([DOXYGEN], [doxygen], [doxygen], [])
17 AC_MSG_CHECKING([for doxygen])
18 if test ! -z "$DOXYGEN"; then
19         AC_MSG_RESULT([yes])
20 else
21         AC_MSG_RESULT([no])
22 fi
23 AM_CONDITIONAL([ENABLE_DOXYGEN],[test ! -z "$DOXYGEN"], [Build API documentation.])
24 AC_SUBST([DOXYGEN], [$DOXYGEN])
25
26 # systemd
27 AC_ARG_WITH([systemdsystemunitdir],
28         AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
29         [],
30         [with_systemdsystemunitdir=$(pkg-config --silence-errors --variable=systemdsystemunitdir systemd)])
31 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
32 AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"])
33
34 AC_CONFIG_FILES([Makefile libsmack/Makefile libsmack/libsmack.pc utils/Makefile doc/Makefile init/Makefile])
35
36 AC_OUTPUT