configure revision dc50587e2e2411c43e4e09f500fb41f9f3856125
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington# Copyright (C) 1996-2001 Internet Software Consortium.
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# Permission to use, copy, modify, and distribute this software for any
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# purpose with or without fee is hereby granted, provided that the above
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# copyright notice and this permission notice appear in all copies.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
dc50587e2e2411c43e4e09f500fb41f9f3856125Andreas Gustafsson# From configure.in Revision: 1.229
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is free software; you can redistribute it and/or modify
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## it under the terms of the GNU General Public License as published by
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the Free Software Foundation; either version 2 of the License, or
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## (at your option) any later version.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is distributed in the hope that it will be useful, but
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## General Public License for more details.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## You should have received a copy of the GNU General Public License
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## along with this program; if not, write to the Free Software
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## As a special exception to the GNU General Public License, if you
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## distribute this file as part of a program that contains a
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## configuration script generated by Autoconf, you may include it under
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the same distribution terms that you use for the rest of that program.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# serial 40 AC_PROG_LIBTOOL
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_SHARED - implement the --enable-shared flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_SHARED[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_STATIC - implement the --enable-static flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_LD - find the path to the GNU or non-GNU linker
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_NM - find the path to a BSD-compatible name lister
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_CHECK_LIBM - check for math library
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl convenience library and INCLTDL to the include flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl header and adds --enable-ltdl-convenience to the
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# configure arguments. Note that LIBLTDL and INCLTDL are not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# with '${top_builddir}/' and INCLTDL will be prefixed with
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# '${top_srcdir}/' (note the single quotes!). If your package is not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# flat and you're not using automake, define top_builddir and
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# top_srcdir appropriately in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl installable library and INCLTDL to the include flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl header and adds --enable-ltdl-install to the configure
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# with '${top_srcdir}/' (note the single quotes!). If your package is
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# not flat and you're not using automake, define top_builddir and
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# top_srcdir appropriately in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Guess values for system-dependent variables and create Makefiles.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# Generated automatically using autoconf version 2.13
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This configure script is free software; the Free Software Foundation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# gives unlimited permission to copy, distribute and modify it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any additions from configure.in:
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington --with-openssl=PATH Specify path for system-supplied openssl
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff (rather than using bind-9 internal openssl)"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington --with-gssapi=PATH Specify path for system-supplied GSSAPI"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington --with-randomdev=PATH Specify path for random device"
23f7ed0b0ce02d69a60eae6db0d032157c03c152Brian Wellington --disable-threads disable multithreading"
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson --with-purify[=PATH] use Rational purify"
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --with-libtool use GNU libtool (following indented options supported)"
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --enable-shared[=PKGS] build shared libraries [default=yes]"
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --enable-static[=PKGS] build static libraries [default=yes]"
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --disable-libtool-lock avoid locking (might break parallel builds)"
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson --enable-ipv6 use IPv6 [default=autodetect]"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some variables set by options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The variables have the same names as the options, with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# dashes changed to underlines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some other variables.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Maximum number of lines to put in a shell here document.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If the previous option needs an argument, assign it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "$ac_prev=\$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-gas.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Omit some internal or obsolete options to make the list less imposing.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This message is too long to be a string in the A/UX 3.1 sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyUsage: configure [options] [host]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyOptions: [defaults in brackets after descriptions]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyConfiguration:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --cache-file=FILE cache test results in FILE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --help print this message
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --no-create do not create output files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --quiet, --silent do not print \`checking...' messages
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --version print the version of autoconf that created configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDirectory and file names:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [$ac_default_prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [same as prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --datadir=DIR read-only architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/share]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/com]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --includedir=DIR C header files in DIR [PREFIX/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-transform-name=PROGRAM
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley run sed PROGRAM on installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --host=HOST configure for HOST [guessed]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyFeatures and packages:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-includes=DIR X include files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-libraries=DIR X library files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_help"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "--enable and --with options recognized:$ac_help"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir | --includedir | --includedi | --included | --include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate | --localstat | --localsta | --localst \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --without-fp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name | --program-transform-name \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam | --program-transform-na \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name=* | --program-transform-name=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam=* | --program-transform-na=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n=* | --program-transform-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure we can run config.sub.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:701: checking host system type" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:723: checking whether ${MAKE-make} sets \${MAKE}" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff @echo 'ac_maketemp="${MAKE}"'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$ac_maketemp"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Extract the first word of "ranlib", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:752: checking for $ac_word" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Find a good install program. We prefer a C program (faster),
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# so one script is as good as another. But avoid the broken or
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# incompatible versions:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AFS /usr/afsws/bin/install, which mishandles nonexistent args
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# ./install, which can be erroneously created by make from ./install.sh.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:791: checking for a BSD compatible install" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -z "$INSTALL"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Account for people who put trailing slashes in PATH elements.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # OSF1 and SCO ODT 3.0 have their own names for install.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Don't use installbsd from OSF since it installs stuff as root
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # by default.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # AIX install. It has an incompatible calling convention.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test "${ac_cv_path_install+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # As a last resort, use the slow shell script. We don't cache a
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # path for INSTALL within a source directory, because that will
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # break other packages using the cache if that directory is
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # removed, or if the path is relative.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# It thinks the first close brace ends the variable substitution.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Extract the first word of "ar", so it can be a program name with args.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:852: checking for $ac_word" >&5
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif test -n "$AR"; then
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson# The POSIX ln(1) program. Non-POSIX systems may substitute
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson# "copy" or something.
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencear program not found. Please fix your PATH to include the directory in
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencewhich ar resides, or set AR in the environment with the full path to ar.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# Extract the first word of "$ac_prog", so it can be a program name with args.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:911: checking for $ac_word" >&5
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test -n "$ETAGS"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafftest -n "$ETAGS" && break
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley# GNU emacs etags, and it requires the -L flag.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:953: checking for Exuberant Ctags etags" >&5
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# Perl is optional; it is used only by some of the system test scripts.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# Extract the first word of "$ac_prog", so it can be a program name with args.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:971: checking for $ac_word" >&5
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif test -n "$PERL"; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssontest -n "$PERL" && break
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Special processing of paths depending on whether --prefix,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# --sysconfdir or --localstatedir arguments were given. What's
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# desired is some compatability with the way previous versions
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# of BIND built; they defaulted to /usr/local for most parts of
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# the installation, but named.boot/named.conf was in /etc
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# So ... if none of --prefix, --sysconfdir or --localstatedir are
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# specified, set things up that way. If --prefix is given, use
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# it for sysconfdir and localstatedir the way configure normally
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# would. To change the prefix for everything but leave named.conf
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# in /etc or named.pid in /var/run, then do this the usual configure way:
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# ./configure --prefix=/somewhere --sysconfdir=/etc
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# ./configure --prefix=/somewhere --localstatedir=/var
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# To put named.conf and named.pid in /usr/local with everything else,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# set the prefix explicitly to /usr/local even though that's the default:
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# ./configure --prefix=/usr/local
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence '${prefix}/etc')
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence '${prefix}/var')
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Make sure INSTALL uses an absolute path, else it will be wrong in all
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# configure based on the location of the file where it is substituted.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# subdirectory of install-sh, This relative path will be wrong for all
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# directories more than one level down from install-sh.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # Not all systems have dirname.
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# On these hosts, we really want to use cc, not gcc, even if it is
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# found. The gcc that these systems have will not correctly handle
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# However, if the user sets $CC to be something, let that override
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # Use Sun's cc if it is available, but watch
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # out for /usr/ucb/cc; it will never be the right
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # compiler to use.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # If setting CC here fails, the AC_PROG_CC done
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # below might still find gcc.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence if test -f "$ac_dir/cc"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "gcc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1118: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1148: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We found a bogon in the path, so make sure we never use it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We chose a different compiler from the bogus one.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # However, it has the same basename, so the bogon will be chosen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # first if we set CC to just the basename; use the full file name.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -z "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Extract the first word of "cl", so it can be a program name with args.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1199: checking for $ac_word" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1231: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1242 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain(){return(0);}
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If we can't run a trivial program, we are probably using a cross compiler.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1273: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1278: checking whether we are using GNU C" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#ifdef __GNUC__
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1306: checking whether ${CC-cc} accepts -g" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "$ac_test_CFLAGS" = set; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# Extract the first word of "$ac_prog", so it can be a program name with args.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1342: checking for $ac_word" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -n "$YACC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_YACC="$YACC" # Let the user override the test.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -n "$YACC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristertest -n "$YACC" && break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1374: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1389 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson{ (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1406 "configure"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include <assert.h>
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson{ (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_err"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1423 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <assert.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson{ (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1454: checking for ANSI C header files" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1459 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdarg.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <float.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson{ (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1484 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1502 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1523 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h sys/select.h
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1562: checking for $ac_hdr" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1567 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson{ (eval echo configure:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1600: checking for working const" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1605 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Ultrix mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytypedef int charset[2]; const charset x;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* SunOS 4.1.1 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar const *const *ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* NEC SVR4.0.2 mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct point {int x, y;};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystatic struct point const zero = {0,0};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* AIX XL C 1.02.0.0 rejects this.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley It does not let you subtract one const X* pointer from another in an arm
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley of an if-expression whose if-part is not a constant expression */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyconst char *g = "string";
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = &g + (g ? g-g : 0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* HPUX 7.0 cc rejects these. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyp = (char**) ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = (char const *const *) p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* SCO 3.2v4 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley int x[] = {25, 17};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int *foo = &x[0];
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s { int j; const int *ap[3]; };
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1675: checking for inline" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1682 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#define inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline $ac_cv_c_inline
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1715: checking for size_t" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1720 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if STDC_HEADERS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stddef.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define size_t unsigned
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1748: checking whether time.h and sys/time.h may both be included" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1753 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct tm *tp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TIME_WITH_SYS_TIME 1
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# check if we need to #include sys/select.h explicitly
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsecho $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1789: checking if unistd.h defines fd_set" >&5
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1791 "configure"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include "confdefs.h"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include <unistd.h>
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfd_set read_set; return (0);
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews; return 0; }
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews { echo "configure: error: need either working unistd.h or sys/select.h" 1>&2; exit 1; }
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews { echo "configure: error: need either unistd.h or sys/select.h" 1>&2; exit 1; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Find the machine's endian flavor.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1841: checking whether byte ordering is bigendian" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# See if sys/param.h defines the BYTE_ORDER macro.
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1848 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/types.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/param.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson bogus endian macros
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson # It does; now see whether it defined to BIG_ENDIAN or not.
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1863 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/types.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/param.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#if BYTE_ORDER != BIG_ENDIAN
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson not big endian
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test $ac_cv_c_bigendian = unknown; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson#line 1894 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson /* Are we little or big endian? From Harbison&Steele. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson char c[sizeof (long)];
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson exit (u.c[sizeof (long) - 1] == 1);
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonif { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define WORDS_BIGENDIAN 1
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# was --with-openssl specified?
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1935: checking for compatible OpenSSL library" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Check whether --with-openssl or --without-openssl was given.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "${with_openssl+set}" = set; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# If the user didn't specify where openssl is, and we didn't find or it
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# is incompatible with our code, use our internal one.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# XXX This appears to assume that the user specified path is correct,
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# and does no checking.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson DST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson DST_OPENSSL_INC='-I${srcdir}/../openssl/include'
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson openssl_makefiles="lib/dns/sec/openssl/Makefile \
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson lib/dns/sec/openssl/include/openssl/Makefile"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson { echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# This would include the system openssl path (and linker options to use
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# it as needed) if it is found.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# was --with-gssapi specified?
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:1997: checking for GSSAPI library" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Check whether --with-gssapi or --without-gssapi was given.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "${with_gssapi+set}" = set; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson { echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# was --with-randomdev specified?
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for random device""... $ac_c" 1>&6
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafssonecho "configure:2033: checking for random device" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Check whether --with-randomdev or --without-randomdev was given.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "${with_randomdev+set}" = set; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonac_safe=`echo "$devrandom" | sed 'y%./+-%__p_%'`
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho $ac_n "checking for $devrandom""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2056: checking for $devrandom" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington if test -r $devrandom; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington eval "ac_cv_file_$ac_safe=yes"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington eval "ac_cv_file_$ac_safe=no"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#define PATH_RANDOMDEV "$devrandom"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson { echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define PATH_RANDOMDEV "$use_randomdev"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""using "$use_randomdev"" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Begin pthreads checking.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# First, decide whether to use multithreading or not.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking whether to look for thread support""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2100: checking whether to look for thread support" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Check whether --enable-threads or --disable-threads was given.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif test "${enable_threads+set}" = set; then
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews { echo "configure: error: --enable-threads takes yes or no" 1>&2; exit 1; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Search for / configure pthreads in a system-dependent fashion.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # NetBSD has multiple pthreads implementations. The
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # recommended one to use is "unproven-pthreads". The
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # older "mit-pthreads" may also work on some NetBSD
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # versions. The PTL2 thread library does not
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # currently work with bind9, but can be chosen with
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # the --with-ptl2 option for those who wish to
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # experiment with it.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2137: checking which NetBSD thread library to use" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Check whether --with-ptl2 or --without-ptl2 was given.
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonif test "${with_ptl2+set}" = set; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
ce7994d137a013133e874b92604183923267fc94Brian Wellington echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2176: checking for pthread_create in -lpthread" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2184 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar pthread_create();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencepthread_create()
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_lib_$ac_lib_var=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#define $ac_tr_lib 1
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2221: checking for __pthread_create in -lpthread" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2229 "configure"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include "confdefs.h"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* We use char because int might match the return type of a gcc2
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar __pthread_create();
ce7994d137a013133e874b92604183923267fc94Brian Wellington__pthread_create()
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#define $ac_tr_lib 1
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2266: checking for __pthread_create_system in -lpthread" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2274 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar __pthread_create_system();
ce7994d137a013133e874b92604183923267fc94Brian Wellington__pthread_create_system()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2311: checking for pthread_create in -lc_r" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2319 "configure"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include "confdefs.h"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* We use char because int might match the return type of a gcc2
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar pthread_create();
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonpthread_create()
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/^a-zA-Z0-9_/_/g' \
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define $ac_tr_lib 1
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2356: checking for pthread_create in -lc" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2364 "configure"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include "confdefs.h"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* We use char because int might match the return type of a gcc2
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar pthread_create();
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonpthread_create()
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo c | sed -e 's/^a-zA-Z0-9_/_/g' \
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define $ac_tr_lib 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # We'd like to use sigwait() too
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2421: checking for sigwait in -lc" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2429 "configure"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#include "confdefs.h"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence/* We use char because int might match the return type of a gcc2
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence builtin and then its argument prototype would still apply. */
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencechar sigwait();
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2462: checking for sigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2470 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar sigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2503: checking for _Psigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2511 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar _Psigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2552: checking for pthread_attr_getstacksize" >&5
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2557 "configure"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#include "confdefs.h"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* System header to define __stub macros and hopefully few prototypes,
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington which can conflict with char pthread_attr_getstacksize(); below. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#include <assert.h>
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* We use char because int might match the return type of a gcc2
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington builtin and then its argument prototype would still apply. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonchar pthread_attr_getstacksize();
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* The GNU C library defines this for functions which it implements
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington to always fail with ENOSYS. Some functions are actually named
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington something starting with __ and the normal name is an alias. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonpthread_attr_getstacksize();
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington eval "ac_cv_func_pthread_attr_getstacksize=yes"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington eval "ac_cv_func_pthread_attr_getstacksize=no"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif eval "test \"`echo '$ac_cv_func_'pthread_attr_getstacksize`\" = yes"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Additional OS-specific issues related to pthreads and sigwait.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # One more place to look for sigwait.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2612: checking for sigwait in -lc_r" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2620 "configure"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley/* Override any gcc2 internal prototype to avoid an error. */
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley/* We use char because int might match the return type of a gcc2
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley builtin and then its argument prototype would still apply. */
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleychar sigwait();
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley eval "ac_cv_lib_$ac_lib_var=no"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#define HAVE_SIGWAIT 1
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence # BSDI 3.0 through 4.0.1 needs pthread_init() to be
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # called before certain pthreads calls. This is deprecated
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#define NEED_PTHREAD_INIT 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # LinuxThreads requires some changes to the way we
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # deal with signals.
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#define HAVE_LINUXTHREADS 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Ensure the right sigwait() semantics on Solaris and make
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # sure we call pthread_setconcurrency.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define _POSIX_PTHREAD_SEMANTICS 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2686: checking for pthread_setconcurrency" >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2691 "configure"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include "confdefs.h"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* System header to define __stub macros and hopefully few prototypes,
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff which can conflict with char pthread_setconcurrency(); below. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include <assert.h>
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* Override any gcc2 internal prototype to avoid an error. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* We use char because int might match the return type of a gcc2
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff builtin and then its argument prototype would still apply. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffchar pthread_setconcurrency();
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* The GNU C library defines this for functions which it implements
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff to always fail with ENOSYS. Some functions are actually named
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff something starting with __ and the normal name is an alias. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffpthread_setconcurrency();
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff eval "ac_cv_func_pthread_setconcurrency=yes"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff eval "ac_cv_func_pthread_setconcurrency=no"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#define CALL_PTHREAD_SETCONCURRENCY 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # UnixWare does things its own way.
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#define HAVE_UNIXWARE_SIGWAIT 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Look for sysconf to allow detection of the number of processors.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for sysconf""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2752: checking for sysconf" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2757 "configure"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include "confdefs.h"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington which can conflict with char sysconf(); below. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <assert.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* We use char because int might match the return type of a gcc2
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington builtin and then its argument prototype would still apply. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonchar sysconf();
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* The GNU C library defines this for functions which it implements
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington to always fail with ENOSYS. Some functions are actually named
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington something starting with __ and the normal name is an alias. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#if defined (__stub_sysconf) || defined (__stub___sysconf)
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington eval "ac_cv_func_sysconf=yes"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington eval "ac_cv_func_sysconf=no"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#define HAVE_SYSCONF 1
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# flockfile is usually provided by pthreads, but we may want to use it
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# even if compiled with --disable-threads.
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for flockfile""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2857: checking for flockfile" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2862 "configure"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington which can conflict with char flockfile(); below. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <assert.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* We use char because int might match the return type of a gcc2
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington builtin and then its argument prototype would still apply. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonchar flockfile();
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* The GNU C library defines this for functions which it implements
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington to always fail with ENOSYS. Some functions are actually named
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington something starting with __ and the normal name is an alias. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#if defined (__stub_flockfile) || defined (__stub___flockfile)
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington eval "ac_cv_func_flockfile=yes"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington eval "ac_cv_func_flockfile=no"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#define HAVE_FLOCKFILE 1
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Indicate what the final decision was regarding threads.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking whether to build with threads""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2912: checking whether to build with threads" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# End of pthreads stuff.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Additional compiler settings.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # The version of the C compiler that constantly warns about
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # 'const' as well as alignment issues is unfortunately not
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # able to be discerned via the version of the operating
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # system, nor does cc have a version flag.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # Turn off the pointlessly noisy warnings.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # Silence more than 250 instances of
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # "prototyped function redeclared without prototype"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # and 11 instances of
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # "variable ... was set but never used"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence YACC="yacc" # bison calls alloca, avoid on UnixWare
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2988: checking for catgets" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2993 "configure"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* System header to define __stub macros and hopefully few prototypes,
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley which can conflict with char catgets(); below. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include <assert.h>
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar catgets();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* The GNU C library defines this for functions which it implements
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley to always fail with ENOSYS. Some functions are actually named
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley something starting with __ and the normal name is an alias. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#if defined (__stub_catgets) || defined (__stub___catgets)
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_catgets=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_catgets=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#define HAVE_CATGETS 1
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# -lxnet buys us one big porting headache... standards, gotta love 'em.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# AC_CHECK_LIB(xnet, socket, ,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# AC_CHECK_LIB(socket, socket)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# AC_CHECK_LIB(nsl, inet_ntoa)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Use this for now, instead:
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3054: checking for socket in -lsocket" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3062 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar socket();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3101: checking for inet_ntoa in -lnsl" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3109 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar inet_ntoa();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Purify support
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho $ac_n "checking whether to use purify""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3154: checking whether to use purify" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Check whether --with-purify or --without-purify was given.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test "${with_purify+set}" = set; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob # Extract the first word of "purify", so it can be a program name with args.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3171: checking for $ac_word" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$''{'ac_cv_path_purify_path'+set}'`\" = set"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_cv_path_purify_path="$purify_path" # Let the user override the test with a dos path.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test -n "$purify_path"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob if test -f $purify_path || test $purify_path = purify; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob { echo "configure: error: $purify_path not found.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobPlease choose the proper path with the following command:
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob configure --with-purify=PATH
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# GNU libtool support
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-libtool or --without-libtool was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_libtool+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check whether --enable-shared or --disable-shared was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_shared+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-static or --disable-static was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_static+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-fast-install or --disable-fast-install was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_fast_install+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking build system type""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3317: checking build system type" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-gnu-ld or --without-gnu-ld was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_gnu_ld+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check if gcc -print-prog-name=ld gives a path.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3346: checking for ld used by GCC" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Accept absolute paths.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence [\\/]* | [A-Za-z]:[\\/]*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Canonicalize the path of ld
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # If it fails, then pretend we aren't using GCC.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # If it is relative, then search for the first ld in PATH.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3370: checking for GNU ld" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3373: checking for non-GNU ld" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -z "$LD"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check to see if the program is GNU ld. I'd rather use --version,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # but apparently some GNU ld's only accept -v.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Break only if it was the GNU/non-GNU ld that we prefer.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_LD="$LD" # Let the user override the test with a path.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test -n "$LD"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3408: checking if the linker ($LD) is GNU ld" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # I'd rather use --version here, but apparently some GNU ld's only accept -v.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3424: checking for BSD-compatible nm" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -n "$NM"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Let the user override the test.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check to see if the nm accepts a BSD-compat flag.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Adding the `sed 1q' prevents false positives on HP-UX, which says:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # nm: unknown option "B" ignored
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence continue # so that we can try to find one that supports BSD flags
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3460: checking whether ln -s works" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for any special flags to pass to ltconfig.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_libtool_lock+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Some flags need to be propagated to the compiler or linker for good
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# libtool support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Find out which ABI we are using.
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo '#line 3509 "configure"' > conftest.$ac_ext
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # On SCO OpenServer 5, we need -belf to get full-featured binaries.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3531: checking whether the C compiler needs -belf" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3536 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test x"$lt_cv_cc_needs_belf" != x"yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Save cache, so that ltconfig can load it
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This file is a shell script that caches the results of configure
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# tests run on this system so they can be shared between configure
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# scripts and configure runs. It is not useful on other systems.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# If it contains results you don't want to keep, you may remove or edit it.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# By default, configure uses ./config.cache as the cache file,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# creating it if it does not exist already. You can give configure
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the --cache-file=FILE option to use a different cache file; that is
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# what configure does when it calls configure scripts in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# subdirectories, so they share the cache.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Giving --cache-file=/dev/null disables caching, for debugging configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# config.status only pays attention to the cache file if you give it the
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# --recheck option to rerun configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# The following way of writing the cache mishandles newlines in values,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# but we know of no workaround that is simple, portable, and efficient.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# So, don't put newlines in cache variables' values.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Ultrix sh set writes to stderr and can't be redirected directly,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# and sets the high bit in the cache file unless we assign to the vars.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case `(ac_space=' '; set | grep ac_space) 2>&1` in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # `set' does not quote correctly, so add quotes (double-quote substitution
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # turns \\\\ into \\, and sed turns \\ into \).
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -e "s/'/'\\\\''/g" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # `set' quotes correctly as required by POSIX, so do not add quotes.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -w $cache_file; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "updating cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "not updating unwritable cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Actually configure libtool. ac_aux_dir is where install-sh is found.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Reload cache, that may have been modified by ltconfig
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test -r "$cache_file"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "loading cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "creating cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This can be used to rebuild libtool when needed
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Always use our own libtool.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Redirect the config.log output again, so that the ltconfig log is not
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# clobbered by the next message.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# File name extension for static archive files, for those few places
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# where they are treated differently from dynamic ones.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Here begins a very long section to determine the system's networking
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# capabilities. The order of the tests is signficant.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-ipv6 or --disable-ipv6 was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_ipv6+set}" = set; then
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington#define WANT_IPV6 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# We do the IPv6 compilation checking after libtool so that we can put
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the right suffix on the files.
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtonecho $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3696: checking for IPv6 structures" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3698 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr_in6 sin6; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# See whether IPv6 support is provided via a Kame add-on.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is done before other IPv6 linking tests to LIBS is properly set.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3726: checking for Kame IPv6 support" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-kame or --without-kame was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_kame+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence { echo "configure: error: $kame_path/lib/libinet6.a not found.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrencePlease choose the proper path with the following command:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence configure --with-kame=PATH
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Including it on Kame-using platforms is very bad, though, because
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Kame uses #error against direct inclusion. So include it on only
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is done before the in6_pktinfo check because that's what
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# netinet6/in6.h is needed for.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinet6in6_hack="#include <netinet6/in6.h>"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is similar to the netinet6/in6.h issue.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrence ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinetin6_hack="#include <netinet/in6.h>"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrence ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Now delve deeper into the suitability of the IPv6 support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo $ac_n "checking for in6_addr""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3816: checking for in6_addr" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3818 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinet6in6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsstruct in6_addr in6; return (0);
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3849: checking for in6addr_any" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3851 "configure"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include "confdefs.h"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <sys/types.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <sys/socket.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <netinet/in.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinetin6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinet6in6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_in_addr6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in6_addr in6; in6 = in6addr_any; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3881: checking for sin6_scope_id in struct sockaddr_in6" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3883 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinet6in6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3911: checking for in6_pktinfo" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3913 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinet6in6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in6_pktinfo xyzzy; return (0);
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for network functions that are often missing. We do this
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# after the libtool checking, so we can put the right suffix on
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the files. It also needs to come after checking for a Kame add-on,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# which provides some (all?) of the desired functions.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:3978: checking for inet_ntop" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 3980 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceinet_ntop(0, 0, 0, 0); return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4005: checking for inet_pton" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4007 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceinet_pton(0, 0, 0); return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4032: checking for inet_aton" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4034 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in_addr in; inet_aton(0, &in); return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for a 4.4BSD-style sa_len member in struct sockaddr.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Turn on 4.4BSD style sa_len support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define _SOCKADDR_LEN 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4077: checking for sa_len in struct sockaddr" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4079 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr sa; sa.sa_len = 0; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for a 4.4BSD or 4.3BSD struct msghdr
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4109: checking for struct msghdr flavor" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4111 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct msghdr msg; msg.msg_flags = 0; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for in_port_t.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4138: checking for type in_port_t" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4140 "configure"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley#include "confdefs.h"
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson#include <sys/types.h>
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencein_port_t port = 25; return (0);
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for addrinfo
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4167: checking for struct addrinfo" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4169 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct addrinfo a; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define HAVE_ADDRINFO 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4196: checking for int sethostent" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4198 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = sethostent(0); return(0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4221: checking for int endhostent" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4223 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = endhostent(); return(0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4246: checking for getnetbyaddr(in_addr_t, ...)" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4248 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct netent *getnetbyaddr(in_addr_t, int);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4272: checking for int setnetent" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4274 "configure"
b67a66514e9778907586786041705aaa832e8113Bob Halley#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = setnetent(0); return(0);
b67a66514e9778907586786041705aaa832e8113Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4297: checking for int endnetent" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4299 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = endnetent(); return(0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonecho $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4322: checking for gethostbyaddr(const void *, size_t, ...)" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4324 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct hostent *gethostbyaddr(const void *, size_t, int);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4348: checking for h_errno in netdb.h" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4350 "configure"
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceh_errno = 1; return(0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4373: checking for getipnodebyname" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4378 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char getipnodebyname(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar getipnodebyname();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencegetipnodebyname();
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getipnodebyname=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getipnodebyname=no"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4422: checking for getnameinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4427 "configure"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char getnameinfo(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar getnameinfo();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencegetnameinfo();
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getnameinfo=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getnameinfo=no"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4471: checking for getaddrinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4476 "configure"
28ed3013196c373745dbde87b75a490148dab840Bob Halley#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char getaddrinfo(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar getaddrinfo();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencegetaddrinfo();
28ed3013196c373745dbde87b75a490148dab840Bob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getaddrinfo=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getaddrinfo=no"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define HAVE_GETADDRINFO 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonecho $ac_n "checking for gai_strerror""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4524: checking for gai_strerror" >&5
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4529 "configure"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#include "confdefs.h"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington which can conflict with char gai_strerror(); below. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#include <assert.h>
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* We use char because int might match the return type of a gcc2
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington builtin and then its argument prototype would still apply. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonchar gai_strerror();
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* The GNU C library defines this for functions which it implements
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington to always fail with ENOSYS. Some functions are actually named
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington something starting with __ and the normal name is an alias. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtongai_strerror();
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington eval "ac_cv_func_gai_strerror=yes"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington eval "ac_cv_func_gai_strerror=no"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'gai_strerror`\" = yes"; then
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#define HAVE_GAISTRERROR 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for a sysctl call to get the list of network interfaces.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4582: checking for interface list sysctl" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4584 "configure"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/param.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/sysctl.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#ifdef NET_RT_IFLIST
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefound_rt_iflist
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence egrep "found_rt_iflist" >/dev/null 2>&1; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define HAVE_IFLIST_SYSCTL 1
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence# Check for some other useful functions that are not ever-present.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsecho $ac_n "checking for strsep""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4614: checking for strsep" >&5
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4619 "configure"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include "confdefs.h"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews which can conflict with char strsep(); below. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include <assert.h>
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* We use char because int might match the return type of a gcc2
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews builtin and then its argument prototype would still apply. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewschar strsep();
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* The GNU C library defines this for functions which it implements
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews to always fail with ENOSYS. Some functions are actually named
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews something starting with __ and the normal name is an alias. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#if defined (__stub_strsep) || defined (__stub___strsep)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews eval "ac_cv_func_strsep=yes"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews eval "ac_cv_func_strsep=no"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
0e8da6dbd60e874ad3259ac3d29a0a6193e0f9f0David LawrenceISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4663: checking for vsnprintf" >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4668 "configure"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include "confdefs.h"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews which can conflict with char vsnprintf(); below. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include <assert.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* We use char because int might match the return type of a gcc2
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews builtin and then its argument prototype would still apply. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewschar vsnprintf();
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* The GNU C library defines this for functions which it implements
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews to always fail with ENOSYS. Some functions are actually named
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews something starting with __ and the normal name is an alias. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews eval "ac_cv_func_vsnprintf=yes"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews eval "ac_cv_func_vsnprintf=no"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsecho $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4720: checking for sizeof(long long int) == sizeof(long int)" >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4726 "configure"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews#include "confdefs.h"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsmain() { exit(!(sizeof(long long int) == sizeof(long int))); }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Security Stuff
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4750: checking for chroot" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4755 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* System header to define __stub macros and hopefully few prototypes,
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley which can conflict with char chroot(); below. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <assert.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* Override any gcc2 internal prototype to avoid an error. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* We use char because int might match the return type of a gcc2
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley builtin and then its argument prototype would still apply. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleychar chroot();
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* The GNU C library defines this for functions which it implements
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley to always fail with ENOSYS. Some functions are actually named
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley something starting with __ and the normal name is an alias. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#if defined (__stub_chroot) || defined (__stub___chroot)
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_func_chroot=yes"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_func_chroot=no"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#define HAVE_CHROOT 1
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4804: checking for $ac_hdr" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4809 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <$ac_hdr>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington{ (eval echo configure:4814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif test -z "$ac_err"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_header_$ac_safe=yes"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_header_$ac_safe=no"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#define $ac_tr_hdr 1
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4844: checking for $ac_hdr" >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4849 "configure"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include "confdefs.h"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include <$ac_hdr>
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington{ (eval echo configure:4854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif test -z "$ac_err"; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley eval "ac_cv_header_$ac_safe=yes"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley eval "ac_cv_header_$ac_safe=no"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#define $ac_tr_hdr 1
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# BSD/OS, and perhaps some others, don't define rlim_t.
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrenceecho $ac_n "checking for type rlim_t""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4885: checking for type rlim_t" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4887 "configure"
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include "confdefs.h"
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include <sys/types.h>
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include <sys/time.h>
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include <sys/resource.h>
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencerlim_t rl = 19671212; return (0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#define HAVE_RLIM_T 1
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsecho $ac_n "checking sizeof rlim_cur""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:4912: checking sizeof rlim_cur" >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4917 "configure"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include "confdefs.h"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/types.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/time.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/resource.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsmain() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4938 "configure"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include "confdefs.h"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/types.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/time.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/resource.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsmain() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 4959 "configure"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include "confdefs.h"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/types.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/time.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/resource.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsmain() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: unable to determine sizeof rlim_cur" 1>&2; exit 1; }
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# Random remaining OS-specific issues involving compiler warnings.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence# XXXDCL print messages to indicate some compensation is being done?
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David LawrenceISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up a -Wmissing-prototypes warning for sigwait().
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence#define SHUTUP_SIGWAIT 1
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up a -Wmissing-prototypes warning from <stdio.h>.
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence#define SHUTUP_SPUTAUX 1
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up a -Wcast-qual warning from va_start().
49a2cf8f211213712d452287ae8e121cf59e3178David Lawrence#define SHUTUP_STDARG_CAST 1
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson# Look for jade, preferring openjade if installed.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson# Extract the first word of "$ac_prog", so it can be a program name with args.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:5071: checking for $ac_word" >&5
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ac_cv_path_JADE="$JADE" # Let the user override the test with a dos path.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonif test -n "$JADE"; then
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssontest -n "$JADE" && break
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce# Look for tex & pdftex.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce# Extract the first word of "$ac_prog", so it can be a program name with args.
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:5118: checking for $ac_word" >&5
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceif eval "test \"`echo '$''{'ac_cv_path_TEX'+set}'`\" = set"; then
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ac_cv_path_TEX="$TEX" # Let the user override the test with a dos path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceif test -n "$TEX"; then
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucetest -n "$TEX" && break
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce# Extract the first word of "$ac_prog", so it can be a program name with args.
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:5160: checking for $ac_word" >&5
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceif eval "test \"`echo '$''{'ac_cv_path_PDFTEX'+set}'`\" = set"; then
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ac_cv_path_PDFTEX="$PDFTEX" # Let the user override the test with a path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ac_cv_path_PDFTEX="$PDFTEX" # Let the user override the test with a dos path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceif test -n "$PDFTEX"; then
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucetest -n "$PDFTEX" && break
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson# Look for SGML files. NetBSD has them under /usr/pkg/share
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson# (if installed), FreeBSD has them under /usr/local/share.
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssonecho $ac_n "checking for SGML files""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:5205: checking for SGML files" >&5
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafssonfor d in /usr/pkg/share/sgml /usr/local/share/sgml
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson if test -f $d/docbook/dsssl/modular/html/docbook.dsl
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson# Look for XML files.
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssonecho $ac_n "checking for XML files""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:5230: checking for XML files" >&5
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssonfor d in /usr/pkg/share/xml /usr/local/share/xml
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Substitutions
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael GraffBIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This file is a shell script that caches the results of configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# tests run on this system so they can be shared between configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# scripts and configure runs. It is not useful on other systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If it contains results you don't want to keep, you may remove or edit it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# By default, configure uses ./config.cache as the cache file,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# creating it if it does not exist already. You can give configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the --cache-file=FILE option to use a different cache file; that is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# what configure does when it calls configure scripts in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# subdirectories, so they share the cache.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Giving --cache-file=/dev/null disables caching, for debugging configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# config.status only pays attention to the cache file if you give it the
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# --recheck option to rerun configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The following way of writing the cache mishandles newlines in values,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# but we know of no workaround that is simple, portable, and efficient.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# So, don't put newlines in cache variables' values.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Ultrix sh set writes to stderr and can't be redirected directly,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# and sets the high bit in the cache file unless we assign to the vars.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley case `(ac_space=' '; set | grep ac_space) 2>&1` in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # `set' does not quote correctly, so add quotes (double-quote substitution
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # turns \\\\ into \\, and sed turns \\ into \).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e "s/'/'\\\\''/g" \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # `set' quotes correctly as required by POSIX, so do not add quotes.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -w $cache_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "updating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "not updating unwritable cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$prefix" = xNONE && prefix=$ac_default_prefix
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Let make expand exec_prefix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any assignment to VPATH causes Sun make to only execute
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the first set of double-colon rules, so remove it if not needed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If there is a colon in the path, we need to keep it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "x$srcdir" = x.; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Without the "./", some shells look in PATH for config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Generated automatically by configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Run this file to recreate the current configuration.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This directory was configured as follows,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# $0 $ac_configure_args
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Compiler output produced by configure, useful for debugging
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure, is in ./config.log if it exists.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "\$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$CONFIG_STATUS generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he | --h)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "\$ac_cs_usage"; exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) echo "\$ac_cs_usage"; exit 1 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_srcdir=$srcdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_INSTALL="$INSTALL"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleytrap 'rm -fr `echo "make/rules
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley make/includes
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley make/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley lib/isc/include/isc/platform.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley lib/isc/nls/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/Makefile
d6230d416b9fd6cdd22bd3918073ed0f847c247eBrian Wellington $openssl_makefiles
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/dst/Makefile
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews lib/dns/config/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/lwres/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/lwres/include/lwres/netdb.h
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley lib/lwres/include/lwres/platform.h
bf6d4f9cad79d182eea7487e2ee2fb2bc4b0824eBrian Wellington lib/lwres/man/Makefile
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence lib/omapi/Makefile
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence lib/omapi/include/Makefile
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence lib/omapi/include/omapi/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
fa67ca21f6d5033221d9893b3c38a7bf8fecdb18Mark Andrews bin/check/Makefile
690a68b8112039e633e26f9216c0d463751e011aMichael Graff bin/named/Makefile
a92e4f3c0a0972fef3a27c8e603848b2f57906bcMark Andrews bin/named/named.8
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley bin/named/unix/Makefile
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence bin/rndc/Makefile
7a79882f00c1afb7091c9dc9da900aeb7eac51f1Michael Sawyer bin/dig/Makefile
d11097cf86e789c8dbb7df86753491b30add2f5aMichael Sawyer bin/nsupdate/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/names/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/master/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/rbt/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/db/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/tasks/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/timers/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington bin/tests/dst/Makefile
b2e6071406542058cca3c34cbe04d324322dfa05Bob Halley bin/tests/mem/Makefile
0111b7c5e12837bca4b97d2dd0e3989348a6a85dMichael Graff bin/tests/net/Makefile
683da0cd900532fc45fa4dfb687b5041156ec8abAndreas Gustafsson bin/tests/sockaddr/Makefile
7ffc4c63ac8841d127c2d77c8716cc0dc483badcDavid Lawrence bin/tests/system/Makefile
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson bin/tests/system/conf.sh
39469093ea30f42ee3fcc6c457688cf8577432c6Brian Wellington bin/tests/system/lwresd/Makefile
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington bin/tests/system/tkey/Makefile
e855fd594d04413c29504bdc6b8792be9fa79bd2Andreas Gustafsson bin/tests/headerdep_test.sh
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafsson bin/dnssec/Makefile
59563a18b7d83c3de5bb4b57f41fb4c0f9162cd0Andreas Gustafsson doc/arm/Makefile
9075554b999a7f5682f8cee24034f35413e15353Andreas Gustafsson doc/arm/catalog
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/nominum-docbook-html.dsl
dc50587e2e2411c43e4e09f500fb41f9f3856125Andreas Gustafsson doc/arm/nominum-docbook-print.dsl
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/validate.sh
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/genhtml.sh
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce doc/arm/gendvi.sh
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce doc/arm/genpdf.sh
c7dd0420a25bcc4adcdd8d8f9d6b01c3e90ae816Brian Wellington isc-config.sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@SHELL@%$SHELL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CFLAGS@%$CFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CPPFLAGS@%$CPPFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CXXFLAGS@%$CXXFLAGS%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@FFLAGS@%$FFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DEFS@%$DEFS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LDFLAGS@%$LDFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LIBS@%$LIBS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@exec_prefix@%$exec_prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@prefix@%$prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@program_transform_name@%$program_transform_name%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@bindir@%$bindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sbindir@%$sbindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libexecdir@%$libexecdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@datadir@%$datadir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sysconfdir@%$sysconfdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sharedstatedir@%$sharedstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@localstatedir@%$localstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libdir@%$libdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@includedir@%$includedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@oldincludedir@%$oldincludedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@infodir@%$infodir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@mandir@%$mandir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host@%$host%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_alias@%$host_alias%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_cpu@%$host_cpu%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_vendor@%$host_vendor%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_os@%$host_os%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@SET_MAKE@%$SET_MAKE%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@RANLIB@%$RANLIB%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_DATA@%$INSTALL_DATA%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CINCLUDES@%$STD_CINCLUDES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CDEFINES@%$STD_CDEFINES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CWARNINGS@%$STD_CWARNINGS%g
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian Wellingtons%@CCOPT@%$CCOPT%g
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrences%@ARFLAGS@%$ARFLAGS%g
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffs%@ETAGS@%$ETAGS%g
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssons%@PERL@%$PERL%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@YACC@%$YACC%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@ISC_PLATFORM_NEEDSYSSELECTH@%$ISC_PLATFORM_NEEDSYSSELECTH%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@LWRES_PLATFORM_NEEDSYSSELECTH@%$LWRES_PLATFORM_NEEDSYSSELECTH%g
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graffs%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graffs%@dst_privateopenssl@%$dst_privateopenssl%g
08a768e82ad64ede97f640c88e02984b59122753Michael Graffs%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
08a768e82ad64ede97f640c88e02984b59122753Michael Graffs%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
08a768e82ad64ede97f640c88e02984b59122753Michael Graffs%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
08a768e82ad64ede97f640c88e02984b59122753Michael Graffs%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtons%@USE_GSSAPI@%$USE_GSSAPI%g
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtons%@DST_GSSAPI_INC@%$DST_GSSAPI_INC%g
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtons%@DNS_GSSAPI_LIBS@%$DNS_GSSAPI_LIBS%g
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrences%@ISC_PLATFORM_USETHREADS@%$ISC_PLATFORM_USETHREADS%g
65e218048d7be538af52710195e3ccc7d1427402Brian Wellingtons%@ISC_THREAD_DIR@%$ISC_THREAD_DIR%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@MKDEPCC@%$MKDEPCC%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@MKDEPPROG@%$MKDEPPROG%g
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrences%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobs%@purify_path@%$purify_path%g
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobs%@PURIFY@%$PURIFY%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build@%$build%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_alias@%$build_alias%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_cpu@%$build_cpu%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_vendor@%$build_vendor%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_os@%$build_os%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LN_S@%$LN_S%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LIBTOOL@%$LIBTOOL%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleys%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrences%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrences%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrences%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrences%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@ISC_PLATFORM_HAVEINADDR6@%$ISC_PLATFORM_HAVEINADDR6%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@LWRES_PLATFORM_HAVEINADDR6@%$LWRES_PLATFORM_HAVEINADDR6%g
b67a66514e9778907586786041705aaa832e8113Bob Halleys%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrences%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graffs%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrences%@ISC_PLATFORM_FIXIN6ISADDR@%$ISC_PLATFORM_FIXIN6ISADDR%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_IPV6_H@%$ISC_IPV6_H%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_IPV6_O@%$ISC_IPV6_O%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_IPV6_C@%$ISC_IPV6_C%g
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graffs%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
51a659eb711eb6a17891675d3de6b8085a766ab2Mark Andrewss%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffs%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewss%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewss%@ISC_PLATFORM_RLIMITTYPE@%$ISC_PLATFORM_RLIMITTYPE%g
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrences%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssons%@JADE@%$JADE%g
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luces%@TEX@%$TEX%g
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luces%@PDFTEX@%$PDFTEX%g
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafssons%@SGMLDIR@%$SGMLDIR%g
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssons%@XMLDIR@%$XMLDIR%g
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halleys%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrences%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graffs%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley/@BIND9_INCLUDES@/r $BIND9_INCLUDES
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@BIND9_INCLUDES@%%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@BIND9_MAKE_RULES@%%g
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael Graffs%@BIND9_VERSION@%$BIND9_VERSION%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/@LIBISC_API@/r $LIBISC_API
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LIBISC_API@%%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/@LIBDNS_API@/r $LIBDNS_API
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LIBDNS_API@%%g
b2f85baf7905bad89781f8ef73003d4cfa955257Michael Graff/@LIBLWRES_API@/r $LIBLWRES_API
b2f85baf7905bad89781f8ef73003d4cfa955257Michael Graffs%@LIBLWRES_API@%%g
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence/@LIBOMAPI_API@/r $LIBOMAPI_API
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrences%@LIBOMAPI_API@%%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Split the substitutions into bite-sized pieces for seds with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# small command number limits, like on Digital OSF/1 and HP-UX.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_end=$ac_max_sed_cmds # Line after last line for current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed "${ac_end}q" conftest.subs > conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_sed_cmds"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_sed_cmds"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyCONFIG_FILES=\${CONFIG_FILES-"make/rules
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley make/includes
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley make/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley lib/isc/include/isc/platform.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley lib/isc/nls/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/Makefile
d6230d416b9fd6cdd22bd3918073ed0f847c247eBrian Wellington $openssl_makefiles
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/dst/Makefile
f8e602a972e393cdacadd9852e0965bf1105dc7bMark Andrews lib/dns/config/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/lwres/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/lwres/include/lwres/netdb.h
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley lib/lwres/include/lwres/platform.h
bf6d4f9cad79d182eea7487e2ee2fb2bc4b0824eBrian Wellington lib/lwres/man/Makefile
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence lib/omapi/Makefile
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence lib/omapi/include/Makefile
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence lib/omapi/include/omapi/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
fa67ca21f6d5033221d9893b3c38a7bf8fecdb18Mark Andrews bin/check/Makefile
690a68b8112039e633e26f9216c0d463751e011aMichael Graff bin/named/Makefile
a92e4f3c0a0972fef3a27c8e603848b2f57906bcMark Andrews bin/named/named.8
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley bin/named/unix/Makefile
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence bin/rndc/Makefile
7a79882f00c1afb7091c9dc9da900aeb7eac51f1Michael Sawyer bin/dig/Makefile
d11097cf86e789c8dbb7df86753491b30add2f5aMichael Sawyer bin/nsupdate/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/names/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/master/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/rbt/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/db/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/tasks/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/timers/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington bin/tests/dst/Makefile
b2e6071406542058cca3c34cbe04d324322dfa05Bob Halley bin/tests/mem/Makefile
0111b7c5e12837bca4b97d2dd0e3989348a6a85dMichael Graff bin/tests/net/Makefile
683da0cd900532fc45fa4dfb687b5041156ec8abAndreas Gustafsson bin/tests/sockaddr/Makefile
7ffc4c63ac8841d127c2d77c8716cc0dc483badcDavid Lawrence bin/tests/system/Makefile
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson bin/tests/system/conf.sh
39469093ea30f42ee3fcc6c457688cf8577432c6Brian Wellington bin/tests/system/lwresd/Makefile
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington bin/tests/system/tkey/Makefile
e855fd594d04413c29504bdc6b8792be9fa79bd2Andreas Gustafsson bin/tests/headerdep_test.sh
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafsson bin/dnssec/Makefile
59563a18b7d83c3de5bb4b57f41fb4c0f9162cd0Andreas Gustafsson doc/arm/Makefile
9075554b999a7f5682f8cee24034f35413e15353Andreas Gustafsson doc/arm/catalog
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/nominum-docbook-html.dsl
dc50587e2e2411c43e4e09f500fb41f9f3856125Andreas Gustafsson doc/arm/nominum-docbook-print.dsl
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/validate.sh
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/genhtml.sh
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce doc/arm/gendvi.sh
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce doc/arm/genpdf.sh
c7dd0420a25bcc4adcdd8d8f9d6b01c3e90ae816Brian Wellington isc-config.sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Remove last slash and all that follows it. Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # The file is in a subdirectory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # A "../" for each directory in $ac_dir_suffix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) # Relative path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@configure_input@%$configure_input%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@top_srcdir@%$top_srcdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NAME is the cpp macro being defined and VALUE is the value it is being given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_d sets the value in "#define NAME VALUE" lines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${CONFIG_HEADERS+set}" != set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_HEADERS="config.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Transform confdefs.h into a sed script conftest.vals that substitutes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the proper values into config.h.in to produce config.h. And first:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being in an unquoted here document in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys/[\\&%]/\\&/g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%[\\$`]%\\&%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This sed command replaces #undef with comments. This is necessary, for
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# example, in the case of _POSIX_SOURCE, which is predefined and required
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on some systems where configure will not decide to define it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Break up conftest.vals because some shells have a limit on
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the size of here documents, and old seds have small limits too.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # grep -c gives empty output for an empty file on some AIX systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Write a limited-size here document to conftest.frag.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if cmp -s $ac_file conftest.h 2>/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Remove last slash and all that follows it. Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence# Tell Emacs to edit this file in shell mode.
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence# Local Variables: