source: trunk/athena/bin/newpag/configure.in @ 9522

Revision 9522, 774 bytes checked in by ghudson, 27 years ago (diff)
Convert from imake to an autoconf-based build system
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(newpag.c)
3
4AC_ARG_WITH(afs, [  --with-afs=PREFIX       Specify prefix for AFS libraries],
5            [afs="$withval"], [afs=no])
6
7AC_PROG_CC
8AC_PROG_INSTALL
9
10if test "$afs" != no; then
11        AC_CHECK_FUNC(insque, :, AC_CHECK_LIB(compat, insque))
12        AC_CHECK_FUNC(sigvec, :, AC_CHECK_LIB(ucb, sigvec))
13        AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname))
14        AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket))
15
16        if test "$afs" != yes; then
17                CPPFLAGS="${CPPFLAGS} -I$afs/include"
18                LDFLAGS="$LDFLAGS -L$afs/lib -L$afs/lib/afs"
19        fi
20        AC_CHECK_LIB(sys, pioctl, :, [AC_MSG_ERROR(AFS libraries not found)],
21                     -lrx -llwp -lsys)
22else
23        AC_MSG_ERROR(This package requires AFS.)
24fi
25
26AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.