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

Revision 13491, 1.0 KB checked in by danw, 25 years ago (diff)
gethostname is not in nsl on anything. (Someone was thinking of gethostbyname.)
Line 
1AC_REVISION($Revision: 1.3 $)
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 header files.
12AC_CHECK_HEADERS(string.h)
13
14### Checks for library functions.
15AC_CHECK_FUNCS(strdup)
16
17### Deal with options.
18AC_ARG_ENABLE(execvp,
19   [  --disable-execvp        Disable searching of PATH for executed programs])
20AC_ARG_ENABLE(explicit-path,
21   [  --enable-explicit-path  Hardcode path to 'compress' into the binary])
22
23case "$enable_execvp" in
24   no)  case "$enable_explicit_path" in
25           "")  ;;
26          yes)  ;;
27            *)  AC_MSG_WARN(--disable-execvp implies --enable-explicit-path) ;;
28        esac
29        enable_explicit_path=yes
30    ;;
31    *)  AC_DEFINE(USE_EXECVP) ;;
32esac
33case "$enable_explicit_path" in
34   yes)  AC_PATH_PROG(COMPRESS,compress)
35         test -n "${COMPRESS}" || AC_MSG_ERROR(cannot find compress in ${PATH})
36     ;;
37     *)  COMPRESS=compress ;;
38esac
39
40AC_DEFINE_UNQUOTED(COMPRESS, "${COMPRESS}")
41
42AC_CONFIG_HEADER(config.h)
43AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.