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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
dnl configure.ac - Configure script for tcpreen
dnl Process this file with GNU Autoconf to produce a configure script
dnl ***********************************************************************
dnl * Copyright (C) 2002-2006 Remi Denis-Courmont. *
dnl * This program is free software; you can redistribute and/or modify *
dnl * it under the terms of the GNU General Public License as published *
dnl * by the Free Software Foundation; version 2 of the license. *
dnl * *
dnl * This program is distributed in the hope that it will be useful, *
dnl * but WITHOUT ANY WARRANTY; without even the implied warranty of *
dnl * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
dnl * See the GNU General Public License for more details. *
dnl * *
dnl * You should have received a copy of the GNU General Public License *
dnl * along with this program; if not, you can get it from: *
dnl * http://www.gnu.org/copyleft/gpl.html *
dnl ***********************************************************************
AC_COPYRIGHT([Copyright (C) 2002-2006 Remi Denis-Courmont.])
AC_INIT([tcpreen],[1.4.4],[tcpreen-devel@lists.sourceforge.net])
INVOCATION="$0 $*"
AS_MESSAGE(checking system...)
AC_CONFIG_SRCDIR([tcpreen.1])
AC_CONFIG_AUX_DIR(admin)
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_LIBOBJ_DIR(libsolve)
AC_CONFIG_HEADERS([config.h])
AC_DEFINE_UNQUOTED(PACKAGE_CONFIGURE_INVOCATION, "$INVOCATION",
[Define to the command line used to invoke the configure script.])
RDC_BUILD_HOSTNAME
dnl Checks for programs.
AS_MESSAGE(checking required programs...)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AM_INIT_AUTOMAKE([1.7 check-news dist-bzip2 no-dist-gzip std-options])
dnl Checks for libraries.
AS_MESSAGE(checking GNU gettext library...)
AM_GNU_GETTEXT_VERSION(0.17)
AM_GNU_GETTEXT([external])
AC_DEFINE_UNQUOTED(PACKAGE_BUILD, "$build",
[Define to the canonical build-system name])
AC_DEFINE_UNQUOTED(PACKAGE_HOST, "$host",
[Define to the canonical host-system name])
dnl Checks for header files.
AS_MESSAGE(checking C header files...)
AC_CHECK_HEADERS([locale.h netdb.h pwd.h sys/select.h sys/socket.h sys/un.h sys/wait.h syslog.h])
AC_CHECK_HEADERS([winsock2.h], [winsock=true], [winsock=false])
AM_CONDITIONAL(WINSOCK, test x$winsock = xtrue)
dnl Checks for typedefs, structures, and compiler characteristics.
AS_MESSAGE(checking C typedefs & structures...)
AC_TYPE_UID_T
RDC_STRUCT_SOCKADDR_LEN
RDC_STRUCT_SOCKADDR_STORAGE
RDC_TYPE_SOCKLEN_T
dnl Checks for library functions.
AS_MESSAGE(checking C library functions...)
AC_CHECK_FUNCS([daemon vsyslog strsignal])
RDC_FUNC_SOCKET(, AC_MSG_FAILURE([socket support is required]))
RDC_FUNC_GETADDRINFO
RDC_REPLACE_FUNC_GETOPT_LONG
dnl Checks for optionnal features
dnl AH_TEMPLATE(CONFIG_DEFAULT_PROTOCOL,
dnl [Define to TCPv6Protocol to use IPv6 instead of IPv4 by default.])
dnl AC_ARG_ENABLE([default-ipv6],
dnl [ --enable-default-ipv6 use IPv6 rather than IPv4 by default],
dnl [case "${enableval}" in
dnl yes) default_ipv6=true ;;
dnl no) default_ipv6=false ;;
dnl *) AC_MSG_ERROR([bad value ${enableval} for --enable-default-ipv6]);;
dnl esac],
dnl [default_ipv6=false])
dnl if test x$default_ipv6 = xtrue; then
dnl AC_DEFINE(CONFIG_DEFAULT_PROTOCOL, TCPv6Protocol)
dnl fi
dnl config.h trailer
AH_BOTTOM([
/* Assume that we have lstat() for safefunc.c - Who doesn't ? */
#define HAVE_LSTAT 1
/* Winsock hacks */
#if HAVE_WINSOCK2_H
# include "winstub.h"
# define WINSOCK 1
#endif
/* NLS support */
#define _( str ) gettext(str)
#define N_( str ) gettext_noop(str)
])
dnl END
AS_MESSAGE(writing results...)
AC_CONFIG_FILES([Makefile include/Makefile src/Makefile logs/Makefile libsolve/Makefile m4/Makefile po/Makefile.in])
AC_OUTPUT
|