source: trunk/athena/bin/attach/configure.ac @ 24655

Revision 24655, 803 bytes checked in by broder, 15 years ago (diff)
In attach: * Use pkg-config when available instead of hard-coding compiler and linker flags.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT
3AC_CONFIG_SRCDIR([add.c])
4
5test -z "$lbindir" && lbindir='${bindir}'
6AC_SUBST([lbindir])
7test -z "$lsbindir" && lsbindir='${sbindir}'
8AC_SUBST([lsbindir])
9
10AC_PROG_CC
11AC_PROG_INSTALL
12AC_PROG_MKDIR_P
13
14PKG_CHECK_MODULES([ATHDIR], [athdir])
15AC_MSG_NOTICE([Using CFLAGS for athdir ${ATHDIR_CFLAGS}])
16AC_SUBST([ATHDIR_CFLAGS])
17AC_MSG_NOTICE([Using LIBS for athdir ${ATHDIR_LIBS}])
18AC_SUBST([ATHDIR_LIBS])
19
20PKG_CHECK_MODULES([COM_ERR], [com_err])
21AC_MSG_NOTICE([Adding com_err CFLAGS ${COM_ERR_CFLAGS}])
22CFLAGS="${COM_ERR_CFLAGS} ${CFLAGS}"
23AC_MSG_NOTICE([Adding com_err LIBS ${COM_ERR_LIBS}])
24LIBS="${COM_ERR_LIBS} ${LIBS}"
25
26ATHENA_REGEXP
27ATHENA_AFS_REQUIRED
28ATHENA_KRB4
29ATHENA_HESIOD_REQUIRED
30
31AC_CONFIG_FILES([Makefile])
32AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.