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
|
AC_PREREQ(2.59)
AC_INIT([nsspgsql],[1.4],[libnsspgsql1@packages.debian.org])
AC_CONFIG_AUX_DIR(autoconf)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([AUTHORS])
AM_CONFIG_HEADER(config.h)
# Extra configure arguments
AC_ARG_WITH(docdir,
AS_HELP_STRING([--with-docdir],
[Documentation directory (default is $prefix/doc)]),
[ac_cv_docdir=$withval], [ac_cv_docdir=$prefix/doc])
AC_SUBST(docdir, [$ac_cv_docdir])
# Checks for programs.
AC_PROG_CC
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_CPP
AC_PROG_LIBTOOL
# Checks for libraries.
AC_CHECK_LIB([pq], [PQsetdbLogin])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h unistd.h nss.h pthread.h])
if test "x$ac_cv_header_pthread_h" = xyes; then
CFLAGS="$CFLAGS -lpthread"
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([atexit strstr])
# Pass some values on to the source
AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir", [System configuration directory])
AM_MAINTAINER_MODE
AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
AC_OUTPUT
|