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.
|
Line | |
---|
1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | AC_INIT |
---|
3 | AC_CONFIG_SRCDIR([add.c]) |
---|
4 | |
---|
5 | test -z "$lbindir" && lbindir='${bindir}' |
---|
6 | AC_SUBST([lbindir]) |
---|
7 | test -z "$lsbindir" && lsbindir='${sbindir}' |
---|
8 | AC_SUBST([lsbindir]) |
---|
9 | |
---|
10 | AC_PROG_CC |
---|
11 | AC_PROG_INSTALL |
---|
12 | AC_PROG_MKDIR_P |
---|
13 | |
---|
14 | PKG_CHECK_MODULES([ATHDIR], [athdir]) |
---|
15 | AC_MSG_NOTICE([Using CFLAGS for athdir ${ATHDIR_CFLAGS}]) |
---|
16 | AC_SUBST([ATHDIR_CFLAGS]) |
---|
17 | AC_MSG_NOTICE([Using LIBS for athdir ${ATHDIR_LIBS}]) |
---|
18 | AC_SUBST([ATHDIR_LIBS]) |
---|
19 | |
---|
20 | PKG_CHECK_MODULES([COM_ERR], [com_err]) |
---|
21 | AC_MSG_NOTICE([Adding com_err CFLAGS ${COM_ERR_CFLAGS}]) |
---|
22 | CFLAGS="${COM_ERR_CFLAGS} ${CFLAGS}" |
---|
23 | AC_MSG_NOTICE([Adding com_err LIBS ${COM_ERR_LIBS}]) |
---|
24 | LIBS="${COM_ERR_LIBS} ${LIBS}" |
---|
25 | |
---|
26 | ATHENA_REGEXP |
---|
27 | ATHENA_AFS_REQUIRED |
---|
28 | ATHENA_KRB4 |
---|
29 | ATHENA_HESIOD_REQUIRED |
---|
30 | |
---|
31 | AC_CONFIG_FILES([Makefile]) |
---|
32 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.