Skip to content
Newer
Older
100644 52 lines (43 sloc) 1.12 KB
48cee1e @msantos Import Logsurfer+ 1.7a
authored
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(src/logsurfer.h)
3 AC_CONFIG_HEADER(config.h)
4
5 dnl Checks for programs.
6 AC_PROG_CC
7 AC_PROG_INSTALL
8 AC_PROG_MAKE_SET
9
10 dnl Checks for brain dead systems
11 AC_AIX
12
13 dnl Checks for libraries.
14 dnl Replace `main' with a function in -lgen:
15 AC_CHECK_LIB(gen, main)
16
17 dnl Checks for header files.
18 AC_HEADER_STDC
19 AC_HEADER_SYS_WAIT
20 AC_HEADER_TIME
21 AC_CHECK_HEADERS(sys/time.h stdlib.h malloc.h string.h strings.h limits.h unistd.h sys/resource.h)
22
23 dnl Checks for typedefs, structures, and compiler characteristics.
24 AC_TYPE_PID_T
25 AC_C_CONST
26
27 dnl Checks for library functions.
28 AC_FUNC_ALLOCA
29 AC_CHECK_FUNCS(strchr index memmove bcopy)
30
31 dnl Check for --with-etcdir.
32 AC_MSG_CHECKING(etcdir)
33 AC_ARG_WITH(etcdir,
34 [ --with-etcdir=PATH Directory for logsurfer.conf \[/usr/local/etc\]],
35 [ case "$withval" in
36 no)
37 AC_MSG_ERROR(etcdir is obligatory.)
38 ;;
39 yes)
40 etcdir="/usr/local/etc"
41 ;;
42 *)
43 etcdir="$withval"
44 ;;
45 esac ],
46 [ etcdir="/usr/local/etc"
47 ])
48 AC_MSG_RESULT($etcdir)
49 AC_SUBST(etcdir)
50
51 AC_OUTPUT(Makefile src/Makefile man/Makefile, echo timestamp > stamp-h)
Something went wrong with that request. Please try again.