-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
38 lines (38 loc) · 1.4 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
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([Xenium LLMNR Responder], [6.0],
[https://bitbucket.org/kazssym/xllmnrd/issues/new], [xllmnrd],
[https://www.vx68k.org/xllmnrd])
AC_CONFIG_SRCDIR([xllmnrd/responder.cpp])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([foreign no-define tar-ustar])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
gl_EARLY
# Checks for libraries.
AC_SEARCH_LIBS([pthread_join], [pthread])
AC_SEARCH_LIBS([atomic_flag_clear], [atomic])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h net/if.h syslog.h sys/socket.h])
AC_CHECK_HEADERS([linux/rtnetlink.h])
# Checks for typedefs, structures, and compiler characteristics.
dnl 'AC_C_INLINE' was omitted as 'inline' is now standard in C99 and C++.
dnl Note: on the other hand, 'restrict' is not standard in C++ yet.
AC_C_RESTRICT
AC_TYPE_SSIZE_T
# Checks for library functions.
dnl 'AC_FUNC_MALLOC' and 'AC_FUNC_REALLOC' were omitted as only the standard
dnl behavior is used.
AC_CHECK_FUNCS([daemon gethostname])
gl_INIT
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.3])
PKG_CHECK_MODULES([CPPUNIT], [cppunit],, [no_cppunit=yes])
AM_CONDITIONAL([CPPUNIT], [test "$no_cppunit" != yes])
# Configuration actions.
AC_CONFIG_FILES([Makefile xllmnrd/Makefile libxllmnrd/Makefile libgnu/Makefile
test/Makefile po/Makefile.in])
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT