3
dnl Revision: $Id: configure.ac,v 1.4 2010/06/11 12:04:29 j-nijhof Exp $
4
dnl Created: 2010/06/09
5
dnl Author: Jeroen Nijhof <jeroen@nijhofnet.nl>
6
dnl Benoit Donneaux <benoit.donneaux@gmail.com>
8
dnl Process this file with autoconf to produce a configure script
9
dnl You need autoconf 2.59 or better!
11
dnl ---------------------------------------------------------------------------
15
See the included file: COPYING for copyright information.
17
AC_INIT(pam_tacplus, 1.3.5, [jeroen@nijhofnet.nl,pawel.krawczyk@hush.com])
18
AC_CONFIG_AUX_DIR(config)
20
AC_CONFIG_SRCDIR([pam_tacplus.c])
21
AC_CONFIG_HEADER([config.h])
23
dnl --------------------------------------------------------------------
24
dnl Checks for programs.
31
dnl --------------------------------------------------------------------
32
dnl Checks for libraries.
33
AC_CHECK_LIB(pam, pam_start)
34
AC_CHECK_LIB(tac, tac_connect)
38
LIBS="$LIBS -lresolv";;
41
dnl --------------------------------------------------------------------
42
dnl Checks for header files.
44
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h])
46
dnl --------------------------------------------------------------------
47
dnl Checks for typedefs, structures, and compiler characteristics.
52
dnl --------------------------------------------------------------------
53
dnl Checks for library functions.
55
AC_FUNC_SELECT_ARGTYPES
57
AC_CHECK_FUNCS([bzero gethostbyname gettimeofday inet_ntoa select socket])
59
dnl --------------------------------------------------------------------
60
dnl Generate made files
61
AC_CONFIG_FILES([Makefile