configure revision 495c00c1c995c96587b38d2d5fa41f127869d5b8
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington# From configure.in Revision: 1.123
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## Copyright (C) 1996-1999 Free Software Foundation, Inc.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff##
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## This program is free software; you can redistribute it and/or modify
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## it under the terms of the GNU General Public License as published by
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## the Free Software Foundation; either version 2 of the License, or
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## (at your option) any later version.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff##
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## This program is distributed in the hope that it will be useful, but
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## WITHOUT ANY WARRANTY; without even the implied warranty of
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## General Public License for more details.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews##
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## You should have received a copy of the GNU General Public License
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## along with this program; if not, write to the Free Software
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews##
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## As a special exception to the GNU General Public License, if you
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## distribute this file as part of a program that contains a
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## configuration script generated by Autoconf, you may include it under
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## the same distribution terms that you use for the rest of that program.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews# serial 40 AC_PROG_LIBTOOL
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
07eee0ceda40ac28670d7e06338ce1a8419f045cBrian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_SHARED - implement the --enable-shared flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_SHARED[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_STATIC - implement the --enable-static flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PROG_LD - find the path to the GNU or non-GNU linker
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PROG_NM - find the path to a BSD-compatible name lister
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_CHECK_LIBM - check for math library
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the libltdl convenience library, adds --enable-ltdl-convenience to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# to be `${top_builddir}/libltdl'. Make sure you start DIR with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# flat, and, if you're not using automake, define top_builddir as
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# appropriate in the Makefiles.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the libltdl installable library, and adds --enable-ltdl-install to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# to be `${top_builddir}/libltdl'. Make sure you start DIR with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# flat, and, if you're not using automake, define top_builddir as
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# appropriate in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Guess values for system-dependent variables and create Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Generated automatically using autoconf version 2.13
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# This configure script is free software; the Free Software Foundation
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# gives unlimited permission to copy, distribute and modify it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Defaults:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_default_prefix=/usr/local
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Any additions from configure.in:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-mit-pthreads use the mit-pthreads thread library"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-ptl2 use the ptl2 thread library"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-libtool use GNU libtool"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-shared[=PKGS] build shared libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-static[=PKGS] build static libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_help="$ac_help
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --enable-ipv6 use IPv6 [default=autodetect]"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_help="$ac_help
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Initialize some variables set by options.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The variables have the same names as the options, with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# dashes changed to underlines.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbuild=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncache_file=./config.cache
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexec_prefix=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhost=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonno_create=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonnonopt=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonno_recursion=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonprefix=NONE
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyprogram_prefix=NONE
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyprogram_suffix=NONE
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyprogram_transform_name=s,x,x,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleysilent=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleysite=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsrcdir=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontarget=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonverbose=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonx_includes=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonx_libraries=NONE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbindir='${exec_prefix}/bin'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsbindir='${exec_prefix}/sbin'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibexecdir='${exec_prefix}/libexec'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondatadir='${prefix}/share'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsysconfdir='${prefix}/etc'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleysharedstatedir='${prefix}/com'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleylocalstatedir='${prefix}/var'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleylibdir='${exec_prefix}/lib'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyincludedir='${prefix}/include'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyoldincludedir='/usr/include'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinfodir='${prefix}/info'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleymandir='${prefix}/man'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Initialize some other variables.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonsubdirs=
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian WellingtonMFLAGS= MAKEFLAGS=
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian WellingtonSHELL=${CONFIG_SHELL-/bin/sh}
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# Maximum number of lines to put in a shell here document.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonac_max_here_lines=12
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonac_prev=
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonfor ac_option
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtondo
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # If the previous option needs an argument, assign it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$ac_prev"; then
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington eval "$ac_prev=\$ac_option"
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington ac_prev=
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington continue
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington fi
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington case "$ac_option" in
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington *) ac_optarg= ;;
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington esac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson # Accept the important Cygnus configure options, so we can diagnose typos.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case "$ac_option" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -bindir | --bindir | --bindi | --bind | --bin | --bi)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=bindir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bindir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -build | --build | --buil | --bui | --bu)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=build ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley build="$ac_optarg" ;;
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=cache_file ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cache_file="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=datadir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --da=*)
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff datadir="$ac_optarg" ;;
8b57e8fcf64499c684fb2303576909bcb427decdMark Andrews
8b57e8fcf64499c684fb2303576909bcb427decdMark Andrews -disable-* | --disable-*)
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington # Reject names that are not valid shell variable names.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson fi
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson ac_feature=`echo $ac_feature| sed 's/-/_/g'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob eval "enable_${ac_feature}=no" ;;
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -enable-* | --enable-*)
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Reject names that are not valid shell variable names.
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson case "$ac_option" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley *=*) ;;
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson *) ac_optarg=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "enable_${ac_feature}='$ac_optarg'" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --exec | --exe | --ex)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=exec_prefix ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews | --exec=* | --exe=* | --ex=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exec_prefix="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -gas | --gas | --ga | --g)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Obsolete; use --with-gas.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington with_gas=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -help | --help | --hel | --he)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Omit some internal or obsolete options to make the list less imposing.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This message is too long to be a string in the A/UX 3.1 sh.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat << EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonUsage: configure [options] [host]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonOptions: [defaults in brackets after descriptions]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonConfiguration:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --cache-file=FILE cache test results in FILE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --help print this message
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --no-create do not create output files
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --quiet, --silent do not print \`checking...' messages
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --version print the version of autoconf that created configure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonDirectory and file names:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --prefix=PREFIX install architecture-independent files in PREFIX
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [$ac_default_prefix]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [same as prefix]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --bindir=DIR user executables in DIR [EPREFIX/bin]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --datadir=DIR read-only architecture-independent data in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [PREFIX/share]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --sharedstatedir=DIR modifiable architecture-independent data in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [PREFIX/com]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --libdir=DIR object code libraries in DIR [EPREFIX/lib]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --includedir=DIR C header files in DIR [PREFIX/include]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --infodir=DIR info documentation in DIR [PREFIX/info]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --mandir=DIR man documentation in DIR [PREFIX/man]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --srcdir=DIR find the sources in DIR [configure dir or ..]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --program-prefix=PREFIX prepend PREFIX to installed program names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --program-suffix=SUFFIX append SUFFIX to installed program names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --program-transform-name=PROGRAM
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington run sed PROGRAM on installed program names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat << EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonHost type:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --build=BUILD configure for building on BUILD [BUILD=HOST]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --host=HOST configure for HOST [guessed]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --target=TARGET configure for TARGET [TARGET=HOST]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonFeatures and packages:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --x-includes=DIR X include files are in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --x-libraries=DIR X library files are in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$ac_help"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "--enable and --with options recognized:$ac_help"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exit 0 ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -host | --host | --hos | --ho)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=host ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -host=* | --host=* | --hos=* | --ho=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington host="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews -includedir | --includedir | --includedi | --included | --include \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --includ | --inclu | --incl | --inc)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=includedir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --includ=* | --inclu=* | --incl=* | --inc=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington includedir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -infodir | --infodir | --infodi | --infod | --info | --inf)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=infodir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington infodir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libdir | --libdir | --libdi | --libd)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=libdir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libdir=* | --libdir=* | --libdi=* | --libd=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libdir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --libexe | --libex | --libe)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=libexecdir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --libexe=* | --libex=* | --libe=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libexecdir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -localstatedir | --localstatedir | --localstatedi | --localstated \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --localstate | --localstat | --localsta | --localst \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --locals | --local | --loca | --loc | --lo)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=localstatedir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --localstate=* | --localstat=* | --localsta=* | --localst=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington localstatedir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=mandir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mandir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -nfp | --nfp | --nf)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Obsolete; use --without-fp.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington with_fp=no ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --no-cr | --no-c)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_create=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -no-recursion | --no-recursion | --no-recursio | --no-recursi \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_recursion=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldin | --oldi | --old | --ol | --o)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=oldincludedir ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington oldincludedir="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=prefix ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington prefix="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-prefix | --program-prefix | --program-prefi | --program-pref \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-pre | --program-pr | --program-p)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=program_prefix ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-prefix=* | --program-prefix=* | --program-prefi=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington program_prefix="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-suffix | --program-suffix | --program-suffi | --program-suff \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-suf | --program-su | --program-s)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=program_suffix ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-suffix=* | --program-suffix=* | --program-suffi=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington program_suffix="$ac_optarg" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-transform-name | --program-transform-name \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transform-nam | --program-transform-na \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transform-n | --program-transform- \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transform | --program-transfor \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transfo | --program-transf \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley | --program-trans | --program-tran \
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson | --progr-tra | --program-tr | --program-t)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prev=program_transform_name ;;
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson -program-transform-name=* | --program-transform-name=* \
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews | --program-transform-nam=* | --program-transform-na=* \
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews | --program-transform-n=* | --program-transform-=* \
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence | --program-transform=* | --program-transfor=* \
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson | --program-transfo=* | --program-transf=* \
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence | --program-trans=* | --program-tran=* \
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence | --progr-tra=* | --program-tr=* | --program-t=*)
8b8812c41de64eb325d8d7e2e02536b21ccfd8a9Brian Wellington program_transform_name="$ac_optarg" ;;
8b8812c41de64eb325d8d7e2e02536b21ccfd8a9Brian Wellington
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | -silent | --silent | --silen | --sile | --sil)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley silent=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sbindir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sbi=* | --sb=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sbindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha | --sh)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sharedstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha=* | --sh=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sharedstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site | --site | --sit)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=site ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site=* | --site=* | --sit=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley site="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=srcdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon | --sysco | --sysc | --sys | --sy)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sysconfdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sysconfdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=target ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley target="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley verbose=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -with-* | --with-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -without-* | --without-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_x=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl | --x-inc | --x-in | --x-i)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_includes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_includes="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_libraries ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_libraries="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$nonopt" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley nonopt="$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$silent" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>&1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec 5>./config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "\
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" 1>&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure_args=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_arg
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_arg" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -rf conftest* confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho > confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_unique_file=lib/dns/name.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog=$0
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=$ac_confdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=..
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_srcdir_defaulted" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$prefix" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_site_file in $CONFIG_SITE; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . "$ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_exeext=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_objext=o
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley' ac_t=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n=-n ac_c= ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='\c' ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_aux_dir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/install-sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install-sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley elif test -f $ac_dir/install.sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install.sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_guess=$ac_aux_dir/config.guess
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_sub=$ac_aux_dir/config.sub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure we can run config.sub.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:672: checking host system type" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_alias=$host
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$host_alias" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyNONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case $nonopt in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley NONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) host_alias=$nonopt ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$host" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftestmake <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyall:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley @echo 'ac_maketemp="${MAKE}"'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_maketemp"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval ac_cv_prog_make_${ac_make}_set=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval ac_cv_prog_make_${ac_make}_set=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftestmake
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley SET_MAKE=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley SET_MAKE="MAKE=${MAKE-make}"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "ranlib", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy ranlib; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:723: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$RANLIB"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_RANLIB="ranlib"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyRANLIB="$ac_cv_prog_RANLIB"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$RANLIB"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$RANLIB" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find a good install program. We prefer a C program (faster),
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# so one script is as good as another. But avoid the broken or
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# incompatible versions:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# SysV /etc/install, /usr/sbin/install
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# SunOS /usr/etc/install
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# IRIX /sbin/install
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX /bin/install
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AFS /usr/afsws/bin/install, which mishandles nonexistent args
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./install, which can be erroneously created by make from ./install.sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:762: checking for a BSD compatible install" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$INSTALL"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $PATH; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Account for people who put trailing slashes in PATH elements.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_dir/" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # OSF1 and SCO ODT 3.0 have their own names for install.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Don't use installbsd from OSF since it installs stuff as root
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # by default.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_prog in ginstall scoinst install; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_prog; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test $ac_prog = install &&
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # AIX install. It has an incompatible calling convention.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_install="$ac_dir/$ac_prog -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break 2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_IFS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "${ac_cv_path_install+set}" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley INSTALL="$ac_cv_path_install"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # As a last resort, use the slow shell script. We don't cache a
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # path for INSTALL within a source directory, because that will
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # break other packages using the cache if that directory is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # removed, or if the path is relative.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley INSTALL="$ac_install_sh"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$INSTALL" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# It thinks the first close brace ends the variable substitution.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "ar", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy ar; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:822: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$AR" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ?:/*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dummy="$PATH"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_AR="$ac_dir/$ac_word"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyAR="$ac_cv_path_AR"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$AR"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$AR" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyARFLAGS="cruv"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_prog in etags emacs-etags
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy $ac_prog; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:863: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ETAGS" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ?:/*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dummy="$PATH"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_ETAGS="$ac_dir/$ac_word"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyETAGS="$ac_cv_path_ETAGS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ETAGS"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$ETAGS" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -n "$ETAGS" && break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Special processing of paths depending on whether --prefix,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# --sysconfdir or --localstatedir arguments were given. What's
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# desired is some compatability with the way previous versions
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# of BIND built; they defaulted to /usr/local for most parts of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the installation, but named.boot/named.conf was in /etc
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# and named.pid was in /var/run.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# So ... if none of --prefix, --sysconfdir or --localstatedir are
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# specified, set things up that way. If --prefix is given, use
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# it for sysconfdir and localstatedir the way configure normally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# would. To change the prefix for everything but leave named.conf
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# in /etc or named.pid in /var/run, then do this the usual configure way:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./configure --prefix=/somewhere --sysconfdir=/etc
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./configure --prefix=/somewhere --localstatedir=/var
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# To put named.conf and named.pid in /usr/local with everything else,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# set the prefix explicitly to /usr/local even though that's the default:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./configure --prefix=/usr/local
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$prefix" in
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence NONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$sysconfdir" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley '${prefix}/etc')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sysconfdir=/etc
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$localstatedir" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley '${prefix}/var')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley localstatedir=/var
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure INSTALL uses an absolute path, else it will be wrong in all
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure based on the location of the file where it is substituted.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# subdirectory of install-sh, This relative path will be wrong for all
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews# directories more than one level down from install-sh.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews#
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrewscase "$INSTALL" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "$ac_dir" = "$ac_prog" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley INSTALL="$ac_dir/$ac_prog"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On these hosts, we really want to use cc, not gcc, even if it is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# found. The gcc that these systems have will not correctly handle
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# pthreads.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# However, if the user sets $CC to be something, let that override
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# our change.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "X$CC" = "X" ; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$host" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *-dec-osf*)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff CC="cc"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *-solaris*)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Use Sun's cc if it is available, but watch
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # out for /usr/ucb/cc; it will never be the right
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # compiler to use.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff #
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # If setting CC here fails, the AC_PROG_CC done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # below might still find gcc.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_dir in $PATH; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_dir" && ac_dir=.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$ac_dir" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /usr/ucb)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # exclude
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f "$ac_dir/cc"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff CC="$ac_dir/cc"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_ifs"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *-hp-hpux*)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff CC="cc"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff mips-sgi-irix*)
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews CC="cc"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# If the user didn't specify where openssl is, and we didn't find or it
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# is imcompatible with our code, use our internal one.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# XXXMLG Implement this check!
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:1013: checking for compatible OpenSSL library" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffDST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffdst_privateopenssl='openssl'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffDST_OPENSSL_INC='-I${srcdir}/../openssl/include'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffDST_OPENSSL_LIB=''
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffDST_OPENSSL_OBJS='${OPENSSLOBJS}'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "$ac_t""using private library" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# This would include the system openssl path (and linker options to use
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# it as needed) if it is found.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffDNS_OPENSSL_LIBS=""
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# testing with alternate openssl libraries... XXXMLG
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DNS_OPENSSL_LIBS="-L/usr/pkg/lib -lssl -lcrypto"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DST_PRIVATEOPENSSL=''
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# dst_privateopenssl=''
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DST_OPENSSL_INC='-I/usr/pkg/include'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DST_OPENSSL_LIB=''
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# NetBSD has two alternative pthreads implementations. Make the
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# user choose one by saying --with-mit-pthreads or --with-ptl2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# if necessary.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffcase "$host" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *-netbsd*)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff CC="gcc"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1054: checking which thread library to use" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test "${with_mit_pthreads+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff withval="$with_mit_pthreads"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff use_mit_pthreads="$withval"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff use_mit_pthreads="no"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Check whether --with-ptl2 or --without-ptl2 was given.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test "${with_ptl2+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff withval="$with_ptl2"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff use_ptl2="$withval"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff use_ptl2="no"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff : ${LOCALBASE:=/usr/pkg}
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # If user did not choose a thread library explicitly,
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # try to choose one automatically. This will work when
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # exactly one library is installed.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$use_mit_pthreads+$use_ptl2" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff no+no)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -d $LOCALBASE/pthreads
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff use_mit_pthreads="yes"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -d $LOCALBASE/PTL
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff use_ptl2="yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$use_mit_pthreads+$use_ptl2" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff yes+no)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""mit-pthreads" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff pkg="$LOCALBASE/pthreads"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff lib1="-L$pkg/lib -Wl,-R$pkg/lib"
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian Wellington lib2="-lpthread -lm -lgcc -lpthread"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence LIBS="$lib1 $lib2 $LIBS"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence CPPFLAGS="$CPPFLAGS -I$pkg/include"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence no+yes)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_t""PTL2" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# pkg="$LOCALBASE/PTL"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# LIBS="-L$LOCALBASE/lib -lPTL $LIBS"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence CC=ptlgcc
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff *)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence { echo "configure: error: no thread library.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrencePlease choose a thread library using one of
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence configure --with-mit-pthreads
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff configure --with-ptl2
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence" 1>&2; exit 1; }
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence esac
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceesac
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Extract the first word of "gcc", so it can be a program name with args.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceset dummy gcc; ac_word=$2
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho "configure:1126: checking for $ac_word" >&5
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence if test -n "$CC"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_prog_CC="$CC" # Let the user override the test.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_dummy="$PATH"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence for ac_dir in $ac_dummy; do
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence test -z "$ac_dir" && ac_dir=.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence if test -f $ac_dir/$ac_word; then
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson ac_cv_prog_CC="gcc"
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson break
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson fi
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson done
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson IFS="$ac_save_ifs"
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencefi
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencefi
6a976322f097bce06ef164f9bf99e51c5df1827bMichael GraffCC="$ac_cv_prog_CC"
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceif test -n "$CC"; then
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence echo "$ac_t""$CC" 1>&6
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceelse
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence echo "$ac_t""no" 1>&6
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencefi
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceif test -z "$CC"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley # Extract the first word of "cc", so it can be a program name with args.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyset dummy cc; ac_word=$2
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho "configure:1156: checking for $ac_word" >&5
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffelse
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -n "$CC"; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffelse
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_prog_rejected=no
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_dummy="$PATH"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff for ac_dir in $ac_dummy; do
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff test -z "$ac_dir" && ac_dir=.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -f $ac_dir/$ac_word; then
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_prog_rejected=yes
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff continue
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff fi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_prog_CC="cc"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff break
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff fi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff done
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff IFS="$ac_save_ifs"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test $ac_prog_rejected = yes; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # We found a bogon in the path, so make sure we never use it.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff set dummy $ac_cv_prog_CC
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff shift
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test $# -gt 0; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # We chose a different compiler from the bogus one.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # However, it has the same basename, so the bogon will be chosen
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # first if we set CC to just the basename; use the full file name.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff shift
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff set dummy "$ac_dir/$ac_word" "$@"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff shift
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_prog_CC="$@"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff fi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael GraffCC="$ac_cv_prog_CC"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test -n "$CC"; then
ce8c568e0d6106bb87069453505e09bc66754b40Andreas Gustafsson echo "$ac_t""$CC" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyelse
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley echo "$ac_t""no" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyfi
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley if test -z "$CC"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley case "`uname -s`" in
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews *win32* | *WIN32*)
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley # Extract the first word of "cl", so it can be a program name with args.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyset dummy cl; ac_word=$2
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyecho "configure:1207: checking for $ac_word" >&5
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyelse
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -n "$CC"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_prog_CC="$CC" # Let the user override the test.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonelse
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_dummy="$PATH"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson for ac_dir in $ac_dummy; do
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson test -z "$ac_dir" && ac_dir=.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson if test -f $ac_dir/$ac_word; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_prog_CC="cl"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson break
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews fi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson done
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="$ac_save_ifs"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas GustafssonCC="$ac_cv_prog_CC"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif test -n "$CC"; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson echo "$ac_t""$CC" 1>&6
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffelse
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson echo "$ac_t""no" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ;;
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson esac
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson fi
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonecho "configure:1239: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonac_ext=c
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonac_cpp='$CPP $CPPFLAGS'
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssoncross_compiling=$ac_cv_prog_cc_cross
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssoncat > conftest.$ac_ext << EOF
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#line 1250 "configure"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#include "confdefs.h"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonmain(){return(0);}
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas GustafssonEOF
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_prog_cc_works=yes
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson # If we can't run a trivial program, we are probably using a cross compiler.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence if (./conftest; exit) 2>/dev/null; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_cc_cross=no
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence else
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_cc_cross=yes
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence fi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence echo "configure: failed program was:" >&5
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence cat conftest.$ac_ext >&5
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_cc_works=no
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencerm -fr conftest*
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceac_ext=c
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceac_cpp='$CPP $CPPFLAGS'
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencecross_compiling=$ac_cv_prog_cc_cross
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test $ac_cv_prog_cc_works = no; then
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrencefi
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho "configure:1281: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrencecross_compiling=$ac_cv_prog_cc_cross
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho "configure:1286: checking whether we are using GNU C" >&5
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceelse
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence cat > conftest.c <<EOF
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence#ifdef __GNUC__
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence yes;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#endif
90839d60d218503da04c4a0bfe57a81c33aa2241David LawrenceEOF
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_gcc=yes
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_gcc=no
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceecho "$ac_t""$ac_cv_prog_gcc" 1>&6
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceif test $ac_cv_prog_gcc = yes; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence GCC=yes
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence GCC=
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Grafffi
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffac_test_CFLAGS="${CFLAGS+set}"
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceac_save_CFLAGS="$CFLAGS"
0293ad13207aa29bd5844cdc87d085ffc009d749David LawrenceCFLAGS=
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceecho "configure:1314: checking whether ${CC-cc} accepts -g" >&5
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceelse
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence echo 'void f(){}' > conftest.c
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_cc_g=yes
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_prog_cc_g=no
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencerm -f conftest*
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffif test "$ac_test_CFLAGS" = set; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CFLAGS="$ac_save_CFLAGS"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffelif test $ac_cv_prog_cc_g = yes; then
1ce985ab3c6670662d555c108b35fed84a6a1001David Lawrence if test "$GCC" = yes; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence CFLAGS="-g -O2"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence else
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence CFLAGS="-g"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence fi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence if test "$GCC" = yes; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence CFLAGS="-O2"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence else
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence CFLAGS=
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence fi
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrencefi
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrencefor ac_prog in 'bison -y' byacc
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrencedo
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# Extract the first word of "$ac_prog", so it can be a program name with args.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceset dummy $ac_prog; ac_word=$2
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho "configure:1350: checking for $ac_word" >&5
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceelse
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence if test -n "$YACC"; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ac_cv_prog_YACC="$YACC" # Let the user override the test.
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffelse
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ac_dummy="$PATH"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff for ac_dir in $ac_dummy; do
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff test -z "$ac_dir" && ac_dir=.
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff if test -f $ac_dir/$ac_word; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ac_cv_prog_YACC="$ac_prog"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff break
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyYACC="$ac_cv_prog_YACC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$YACC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$YACC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -n "$YACC" && break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -n "$YACC" || YACC="yacc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1382: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CPP" && test -d "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1397 "configure"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E -traditional-cpp"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1414 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -nologo -E"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1431 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CPP=/lib/cpp
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_CPP="$CPP"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CPP="$ac_cv_prog_CPP"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_CPP="$CPP"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$CPP" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1462: checking for ANSI C header files" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1467 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdlib.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdarg.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <string.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <float.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley{ (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat > conftest.$ac_ext <<EOF
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#line 1492 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews egrep "memchr" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1510 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdlib.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley egrep "free" >/dev/null 2>&1; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$cross_compiling" = yes; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1531 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexit (0); }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleythen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -fr conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_header_stdc=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -fr conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_stdc" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1569: checking for $ac_hdr" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1574 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley{ (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_err"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_header_$ac_safe=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_err" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# HAVE_NETINET6_IN6_H needs to go in platform.h.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Including it on Kame-using platforms is very bad, though, because
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Kame has an #error against direct inclusion. So include it on only
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$ac_cv_header_netinet6_in6_h+$host" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyyes+*-bsdi4.[01]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_HAVENETINET6IN6H="#define ISC_PLATFORM_HAVENETINET6IN6H 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LWRES_PLATFORM_HAVENETINET6IN6H="#define LWRES_PLATFORM_HAVENETINET6IN6H 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_HAVENETINET6IN6H="#undef ISC_PLATFORM_HAVENETINET6IN6H"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LWRES_PLATFORM_HAVENETINET6IN6H="#undef LWRES_PLATFORM_HAVENETINET6IN6H"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ;;
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristeresac
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1629: checking for working const" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1634 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyint main() {
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* Ultrix mips cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytypedef int charset[2]; const charset x;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* SunOS 4.1.1 cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar const *const *ccp;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar **p;
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews/* NEC SVR4.0.2 mips cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleystruct point {int x, y;};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystatic struct point const zero = {0,0};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* AIX XL C 1.02.0.0 rejects this.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley It does not let you subtract one const X* pointer from another in an arm
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley of an if-expression whose if-part is not a constant expression */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyconst char *g = "string";
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = &g + (g ? g-g : 0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* HPUX 7.0 cc rejects these. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley++ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyp = (char**) ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = (char const *const *) p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* SCO 3.2v4 cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley char *t;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *t++ = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley int x[] = {25, 17};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int *foo = &x[0];
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++foo;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews iptr p = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews struct s { int j; const int *ap[3]; };
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:1683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_const" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_c_const = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define const
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for inline""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1704: checking for inline" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_kw in inline __inline__ __inline; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1711 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=$ac_kw; break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_inline" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$ac_cv_c_inline" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley inline | yes) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no) cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) cat >> confdefs.h <<EOF
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#define inline $ac_cv_c_inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for size_t""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1744: checking for size_t" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#line 1749 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if STDC_HEADERS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stddef.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_type_size_t" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_type_size_t = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define size_t unsigned
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid LawrenceEOF
8a02be5fc23c7023bdd172bc6bf24182471c46baMark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsecho "configure:1777: checking whether time.h and sys/time.h may both be included" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#line 1782 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <time.h>
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsint main() {
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleystruct tm *tp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_time" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_time = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TIME_WITH_SYS_TIME 1
6a976322f097bce06ef164f9bf99e51c5df1827bMichael GraffEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1813: checking for pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewscat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1821 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleypthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1858: checking for __pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1866 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar __pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley__pthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1905: checking for __pthread_create_system in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1913 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar __pthread_create_system();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley__pthread_create_system()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews cat conftest.$ac_ext >&5
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews rm -rf conftest*
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsfi
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsrm -f conftest*
874d2a5138ac7e82b31940d21c13e160f665cf27Mark AndrewsLIBS="$ac_save_LIBS"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsfi
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews echo "$ac_t""yes" 1>&6
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews cat >> confdefs.h <<EOF
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#define $ac_tr_lib 1
874d2a5138ac7e82b31940d21c13e160f665cf27Mark AndrewsEOF
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews LIBS="-lpthread $LIBS"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewselse
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews echo "$ac_t""no" 1>&6
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsfi
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsfi
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews# We'd like to use sigwait() too
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsecho $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsecho "configure:1959: checking for sigwait in -lc" >&5
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewselse
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews ac_save_LIBS="$LIBS"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark AndrewsLIBS="-lc $LIBS"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewscat > conftest.$ac_ext <<EOF
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#line 1967 "configure"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#include "confdefs.h"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews/* We use char because int might match the return type of a gcc2
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews builtin and then its argument prototype would still apply. */
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewschar sigwait();
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsint main() {
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewssigwait()
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews; return 0; }
874d2a5138ac7e82b31940d21c13e160f665cf27Mark AndrewsEOF
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsif { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat conftest.$ac_ext >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsfi
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonrm -f conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsLIBS="$ac_save_LIBS"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonfi
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington echo "$ac_t""yes" 1>&6
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington cat >> confdefs.h <<\EOF
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington#define HAVE_SIGWAIT 1
4320bd85180d1514af4477c4d2dadf0accbebac0Brian WellingtonEOF
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonelse
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington echo "$ac_t""no" 1>&6
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonecho "configure:2000: checking for sigwait in -lpthread" >&5
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ac_save_LIBS="$LIBS"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas GustafssonLIBS="-lpthread $LIBS"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssoncat > conftest.$ac_ext <<EOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#line 2008 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson/* We use char because int might match the return type of a gcc2
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson builtin and then its argument prototype would still apply. */
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonchar sigwait();
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint main() {
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonsigwait()
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson; return 0; }
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas GustafssonEOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define HAVE_SIGWAIT 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2041: checking for _Psigwait in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2049 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews builtin and then its argument prototype would still apply. */
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewschar _Psigwait();
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsint main() {
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews_Psigwait()
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews; return 0; }
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsEOF
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsif { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews rm -rf conftest*
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewselse
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews echo "configure: failed program was:" >&5
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews cat conftest.$ac_ext >&5
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews rm -rf conftest*
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsfi
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsrm -f conftest*
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark AndrewsLIBS="$ac_save_LIBS"
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsfi
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews echo "$ac_t""yes" 1>&6
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews cat >> confdefs.h <<\EOF
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews#define HAVE_SIGWAIT 1
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark AndrewsEOF
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewselse
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews echo "$ac_t""no" 1>&6
63742a7fbfd6f99c4ab2f031c1ba56299a8ceb23Mark Andrewsfi
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsfi
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Additional OS-specific issues related to pthreads.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewscase "$host" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # One more place to look for sigwait.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *-freebsd*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2098: checking for sigwait in -lc_r" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lc_r $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2106 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar sigwait();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysigwait()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews echo "configure: failed program was:" >&5
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews cat conftest.$ac_ext >&5
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews rm -rf conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsfi
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsrm -f conftest*
754cca729dd82ae8363917dc00ad44f9d900635bMark AndrewsLIBS="$ac_save_LIBS"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsfi
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews echo "$ac_t""yes" 1>&6
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews cat >> confdefs.h <<\EOF
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews#define HAVE_SIGWAIT 1
754cca729dd82ae8363917dc00ad44f9d900635bMark AndrewsEOF
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewselse
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews echo "$ac_t""no" 1>&6
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsfi
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews ;;
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews #
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews # BSDI 3.1 through 4.0.1 needs pthread_init() to be called before
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews # certain pthreads calls. This is deprecated in BSD/OS 4.1.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews *-bsdi3.1*|*-bsdi4.0*)
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews cat >> confdefs.h <<\EOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#define NEED_PTHREAD_INIT 1
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark AndrewsEOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews ;;
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews #
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews # LinuxThreads requires some changes to the way we deal with signals.
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews #
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews *-linux*)
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews cat >> confdefs.h <<\EOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#define HAVE_LINUXTHREADS 1
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark AndrewsEOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews ;;
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews #
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews # Ensure the right sigwait() semantics on Solaris.
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews #
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews *-solaris*)
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews cat >> confdefs.h <<\EOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#define _POSIX_PTHREAD_SEMANTICS 1
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark AndrewsEOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews ;;
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsesac
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews# NLS
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsecho $ac_n "checking for catgets""... $ac_c" 1>&6
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsecho "configure:2175: checking for catgets" >&5
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewselse
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews cat > conftest.$ac_ext <<EOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#line 2180 "configure"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include "confdefs.h"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews which can conflict with char catgets(); below. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include <assert.h>
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* We use char because int might match the return type of a gcc2
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews builtin and then its argument prototype would still apply. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewschar catgets();
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsint main() {
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* The GNU C library defines this for functions which it implements
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews to always fail with ENOSYS. Some functions are actually named
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews something starting with __ and the normal name is an alias. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#if defined (__stub_catgets) || defined (__stub___catgets)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewschoke me
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#else
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewscatgets();
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#endif
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews; return 0; }
7817a6f41b9e16da0325252ec24226b40f15a923Mark AndrewsEOF
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsif { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews rm -rf conftest*
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews eval "ac_cv_func_catgets=yes"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewselse
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews echo "configure: failed program was:" >&5
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews cat conftest.$ac_ext >&5
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews rm -rf conftest*
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews eval "ac_cv_func_catgets=no"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfi
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsrm -f conftest*
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrewsfi
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews echo "$ac_t""yes" 1>&6
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews cat >> confdefs.h <<\EOF
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#define HAVE_CATGETS 1
7817a6f41b9e16da0325252ec24226b40f15a923Mark AndrewsEOF
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrewselse
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews echo "$ac_t""no" 1>&6
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfi
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews# -lxnet buys us one big porting headache... standards, gotta love 'em.
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# AC_CHECK_LIB(xnet, socket, ,
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# AC_CHECK_LIB(socket, socket)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# AC_CHECK_LIB(nsl, inet_ntoa)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# )
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Use this for now, instead:
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncase "$host" in
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson mips-sgi-irix*)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews *)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2241: checking for socket in -lsocket" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews ac_save_LIBS="$LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonLIBS="-lsocket $LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2249 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* We use char because int might match the return type of a gcc2
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson builtin and then its argument prototype would still apply. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonchar socket();
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewssocket()
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson; return 0; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat conftest.$ac_ext >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonLIBS="$ac_save_LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""yes" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat >> confdefs.h <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define $ac_tr_lib 1
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson LIBS="-lsocket $LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""no" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2288: checking for inet_ntoa in -lnsl" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewselse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_save_LIBS="$LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonLIBS="-lnsl $LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2296 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* We use char because int might match the return type of a gcc2
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson builtin and then its argument prototype would still apply. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonchar inet_ntoa();
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoninet_ntoa()
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews; return 0; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat conftest.$ac_ext >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonLIBS="$ac_save_LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""yes" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat >> confdefs.h <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define $ac_tr_lib 1
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson LIBS="-lnsl $LIBS"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""no" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonfi
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonesac
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonMKDEPCC="$CC"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonMKDEPCFLAGS="-M"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "X$GCC" = "Xyes"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson case "$host" in
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson *-freebsd*)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson CC="$CC -pthread"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington ;;
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington *-openbsd*)
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington CC="$CC -pthread"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson *-solaris*)
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson LIBS="$LIBS -lthread"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ;;
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson esac
3a76f8d5e8bd962ee2ca54cc6a92ca15b729ef3cBrian Wellingtonelse
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson case "$host" in
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson *-dec-osf*)
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson CC="$CC -std -pthread"
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson MKDEPCC="$CC"
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson ;;
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson *-solaris*)
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson CC="$CC -mt"
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson MKDEPCC="$CC"
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson MKDEPCFLAGS="-xM"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ;;
7fb42c0f61ec1ccd223e635ac6d4d4bc4ac01569Andreas Gustafsson *-hp-hpux*)
d8e68843491ad6ac860a1f4a239b358fb3a7e2d7Andreas Gustafsson CC="$CC -Ae -z +w1"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ;;
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington esac
ff6b5e8406167f7cb32c0ec3fab75851c9f37b1aBrian Wellingtonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# Networking specifics.
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssoncase "$host" in
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson *-dec-osf*)
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson # Turn on 4.4BSD style sa_len support.
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson cat >> confdefs.h <<\EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#define _SOCKADDR_LEN 1
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonEOF
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ;;
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonesac
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson# Look for a 4.4BSD-style sa_len member in struct sockaddr.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonecho "configure:2391: checking for sa_len in struct sockaddr" >&5
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssoncat > conftest.$ac_ext <<EOF
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#line 2393 "configure"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#include "confdefs.h"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#include <sys/types.h>
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#include <sys/socket.h>
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonint main() {
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonstruct sockaddr sa; sa.sa_len = 0; return (0);
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson; return 0; }
06ccdb9fe7d87ac1a97ca9ac045a83bf7fd49496Andreas GustafssonEOF
06ccdb9fe7d87ac1a97ca9ac045a83bf7fd49496Andreas Gustafssonif { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
06ccdb9fe7d87ac1a97ca9ac045a83bf7fd49496Andreas Gustafsson rm -rf conftest*
06ccdb9fe7d87ac1a97ca9ac045a83bf7fd49496Andreas Gustafsson echo "$ac_t""yes" 1>&6
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonelse
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson echo "configure: failed program was:" >&5
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson cat conftest.$ac_ext >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson rm -rf conftest*
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson echo "$ac_t""no" 1>&6
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonfi
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonrm -f conftest*
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson
bc3143cc86dbb819009fba666056cc67afee5330Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# Look for a 4.4BSD or 4.3BSD struct msghdr
16fc7f145f9f242deb039848e8f67e9381d5a8fcAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
49fa7b3b6ee5d3f84e50eaf4978b694986d931f0Mark Andrewsecho "configure:2423: checking for struct msghdr flavor" >&5
49fa7b3b6ee5d3f84e50eaf4978b694986d931f0Mark Andrewscat > conftest.$ac_ext <<EOF
49fa7b3b6ee5d3f84e50eaf4978b694986d931f0Mark Andrews#line 2425 "configure"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include "confdefs.h"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include <sys/types.h>
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include <sys/socket.h>
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonint main() {
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonstruct msghdr msg; msg.msg_flags = 0; return (0);
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson; return 0; }
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson rm -rf conftest*
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t""4.4BSD" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
e576c7352eedeba8723930f94ba768c6bd6f5c49Andreas Gustafssonelse
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "configure: failed program was:" >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson cat conftest.$ac_ext >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson rm -rf conftest*
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t""4.3BSD" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Look for in_port_t.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2452: checking for type in_port_t" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2454 "configure"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington#include "confdefs.h"
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/types.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netinet/in.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonin_port_t port = 25; return (0);
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington; return 0; }
b0954235fd6d64aab3c81c19c656af776095a63fBrian WellingtonEOF
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonif { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington rm -rf conftest*
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington echo "$ac_t""yes" 1>&6
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonelse
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington echo "configure: failed program was:" >&5
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington cat conftest.$ac_ext >&5
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington rm -rf conftest*
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington echo "$ac_t""no" 1>&6
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonfi
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonrm -f conftest*
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# Check for addrinfo
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonecho "configure:2481: checking for struct addrinfo" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#line 2483 "configure"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#include "confdefs.h"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netdb.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonstruct addrinfo a; return (0);
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington; return 0; }
1a1eba30c39d0962d778388554975be8a970f8d3Brian WellingtonEOF
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellingtonif { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington rm -rf conftest*
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington echo "$ac_t""yes" 1>&6
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat conftest.$ac_ext >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""no" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2506: checking for int sethostent" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2508 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netdb.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint i = sethostent(0); return(0);
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian WellingtonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "$ac_t""yes" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
fba21fcab9db48ac75701c7086d6f70b83cc020eAndreas Gustafsson echo "configure: failed program was:" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington cat conftest.$ac_ext >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington rm -rf conftest*
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "$ac_t""no" 1>&6
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonfi
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonrm -f conftest*
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2531: checking for int endhostent" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtoncat > conftest.$ac_ext <<EOF
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2533 "configure"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#include "confdefs.h"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#include <netdb.h>
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonint main() {
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonint i = endhostent(); return(0);
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington; return 0; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian WellingtonEOF
898ad3e515d05d77c55976041658b22ce995b777Brian Wellingtonif { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington rm -rf conftest*
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "$ac_t""yes" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonelse
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "configure: failed program was:" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington cat conftest.$ac_ext >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington rm -rf conftest*
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "$ac_t""no" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellington
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellingtonecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellingtonecho "configure:2556: checking for getnetbyaddr(in_addr_t, ...)" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2558 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netdb.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonstruct netent *getnetbyaddr(in_addr_t, int);
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat conftest.$ac_ext >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""no" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonfi
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonrm -f conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
4c692849bc49bdcc6f98afadd7bb2fc8a63ff39bMark Andrewsecho "configure:2582: checking for int setnetent" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssoncat > conftest.$ac_ext <<EOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#line 2584 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
4c692849bc49bdcc6f98afadd7bb2fc8a63ff39bMark Andrews
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include <netdb.h>
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint main() {
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint i = setnetent(0); return(0);
6ef891fbe943d6776ed17439ccb8bbb8e314b7d8Andreas Gustafsson; return 0; }
6ef891fbe943d6776ed17439ccb8bbb8e314b7d8Andreas GustafssonEOF
6ef891fbe943d6776ed17439ccb8bbb8e314b7d8Andreas Gustafssonif { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3b520900319f8982de2650705907fb452bd836c8Brian Wellington rm -rf conftest*
3b520900319f8982de2650705907fb452bd836c8Brian Wellington echo "$ac_t""yes" 1>&6
3b520900319f8982de2650705907fb452bd836c8Brian Wellington ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellingtonelse
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat conftest.$ac_ext >&5
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington rm -rf conftest*
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington echo "$ac_t""no" 1>&6
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonfi
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonrm -f conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho "configure:2607: checking for int endnetent" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssoncat > conftest.$ac_ext <<EOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#line 2609 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include <netdb.h>
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint main() {
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint i = endnetent(); return(0);
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson; return 0; }
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas GustafssonEOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif { (eval echo configure:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""yes" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2632: checking for gethostbyadd(const void *, size_t, ...)" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencecat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2634 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include <netdb.h>
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonstruct hostent *gethostbyaddr(const void *, size_t, int);
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint main() {
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencereturn(0);
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""yes" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat conftest.$ac_ext >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""no" 1>&6
9ce476812c93a1bb8b416adbe707ee5000a015f1Andreas Gustafsson ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonfi
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonrm -f conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2658: checking for h_errno in netdb.h" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncat > conftest.$ac_ext <<EOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 2660 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <netdb.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonint main() {
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonh_errno = 1; return(0);
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson; return 0; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonEOF
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""yes" 1>&6
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonelse
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson echo "configure: failed program was:" >&5
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson cat conftest.$ac_ext >&5
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson rm -rf conftest*
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson echo "$ac_t""no" 1>&6
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonfi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonrm -f conftest*
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2683: checking for getipnodebyname" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat > conftest.$ac_ext <<EOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 2688 "configure"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson/* System header to define __stub macros and hopefully few prototypes,
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson which can conflict with char getipnodebyname(); below. */
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <assert.h>
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington/* We use char because int might match the return type of a gcc2
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington builtin and then its argument prototype would still apply. */
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellingtonchar getipnodebyname();
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellingtonint main() {
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington/* The GNU C library defines this for functions which it implements
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington to always fail with ENOSYS. Some functions are actually named
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington something starting with __ and the normal name is an alias. */
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonchoke me
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#else
ce7994d137a013133e874b92604183923267fc94Brian Wellingtongetipnodebyname();
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#endif
ce7994d137a013133e874b92604183923267fc94Brian Wellington
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
ce7994d137a013133e874b92604183923267fc94Brian Wellington eval "ac_cv_func_getipnodebyname=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_getipnodebyname=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2732: checking for getnameinfo" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2737 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence which can conflict with char getnameinfo(); below. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington#include <assert.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar getnameinfo();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonint main() {
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* The GNU C library defines this for functions which it implements
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence to always fail with ENOSYS. Some functions are actually named
ce7994d137a013133e874b92604183923267fc94Brian Wellington something starting with __ and the normal name is an alias. */
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchoke me
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#else
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencegetnameinfo();
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#endif
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
ce7994d137a013133e874b92604183923267fc94Brian Wellington; return 0; }
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_func_getnameinfo=yes"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "configure: failed program was:" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellington cat conftest.$ac_ext >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_func_getnameinfo=no"
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonfi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencerm -f conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencefi
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""yes" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""no" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencefi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceecho "configure:2781: checking for getaddrinfo" >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence cat > conftest.$ac_ext <<EOF
ce7994d137a013133e874b92604183923267fc94Brian Wellington#line 2786 "configure"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include "confdefs.h"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* System header to define __stub macros and hopefully few prototypes,
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence which can conflict with char getaddrinfo(); below. */
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include <assert.h>
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* We use char because int might match the return type of a gcc2
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar getaddrinfo();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonint main() {
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychoke me
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleygetaddrinfo();
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_getaddrinfo=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
ce7994d137a013133e874b92604183923267fc94Brian Wellington echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson eval "ac_cv_func_getaddrinfo=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Look for a sysctl call to get the list of network interfaces.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2837: checking for interface list sysctl" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2839 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
ce7994d137a013133e874b92604183923267fc94Brian Wellington
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#include <sys/param.h>
ce7994d137a013133e874b92604183923267fc94Brian Wellington#include <sys/sysctl.h>
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include <sys/socket.h>
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#ifdef NET_RT_IFLIST
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfound_rt_iflist
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#endif
ce7994d137a013133e874b92604183923267fc94Brian Wellington
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley egrep "found_rt_iflist" >/dev/null 2>&1; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""yes" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat >> confdefs.h <<\EOF
ce7994d137a013133e874b92604183923267fc94Brian Wellington#define HAVE_IFLIST_SYSCTL 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""no" 1>&6
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyrm -f conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley# GNU libtool support
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley# Check whether --with-libtool or --without-libtool was given.
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif test "${with_libtool+set}" = set; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley withval="$with_libtool"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley use_libtool="$withval"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley use_libtool="no"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
ce7994d137a013133e874b92604183923267fc94Brian Wellington
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleycase $use_libtool in
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley yes)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley # Check whether --enable-shared or --disable-shared was given.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif test "${enable_shared+set}" = set; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley enableval="$enable_shared"
ce7994d137a013133e874b92604183923267fc94Brian Wellington p=${PACKAGE-default}
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleycase "$enableval" in
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyyes) enable_shared=yes ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyno) enable_shared=no ;;
ce7994d137a013133e874b92604183923267fc94Brian Wellington*)
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson enable_shared=no
ce7994d137a013133e874b92604183923267fc94Brian Wellington # Look at the argument we got. We use all the common list separators.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley for pkg in $enableval; do
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley if test "X$pkg" = "X$p"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley enable_shared=yes
ce7994d137a013133e874b92604183923267fc94Brian Wellington fi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley done
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson IFS="$ac_save_ifs"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyesac
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley enable_shared=yes
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley# Check whether --enable-static or --disable-static was given.
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonif test "${enable_static+set}" = set; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley enableval="$enable_static"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley p=${PACKAGE-default}
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssoncase "$enableval" in
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyyes) enable_static=yes ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyno) enable_static=no ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley enable_static=no
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley # Look at the argument we got. We use all the common list separators.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley for pkg in $enableval; do
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley if test "X$pkg" = "X$p"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley enable_static=yes
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley fi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley done
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley IFS="$ac_save_ifs"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ;;
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyesac
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley enable_static=yes
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley# Check whether --enable-fast-install or --disable-fast-install was given.
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif test "${enable_fast_install+set}" = set; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington enableval="$enable_fast_install"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley p=${PACKAGE-default}
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtoncase "$enableval" in
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonyes) enable_fast_install=yes ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonno) enable_fast_install=no ;;
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington*)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington enable_fast_install=no
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley # Look at the argument we got. We use all the common list separators.
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence for pkg in $enableval; do
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence if test "X$pkg" = "X$p"; then
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington enable_fast_install=yes
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonesac
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff enable_fast_install=yes
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking build system type""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2949: checking build system type" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonbuild_alias=$build
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssoncase "$build_alias" in
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceNONE)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence case $nonopt in
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence NONE) build_alias=$host_alias ;;
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence *) build_alias=$nonopt ;;
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence esac ;;
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceesac
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencebuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencebuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencebuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "$ac_t""$build" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# Check whether --with-gnu-ld or --without-gnu-ld was given.
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif test "${with_gnu_ld+set}" = set; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence withval="$with_gnu_ld"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence test "$withval" = no || with_gnu_ld=yes
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson with_gnu_ld=no
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceac_prog=ld
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif test "$ac_cv_prog_gcc" = yes; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence # Check if gcc -print-prog-name=ld gives a path.
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "configure:2978: checking for ld used by GCC" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_prog=`($CC -print-prog-name=ld) 2>&5`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence case "$ac_prog" in
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence # Accept absolute paths.
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence [\\/]* | [A-Za-z]:[\\/]*)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence re_direlt='/[^/][^/]*/\.\./'
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence # Canonicalize the path of ld
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence done
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence test -z "$LD" && LD="$ac_prog"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ;;
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence "")
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # If it fails, then pretend we aren't using GCC.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson ac_prog=ld
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ;;
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley *)
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # If it is relative, then search for the first ld in PATH.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley with_gnu_ld=unknown
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ;;
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley esac
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelif test "$with_gnu_ld" = yes; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3002: checking for GNU ld" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3005: checking for non-GNU ld" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -z "$LD"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson for ac_dir in $PATH; do
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley test -z "$ac_dir" && ac_dir=.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_LD="$ac_dir/$ac_prog"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Check to see if the program is GNU ld. I'd rather use --version,
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # but apparently some GNU ld's only accept -v.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Break only if it was the GNU/non-GNU ld that we prefer.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley test "$with_gnu_ld" != no && break
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley else
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley test "$with_gnu_ld" != yes && break
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley fi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley fi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley done
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley IFS="$ac_save_ifs"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_LD="$LD" # Let the user override the test with a path.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLD="$ac_cv_path_LD"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif test -n "$LD"; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "$ac_t""$LD" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleytest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3041: checking if the linker ($LD) is GNU ld" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_prog_gnu_ld=yes
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_prog_gnu_ld=no
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3057: checking for BSD-compatible nm" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -n "$NM"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Let the user override the test.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_NM="$NM"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley test -z "$ac_dir" && ac_dir=.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Check to see if the nm accepts a BSD-compat flag.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # nm: unknown option "B" ignored
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_NM="$ac_dir/nm -B"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley break
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_cv_path_NM="$ac_dir/nm -p"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence break
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson else
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley continue # so that we can try to find one that supports BSD flags
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley fi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington fi
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson done
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington IFS="$ac_save_ifs"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian WellingtonNM="$ac_cv_path_NM"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonecho "$ac_t""$NM" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonecho "configure:3094: checking whether ln -s works" >&5
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington rm -f conftestdata
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif ln -s X conftestdata 2>/dev/null
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonthen
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington rm -f conftestdata
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ac_cv_prog_LN_S="ln -s"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ac_cv_prog_LN_S=ln
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian WellingtonLN_S="$ac_cv_prog_LN_S"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif test "$ac_cv_prog_LN_S" = "ln -s"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo "$ac_t""yes" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "$ac_t""no" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington# Check for any special flags to pass to ltconfig.
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonlibtool_flags="--cache-file=$cache_file"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif test "${enable_libtool_lock+set}" = set; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington enableval="$enable_libtool_lock"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington :
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington# Some flags need to be propagated to the compiler or linker for good
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# libtool support.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncase "$host" in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson*-*-irix6*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Find out which ABI we are using.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo '#line 3138 "configure"' > conftest.$ac_ext
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson case "`/usr/bin/file conftest.o`" in
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington *32-bit*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson LD="${LD-ld} -32"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson ;;
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley *N32*)
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley LD="${LD-ld} -n32"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ;;
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley *64-bit*)
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley LD="${LD-ld} -64"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ;;
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley esac
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson fi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ;;
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley*-*-sco3.2v5*)
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley # On SCO OpenServer 5, we need -belf to get full-featured binaries.
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley SAVE_CFLAGS="$CFLAGS"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley CFLAGS="$CFLAGS -belf"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyecho "configure:3160: checking whether the C compiler needs -belf" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyelse
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley cat > conftest.$ac_ext <<EOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#line 3165 "configure"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyint main() {
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley; return 0; }
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyEOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley lt_cv_cc_needs_belf=yes
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyelse
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "configure: failed program was:" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley cat conftest.$ac_ext >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley lt_cv_cc_needs_belf=no
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyfi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyrm -f conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyfi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if test x"$lt_cv_cc_needs_belf" != x"yes"; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence CFLAGS="$SAVE_CFLAGS"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson fi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonesac
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley# Save cache, so that ltconfig can load it
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncat > confcache <<\EOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# This file is a shell script that caches the results of configure
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# tests run on this system so they can be shared between configure
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# scripts and configure runs. It is not useful on other systems.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# If it contains results you don't want to keep, you may remove or edit it.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# By default, configure uses ./config.cache as the cache file,
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence# creating it if it does not exist already. You can give configure
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence# the --cache-file=FILE option to use a different cache file; that is
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence# what configure does when it calls configure scripts in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# subdirectories, so they share the cache.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# Giving --cache-file=/dev/null disables caching, for debugging configure.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# config.status only pays attention to the cache file if you give it the
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# --recheck option to rerun configure.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonEOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# The following way of writing the cache mishandles newlines in values,
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley# but we know of no workaround that is simple, portable, and efficient.
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence# So, don't put newlines in cache variables' values.
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence# Ultrix sh set writes to stderr and can't be redirected directly,
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# and sets the high bit in the cache file unless we assign to the vars.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson(set) 2>&1 |
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff case `(ac_space=' '; set | grep ac_space) 2>&1` in
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff *ac_space=\ *)
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff # `set' does not quote correctly, so add quotes (double-quote substitution
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff # turns \\\\ into \\, and sed turns \\ into \).
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson sed -n \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff -e "s/'/'\\\\''/g" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff ;;
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff *)
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff # `set' quotes correctly as required by POSIX, so do not add quotes.
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff ;;
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff esac >> confcache
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif cmp -s $cache_file confcache; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff :
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffelse
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff if test -w $cache_file; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "updating cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff cat confcache > $cache_file
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff else
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "not updating unwritable cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff fi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Grafffi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffrm -f confcache
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Actually configure libtool. ac_aux_dir is where install-sh is found.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas GustafssonCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Reload cache, that may have been modified by ltconfig
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif test -r "$cache_file"; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "loading cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff . $cache_file
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffelse
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "creating cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff > $cache_file
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Grafffi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# This can be used to rebuild libtool when needed
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Always use our own libtool.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonLIBTOOL='$(SHELL) $(top_builddir)/libtool'
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# Redirect the config.log output again, so that the ltconfig log is not
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# clobbered by the next message.
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafssonexec 5>>./config.log
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews O=lo
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley A=la
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson O=o
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley A=a
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson LIBTOOL=
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonesac
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# File name extension for static archive files, for those few places
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# where they are treated differently from dynamic ones.
7005cfed8cd3296d356883dcb414979f22e06b13Brian WellingtonSA=a
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# IPv6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# Check whether --enable-ipv6 or --disable-ipv6 was given.
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif test "${enable_ipv6+set}" = set; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington enableval="$enable_ipv6"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington :
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# We do the IPv6 compilation checking after libtool so that we can put
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# the right suffix on the files.
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtoncase "$enable_ipv6" in
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington yes|''|autodetect)
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonecho "configure:3309: checking for IPv6 structures" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat > conftest.$ac_ext <<EOF
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#line 3311 "configure"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include "confdefs.h"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <sys/types.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <sys/socket.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <netinet/in.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonint main() {
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonstruct sockaddr_in6 sin6; return (0);
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington; return 0; }
7005cfed8cd3296d356883dcb414979f22e06b13Brian WellingtonEOF
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""yes" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington found_ipv6=yes
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonelse
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "configure: failed program was:" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat conftest.$ac_ext >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""no" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington found_ipv6=no
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonrm -f conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson no)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson found_ipv6=no
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonesac
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncase "$found_ipv6" in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson yes)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:3344: checking for in6addr_any" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat > conftest.$ac_ext <<EOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 3346 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <sys/types.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <sys/socket.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <netinet/in.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonint main() {
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonstruct in6_addr in6; in6 = in6addr_any; return (0);
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""yes" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""no" 1>&6
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsrm -f conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ;;
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington no)
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_IPV6_H="ipv6.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_IPV6_O="ipv6.$O"
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halley ISC_ISCIPV6_O="unix/ipv6.$O"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_IPV6_C="ipv6.c"
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington ;;
65e218048d7be538af52710195e3ccc7d1427402Brian Wellingtonesac
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halley
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halley
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington#
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington# IPv6 support provided via Kame
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho "configure:3392: checking for Kame IPv6 support" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington# Check whether --with-kame or --without-kame was given.
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif test "${with_kame+set}" = set; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington withval="$with_kame"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson use_kame="$withval"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington use_kame="no"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtoncase "$use_kame" in
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington no)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ;;
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington yes)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington kame_path=/usr/local/v6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ;;
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington *)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington kame_path="$use_kame"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ;;
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonesac
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtoncase "$use_kame" in
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington no)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""no" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ;;
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington *)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington if test -f $kame_path/lib/libinet6.a; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington LIBS="-L$kame_path/lib -linet6 $LIBS"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington else
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington { echo "configure: error: $kame_path/lib/libinet6.a not found.
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas GustafssonPlease choose the proper path with the following command:
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington configure --with-kame=PATH
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington" 1>&2; exit 1; }
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington fi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ;;
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonesac
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# Check for network functions that are often missing. We do this
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# after the libtool checking, so we can put the right suffix on
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# the files.
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho "configure:3439: checking for inet_ntop" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtoncat > conftest.$ac_ext <<EOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#line 3441 "configure"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <sys/types.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <netinet/in.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <arpa/inet.h>
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonint main() {
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtoninet_ntop(0, 0, 0, 0); return (0);
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington; return 0; }
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian WellingtonEOF
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonif { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson rm -rf conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "$ac_t""yes" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonelse
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "configure: failed program was:" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington cat conftest.$ac_ext >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington rm -rf conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "$ac_t""no" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonfi
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonrm -f conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho "configure:3466: checking for inet_pton" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtoncat > conftest.$ac_ext <<EOF
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#line 3468 "configure"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include "confdefs.h"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <sys/types.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <netinet/in.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <arpa/inet.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonint main() {
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssoninet_pton(0, 0, 0); return (0);
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington; return 0; }
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian WellingtonEOF
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonif { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington rm -rf conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "$ac_t""yes" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonelse
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "configure: failed program was:" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington cat conftest.$ac_ext >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington rm -rf conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "$ac_t""no" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonfi
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonrm -f conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho "configure:3493: checking for inet_aton" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtoncat > conftest.$ac_ext <<EOF
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#line 3495 "configure"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <sys/types.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <netinet/in.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <arpa/inet.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceint main() {
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonstruct in_addr in; inet_aton(0, &in); return (0);
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Check for some other useful functions that are not ever-present.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for strsep""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:3526: checking for strsep" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 3531 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence which can conflict with char strsep(); below. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <assert.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar strsep();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceint main() {
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* The GNU C library defines this for functions which it implements
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence to always fail with ENOSYS. Some functions are actually named
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence something starting with __ and the normal name is an alias. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#if defined (__stub_strsep) || defined (__stub___strsep)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechoke me
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#else
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencestrsep();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#endif
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_strsep=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_strsep=no"
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafssonfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsrm -f conftest*
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsfi
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceISC_EXTRA_OBJS="$ISC_EXTRA_OBJS strsep.$O"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS strsep.c"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho "configure:3577: checking for vsnprintf" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo $ac_n "(cached) $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat > conftest.$ac_ext <<EOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#line 3582 "configure"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* System header to define __stub macros and hopefully few prototypes,
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley which can conflict with char vsnprintf(); below. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include <assert.h>
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar vsnprintf();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyint main() {
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* The GNU C library defines this for functions which it implements
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley to always fail with ENOSYS. Some functions are actually named
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley something starting with __ and the normal name is an alias. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychoke me
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#else
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyvsnprintf();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#endif
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_vsnprintf=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "configure: failed program was:" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat conftest.$ac_ext >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_vsnprintf=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyrm -f conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""yes" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""no" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "configure:3634: checking for sizeof(long long int) == sizeof(long int)" >&5
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test "$cross_compiling" = yes; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence echo "$ac_t""default yes" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff cat > conftest.$ac_ext <<EOF
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#line 3640 "configure"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#include "confdefs.h"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffmain() { exit(!(sizeof(long long int) == sizeof(long int))); }
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffEOF
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleythen
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -fr conftest*
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -fr conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley# Security Stuff
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonecho $ac_n "checking for chroot""... $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho "configure:3664: checking for chroot" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat > conftest.$ac_ext <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#line 3669 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* System header to define __stub macros and hopefully few prototypes,
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley which can conflict with char chroot(); below. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include <assert.h>
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar chroot();
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyint main() {
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* The GNU C library defines this for functions which it implements
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley to always fail with ENOSYS. Some functions are actually named
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley something starting with __ and the normal name is an alias. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#if defined (__stub_chroot) || defined (__stub___chroot)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychoke me
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#else
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychroot();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#endif
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff; return 0; }
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas GustafssonEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_func_chroot=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson eval "ac_cv_func_chroot=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define HAVE_CHROOT 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfor ac_hdr in linux/capability.h
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleydo
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho "configure:3718: checking for $ac_hdr" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat > conftest.$ac_ext <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#line 3723 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff#include <$ac_hdr>
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley{ (eval echo configure:3728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif test -z "$ac_err"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_header_$ac_safe=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_err" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff rm -rf conftest*
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff eval "ac_cv_header_$ac_safe=no"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Grafffi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobrm -f conftest*
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""yes" 1>&6
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob cat >> confdefs.h <<EOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#define $ac_tr_hdr 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobEOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""no" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobdone
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfor ac_hdr in linux/prctl.h
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobdo
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho "configure:3758: checking for $ac_hdr" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo $ac_n "(cached) $ac_c" 1>&6
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob cat > conftest.$ac_ext <<EOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#line 3763 "configure"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#include "confdefs.h"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#include <$ac_hdr>
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobEOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob{ (eval echo configure:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test -z "$ac_err"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob rm -rf conftest*
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob eval "ac_cv_header_$ac_safe=yes"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_err" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "configure: failed program was:" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob cat conftest.$ac_ext >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob rm -rf conftest*
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob eval "ac_cv_header_$ac_safe=no"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobrm -f conftest*
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""yes" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob cat >> confdefs.h <<EOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#define $ac_tr_hdr 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobEOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""no" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobdone
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Random remaining OS-specific issues.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobcase "$host" in
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob *-bsdi3.1*|*-bsdi4.0*)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob cat >> confdefs.h <<\EOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#define SHUTUP_SPUTAUX 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobEOF
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobesac
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Substitutions
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobBIND9_TOP_BUILDDIR=`pwd`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test "X$srcdir" != "X"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence BIND9_ISC_BUILDINCLUDE=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_DNS_BUILDINCLUDE=""
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence BIND9_OMAPI_BUILDINCLUDE=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_LWRES_BUILDINCLUDE=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
40f24178432de09181bc603cc90110546a0ddca2Mark AndrewsBIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
40f24178432de09181bc603cc90110546a0ddca2Mark AndrewsBIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence. $srcdir/version
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceBIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsLIBISC_API=$srcdir/lib/isc/api
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsLIBDNS_API=$srcdir/lib/dns/api
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark AndrewsLIBLWRES_API=$srcdir/lib/lwres/api
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas GustafssonLIBOMAPI_API=$srcdir/lib/omapi/api
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontrap '' 1 2 15
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat > confcache <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This file is a shell script that caches the results of configure
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson# tests run on this system so they can be shared between configure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# scripts and configure runs. It is not useful on other systems.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# If it contains results you don't want to keep, you may remove or edit it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# By default, configure uses ./config.cache as the cache file,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# creating it if it does not exist already. You can give configure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the --cache-file=FILE option to use a different cache file; that is
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# what configure does when it calls configure scripts in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# subdirectories, so they share the cache.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Giving --cache-file=/dev/null disables caching, for debugging configure.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# config.status only pays attention to the cache file if you give it the
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson# --recheck option to rerun configure.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The following way of writing the cache mishandles newlines in values,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# but we know of no workaround that is simple, portable, and efficient.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# So, don't put newlines in cache variables' values.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Ultrix sh set writes to stderr and can't be redirected directly,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# and sets the high bit in the cache file unless we assign to the vars.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington(set) 2>&1 |
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case `(ac_space=' '; set | grep ac_space) 2>&1` in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *ac_space=\ *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # `set' does not quote correctly, so add quotes (double-quote substitution
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # turns \\\\ into \\, and sed turns \\ into \).
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -n \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -e "s/'/'\\\\''/g" \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # `set' quotes correctly as required by POSIX, so do not add quotes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac >> confcache
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif cmp -s $cache_file confcache; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -w $cache_file; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "updating cache $cache_file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat confcache > $cache_file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "not updating unwritable cache $cache_file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f confcache
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "x$prefix" = xNONE && prefix=$ac_default_prefix
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Let make expand exec_prefix.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Any assignment to VPATH causes Sun make to only execute
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the first set of double-colon rules, so remove it if not needed.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# If there is a colon in the path, we need to keep it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "x$srcdir" = x.; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonDEFS=-DHAVE_CONFIG_H
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Without the "./", some shells look in PATH for config.status.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence: ${CONFIG_STATUS=./config.status}
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho creating $CONFIG_STATUS
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f $CONFIG_STATUS
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > $CONFIG_STATUS <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#! /bin/sh
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Generated automatically by configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Run this file to recreate the current configuration.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This directory was configured as follows,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# $0 $ac_configure_args
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Compiler output produced by configure, useful for debugging
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews# configure, is in ./config.log if it exists.
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefor ac_option
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencedo
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case "\$ac_option" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$CONFIG_STATUS generated by autoconf version 2.13"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence exit 0 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -help | --help | --hel | --he | --h)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "\$ac_cs_usage"; exit 0 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *) echo "\$ac_cs_usage"; exit 1 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencedone
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_given_srcdir=$srcdir
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_given_INSTALL="$INSTALL"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewstrap 'rm -fr `echo "make/rules
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence make/includes
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews Makefile
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews make/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence make/mkdep
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/include/isc/platform.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/nls/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/include/dns/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/openssl/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/openssl/include/Makefile
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews lib/dns/sec/openssl/include/openssl/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dnssafe/Makefile
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews lib/dns/sec/dst/Makefile
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews lib/dns/sec/dst/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dst/include/dst/Makefile
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson lib/dns/config/Makefile
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews lib/lwres/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/netdb.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/platform.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/include/omapi/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/tests/Makefile
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews lib/tests/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/tests/include/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/named/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/named/unix/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/lwresd/Makefile
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews bin/rndc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/dig/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/names/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/master/Makefile
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews bin/tests/rbt/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/db/Makefile
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews bin/tests/tasks/Makefile
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews bin/tests/timers/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/dst/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/mem/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/sockaddr/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/headerdep_test.sh
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat >> $CONFIG_STATUS <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Protect against being on the right side of a sed subst in config.status.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington$ac_vpsub
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington$extrasub
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@SHELL@%$SHELL%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CFLAGS@%$CFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CPPFLAGS@%$CPPFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CXXFLAGS@%$CXXFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@FFLAGS@%$FFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DEFS@%$DEFS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LDFLAGS@%$LDFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LIBS@%$LIBS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@exec_prefix@%$exec_prefix%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@prefix@%$prefix%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@program_transform_name@%$program_transform_name%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@bindir@%$bindir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@sbindir@%$sbindir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@libexecdir@%$libexecdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@datadir@%$datadir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@sysconfdir@%$sysconfdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@sharedstatedir@%$sharedstatedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@localstatedir@%$localstatedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@libdir@%$libdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@includedir@%$includedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@oldincludedir@%$oldincludedir%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@infodir@%$infodir%g
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewss%@mandir@%$mandir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@host@%$host%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@host_alias@%$host_alias%g
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewss%@host_cpu@%$host_cpu%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@host_vendor@%$host_vendor%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@host_os@%$host_os%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@SET_MAKE@%$SET_MAKE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@RANLIB@%$RANLIB%g
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewss%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_DATA@%$INSTALL_DATA%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@STD_CINCLUDES@%$STD_CINCLUDES%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@STD_CDEFINES@%$STD_CDEFINES%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@STD_CWARNINGS@%$STD_CWARNINGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@AR@%$AR%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ARFLAGS@%$ARFLAGS%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ETAGS@%$ETAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@dst_privateopenssl@%$dst_privateopenssl%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CC@%$CC%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@YACC@%$YACC%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@CPP@%$CPP%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_HAVENETINET6IN6H@%$ISC_PLATFORM_HAVENETINET6IN6H%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@LWRES_PLATFORM_HAVENETINET6IN6H@%$LWRES_PLATFORM_HAVENETINET6IN6H%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@MKDEPCC@%$MKDEPCC%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@MKDEPPROG@%$MKDEPPROG%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@build@%$build%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@build_alias@%$build_alias%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@build_cpu@%$build_cpu%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@build_vendor@%$build_vendor%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@build_os@%$build_os%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LD@%$LD%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@NM@%$NM%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LN_S@%$LN_S%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@LIBTOOL@%$LIBTOOL%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@O@%$O%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@A@%$A%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@SA@%$SA%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_IPV6_H@%$ISC_IPV6_H%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_IPV6_O@%$ISC_IPV6_O%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_IPV6_C@%$ISC_IPV6_C%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewss%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/@BIND9_INCLUDES@/r $BIND9_INCLUDES
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_INCLUDES@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_MAKE_RULES@%%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@BIND9_VERSION@%$BIND9_VERSION%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/@LIBISC_API@/r $LIBISC_API
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LIBISC_API@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/@LIBDNS_API@/r $LIBDNS_API
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LIBDNS_API@%%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/@LIBLWRES_API@/r $LIBLWRES_API
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LIBLWRES_API@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/@LIBOMAPI_API@/r $LIBOMAPI_API
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LIBOMAPI_API@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceCEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat >> $CONFIG_STATUS <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Split the substitutions into bite-sized pieces for seds with
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# small command number limits, like on Digital OSF/1 and HP-UX.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_file=1 # Number of current file.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_beg=1 # First line for current file.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsac_end=$ac_max_sed_cmds # Line after last line for current file.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_more_lines=:
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonac_sed_cmds=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencewhile $ac_more_lines; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test $ac_beg -gt 1; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence sed "${ac_end}q" conftest.subs > conftest.s$ac_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test ! -s conftest.s$ac_file; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_more_lines=false
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -f conftest.s$ac_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews if test -z "$ac_sed_cmds"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_sed_cmds="sed -f conftest.s$ac_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews fi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_file=`expr $ac_file + 1`
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_beg=$ac_end
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_end=`expr $ac_end + $ac_max_sed_cmds`
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondone
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif test -z "$ac_sed_cmds"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_sed_cmds=cat
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat >> $CONFIG_STATUS <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCONFIG_FILES=\${CONFIG_FILES-"make/rules
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington make/includes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington make/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington make/mkdep
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/Makefile
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews lib/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/isc/platform.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/unix/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/unix/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/unix/include/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/nls/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/pthreads/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/isc/pthreads/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/pthreads/include/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/include/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/dns/include/dns/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/openssl/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/openssl/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/openssl/include/openssl/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/dnssafe/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/dns/sec/dst/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/dst/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/dst/include/dst/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/config/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/lwres/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/include/lwres/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/include/lwres/netdb.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/include/lwres/platform.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/omapi/Makefile
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews lib/omapi/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/omapi/include/omapi/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/tests/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/tests/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/tests/include/tests/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/named/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/named/unix/Makefile
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson bin/lwresd/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/rndc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/dig/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/names/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/master/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/rbt/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/db/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/tasks/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/timers/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/dst/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/mem/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/sockaddr/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/headerdep_test.sh
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence"}
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat >> $CONFIG_STATUS <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case "$ac_file" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) ac_file_in="${ac_file}.in" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Remove last slash and all that follows it. Not all systems have dirname.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The file is in a subdirectory.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test ! -d "$ac_dir" && mkdir "$ac_dir"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # A "../" for each directory in $ac_dir_suffix.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dir_suffix= ac_dots=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case "$ac_given_srcdir" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington .) srcdir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -z "$ac_dots"; then top_srcdir=.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) # Relative path.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington top_srcdir="$ac_dots$ac_given_srcdir" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case "$ac_given_INSTALL" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [/$]*) INSTALL="$ac_given_INSTALL" ;;
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo creating "$ac_file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f "$ac_file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case "$ac_file" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *Makefile*) ac_comsub="1i\\
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# $configure_input" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) ac_comsub= ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -e "$ac_comsub
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@configure_input@%$configure_input%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@srcdir@%$srcdir%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@top_srcdir@%$top_srcdir%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@INSTALL@%$INSTALL%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi; done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest.s*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# NAME is the cpp macro being defined and VALUE is the value it is being given.
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# ac_d sets the value in "#define NAME VALUE" lines.
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsac_dC='\3'
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsac_dD='%g'
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsac_uB='\([ ]\)%\1#\2define\3'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_uC=' '
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_uD='\4%g'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_eB='$%\1#\2define\3'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_eC=' '
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_eD='%g'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "${CONFIG_HEADERS+set}" != set; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat >> $CONFIG_STATUS <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CONFIG_HEADERS="config.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat >> $CONFIG_STATUS <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case "$ac_file" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) ac_file_in="${ac_file}.in" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo creating $ac_file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.frag conftest.in conftest.out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat $ac_file_inputs > conftest.in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Transform confdefs.h into a sed script conftest.vals that substitutes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the proper values into config.h.in to produce config.h. And first:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Protect against being on the right side of a sed subst in config.status.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Protect against being in an unquoted here document in config.status.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest.vals
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat > conftest.hdr <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons/[\\&%]/\\&/g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%[\\$`]%\\&%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%ac_d%ac_u%gp
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%ac_u%ac_e%gp
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsed -n -f conftest.hdr confdefs.h > conftest.vals
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest.hdr
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This sed command replaces #undef with comments. This is necessary, for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# example, in the case of _POSIX_SOURCE, which is predefined and required
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# on some systems where configure will not decide to define it.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssoncat >> conftest.vals <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Break up conftest.vals because some shells have a limit on
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the size of here documents, and old seds have small limits too.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest.tail
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwhile :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_lines=`grep -c . conftest.vals`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # grep -c gives empty output for an empty file on some AIX systems.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Write a limited-size here document to conftest.frag.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo 'CEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -f conftest.frag conftest.in > conftest.out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mv conftest.out conftest.in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington' >> $CONFIG_STATUS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.vals
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mv conftest.tail conftest.vals
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest.vals
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat >> $CONFIG_STATUS <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.frag conftest.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.in >> conftest.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if cmp -s $ac_file conftest.h 2>/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_file is unchanged"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson # Remove last slash and all that follows it. Not all systems have dirname.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The file is in a subdirectory.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test ! -d "$ac_dir" && mkdir "$ac_dir"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f $ac_file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mv conftest.h $ac_file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi; done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat >> $CONFIG_STATUS <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat >> $CONFIG_STATUS <<\EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexit 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchmod +x $CONFIG_STATUS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -fr confdefs* $ac_clean_files
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington