-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
42 lines (33 loc) · 1.25 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
39
40
41
42
## $Id$
# Process this file with autoconf to produce a configure script.
# $Id$
AC_PREREQ([2.64])
AC_INIT([dnsmole], [0.1], dns-mole@googlegroups.com)
AC_CONFIG_SRCDIR([src/dnsmole.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
m4_pattern_allow([^ACX_])
AM_MAINTAINER_MODE
AC_PROG_CC_STDC
AC_PROG_CC
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
ACX_PTHREAD
# Checks for libraries.
AC_CHECK_LIB([pcap], [pcap_compile], , AC_MSG_ERROR(pcap libary required))
AC_CHECK_LIB([event], [event_set], , AC_MSG_ERROR(event libary required))
AC_CHECK_LIB([pthread], [pthread_mutexattr_init], , AC_MSG_ERROR(pthread libary required))
AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIB([sqlite3], [sqlite3_open], , AC_MSG_ERROR(sqlite3 libary required))
AC_CHECK_LIB([m], [pow])
# Checks for header files.
AC_CHECK_HEADERS([stdio.h math.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([inet_ntoa memset memcpy sqrt strchr isalpha isdigit isuppser tolower strdup])
AC_CONFIG_FILES([Makefile include/Makefile man/Makefile src/Makefile src/methods/Makefile])
#AC_OUTPUT(Makefile src/Makefile include/Makefile doc/Makefile man/Makefile src/methods/Makefile)
AC_OUTPUT