File: configure.ac

package info (click to toggle)
knockd 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 640 kB
  • sloc: ansic: 1,878; sh: 1,465; makefile: 31
file content (22 lines) | stat: -rw-r--r-- 612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AC_PREREQ(2.60)
AC_INIT([knock], [0.8], [https://github.com/jvinet/knock/issues])
AM_INIT_AUTOMAKE([dist-xz no-dist-gzip foreign subdir-objects])

AC_CONFIG_HEADER([config.h])

AC_PROG_CC
AC_USE_SYSTEM_EXTENSIONS

AC_ARG_ENABLE([knockd],
  [AS_HELP_STRING([--disable-knockd], [Disable building knockd (requires libpcap) @<:@default=enabled@:>@])])

AS_IF([test "x$enable_knockd" != "xno"], [
  AC_CHECK_LIB([pcap], [pcap_dispatch], ,
    [AC_MSG_ERROR([you need the libpcap library to build knockd])])
])

AM_CONDITIONAL([BUILD_KNOCKD], [test "x$enable_knockd" != "xno"])

AC_CONFIG_FILES([Makefile])

AC_OUTPUT