diff options
author | Yunchih Chen <yunchih.cat@gmail.com> | 2017-12-05 22:11:39 +0800 |
---|---|---|
committer | Yunchih Chen <yunchih.cat@gmail.com> | 2017-12-05 22:15:15 +0800 |
commit | 8b6e3cf751327281f64f06c804f065b43ebc69e7 (patch) | |
tree | a35a353a1e7e5a51746c469dca43b1540f6d4c7f /configure.ac | |
parent | cf5a816a464cd38050152c6189e9ae400f888d5c (diff) | |
download | nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.tar nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.tar.gz nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.tar.bz2 nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.tar.lz nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.tar.xz nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.tar.zst nfcollect-8b6e3cf751327281f64f06c804f065b43ebc69e7.zip |
Use Autotools to generate Makefile
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..343a8c9 --- /dev/null +++ b/configure.ac @@ -0,0 +1,25 @@ +AC_INIT([nfcollect], [1.0]) + +# Safety checks in case user overwritten --srcdir +AC_CONFIG_SRCDIR([main.c]) + +# Store the auxiliary build tools (e.g., install-sh, config.sub, config.guess) +# in this dir (build-aux) +AC_CONFIG_AUX_DIR([build-aux]) + +# Init automake, and specify this program use relaxed structures. +# i.e. this program doesn't follow the gnu coding standards, and doesn't have +# ChangeLog, COPYING, AUTHORS, INSTALL, README etc. files. +AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-xz]) + +AC_PROG_CC + +AC_CHECK_HEADERS(libnetfilter_log/libnetfilter_log.h) +AC_SEARCH_LIBS(nflog_open, netfilter_log) + +AC_CHECK_HEADERS(pthread.h) +AC_SEARCH_LIBS(pthread_create, pthread) + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT |