1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.57) 5AC_INIT([libident], [0.32], [rdenis@simphalempin.com]) 6AC_CONFIG_SRCDIR([ident.c]) 7AC_CONFIG_AUX_DIR([admin]) 8AM_INIT_AUTOMAKE([1.7 check-news dist-bzip2 std-options]) 9AC_CONFIG_HEADER([config.h]) 10 11# Checks for programs. 12AC_PROG_CC 13AC_PROG_LIBTOOL 14 15# Checks for libraries. 16 17# Checks for header files. 18AC_CHECK_HEADERS([sys/types.h sys/select.h sys/time.h fcntl.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h]) 19 20# Checks for typedefs, structures, and compiler characteristics. 21AC_C_CONST 22AC_TYPE_SIZE_T 23RDC_STRUCT_SOCKADDR_LEN 24RDC_STRUCT_SOCKADDR_STORAGE 25 26# Checks for library functions. 27AC_TYPE_SIGNAL 28RDC_FUNC_SOCKET 29 30 31AH_TEMPLATE(DEBUG, [Define to 1 to compile debugging code.]) 32AC_ARG_ENABLE(debug, 33 [ --enable-debug Turn on debugging], 34 [case "${enableval}" in 35 yes) debug=true ;; 36 no) debug=false ;; 37 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; 38 esac],[debug=false]) 39if test x$debug = xtrue; then 40 AC_DEFINE(DEBUG, 1) 41fi 42 43AC_ARG_ENABLE(testers, 44 [ --enable-testers Turn on tests program compilation], 45 [case "${enableval}" in 46 yes) testers=true ;; 47 no) testers=false ;; 48 *) AC_MSG_ERROR(bad value ${enableval} for --enable-testers) ;; 49 esac],[testers=false]) 50if test x$testers = xtrue; then 51 RDC_TYPE_SOCKLEN_T 52 RDC_FUNC_GETADDRINFO 53fi 54AM_CONDITIONAL(TESTERS, test x$testers = xtrue) 55 56AC_CONFIG_FILES([Makefile]) 57AC_OUTPUT 58