source: trunk/athena/etc/cleanup/configure.in @ 11847

Revision 11847, 681 bytes checked in by ghudson, 26 years ago (diff)
Use AC_DEFINE instead of manually setting CPPFLAGS. Use host os instead of target os (which is for cross-compilers), and use AC_CANONICAL_HOST.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(cleanup.c)
3
4test -z "$lsbindir" && lsbindir='${sbindir}'
5AC_SUBST(lsbindir)
6
7AC_PROG_CC
8AC_PROG_INSTALL
9
10AC_CHECK_FUNCS(getutxent)
11
12AC_CANONICAL_HOST
13case $host_os in
14solaris*)
15        AC_DEFINE(SOLARIS)
16        AC_CHECK_LIB(elf, nlist)
17        AC_CHECK_LIB(kvm, kvm_read)
18        ;;
19irix*)
20        AC_DEFINE(IRIX)
21        ;;
22netbsd*)
23        AC_DEFINE(NETBSD)
24        AC_CHECK_LIB(kvm, kvm_open)
25        ;;
26linux*)
27        AC_DEFINE(LINUX)
28        ;;
29osf*)
30        AC_DEFINE(OSF)
31        ;;
32esac
33
34AC_MSG_CHECKING(for /etc/master.passwd)
35if test -f /etc/master.passwd; then
36        AC_DEFINE(HAVE_MASTER_PASSWD)
37        AC_MSG_RESULT(yes)
38else
39        AC_MSG_RESULT(no)
40fi
41
42ATHENA_HESIOD_REQUIRED
43
44AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.