blob: 0a83bb630b4d208b7b413b7317f415b24c3beafc (
plain)
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
|
AC_PREREQ([2.68])
AC_INIT([Falling Sky mod_ip], [1.0], [http://code.google.com/p/falling-sky/issues/list], [mod_ip], [http://code.google.com/p/falling-sky])
AC_HEADER_RESOLV
AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/in.h stdlib.h string.h sys/socket.h])
AC_CHECK_FUNCS([memset strchr])
AC_SEARCH_LIBS([res_querydomain],[resolv])
AC_SEARCH_LIBS([__res_querydomain],[resolv])
# Find a suitable apxs
AC_ARG_WITH(apxs,
[ --with-apxs=PATH path to Apache apxs],
[
if test "$withval" = "yes"; then
AC_CHECK_PROGS(APXS, apxs2 apxs /opt/local/apache2/bin/apxs /usr/local/bin/apxs, reject)
else
APXS=$withval
AC_SUBST(APXS)
fi
],
[
AC_CHECK_PROGS(APXS, apxs2 apxs /opt/local/apache2/bin/apxs /usr/local/bin/apachectl, reject)
])
if test "$APXS" = "reject"; then
AC_MSG_ERROR([Could not find apxs on the path.])
fi
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|