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 | |
---|
1 | AC_REVISION($Revision: 1.3 $) |
---|
2 | |
---|
3 | AC_INIT(newsyslog.c) |
---|
4 | |
---|
5 | ### Checks for programs. |
---|
6 | AC_PROG_CC |
---|
7 | AC_PROG_LN_S |
---|
8 | |
---|
9 | AC_C_CONST |
---|
10 | |
---|
11 | ### Checks for header files. |
---|
12 | AC_CHECK_HEADERS(string.h) |
---|
13 | |
---|
14 | ### Checks for library functions. |
---|
15 | AC_CHECK_FUNCS(strdup) |
---|
16 | |
---|
17 | ### Deal with options. |
---|
18 | AC_ARG_ENABLE(execvp, |
---|
19 | [ --disable-execvp Disable searching of PATH for executed programs]) |
---|
20 | AC_ARG_ENABLE(explicit-path, |
---|
21 | [ --enable-explicit-path Hardcode path to 'compress' into the binary]) |
---|
22 | |
---|
23 | case "$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) ;; |
---|
32 | esac |
---|
33 | case "$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 ;; |
---|
38 | esac |
---|
39 | |
---|
40 | AC_DEFINE_UNQUOTED(COMPRESS, "${COMPRESS}") |
---|
41 | |
---|
42 | AC_CONFIG_HEADER(config.h) |
---|
43 | AC_OUTPUT(Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.