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

Revision 24655, 803 bytes checked in by broder, 14 years ago (diff)
In attach: * Use pkg-config when available instead of hard-coding compiler and linker flags.
RevLine 
[12589]1dnl Process this file with autoconf to produce a configure script.
[24652]2AC_INIT
3AC_CONFIG_SRCDIR([add.c])
[12589]4
5test -z "$lbindir" && lbindir='${bindir}'
[24652]6AC_SUBST([lbindir])
[12589]7test -z "$lsbindir" && lsbindir='${sbindir}'
[24652]8AC_SUBST([lsbindir])
[12589]9
10AC_PROG_CC
11AC_PROG_INSTALL
[24652]12AC_PROG_MKDIR_P
[12589]13
[24655]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
[12589]26ATHENA_REGEXP
27ATHENA_AFS_REQUIRED
[24070]28ATHENA_KRB4
[12589]29ATHENA_HESIOD_REQUIRED
30
[24652]31AC_CONFIG_FILES([Makefile])
32AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.