0
|
1
|
|
2 AC_PREREQ(2.59)
|
|
3 AC_INIT(routeflapper,1.0.1,carl@five-ten-sg.com)
|
|
4 AC_CONFIG_SRCDIR([config.h.in])
|
|
5 AC_CONFIG_HEADER([config.h])
|
|
6
|
|
7 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
|
|
8
|
|
9 # Checks for programs.
|
|
10 AC_PATH_PROGS(BASH, bash)
|
|
11 if test "x$BASH" = x ; then
|
|
12 AC_MSG_ERROR([bash required for init script])
|
|
13 fi
|
|
14 AC_PROG_CXX
|
|
15 AC_PROG_CC
|
|
16 AC_PROG_CPP
|
|
17 AC_PROG_AWK
|
|
18 AC_PROG_INSTALL
|
|
19 AC_PROG_LN_S
|
|
20 AC_PROG_MAKE_SET
|
|
21 AC_PROG_RANLIB
|
|
22
|
|
23 # Checks for libraries.
|
|
24
|
|
25 # Checks for header files.
|
|
26 AC_HEADER_SYS_WAIT
|
|
27 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h])
|
|
28
|
|
29 # Checks for typedefs, structures, and compiler characteristics.
|
|
30 AC_HEADER_STDBOOL
|
|
31 AC_C_CONST
|
|
32
|
|
33 # Checks for library functions.
|
|
34 AC_FUNC_FORK
|
|
35 AC_FUNC_GETPGRP
|
|
36 AC_HEADER_STDC
|
|
37 AC_FUNC_STAT
|
|
38 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol])
|
|
39
|
|
40 # check for posix threads
|
|
41 ACX_PTHREAD
|
|
42
|
|
43 AC_CONFIG_FILES([Makefile
|
|
44 routeflapper.rc
|
|
45 routeflapper.spec
|
|
46 html/Makefile
|
|
47 info/Makefile
|
|
48 man/Makefile
|
|
49 src/Makefile
|
|
50 xml/Makefile
|
|
51 xml/routeflapper])
|
|
52
|
|
53 AC_OUTPUT
|