source: trunk/athena/etc/newsyslog/configure.in @ 8365

Revision 8365, 1.1 KB checked in by ghudson, 28 years ago (diff)
Find out if const is okay.
Line 
1AC_REVISION($Revision: 1.2 $)
2
3AC_INIT(newsyslog.c)
4
5### Checks for programs.
6AC_PROG_CC
7AC_PROG_LN_S
8
9AC_C_CONST
10
11### Checks for libraries.
12AC_CHECK_LIB(nsl, gethostname)
13
14### Checks for header files.
15AC_CHECK_HEADERS(string.h)
16
17### Checks for library functions.
18AC_CHECK_FUNCS(strdup)
19
20### Deal with options.
21AC_ARG_ENABLE(execvp,
22   [  --disable-execvp        Disable searching of PATH for executed programs])
23AC_ARG_ENABLE(explicit-path,
24   [  --enable-explicit-path  Hardcode path to 'compress' into the binary])
25
26case "$enable_execvp" in
27   no)  case "$enable_explicit_path" in
28           "")  ;;
29          yes)  ;;
30            *)  AC_MSG_WARN(--disable-execvp implies --enable-explicit-path) ;;
31        esac
32        enable_explicit_path=yes
33    ;;
34    *)  AC_DEFINE(USE_EXECVP) ;;
35esac
36case "$enable_explicit_path" in
37   yes)  AC_PATH_PROG(COMPRESS,compress)
38         test -n "${COMPRESS}" || AC_MSG_ERROR(cannot find compress in ${PATH})
39     ;;
40     *)  COMPRESS=compress ;;
41esac
42
43AC_DEFINE_UNQUOTED(COMPRESS, "${COMPRESS}")
44
45AC_CONFIG_HEADER(config.h)
46AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.