configure revision fa280ff02ad0c29616a0c3a22ef02cbb3f6db7ef
cd348e325366620fe047edcc849e3c9424828599Peter Bray#! /bin/sh
cd348e325366620fe047edcc849e3c9424828599Peter Bray
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco# Copyright (C) 1996-2000 Internet Software Consortium.
cd348e325366620fe047edcc849e3c9424828599Peter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Permission to use, copy, modify, and distribute this software for any
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# purpose with or without fee is hereby granted, provided that the above
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# copyright notice and this permission notice appear in all copies.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# From configure.in Revision: 1.207
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray##
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal## This program is free software; you can redistribute it and/or modify
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal## it under the terms of the GNU General Public License as published by
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal## the Free Software Foundation; either version 2 of the License, or
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## (at your option) any later version.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco##
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco## This program is distributed in the hope that it will be useful, but
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco## WITHOUT ANY WARRANTY; without even the implied warranty of
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## General Public License for more details.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray##
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## You should have received a copy of the GNU General Public License
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## along with this program; if not, write to the Free Software
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal##
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal## As a special exception to the GNU General Public License, if you
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray## distribute this file as part of a program that contains a
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray## configuration script generated by Autoconf, you may include it under
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal## the same distribution terms that you use for the rest of that program.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# serial 40 AC_PROG_LIBTOOL
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
b17cb0705d90907337b3528aa7b8ed1700806f26Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# AC_ENABLE_SHARED - implement the --enable-shared flag
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Usage: AC_ENABLE_SHARED[(DEFAULT)]
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# `yes'.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina# AC_ENABLE_STATIC - implement the --enable-static flag
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Usage: AC_ENABLE_STATIC[(DEFAULT)]
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# `yes'.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# AC_DISABLE_STATIC - set the default static flag to --disable-static
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# `yes'.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
cd348e325366620fe047edcc849e3c9424828599Peter Bray# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos Kosco
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray# AC_PROG_LD - find the path to the GNU or non-GNU linker
cd348e325366620fe047edcc849e3c9424828599Peter Bray
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
43dac746513591adbd09bc4f417feb385f4fd87eVladimir Kotal
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# AC_PROG_NM - find the path to a BSD-compatible name lister
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# AC_CHECK_LIBM - check for math library
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# the libltdl convenience library and INCLTDL to the include flags for
f21b682cd9b414738a4f5a38b56f6682e537e1d2Trond Norbye# the libltdl header and adds --enable-ltdl-convenience to the
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos Kosco# configure arguments. Note that LIBLTDL and INCLTDL are not
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos Kosco# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
cd348e325366620fe047edcc849e3c9424828599Peter Bray# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
cd348e325366620fe047edcc849e3c9424828599Peter Bray# with '${top_builddir}/' and INCLTDL will be prefixed with
cd348e325366620fe047edcc849e3c9424828599Peter Bray# '${top_srcdir}/' (note the single quotes!). If your package is not
cd348e325366620fe047edcc849e3c9424828599Peter Bray# flat and you're not using automake, define top_builddir and
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# top_srcdir appropriately in the Makefiles.
cd348e325366620fe047edcc849e3c9424828599Peter Bray
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# the libltdl installable library and INCLTDL to the include flags for
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# the libltdl header and adds --enable-ltdl-install to the configure
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# with '${top_srcdir}/' (note the single quotes!). If your package is
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco# not flat and you're not using automake, define top_builddir and
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco# top_srcdir appropriately in the Makefiles.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Guess values for system-dependent variables and create Makefiles.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Generated automatically using autoconf version 2.13
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# This configure script is free software; the Free Software Foundation
cd348e325366620fe047edcc849e3c9424828599Peter Bray# gives unlimited permission to copy, distribute and modify it.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Defaults:
cd348e325366620fe047edcc849e3c9424828599Peter Brayac_help=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_default_prefix=/usr/local
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Any additions from configure.in:
cd348e325366620fe047edcc849e3c9424828599Peter Brayac_help="$ac_help
cd348e325366620fe047edcc849e3c9424828599Peter Bray --with-openssl=PATH Specify path for system-supplied openssl
cd348e325366620fe047edcc849e3c9424828599Peter Bray (rather than using bind-9 internal openssl)"
cd348e325366620fe047edcc849e3c9424828599Peter Brayac_help="$ac_help
cd348e325366620fe047edcc849e3c9424828599Peter Bray --with-gssapi=PATH Specify path for system-supplied GSSAPI"
cd348e325366620fe047edcc849e3c9424828599Peter Brayac_help="$ac_help
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --with-randomdev=PATH Specify path for random device"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_help="$ac_help
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --enable-threads use multithreading"
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscoac_help="$ac_help
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscoac_help="$ac_help
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --with-libtool use GNU libtool (following indented options supported)"
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Koscoac_help="$ac_help
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --enable-shared[=PKGS] build shared libraries [default=yes]"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_help="$ac_help
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --enable-static[=PKGS] build static libraries [default=yes]"
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayac_help="$ac_help
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayac_help="$ac_help
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_help="$ac_help
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --disable-libtool-lock avoid locking (might break parallel builds)"
b34561d2c3d92fac37dbced05ba6a8738e3d20e9Lubos Koscoac_help="$ac_help
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --enable-ipv6 use IPv6 [default=autodetect]"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_help="$ac_help
5e6c91d7e77062129cd0b6ac8aaa546dff216419Lubos Kosco --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal# Initialize some variables set by options.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# The variables have the same names as the options, with
cd348e325366620fe047edcc849e3c9424828599Peter Bray# dashes changed to underlines.
cd348e325366620fe047edcc849e3c9424828599Peter Braybuild=NONE
cd348e325366620fe047edcc849e3c9424828599Peter Braycache_file=./config.cache
cd348e325366620fe047edcc849e3c9424828599Peter Brayexec_prefix=NONE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayhost=NONE
cd348e325366620fe047edcc849e3c9424828599Peter Brayno_create=
cd348e325366620fe047edcc849e3c9424828599Peter Braynonopt=NONE
cd348e325366620fe047edcc849e3c9424828599Peter Brayno_recursion=
cd348e325366620fe047edcc849e3c9424828599Peter Brayprefix=NONE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayprogram_prefix=NONE
cd348e325366620fe047edcc849e3c9424828599Peter Brayprogram_suffix=NONE
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotalprogram_transform_name=s,x,x,
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotalsilent=
cd348e325366620fe047edcc849e3c9424828599Peter Braysite=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braysrcdir=
cd348e325366620fe047edcc849e3c9424828599Peter Braytarget=NONE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayverbose=
cd348e325366620fe047edcc849e3c9424828599Peter Brayx_includes=NONE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayx_libraries=NONE
cd348e325366620fe047edcc849e3c9424828599Peter Braybindir='${exec_prefix}/bin'
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscosbindir='${exec_prefix}/sbin'
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscolibexecdir='${exec_prefix}/libexec'
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscodatadir='${prefix}/share'
d7c1415de39f4b07c85828f49cd1ee7a2a19eb9eLubos Koscosysconfdir='${prefix}/etc'
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscosharedstatedir='${prefix}/com'
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscolocalstatedir='${prefix}/var'
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscolibdir='${exec_prefix}/lib'
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayincludedir='${prefix}/include'
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayoldincludedir='/usr/include'
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayinfodir='${prefix}/info'
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Braymandir='${prefix}/man'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Kosco# Initialize some other variables.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braysubdirs=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayMFLAGS= MAKEFLAGS=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BraySHELL=${CONFIG_SHELL-/bin/sh}
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Maximum number of lines to put in a shell here document.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_max_here_lines=12
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Brayac_prev=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfor ac_option
cd348e325366620fe047edcc849e3c9424828599Peter Braydo
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal
e9dbb478e3339d96ce4f0af5c6ab7e1d35ebb86dVladimir Kotal # If the previous option needs an argument, assign it.
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal if test -n "$ac_prev"; then
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal eval "$ac_prev=\$ac_option"
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal ac_prev=
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal continue
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal fi
cd348e325366620fe047edcc849e3c9424828599Peter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray case "$ac_option" in
cd348e325366620fe047edcc849e3c9424828599Peter Bray -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray *) ac_optarg= ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray esac
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray # Accept the important Cygnus configure options, so we can diagnose typos.
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal case "$ac_option" in
4f3c0816485669143aa54f1c6461fcb47cf5bc5cVladimir Kotal
4f3c0816485669143aa54f1c6461fcb47cf5bc5cVladimir Kotal -bindir | --bindir | --bindi | --bind | --bin | --bi)
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco ac_prev=bindir ;;
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray bindir="$ac_optarg" ;;
17d95a647aba8c37d9ac34d97e4eed729aa46f67Naseer Ahmed
17d95a647aba8c37d9ac34d97e4eed729aa46f67Naseer Ahmed -build | --build | --buil | --bui | --bu)
17d95a647aba8c37d9ac34d97e4eed729aa46f67Naseer Ahmed ac_prev=build ;;
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco -build=* | --build=* | --buil=* | --bui=* | --bu=*)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray build="$ac_optarg" ;;
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray -cache-file | --cache-file | --cache-fil | --cache-fi \
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=cache_file ;;
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco cache_file="$ac_optarg" ;;
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
cd348e325366620fe047edcc849e3c9424828599Peter Bray ac_prev=datadir ;;
b17cb0705d90907337b3528aa7b8ed1700806f26Vladimir Kotal -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco | --da=*)
b17cb0705d90907337b3528aa7b8ed1700806f26Vladimir Kotal datadir="$ac_optarg" ;;
8f8c3f4555e5aa3160f03f2e9c55ddbd3381357bLubos Kosco
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco -disable-* | --disable-*)
8f8c3f4555e5aa3160f03f2e9c55ddbd3381357bLubos Kosco ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray # Reject names that are not valid shell variable names.
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco fi
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco ac_feature=`echo $ac_feature| sed 's/-/_/g'`
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco eval "enable_${ac_feature}=no" ;;
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray -enable-* | --enable-*)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco # Reject names that are not valid shell variable names.
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco fi
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco ac_feature=`echo $ac_feature| sed 's/-/_/g'`
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray case "$ac_option" in
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray *=*) ;;
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray *) ac_optarg=yes ;;
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray esac
1a5c2ab40bd94d2b2c63afda767ce7bbf29ecc4bJan Friedel eval "enable_${ac_feature}='$ac_optarg'" ;;
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal | --exec | --exe | --ex)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal ac_prev=exec_prefix ;;
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal | --exec=* | --exe=* | --ex=*)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal exec_prefix="$ac_optarg" ;;
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal -gas | --gas | --ga | --g)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal # Obsolete; use --with-gas.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal with_gas=yes ;;
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal -help | --help | --hel | --he)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal # Omit some internal or obsolete options to make the list less imposing.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray # This message is too long to be a string in the A/UX 3.1 sh.
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet cat << EOF
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetUsage: configure [options] [host]
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetOptions: [defaults in brackets after descriptions]
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetConfiguration:
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet --cache-file=FILE cache test results in FILE
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet --help print this message
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet --no-create do not create output files
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --quiet, --silent do not print \`checking...' messages
cd71fb134e037849c77364b50940b1870c4684ceVladimir Kotal --version print the version of autoconf that created configure
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoDirectory and file names:
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --prefix=PREFIX install architecture-independent files in PREFIX
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray [$ac_default_prefix]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray [same as prefix]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --bindir=DIR user executables in DIR [EPREFIX/bin]
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --datadir=DIR read-only architecture-independent data in DIR
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco [PREFIX/share]
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco --sharedstatedir=DIR modifiable architecture-independent data in DIR
cd348e325366620fe047edcc849e3c9424828599Peter Bray [PREFIX/com]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --libdir=DIR object code libraries in DIR [EPREFIX/lib]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --includedir=DIR C header files in DIR [PREFIX/include]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --infodir=DIR info documentation in DIR [PREFIX/info]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --mandir=DIR man documentation in DIR [PREFIX/man]
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --srcdir=DIR find the sources in DIR [configure dir or ..]
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --program-prefix=PREFIX prepend PREFIX to installed program names
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --program-suffix=SUFFIX append SUFFIX to installed program names
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco --program-transform-name=PROGRAM
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco run sed PROGRAM on installed program names
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayEOF
cd348e325366620fe047edcc849e3c9424828599Peter Bray cat << EOF
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayHost type:
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --build=BUILD configure for building on BUILD [BUILD=HOST]
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye --host=HOST configure for HOST [guessed]
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --target=TARGET configure for TARGET [TARGET=HOST]
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayFeatures and packages:
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal --x-includes=DIR X include files are in DIR
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal --x-libraries=DIR X library files are in DIR
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir KotalEOF
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal if test -n "$ac_help"; then
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco echo "--enable and --with options recognized:$ac_help"
cd348e325366620fe047edcc849e3c9424828599Peter Bray fi
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina exit 0 ;;
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina -host | --host | --hos | --ho)
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina ac_prev=host ;;
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina -host=* | --host=* | --hos=* | --ho=*)
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina host="$ac_optarg" ;;
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina -includedir | --includedir | --includedi | --included | --include \
cd348e325366620fe047edcc849e3c9424828599Peter Bray | --includ | --inclu | --incl | --inc)
cd348e325366620fe047edcc849e3c9424828599Peter Bray ac_prev=includedir ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cd348e325366620fe047edcc849e3c9424828599Peter Bray | --includ=* | --inclu=* | --incl=* | --inc=*)
cd348e325366620fe047edcc849e3c9424828599Peter Bray includedir="$ac_optarg" ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray -infodir | --infodir | --infodi | --infod | --info | --inf)
cd348e325366620fe047edcc849e3c9424828599Peter Bray ac_prev=infodir ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray infodir="$ac_optarg" ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray -libdir | --libdir | --libdi | --libd)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray ac_prev=libdir ;;
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray -libdir=* | --libdir=* | --libdi=* | --libd=*)
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco libdir="$ac_optarg" ;;
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray | --libexe | --libex | --libe)
8f8c3f4555e5aa3160f03f2e9c55ddbd3381357bLubos Kosco ac_prev=libexecdir ;;
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Kosco | --libexe=* | --libex=* | --libe=*)
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Kosco libexecdir="$ac_optarg" ;;
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Kosco
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Kosco -localstatedir | --localstatedir | --localstatedi | --localstated \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --localstate | --localstat | --localsta | --localst \
cd348e325366620fe047edcc849e3c9424828599Peter Bray | --locals | --local | --loca | --loc | --lo)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=localstatedir ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --localstate=* | --localstat=* | --localsta=* | --localst=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray localstatedir="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=mandir ;;
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray mandir="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -nfp | --nfp | --nf)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Obsolete; use --without-fp.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray with_fp=no ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco | --no-cr | --no-c)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray no_create=yes ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -no-recursion | --no-recursion | --no-recursio | --no-recursi \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray no_recursion=yes ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --oldin | --oldi | --old | --ol | --o)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=oldincludedir ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray oldincludedir="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal ac_prev=prefix ;;
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal prefix="$ac_optarg" ;;
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -program-prefix | --program-prefix | --program-prefi | --program-pref \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --program-pre | --program-pr | --program-p)
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco ac_prev=program_prefix ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray -program-prefix=* | --program-prefix=* | --program-prefi=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cd348e325366620fe047edcc849e3c9424828599Peter Bray program_prefix="$ac_optarg" ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -program-suffix | --program-suffix | --program-suffi | --program-suff \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --program-suf | --program-su | --program-s)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=program_suffix ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -program-suffix=* | --program-suffix=* | --program-suffi=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray program_suffix="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -program-transform-name | --program-transform-name \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --program-transform-nam | --program-transform-na \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --program-transform-n | --program-transform- \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-transform | --program-transfor \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-transfo | --program-transf \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-trans | --program-tran \
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal | --progr-tra | --program-tr | --program-t)
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye ac_prev=program_transform_name ;;
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye -program-transform-name=* | --program-transform-name=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-transform-nam=* | --program-transform-na=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-transform-n=* | --program-transform-=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-transform=* | --program-transfor=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-transfo=* | --program-transf=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --program-trans=* | --program-tran=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --progr-tra=* | --program-tr=* | --program-t=*)
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye program_transform_name="$ac_optarg" ;;
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye -q | -quiet | --quiet | --quie | --qui | --qu | --q \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | -silent | --silent | --silen | --sile | --sil)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray silent=yes ;;
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=sbindir ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --sbi=* | --sb=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray sbindir="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -sharedstatedir | --sharedstatedir | --sharedstatedi \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --sharedst | --shareds | --shared | --share | --shar \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --sha | --sh)
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye ac_prev=sharedstatedir ;;
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye | --sha=* | --sh=*)
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye sharedstatedir="$ac_optarg" ;;
d0767114e1a949e4a42358f5aeaa08590b87cd80Trond Norbye
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -site | --site | --sit)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=site ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -site=* | --site=* | --sit=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray site="$ac_optarg" ;;
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal ac_prev=srcdir ;;
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal srcdir="$ac_optarg" ;;
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye | --syscon | --sysco | --sysc | --sys | --sy)
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye ac_prev=sysconfdir ;;
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye sysconfdir="$ac_optarg" ;;
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye -target | --target | --targe | --targ | --tar | --ta | --t)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=target ;;
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray target="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
a3a5f5c0500064f4c6ac3658b1e3e4d838912329Lubos Kosco -v | -verbose | --verbose | --verbos | --verbo | --verb)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray verbose=yes ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -version | --version | --versio | --versi | --vers)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray echo "configure generated by autoconf version 2.13"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray exit 0 ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -with-* | --with-*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Reject names that are not valid shell variable names.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_package=`echo $ac_package| sed 's/-/_/g'`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray case "$ac_option" in
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *=*) ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *) ac_optarg=yes ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray esac
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray eval "with_${ac_package}='$ac_optarg'" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -without-* | --without-*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_package=`echo $ac_option|sed -e 's/-*without-//'`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Reject names that are not valid shell variable names.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_package=`echo $ac_package| sed 's/-/_/g'`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray eval "with_${ac_package}=no" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray --x)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Obsolete; use --with-x.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray with_x=yes ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --x-incl | --x-inc | --x-in | --x-i)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=x_includes ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
340e2c0d70fade14c720931c87652727b941c167Vladimir Kotal x_includes="$ac_optarg" ;;
340e2c0d70fade14c720931c87652727b941c167Vladimir Kotal
fe967af3e58b6c8feaecf15b06fc1d5401b07914Lubos Kosco -x-libraries | --x-libraries | --x-librarie | --x-librari \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prev=x_libraries ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray x_libraries="$ac_optarg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray echo "configure: warning: $ac_option: invalid host type" 1>&2
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test "x$nonopt" != xNONE; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray nonopt="$ac_option"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray esac
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braydone
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test -n "$ac_prev"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# File descriptor usage:
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# 0 standard input
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# 1 file creation
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# 2 errors and warnings
83dcb435c5eeeb8d0d0d906f5d25a1cb1db5c40bLubos Kosco# 3 some systems may open it to /dev/tty
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# 4 used on the Kubota Titan
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# 6 checking for... messages and results
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# 5 compiler messages saved in config.log
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test "$silent" = yes; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray exec 6>/dev/null
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayelse
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray exec 6>&1
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayexec 5>./config.log
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayecho "\
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayThis file contains any messages produced by compilers while
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayrunning configure, to aid debugging if configure makes a mistake.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray" 1>&5
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Strip out --no-create and --no-recursion so they do not pile up.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Also quote any args containing shell metacharacters.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_configure_args=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfor ac_arg
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braydo
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray case "$ac_arg" in
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -no-create | --no-create | --no-creat | --no-crea | --no-cre \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray | --no-cr | --no-c) ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray -no-recursion | --no-recursion | --no-recursio | --no-recursi \
340e2c0d70fade14c720931c87652727b941c167Vladimir Kotal | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_configure_args="$ac_configure_args '$ac_arg'" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *) ac_configure_args="$ac_configure_args $ac_arg" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray esac
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braydone
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# NLS nuisances.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Only set these to C if already set. These must not be set unconditionally
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# because not all systems understand e.g. LANG=C (notably SCO).
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Non-C LC_CTYPE values break the ctype check.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test "${LANG+set}" = set; then LANG=C; export LANG; fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# confdefs.h avoids OS command line length limits that DEFS can exceed.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayrm -rf conftest* confdefs.h
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# AIX cpp loses on an empty file, so make sure it contains at least a newline.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayecho > confdefs.h
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# A filename unique to this package, relative to the directory that
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal# configure is in, which we can look for to find out if srcdir is correct.
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalac_unique_file=lib/dns/name.c
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Find the source files, if location was not specified.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test -z "$srcdir"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_srcdir_defaulted=yes
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Try the directory containing this script, then its parent.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_prog=$0
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray srcdir=$ac_confdir
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test ! -r $srcdir/$ac_unique_file; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray srcdir=..
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal fi
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalelse
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_srcdir_defaulted=no
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test ! -r $srcdir/$ac_unique_file; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test "$ac_srcdir_defaulted" = yes; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray else
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
cd348e325366620fe047edcc849e3c9424828599Peter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Prefer explicitly selected file to automatically selected ones.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif test -z "$CONFIG_SITE"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test "x$prefix" != xNONE; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal else
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfor ac_site_file in $CONFIG_SITE; do
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test -r "$ac_site_file"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray echo "loading site script $ac_site_file"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray . "$ac_site_file"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braydone
578be34fc3aceb9831553e8611f8d5d59b711c3cVladimir Kotal
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotalif test -r "$cache_file"; then
578be34fc3aceb9831553e8611f8d5d59b711c3cVladimir Kotal echo "loading cache $cache_file"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray . $cache_file
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayelse
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal echo "creating cache $cache_file"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray > $cache_file
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_ext=c
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_cpp='$CPP $CPPFLAGS'
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotalac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braycross_compiling=$ac_cv_prog_cc_cross
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_exeext=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayac_objext=o
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_n= ac_c='
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray' ac_t=' '
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray else
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_n=-n ac_c= ac_t=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayelse
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_n= ac_c='\c' ac_t=
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Brayac_aux_dir=
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Brayfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray if test -f $ac_dir/install-sh; then
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray ac_aux_dir=$ac_dir
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray ac_install_sh="$ac_aux_dir/install-sh -c"
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray break
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco elif test -f $ac_dir/install.sh; then
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ac_aux_dir=$ac_dir
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ac_install_sh="$ac_aux_dir/install.sh -c"
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal break
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal fi
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotaldone
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalif test -z "$ac_aux_dir"; then
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalfi
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalac_config_guess=$ac_aux_dir/config.guess
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalac_config_sub=$ac_aux_dir/config.sub
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal# Make sure we can run config.sub.
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalfi
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotalecho $ac_n "checking host system type""... $ac_c" 1>&6
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoecho "configure:699: checking host system type" >&5
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayhost_alias=$host
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braycase "$host_alias" in
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayNONE)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray case $nonopt in
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray NONE)
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *) host_alias=$nonopt ;;
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Kosco esac ;;
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscoesac
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscohost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscohost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscohost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscohost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalecho "$ac_t""$host" 1>&6
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Kosco
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscoecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscoecho "configure:721: checking whether ${MAKE-make} sets \${MAKE}" >&5
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscoset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscoif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal echo $ac_n "(cached) $ac_c" 1>&6
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalelse
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Kosco cat > conftestmake <<\EOF
3aa0947feb67d3e8292d84776638be98dd97fdc3Lubos Koscoall:
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray @echo 'ac_maketemp="${MAKE}"'
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos KoscoEOF
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayif test -n "$ac_maketemp"; then
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco eval ac_cv_prog_make_${ac_make}_set=yes
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscoelse
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray eval ac_cv_prog_make_${ac_make}_set=no
70a0fa770eb06713d8ebf91093102044bc5799e0Lubos Koscofi
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalrm -f conftestmake
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalfi
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal echo "$ac_t""yes" 1>&6
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal SET_MAKE=
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotalelse
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal echo "$ac_t""no" 1>&6
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal SET_MAKE="MAKE=${MAKE-make}"
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotalfi
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal# Extract the first word of "ranlib", so it can be a program name with args.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayset dummy ranlib; ac_word=$2
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Koscoecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoecho "configure:750: checking for $ac_word" >&5
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco echo $ac_n "(cached) $ac_c" 1>&6
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalelse
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal if test -n "$RANLIB"; then
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalelse
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal ac_dummy="$PATH"
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal for ac_dir in $ac_dummy; do
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco test -z "$ac_dir" && ac_dir=.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if test -f $ac_dir/$ac_word; then
cd348e325366620fe047edcc849e3c9424828599Peter Bray ac_cv_prog_RANLIB="ranlib"
cd348e325366620fe047edcc849e3c9424828599Peter Bray break
cd348e325366620fe047edcc849e3c9424828599Peter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray done
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray IFS="$ac_save_ifs"
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Brayfi
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir KotalRANLIB="$ac_cv_prog_RANLIB"
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozinaif test -n "$RANLIB"; then
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray echo "$ac_t""$RANLIB" 1>&6
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Koscoelse
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco echo "$ac_t""no" 1>&6
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Koscofi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal# Find a good install program. We prefer a C program (faster),
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# so one script is as good as another. But avoid the broken or
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco# incompatible versions:
8f8c3f4555e5aa3160f03f2e9c55ddbd3381357bLubos Kosco# SysV /etc/install, /usr/sbin/install
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# SunOS /usr/etc/install
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet# IRIX /sbin/install
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# AIX /bin/install
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cd348e325366620fe047edcc849e3c9424828599Peter Bray# AFS /usr/afsws/bin/install, which mishandles nonexistent args
cd348e325366620fe047edcc849e3c9424828599Peter Bray# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cd348e325366620fe047edcc849e3c9424828599Peter Bray# ./install, which can be erroneously created by make from ./install.sh.
cd348e325366620fe047edcc849e3c9424828599Peter Brayecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
cd348e325366620fe047edcc849e3c9424828599Peter Brayecho "configure:789: checking for a BSD compatible install" >&5
cd348e325366620fe047edcc849e3c9424828599Peter Brayif test -z "$INSTALL"; then
cd348e325366620fe047edcc849e3c9424828599Peter Brayif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
cd348e325366620fe047edcc849e3c9424828599Peter Bray echo $ac_n "(cached) $ac_c" 1>&6
cd348e325366620fe047edcc849e3c9424828599Peter Brayelse
cd348e325366620fe047edcc849e3c9424828599Peter Bray IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray for ac_dir in $PATH; do
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco # Account for people who put trailing slashes in PATH elements.
cd348e325366620fe047edcc849e3c9424828599Peter Bray case "$ac_dir/" in
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *)
cd348e325366620fe047edcc849e3c9424828599Peter Bray # OSF1 and SCO ODT 3.0 have their own names for install.
cd348e325366620fe047edcc849e3c9424828599Peter Bray # Don't use installbsd from OSF since it installs stuff as root
cd348e325366620fe047edcc849e3c9424828599Peter Bray # by default.
cd348e325366620fe047edcc849e3c9424828599Peter Bray for ac_prog in ginstall scoinst install; do
cd348e325366620fe047edcc849e3c9424828599Peter Bray if test -f $ac_dir/$ac_prog; then
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray if test $ac_prog = install &&
cd348e325366620fe047edcc849e3c9424828599Peter Bray grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
cd348e325366620fe047edcc849e3c9424828599Peter Bray # AIX install. It has an incompatible calling convention.
cd348e325366620fe047edcc849e3c9424828599Peter Bray :
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco else
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco ac_cv_path_install="$ac_dir/$ac_prog -c"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray break 2
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco done
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray esac
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray done
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray IFS="$ac_save_IFS"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco if test "${ac_cv_path_install+set}" = set; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray INSTALL="$ac_cv_path_install"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray else
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal # As a last resort, use the slow shell script. We don't cache a
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal # path for INSTALL within a source directory, because that will
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # break other packages using the cache if that directory is
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # removed, or if the path is relative.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray INSTALL="$ac_install_sh"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray fi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayecho "$ac_t""$INSTALL" 1>&6
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# It thinks the first close brace ends the variable substitution.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braytest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braytest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
561ec0545f30e44833b6def5168abbd3ab5cf65aVladimir Kotaltest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal# Extract the first word of "ar", so it can be a program name with args.
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalset dummy ar; ac_word=$2
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayecho "configure:850: checking for $ac_word" >&5
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray echo $ac_n "(cached) $ac_c" 1>&6
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayelse
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco case "$AR" in
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco /*)
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ac_cv_path_AR="$AR" # Let the user override the test with a path.
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ;;
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ?:/*)
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye ;;
8e4e27126852837892d11016ca62f6b8f51997b8Lubos Kosco *)
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco ac_dummy="$PATH"
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco for ac_dir in $ac_dummy; do
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco test -z "$ac_dir" && ac_dir=.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco if test -f $ac_dir/$ac_word; then
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco ac_cv_path_AR="$ac_dir/$ac_word"
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco break
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco fi
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco done
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye IFS="$ac_save_ifs"
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ;;
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalesac
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotalfi
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos KoscoAR="$ac_cv_path_AR"
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoif test -n "$AR"; then
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco echo "$ac_t""$AR" 1>&6
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoelse
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco echo "$ac_t""no" 1>&6
cd348e325366620fe047edcc849e3c9424828599Peter Brayfi
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayARFLAGS="cruv"
cd348e325366620fe047edcc849e3c9424828599Peter Bray
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The POSIX ln(1) program. Non-POSIX systems may substitute
cd348e325366620fe047edcc849e3c9424828599Peter Bray# "copy" or something.
cd348e325366620fe047edcc849e3c9424828599Peter BrayLN=ln
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braycase "$AR" in
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray "")
cd348e325366620fe047edcc849e3c9424828599Peter Bray { echo "configure: error:
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscoar program not found. Please fix your PATH to include the directory in
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscowhich ar resides, or set AR in the environment with the full path to ar.
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco" 1>&2; exit 1; }
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco ;;
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoesac
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscofor ac_prog in etags emacs-etags
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscodo
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal# Extract the first word of "$ac_prog", so it can be a program name with args.
cd348e325366620fe047edcc849e3c9424828599Peter Brayset dummy $ac_prog; ac_word=$2
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Koscoecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Koscoecho "configure:906: checking for $ac_word" >&5
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray echo $ac_n "(cached) $ac_c" 1>&6
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayelse
cd348e325366620fe047edcc849e3c9424828599Peter Bray case "$ETAGS" in
cd348e325366620fe047edcc849e3c9424828599Peter Bray /*)
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ?:/*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
cd348e325366620fe047edcc849e3c9424828599Peter Bray ac_dummy="$PATH"
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco for ac_dir in $ac_dummy; do
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray test -z "$ac_dir" && ac_dir=.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray if test -f $ac_dir/$ac_word; then
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray ac_cv_path_ETAGS="$ac_dir/$ac_word"
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco break
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco fi
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco done
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco IFS="$ac_save_ifs"
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayesac
cd348e325366620fe047edcc849e3c9424828599Peter Brayfi
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos KoscoETAGS="$ac_cv_path_ETAGS"
cd348e325366620fe047edcc849e3c9424828599Peter Brayif test -n "$ETAGS"; then
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco echo "$ac_t""$ETAGS" 1>&6
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayelse
cd348e325366620fe047edcc849e3c9424828599Peter Bray echo "$ac_t""no" 1>&6
cd348e325366620fe047edcc849e3c9424828599Peter Brayfi
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Braytest -n "$ETAGS" && break
done
#
# Perl is optional; it is used only by some of the system test scripts.
#
for ac_prog in perl5 perl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:951: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$PERL" in
/*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_PERL="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
PERL="$ac_cv_path_PERL"
if test -n "$PERL"; then
echo "$ac_t""$PERL" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$PERL" && break
done
#
# Special processing of paths depending on whether --prefix,
# --sysconfdir or --localstatedir arguments were given. What's
# desired is some compatability with the way previous versions
# of BIND built; they defaulted to /usr/local for most parts of
# the installation, but named.boot/named.conf was in /etc
# and named.pid was in /var/run.
#
# So ... if none of --prefix, --sysconfdir or --localstatedir are
# specified, set things up that way. If --prefix is given, use
# it for sysconfdir and localstatedir the way configure normally
# would. To change the prefix for everything but leave named.conf
# in /etc or named.pid in /var/run, then do this the usual configure way:
# ./configure --prefix=/somewhere --sysconfdir=/etc
# ./configure --prefix=/somewhere --localstatedir=/var
#
# To put named.conf and named.pid in /usr/local with everything else,
# set the prefix explicitly to /usr/local even though that's the default:
# ./configure --prefix=/usr/local
#
case "$prefix" in
NONE)
case "$sysconfdir" in
'${prefix}/etc')
sysconfdir=/etc
;;
esac
case "$localstatedir" in
'${prefix}/var')
localstatedir=/var
;;
esac
;;
esac
#
# Make sure INSTALL uses an absolute path, else it will be wrong in all
# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
# configure based on the location of the file where it is substituted.
# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
# subdirectory of install-sh, This relative path will be wrong for all
# directories more than one level down from install-sh.
#
case "$INSTALL" in
/*)
;;
*)
#
# Not all systems have dirname.
#
ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
test "$ac_dir" = "$ac_prog" && ac_dir=.
test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
INSTALL="$ac_dir/$ac_prog"
;;
esac
#
# On these hosts, we really want to use cc, not gcc, even if it is
# found. The gcc that these systems have will not correctly handle
# pthreads.
#
# However, if the user sets $CC to be something, let that override
# our change.
#
if test "X$CC" = "X" ; then
case "$host" in
*-dec-osf*)
CC="cc"
;;
*-solaris*)
# Use Sun's cc if it is available, but watch
# out for /usr/ucb/cc; it will never be the right
# compiler to use.
#
# If setting CC here fails, the AC_PROG_CC done
# below might still find gcc.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
case "$ac_dir" in
/usr/ucb)
# exclude
;;
*)
if test -f "$ac_dir/cc"; then
CC="$ac_dir/cc"
break
fi
;;
esac
done
IFS="$ac_save_ifs"
;;
*-hp-hpux*)
CC="cc"
;;
mips-sgi-irix*)
CC="cc"
;;
esac
fi
#
# Find the machine's endian flavor.
#
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:1099: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 1106 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
; return 0; }
EOF
if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 1121 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:1132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_bigendian=no
fi
rm -f conftest*
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1152 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
fi
#
# was --with-openssl specified?
#
echo $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
echo "configure:1193: checking for compatible OpenSSL library" >&5
# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
withval="$with_openssl"
use_openssl="$withval"
else
use_openssl="no"
fi
#
# If the user didn't specify where openssl is, and we didn't find or it
# is incompatible with our code, use our internal one.
#
# XXX This appears to assume that the user specified path is correct,
# and does no checking.
#
case "$use_openssl" in
no)
DST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
dst_privateopenssl='openssl'
DST_OPENSSL_INC='-I${srcdir}/../openssl/include'
DST_OPENSSL_LIB=''
DST_OPENSSL_OBJS='${OPENSSLOBJS}'
echo "$ac_t""using private library" 1>&6
;;
yes)
{ echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
;;
*)
DST_PRIVATEOPENSSL=''
dst_privateopenssl=''
DST_OPENSSL_INC="-I$use_openssl/include"
DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
DST_OPENSSL_LIB=''
echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
;;
esac
#
# This would include the system openssl path (and linker options to use
# it as needed) if it is found.
#
#
# was --with-gssapi specified?
#
echo $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
echo "configure:1250: checking for GSSAPI library" >&5
# Check whether --with-gssapi or --without-gssapi was given.
if test "${with_gssapi+set}" = set; then
withval="$with_gssapi"
use_gssapi="$withval"
else
use_gssapi="no"
fi
case "$use_gssapi" in
no)
USE_GSSAPI=''
DST_GSSAPI_INC=''
DNS_GSSAPI_LIBS=''
echo "$ac_t""not specified" 1>&6
;;
yes)
{ echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
;;
*)
USE_GSSAPI='-DGSSAPI'
DST_GSSAPI_INC="-I$use_gssapi/include"
DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
;;
esac
#
# was --with-randomdev specified?
#
echo $ac_n "checking for random device""... $ac_c" 1>&6
echo "configure:1286: checking for random device" >&5
# Check whether --with-randomdev or --without-randomdev was given.
if test "${with_randomdev+set}" = set; then
withval="$with_randomdev"
use_randomdev="$withval"
else
use_randomdev="unspec"
fi
case "$use_randomdev" in
unspec)
case "$host" in
*-openbsd*)
cat >> confdefs.h <<\EOF
#define PATH_RANDOMDEV "/dev/srandom"
EOF
echo "$ac_t""using /dev/srandom" 1>&6
;;
*-linux*|*-freebsd*|*-netbsd*)
cat >> confdefs.h <<\EOF
#define PATH_RANDOMDEV "/dev/random"
EOF
echo "$ac_t""using /dev/random" 1>&6
;;
*)
echo "$ac_t""not found" 1>&6
;;
esac
;;
yes)
{ echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
;;
*)
cat >> confdefs.h <<EOF
#define PATH_RANDOMDEV "$use_randomdev"
EOF
echo "$ac_t""using "$use_randomdev"" 1>&6
;;
esac
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1333: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="gcc"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1363: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_prog_rejected=no
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
break
fi
done
IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# -gt 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
set dummy "$ac_dir/$ac_word" "$@"
shift
ac_cv_prog_CC="$@"
fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test -z "$CC"; then
case "`uname -s`" in
*win32* | *WIN32*)
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1414: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="cl"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
;;
esac
fi
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1446: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
#line 1457 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
ac_cv_prog_cc_cross=no
else
ac_cv_prog_cc_cross=yes
fi
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1488: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1493: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
fi
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
else
GCC=
fi
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1521: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
ac_cv_prog_cc_g=yes
else
ac_cv_prog_cc_g=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1557: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_YACC="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
echo "$ac_t""$YACC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1589: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1604 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1621 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1638 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1669: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1674 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1699 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "memchr" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1717 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 1738 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
for ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1777: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1782 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1815: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1820 "configure"
#include "confdefs.h"
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
; return 0; }
EOF
if { (eval echo configure:1869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:1890: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
#line 1897 "configure"
#include "confdefs.h"
int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:1904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
no) cat >> confdefs.h <<\EOF
#define inline
EOF
;;
*) cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
;;
esac
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1930: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1935 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
rm -rf conftest*
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1963: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1968 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
#
# Begin pthreads checking.
#
# First, decide whether to use multithreading or not.
#
echo $ac_n "checking whether to look for thread support""... $ac_c" 1>&6
echo "configure:2004: checking whether to look for thread support" >&5
# Check whether --enable-threads or --disable-threads was given.
if test "${enable_threads+set}" = set; then
enableval="$enable_threads"
:
fi
case "$enable_threads" in
yes|'')
echo "$ac_t""yes" 1>&6
use_threads=true
;;
no)
echo "$ac_t""no" 1>&6
use_threads=false
;;
*)
{ echo "configure: error: "--enable-threads takes yes or no"" 1>&2; exit 1; }
;;
esac
if $use_threads
then
#
# Search for / configure pthreads in a system-dependent fashion.
#
case "$host" in
*-netbsd*)
# NetBSD has multiple pthreads implementations. The
# recommended one to use is "unproven-pthreads". The
# older "mit-pthreads" may also work on some NetBSD
# versions. The PTL2 thread library does not
# currently work with bind9, but can be chosen with
# the --with-ptl2 option for those who wish to
# experiment with it.
CC="gcc"
echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
echo "configure:2041: checking which NetBSD thread library to use" >&5
# Check whether --with-ptl2 or --without-ptl2 was given.
if test "${with_ptl2+set}" = set; then
withval="$with_ptl2"
use_ptl2="$withval"
else
use_ptl2="no"
fi
: ${LOCALBASE:=/usr/pkg}
if test "X$use_ptl2" = "Xyes"
then
echo "$ac_t""PTL2" 1>&6
echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
CC=ptlgcc
else
echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
if test ! -d $LOCALBASE/pthreads
then
{ echo "configure: error: no thread library found.
Please install the devel/unproven-pthreads package and rerun configure.
" 1>&2; exit 1; }
fi
pkg="$LOCALBASE/pthreads"
lib1="-L$pkg/lib -Wl,-R$pkg/lib"
lib2="-lpthread -lm -lgcc -lpthread"
LIBS="$lib1 $lib2 $LIBS"
CPPFLAGS="$CPPFLAGS -I$pkg/include"
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
fi
;;
*)
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2080: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2088 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2125: checking for __pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2133 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create();
int main() {
__pthread_create()
; return 0; }
EOF
if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
echo "configure:2170: checking for __pthread_create_system in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2178 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create_system();
int main() {
__pthread_create_system()
; return 0; }
EOF
if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
echo "configure:2215: checking for pthread_create in -lc_r" >&5
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc_r $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2223 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lc_r $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
echo "configure:2260: checking for pthread_create in -lc" >&5
ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2268 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo c | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lc $LIBS"
else
echo "$ac_t""no" 1>&6
use_threads=false
fi
fi
fi
fi
fi
;;
esac
fi
if $use_threads
then
#
# We'd like to use sigwait() too
#
echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
echo "configure:2325: checking for sigwait in -lc" >&5
ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2333 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2366: checking for sigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2374 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2407: checking for _Psigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2415 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _Psigwait();
int main() {
_Psigwait()
; return 0; }
EOF
if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
fi
fi
echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
echo "configure:2456: checking for pthread_attr_getstacksize" >&5
if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2461 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_attr_getstacksize(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_attr_getstacksize();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
choke me
#else
pthread_attr_getstacksize();
#endif
; return 0; }
EOF
if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_pthread_attr_getstacksize=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_pthread_attr_getstacksize=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'pthread_attr_getstacksize`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# Additional OS-specific issues related to pthreads and sigwait.
#
case "$host" in
#
# One more place to look for sigwait.
#
*-freebsd*)
echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
echo "configure:2516: checking for sigwait in -lc_r" >&5
ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc_r $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2524 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# BSDI 3.0 through 4.0.1 needs pthread_init() to be
# called before certain pthreads calls. This is deprecated
# in BSD/OS 4.1.
#
*-bsdi3.*|*-bsdi4.0*)
cat >> confdefs.h <<\EOF
#define NEED_PTHREAD_INIT 1
EOF
;;
#
# LinuxThreads requires some changes to the way we
# deal with signals.
#
*-linux*)
cat >> confdefs.h <<\EOF
#define HAVE_LINUXTHREADS 1
EOF
;;
#
# Ensure the right sigwait() semantics on Solaris and make
# sure we call pthread_setconcurrency.
#
*-solaris*)
cat >> confdefs.h <<\EOF
#define _POSIX_PTHREAD_SEMANTICS 1
EOF
echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
echo "configure:2590: checking for pthread_setconcurrency" >&5
if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2595 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_setconcurrency(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_setconcurrency();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
choke me
#else
pthread_setconcurrency();
#endif
; return 0; }
EOF
if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_pthread_setconcurrency=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_pthread_setconcurrency=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define CALL_PTHREAD_SETCONCURRENCY 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# UnixWare does things its own way.
#
*-UnixWare*)
cat >> confdefs.h <<\EOF
#define HAVE_UNIXWARE_SIGWAIT 1
EOF
;;
esac
#
# Look for sysconf to allow detection of the number of processors.
#
echo $ac_n "checking for sysconf""... $ac_c" 1>&6
echo "configure:2656: checking for sysconf" >&5
if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2661 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sysconf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sysconf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sysconf) || defined (__stub___sysconf)
choke me
#else
sysconf();
#endif
; return 0; }
EOF
if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_sysconf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_sysconf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SYSCONF 1
EOF
else
echo "$ac_t""no" 1>&6
fi
if test "X$GCC" = "Xyes"; then
case "$host" in
*-freebsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-openbsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
LIBS="$LIBS -lthread"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
esac
else
case $host in
*-dec-osf*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
CC="$CC -mt"
CCOPT="$CCOPT -mt"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-UnixWare*)
CC="$CC -Kthread"
CCOPT="$CCOPT -Kthread"
;;
esac
fi
ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
thread_dir=pthreads
else
ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
thread_dir=nothreads
fi
ISC_THREAD_DIR=$thread_dir
#
# flockfile is usually provided by pthreads, but we may want to use it
# even if compiled with --disable-threads.
#
echo $ac_n "checking for flockfile""... $ac_c" 1>&6
echo "configure:2761: checking for flockfile" >&5
if eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2766 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char flockfile(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char flockfile();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_flockfile) || defined (__stub___flockfile)
choke me
#else
flockfile();
#endif
; return 0; }
EOF
if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_flockfile=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_flockfile=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_FLOCKFILE 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# Indicate what the final decision was regarding threads.
#
echo $ac_n "checking whether to build with threads""... $ac_c" 1>&6
echo "configure:2816: checking whether to build with threads" >&5
if $use_threads; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
#
# End of pthreads stuff.
#
#
# Additional compiler settings.
#
MKDEPCC="$CC"
MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
else
case $host in
*-dec-osf*)
CC="$CC -std"
CCOPT="$CCOPT -std"
MKDEPCC="$CC"
;;
*-hp-hpux*)
CC="$CC -Ae -z"
# The version of the C compiler that constantly warns about
# 'const' as well as alignment issues is unfortunately not
# able to be discerned via the version of the operating
# system, nor does cc have a version flag.
case "`$CC +W 123 2>&1`" in
*Unknown?option*)
STD_CWARNINGS="+w1"
;;
*)
# Turn off the pointlessly noisy warnings.
STD_CWARNINGS="+w1 +W 474,530"
;;
esac
CCOPT="$CCOPT -Ae -z"
LIBS="-Wl,+vnocompatwarnings $LIBS"
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
;;
*-sgi-irix*)
STD_CWARNINGS="-fullwarn -woff 1209"
#
# Silence more than 250 instances of
# "prototyped function redeclared without prototype"
# and 11 instances of
# "variable ... was set but never used"
# from lib/dns/sec/openssl.
#
IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
;;
*-solaris*)
MKDEPCFLAGS="-xM"
;;
*-UnixWare*)
CC="$CC -w"
YACC="yacc" # bison calls alloca, avoid on UnixWare
;;
esac
fi
#
# NLS
#
echo $ac_n "checking for catgets""... $ac_c" 1>&6
echo "configure:2892: checking for catgets" >&5
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2897 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char catgets(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char catgets();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_catgets) || defined (__stub___catgets)
choke me
#else
catgets();
#endif
; return 0; }
EOF
if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_catgets=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_catgets=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CATGETS 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# -lxnet buys us one big porting headache... standards, gotta love 'em.
#
# AC_CHECK_LIB(xnet, socket, ,
# AC_CHECK_LIB(socket, socket)
# AC_CHECK_LIB(nsl, inet_ntoa)
# )
#
# Use this for now, instead:
#
case "$host" in
mips-sgi-irix*)
;;
*)
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:2958: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2966 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lsocket $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
echo "configure:3005: checking for inet_ntoa in -lnsl" >&5
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3013 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntoa();
int main() {
inet_ntoa()
; return 0; }
EOF
if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
fi
;;
esac
#
#
# GNU libtool support
#
# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
withval="$with_libtool"
use_libtool="$withval"
else
use_libtool="no"
fi
case $use_libtool in
yes)
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_shared=yes
fi
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_static=yes
fi
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_fast_install=yes
fi
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:3139: checking build system type" >&5
build_alias=$build
case "$build_alias" in
NONE)
case $nonopt in
NONE) build_alias=$host_alias ;;
*) build_alias=$nonopt ;;
esac ;;
esac
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
withval="$with_gnu_ld"
test "$withval" = no || with_gnu_ld=yes
else
with_gnu_ld=no
fi
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:3168: checking for ld used by GCC" >&5
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:3192: checking for GNU ld" >&5
else
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:3195: checking for non-GNU ld" >&5
fi
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
LD="$ac_cv_path_LD"
if test -n "$LD"; then
echo "$ac_t""$LD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:3230: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi
fi
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:3246: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi
NM="$ac_cv_path_NM"
echo "$ac_t""$NM" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3282: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
rm -f conftestdata
ac_cv_prog_LN_S="ln -s"
else
ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
enableval="$enable_libtool_lock"
:
fi
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3331 "configure"' > conftest.$ac_ext
if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
echo "configure:3353: checking whether the C compiler needs -belf" >&5
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3358 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
lt_cv_cc_needs_belf=no
fi
rm -f conftest*
fi
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
esac
# Save cache, so that ltconfig can load it
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
O=lo
A=la
;;
*)
O=o
A=a
LIBTOOL=
;;
esac
# File name extension for static archive files, for those few places
# where they are treated differently from dynamic ones.
SA=a
#
# Here begins a very long section to determine the system's networking
# capabilities. The order of the tests is signficant.
#
#
# IPv6
#
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
enableval="$enable_ipv6"
:
fi
case "$enable_ipv6" in
yes|''|autodetect)
cat >> confdefs.h <<\EOF
#define WANT_IPV6 1
EOF
;;
no)
;;
esac
#
# We do the IPv6 compilation checking after libtool so that we can put
# the right suffix on the files.
#
echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
echo "configure:3516: checking for IPv6 structures" >&5
cat > conftest.$ac_ext <<EOF
#line 3518 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main() {
struct sockaddr_in6 sin6; return (0);
; return 0; }
EOF
if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
found_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
found_ipv6=no
fi
rm -f conftest*
#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests to LIBS is properly set.
#
echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
echo "configure:3546: checking for Kame IPv6 support" >&5
# Check whether --with-kame or --without-kame was given.
if test "${with_kame+set}" = set; then
withval="$with_kame"
use_kame="$withval"
else
use_kame="no"
fi
case "$use_kame" in
no)
;;
yes)
kame_path=/usr/local/v6
;;
*)
kame_path="$use_kame"
;;
esac
case "$use_kame" in
no)
echo "$ac_t""no" 1>&6
;;
*)
if test -f $kame_path/lib/libinet6.a; then
echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
LIBS="-L$kame_path/lib -linet6 $LIBS"
else
{ echo "configure: error: $kame_path/lib/libinet6.a not found.
Please choose the proper path with the following command:
configure --with-kame=PATH
" 1>&2; exit 1; }
fi
;;
esac
#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion. So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
*-bsdi4.[01]*)
ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
isc_netinet6in6_hack="#include <netinet6/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
isc_netinet6in6_hack=""
;;
esac
#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
*-UnixWare*)
ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
isc_netinetin6_hack="#include <netinet/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
isc_netinetin6_hack=""
;;
esac
#
# Now delve deeper into the suitability of the IPv6 support.
#
case "$found_ipv6" in
yes)
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3636: checking for in6addr_any" >&5
cat > conftest.$ac_ext <<EOF
#line 3638 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
int main() {
struct in6_addr in6; in6 = in6addr_any; return (0);
; return 0; }
EOF
if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
fi
rm -f conftest*
echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
echo "configure:3665: checking for sin6_scope_id in struct sockaddr_in6" >&5
cat > conftest.$ac_ext <<EOF
#line 3667 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
fi
rm -f conftest*
LWRES_HAVE_SIN6_SCOPE_ID="$result"
echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
echo "configure:3695: checking for in6_pktinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3697 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct in6_pktinfo xyzzy; return (0);
; return 0; }
EOF
if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
fi
rm -f conftest*
;;
no)
ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
ISC_IPV6_H="ipv6.h"
ISC_IPV6_O="ipv6.$O"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
;;
esac
#
# Check for network functions that are often missing. We do this
# after the libtool checking, so we can put the right suffix on
# the files. It also needs to come after checking for a Kame add-on,
# which provides some (all?) of the desired functions.
#
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3760: checking for inet_ntop" >&5
cat > conftest.$ac_ext <<EOF
#line 3762 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_ntop(0, 0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3787: checking for inet_pton" >&5
cat > conftest.$ac_ext <<EOF
#line 3789 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_pton(0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3814: checking for inet_aton" >&5
cat > conftest.$ac_ext <<EOF
#line 3816 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
struct in_addr in; inet_aton(0, &in); return (0);
; return 0; }
EOF
if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
fi
rm -f conftest*
#
# Look for a 4.4BSD-style sa_len member in struct sockaddr.
#
case "$host" in
*-dec-osf*)
# Turn on 4.4BSD style sa_len support.
cat >> confdefs.h <<\EOF
#define _SOCKADDR_LEN 1
EOF
;;
esac
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:3859: checking for sa_len in struct sockaddr" >&5
cat > conftest.$ac_ext <<EOF
#line 3861 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa; sa.sa_len = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
fi
rm -f conftest*
#
# Look for a 4.4BSD or 4.3BSD struct msghdr
#
echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
echo "configure:3891: checking for struct msghdr flavor" >&5
cat > conftest.$ac_ext <<EOF
#line 3893 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct msghdr msg; msg.msg_flags = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""4.4BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""4.3BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
fi
rm -f conftest*
#
# Look for in_port_t.
#
echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
echo "configure:3920: checking for type in_port_t" >&5
cat > conftest.$ac_ext <<EOF
#line 3922 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
int main() {
in_port_t port = 25; return (0);
; return 0; }
EOF
if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
fi
rm -f conftest*
#
# Check for addrinfo
#
echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
echo "configure:3949: checking for struct addrinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3951 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
struct addrinfo a; return (0);
; return 0; }
EOF
if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
cat >> confdefs.h <<\EOF
#define HAVE_ADDRINFO 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
fi
rm -f conftest*
echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
echo "configure:3978: checking for int sethostent" >&5
cat > conftest.$ac_ext <<EOF
#line 3980 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = sethostent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
echo "configure:4003: checking for int endhostent" >&5
cat > conftest.$ac_ext <<EOF
#line 4005 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endhostent(); return(0);
; return 0; }
EOF
if { (eval echo configure:4013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
echo "configure:4028: checking for getnetbyaddr(in_addr_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 4030 "configure"
#include "confdefs.h"
#include <netdb.h>
struct netent *getnetbyaddr(in_addr_t, int);
int main() {
; return 0; }
EOF
if { (eval echo configure:4039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
fi
rm -f conftest*
echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
echo "configure:4054: checking for int setnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 4056 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = setnetent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:4064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
echo "configure:4079: checking for int endnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 4081 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endnetent(); return(0);
; return 0; }
EOF
if { (eval echo configure:4089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
echo "configure:4104: checking for gethostbyaddr(const void *, size_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 4106 "configure"
#include "confdefs.h"
#include <netdb.h>
struct hostent *gethostbyaddr(const void *, size_t, int);
int main() {
return(0);
; return 0; }
EOF
if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
fi
rm -f conftest*
echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
echo "configure:4130: checking for h_errno in netdb.h" >&5
cat > conftest.$ac_ext <<EOF
#line 4132 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
h_errno = 1; return(0);
; return 0; }
EOF
if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
fi
rm -f conftest*
echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
echo "configure:4155: checking for getipnodebyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4160 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getipnodebyname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getipnodebyname();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
choke me
#else
getipnodebyname();
#endif
; return 0; }
EOF
if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
fi
echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
echo "configure:4204: checking for getnameinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4209 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getnameinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getnameinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
choke me
#else
getnameinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getnameinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getnameinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
fi
echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
echo "configure:4253: checking for getaddrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4258 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getaddrinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getaddrinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
choke me
#else
getaddrinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
cat >> confdefs.h <<\EOF
#define HAVE_GETADDRINFO 1
EOF
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
fi
#
# Look for a sysctl call to get the list of network interfaces.
#
echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
echo "configure:4313: checking for interface list sysctl" >&5
cat > conftest.$ac_ext <<EOF
#line 4315 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#ifdef NET_RT_IFLIST
found_rt_iflist
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "found_rt_iflist" >/dev/null 2>&1; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_IFLIST_SYSCTL 1
EOF
else
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# Check for some other useful functions that are not ever-present.
#
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:4345: checking for strsep" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4350 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strsep(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strsep();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_strsep) || defined (__stub___strsep)
choke me
#else
strsep();
#endif
; return 0; }
EOF
if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strsep=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_strsep=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
else
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:4394: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4399 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char vsnprintf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
choke me
#else
vsnprintf();
#endif
; return 0; }
EOF
if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_vsnprintf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
fi
echo $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
echo "configure:4451: checking for sizeof(long long int) == sizeof(long int)" >&5
if test "$cross_compiling" = yes; then
echo "$ac_t""default yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
cat > conftest.$ac_ext <<EOF
#line 4457 "configure"
#include "confdefs.h"
main() { exit(!(sizeof(long long int) == sizeof(long int))); }
EOF
if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
fi
rm -fr conftest*
fi
#
# Security Stuff
#
echo $ac_n "checking for chroot""... $ac_c" 1>&6
echo "configure:4481: checking for chroot" >&5
if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4486 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char chroot(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char chroot();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_chroot) || defined (__stub___chroot)
choke me
#else
chroot();
#endif
; return 0; }
EOF
if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_chroot=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_chroot=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CHROOT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
for ac_hdr in linux/capability.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4535: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4540 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in linux/prctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4575: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4580 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#
# BSD/OS, and perhaps some others, don't define rlim_t.
#
echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6
echo "configure:4616: checking for type rlim_t" >&5
cat > conftest.$ac_ext <<EOF
#line 4618 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
int main() {
rlim_t rl = 19671212; return (0);
; return 0; }
EOF
if { (eval echo configure:4628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_RLIM_T 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# Random remaining OS-specific issues involving compiler warnings.
# XXXDCL print messages to indicate some compensation is being done?
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
case "$host" in
*-bsdi3.1*)
hack_shutup_sputaux=yes
;;
*-bsdi4.0*)
hack_shutup_sigwait=yes
hack_shutup_sputaux=yes
;;
*-bsdi4.1*)
hack_shutup_stdargcast=yes
;;
*-solaris2.8)
hack_shutup_pthreadonceinit=yes
;;
esac
case "$hack_shutup_pthreadonceinit" in
yes)
#
# Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
;;
esac
case "$hack_shutup_sigwait" in
yes)
#
# Shut up a -Wmissing-prototypes warning for sigwait().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SIGWAIT 1
EOF
;;
esac
case "$hack_shutup_sputaux" in
yes)
#
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SPUTAUX 1
EOF
;;
esac
case "$hack_shutup_stdargcast" in
yes)
#
# Shut up a -Wcast-qual warning from va_start().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_STDARG_CAST 1
EOF
;;
esac
#
# Look for jade, preferring openjade if installed.
#
for ac_prog in openjade jade
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4721: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$JADE" in
/*)
ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_JADE="$JADE" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_JADE="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
JADE="$ac_cv_path_JADE"
if test -n "$JADE"; then
echo "$ac_t""$JADE" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$JADE" && break
done
test -n "$JADE" || JADE="jade"
#
# Look for SGML files. NetBSD has them under /usr/pkg/share
# (if installed), FreeBSD has them under /usr/local/share.
#
SGMLDIR=""
echo $ac_n "checking for SGML files""... $ac_c" 1>&6
echo "configure:4767: checking for SGML files" >&5
for d in /usr/pkg/share/sgml /usr/local/share/sgml
do
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
then
SGMLDIR=$d
echo "$ac_t""in $SGMLDIR" 1>&6
break
fi
done
if test "X$SGMLDIR" = "X"
then
echo "$ac_t"""not found"" 1>&6;
SGMLDIR=/usr/local/share/sgml
fi
#
# Look for XML files.
#
XGMLDIR=""
echo $ac_n "checking for XML files""... $ac_c" 1>&6
echo "configure:4793: checking for XML files" >&5
for d in /usr/pkg/share/xml /usr/local/share/xml
do
if test -f $d/dtd/docbook/docbookx.dtd
then
XMLDIR=$d
echo "$ac_t""in $XMLDIR" 1>&6
break
fi
done
if test "X$XMLDIR" = "X"
then
echo "$ac_t"""not found"" 1>&6;
XMLDIR=/usr/local/share/xml
fi
#
# Substitutions
#
BIND9_TOP_BUILDDIR=`pwd`
if test "X$srcdir" != "X"; then
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
else
BIND9_ISC_BUILDINCLUDE=""
BIND9_DNS_BUILDINCLUDE=""
BIND9_OMAPI_BUILDINCLUDE=""
BIND9_LWRES_BUILDINCLUDE=""
fi
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
. $srcdir/version
BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/api
LIBLWRES_API=$srcdir/lib/lwres/api
LIBOMAPI_API=$srcdir/lib/omapi/api
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/check/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
doc/Makefile
doc/arm/catalog
doc/arm/nominum-docbook-html.dsl
doc/arm/validate.sh
doc/arm/genhtml.sh
isc-config.sh
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@CCOPT@%$CCOPT%g
s%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@LN@%$LN%g
s%@ETAGS@%$ETAGS%g
s%@PERL@%$PERL%g
s%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
s%@dst_privateopenssl@%$dst_privateopenssl%g
s%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
s%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
s%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
s%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
s%@USE_GSSAPI@%$USE_GSSAPI%g
s%@DST_GSSAPI_INC@%$DST_GSSAPI_INC%g
s%@DNS_GSSAPI_LIBS@%$DNS_GSSAPI_LIBS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@ISC_PLATFORM_USETHREADS@%$ISC_PLATFORM_USETHREADS%g
s%@ISC_THREAD_DIR@%$ISC_THREAD_DIR%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@LN_S@%$LN_S%g
s%@LIBTOOL@%$LIBTOOL%g
s%@O@%$O%g
s%@A@%$A%g
s%@SA@%$SA%g
s%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
s%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
s%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
s%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
s%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
s%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
s%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
s%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
s%@ISC_PLATFORM_FIXIN6ISADDR@%$ISC_PLATFORM_FIXIN6ISADDR%g
s%@ISC_IPV6_H@%$ISC_IPV6_H%g
s%@ISC_IPV6_O@%$ISC_IPV6_O%g
s%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
s%@ISC_IPV6_C@%$ISC_IPV6_C%g
s%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
s%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
s%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
s%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
s%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
s%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
s%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
s%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
s%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
s%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
s%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
s%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
s%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
s%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
s%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
s%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
s%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
s%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
s%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
s%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
s%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
s%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
s%@JADE@%$JADE%g
s%@SGMLDIR@%$SGMLDIR%g
s%@XMLDIR@%$XMLDIR%g
s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
s%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
s%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
s%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
/@BIND9_INCLUDES@/r $BIND9_INCLUDES
s%@BIND9_INCLUDES@%%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
s%@BIND9_VERSION@%$BIND9_VERSION%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_API@%%g
/@LIBLWRES_API@/r $LIBLWRES_API
s%@LIBLWRES_API@%%g
/@LIBOMAPI_API@/r $LIBOMAPI_API
s%@LIBOMAPI_API@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/check/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
doc/Makefile
doc/arm/catalog
doc/arm/nominum-docbook-html.dsl
doc/arm/validate.sh
doc/arm/genhtml.sh
isc-config.sh
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
chmod a+x isc-config.sh
# Tell Emacs to edit this file in shell mode.
# Local Variables:
# mode: sh
# End: