build: Linux kernel-style for compilation messages
[platform/upstream/libnetfilter_queue.git] / configure.ac
1 dnl Process this file with autoconf to create configure.
2
3 AC_INIT([libnetfilter_queue], [1.0.0])
4 AC_CANONICAL_HOST
5 AC_CONFIG_MACRO_DIR([m4])
6
7 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects dist-bzip2 1.6])
8
9 dnl kernel style compile messages
10 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11
12 AC_PROG_CC
13 AC_EXEEXT
14 AC_DISABLE_STATIC
15 AM_PROG_LIBTOOL
16 AC_PROG_INSTALL
17
18 case "$host" in
19 *-*-linux*) ;;
20 *) AC_MSG_ERROR([Linux only, dude!]);;
21 esac
22
23 dnl Dependencies
24 PKG_CHECK_MODULES([LIBNFNETLINK], [libnfnetlink >= 0.0.41])
25
26 dnl Output the makefiles
27 AC_CONFIG_FILES([Makefile include/Makefile include/libnetfilter_queue/Makefile
28         src/Makefile utils/Makefile libnetfilter_queue.pc doxygen.cfg])
29 AC_OUTPUT