1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
# Process this file with autoconf to produce a configure script.
AC_INIT("ng-utils", "0.6", pere@hungry.com)
AM_INIT_AUTOMAKE("ng-utils", "0.6")
AC_CONFIG_SRCDIR(netgroup.c)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_AWK
AC_PROG_LN_S
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([getopt.h netdb.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_CHECK_FUNCS([innetgr setnetgrent strerror getopt_long])
PERE_DETECT_BROKEN_SETNETGRENT
if test "$GCC" = "yes"; then
for flag in \
-ansi \
-pedantic \
-W \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wmissing-declarations \
-Wmissing-prototypes \
-Wpointer-arith \
-Wreturn-type \
-Wstrict-prototypes
do
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi
AC_CONFIG_FILES([innetgr.1 netgroup.1 Makefile debian/Makefile])
AC_OUTPUT
echo
echo "Configure status:"
echo "-----------------"
echo " API broken = $pere_cv_broken_setnetgrent"
echo " CC = $CC"
echo " CFLAGS = $CFLAGS"
echo
|