28 |
dnl We have to be a bit naughty here and supply options. |
dnl We have to be a bit naughty here and supply options. |
29 |
dnl The autoconf literature states that only features that can be |
dnl The autoconf literature states that only features that can be |
30 |
dnl separately 'built' should use --enable and friends. Oh well... |
dnl separately 'built' should use --enable and friends. Oh well... |
31 |
dnl Current options: debug, setuid, device, db. |
dnl Current options: setuid, device, db. |
32 |
dnl |
dnl |
|
AC_ARG_ENABLE(debug, |
|
|
[ --enable-debug build a Makefile suitable for debugging purposes], |
|
|
[: ${LDFLAGS=-g -Wall} |
|
|
AC_MSG_NOTICE([Enabling debugging Makefile]) |
|
|
debug=on], |
|
|
[: ${CFLAGS=-g -O2 -Wall} |
|
|
: ${LIBS=-lc} |
|
|
AC_DEFINE(NDEBUG, 1, |
|
|
[Define if you want to remove debugging assertions.]) |
|
|
debug=off]) |
|
33 |
AC_ARG_ENABLE(setuid, |
AC_ARG_ENABLE(setuid, |
34 |
[ --enable-setuid[=ARG] install man setuid to user ARG @<:@ARG=man@:>@ |
[ --enable-setuid[=ARG] install man setuid to user ARG @<:@ARG=man@:>@ |
35 |
--disable-setuid don't install man setuid], |
--disable-setuid don't install man setuid], |
93 |
dnl Finish the argument parsing |
dnl Finish the argument parsing |
94 |
dnl |
dnl |
95 |
AC_SUBST(man_install_flags)dnl |
AC_SUBST(man_install_flags)dnl |
|
AC_SUBST(debug)dnl |
|
96 |
AC_SUBST(config_file)dnl |
AC_SUBST(config_file)dnl |
97 |
dnl |
dnl |
98 |
dnl Check $PATH for the following progs and append suitable options. |
dnl Check $PATH for the following progs and append suitable options. |
99 |
dnl |
dnl |
100 |
AC_PROG_CC |
AC_PROG_CC |
101 |
AC_PROG_CPP |
AC_PROG_CPP |
102 |
|
CFLAGS="$CFLAGS -Wall" |
103 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
104 |
AC_PROG_RANLIB |
AC_PROG_RANLIB |
105 |
AC_PATH_PROG(cat, cat) |
AC_PATH_PROG(cat, cat) |
417 |
AC_MSG_ERROR(Fatal: $db: unsupported database library) |
AC_MSG_ERROR(Fatal: $db: unsupported database library) |
418 |
fi |
fi |
419 |
fi |
fi |
|
if test "$debug" = "on" |
|
|
then |
|
|
AC_CHECK_LIB(efence, EF_Print) |
|
|
fi |
|
420 |
dnl |
dnl |
421 |
dnl Check for available functions. |
dnl Check for available functions. |
422 |
dnl |
dnl |