configure revision 87449ffeb52327f7d1fba5a82961a373f626dac2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#! /bin/sh
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Copyright (C) 1996-2000 Internet Software Consortium.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Permission to use, copy, modify, and distribute this software for any
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# purpose with or without fee is hereby granted, provided that the above
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# copyright notice and this permission notice appear in all copies.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
34f991028382079af7c2b53bac6768803ff28f8cBrian Wellington# From configure.in Revision: 1.185
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## Copyright (C) 1996-1999 Free Software Foundation, Inc.
f4b4e7c16211137332e50bcad3fef0d15639a4f1Brian Wellington## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
f4b4e7c16211137332e50bcad3fef0d15639a4f1Brian Wellington##
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## This program is free software; you can redistribute it and/or modify
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## it under the terms of the GNU General Public License as published by
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington## the Free Software Foundation; either version 2 of the License, or
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## (at your option) any later version.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington##
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## This program is distributed in the hope that it will be useful, but
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## WITHOUT ANY WARRANTY; without even the implied warranty of
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## General Public License for more details.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington##
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## You should have received a copy of the GNU General Public License
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington## along with this program; if not, write to the Free Software
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington##
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## As a special exception to the GNU General Public License, if you
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## distribute this file as part of a program that contains a
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## configuration script generated by Autoconf, you may include it under
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington## the same distribution terms that you use for the rest of that program.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# serial 40 AC_PROG_LIBTOOL
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington# AC_ENABLE_SHARED - implement the --enable-shared flag
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington# Usage: AC_ENABLE_SHARED[(DEFAULT)]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# `yes'.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_ENABLE_STATIC - implement the --enable-static flag
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Usage: AC_ENABLE_STATIC[(DEFAULT)]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# `yes'.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_DISABLE_STATIC - set the default static flag to --disable-static
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# `yes'.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# AC_PROG_LD - find the path to the GNU or non-GNU linker
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# AC_PROG_NM - find the path to a BSD-compatible name lister
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# AC_CHECK_LIBM - check for math library
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# the libltdl convenience library, adds --enable-ltdl-convenience to
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# to be `${top_builddir}/libltdl'. Make sure you start DIR with
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# flat, and, if you're not using automake, define top_builddir as
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# appropriate in the Makefiles.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# the libltdl installable library, and adds --enable-ltdl-install to
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# to be `${top_builddir}/libltdl'. Make sure you start DIR with
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# flat, and, if you're not using automake, define top_builddir as
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# appropriate in the Makefiles.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Guess values for system-dependent variables and create Makefiles.
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington# Generated automatically using autoconf version 2.13
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington#
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington# This configure script is free software; the Free Software Foundation
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# gives unlimited permission to copy, distribute and modify it.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Defaults:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_help=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_default_prefix=/usr/local
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Any additions from configure.in:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --enable-threads use multithreading"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --with-openssl=PATH Specify path for system-supplied openssl
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington (rather than using bind-9 internal openssl)"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_help="$ac_help
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --with-gssapi=PATH Specify path for system-supplied GSSAPI"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_help="$ac_help
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --with-randomdev=PATH Specify path for random device"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_help="$ac_help
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --with-libtool use GNU libtool (following indented options supported)"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --enable-shared[=PKGS] build shared libraries [default=yes]"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --enable-static[=PKGS] build static libraries [default=yes]"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --disable-libtool-lock avoid locking (might break parallel builds)"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --enable-ipv6 use IPv6 [default=autodetect]"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonac_help="$ac_help
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Initialize some variables set by options.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# The variables have the same names as the options, with
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# dashes changed to underlines.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonbuild=NONE
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtoncache_file=./config.cache
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonexec_prefix=NONE
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonhost=NONE
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonno_create=
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonnonopt=NONE
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonno_recursion=
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonprefix=NONE
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonprogram_prefix=NONE
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonprogram_suffix=NONE
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonprogram_transform_name=s,x,x,
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonsilent=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonsite=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonsrcdir=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtontarget=NONE
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonverbose=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonx_includes=NONE
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonx_libraries=NONE
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonbindir='${exec_prefix}/bin'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonsbindir='${exec_prefix}/sbin'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonlibexecdir='${exec_prefix}/libexec'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondatadir='${prefix}/share'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonsysconfdir='${prefix}/etc'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonsharedstatedir='${prefix}/com'
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellingtonlocalstatedir='${prefix}/var'
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonlibdir='${exec_prefix}/lib'
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonincludedir='${prefix}/include'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonoldincludedir='/usr/include'
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtoninfodir='${prefix}/info'
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonmandir='${prefix}/man'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Initialize some other variables.
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellingtonsubdirs=
75e1e12f48012505699f504cfa364260cb2bc1afBrian WellingtonMFLAGS= MAKEFLAGS=
77ac297199fc44809d9628558223627c10ae3f31Brian WellingtonSHELL=${CONFIG_SHELL-/bin/sh}
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington# Maximum number of lines to put in a shell here document.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_max_here_lines=12
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonac_prev=
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonfor ac_option
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtondo
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington # If the previous option needs an argument, assign it.
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington if test -n "$ac_prev"; then
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington eval "$ac_prev=\$ac_option"
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington ac_prev=
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington continue
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington fi
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington case "$ac_option" in
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *) ac_optarg= ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Accept the important Cygnus configure options, so we can diagnose typos.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ac_option" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -bindir | --bindir | --bindi | --bind | --bin | --bi)
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington ac_prev=bindir ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington bindir="$ac_optarg" ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -build | --build | --buil | --bui | --bu)
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington ac_prev=build ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -build=* | --build=* | --buil=* | --bui=* | --bu=*)
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington build="$ac_optarg" ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -cache-file | --cache-file | --cache-fil | --cache-fi \
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington ac_prev=cache_file ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cache_file="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=datadir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --da=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington datadir="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -disable-* | --disable-*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Reject names that are not valid shell variable names.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_feature=`echo $ac_feature| sed 's/-/_/g'`
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington eval "enable_${ac_feature}=no" ;;
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington -enable-* | --enable-*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Reject names that are not valid shell variable names.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_feature=`echo $ac_feature| sed 's/-/_/g'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ac_option" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *=*) ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *) ac_optarg=yes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington eval "enable_${ac_feature}='$ac_optarg'" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --exec | --exe | --ex)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=exec_prefix ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --exec=* | --exe=* | --ex=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington exec_prefix="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -gas | --gas | --ga | --g)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Obsolete; use --with-gas.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington with_gas=yes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -help | --help | --hel | --he)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Omit some internal or obsolete options to make the list less imposing.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # This message is too long to be a string in the A/UX 3.1 sh.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat << EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonUsage: configure [options] [host]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonOptions: [defaults in brackets after descriptions]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonConfiguration:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --cache-file=FILE cache test results in FILE
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --help print this message
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --no-create do not create output files
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --quiet, --silent do not print \`checking...' messages
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --version print the version of autoconf that created configure
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonDirectory and file names:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --prefix=PREFIX install architecture-independent files in PREFIX
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington [$ac_default_prefix]
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington [same as prefix]
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington --bindir=DIR user executables in DIR [EPREFIX/bin]
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington --datadir=DIR read-only architecture-independent data in DIR
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington [PREFIX/share]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --sharedstatedir=DIR modifiable architecture-independent data in DIR
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington [PREFIX/com]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --libdir=DIR object code libraries in DIR [EPREFIX/lib]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --includedir=DIR C header files in DIR [PREFIX/include]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --infodir=DIR info documentation in DIR [PREFIX/info]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --mandir=DIR man documentation in DIR [PREFIX/man]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --srcdir=DIR find the sources in DIR [configure dir or ..]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --program-prefix=PREFIX prepend PREFIX to installed program names
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --program-suffix=SUFFIX append SUFFIX to installed program names
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --program-transform-name=PROGRAM
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington run sed PROGRAM on installed program names
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat << EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonHost type:
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington --build=BUILD configure for building on BUILD [BUILD=HOST]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --host=HOST configure for HOST [guessed]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --target=TARGET configure for TARGET [TARGET=HOST]
a4c351fcef77fb332e3cb20253fb96556a414a17Brian WellingtonFeatures and packages:
ebfcb6cf66283096ebda1503b6cc042ce86b6bedBrian Wellington --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --x-includes=DIR X include files are in DIR
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --x-libraries=DIR X library files are in DIR
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "$ac_help"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "--enable and --with options recognized:$ac_help"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington exit 0 ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -host | --host | --hos | --ho)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=host ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -host=* | --host=* | --hos=* | --ho=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington host="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -includedir | --includedir | --includedi | --included | --include \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --includ | --inclu | --incl | --inc)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=includedir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --includ=* | --inclu=* | --incl=* | --inc=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington includedir="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -infodir | --infodir | --infodi | --infod | --info | --inf)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=infodir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington infodir="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -libdir | --libdir | --libdi | --libd)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=libdir ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -libdir=* | --libdir=* | --libdi=* | --libd=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington libdir="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington | --libexe | --libex | --libe)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=libexecdir ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --libexe=* | --libex=* | --libe=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington libexecdir="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -localstatedir | --localstatedir | --localstatedi | --localstated \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --localstate | --localstat | --localsta | --localst \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --locals | --local | --loca | --loc | --lo)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=localstatedir ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --localstate=* | --localstat=* | --localsta=* | --localst=* \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington localstatedir="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=mandir ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington mandir="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -nfp | --nfp | --nf)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington # Obsolete; use --without-fp.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington with_fp=no ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -no-create | --no-create | --no-creat | --no-crea | --no-cre \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --no-cr | --no-c)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington no_create=yes ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -no-recursion | --no-recursion | --no-recursio | --no-recursi \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington no_recursion=yes ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --oldin | --oldi | --old | --ol | --o)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=oldincludedir ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington oldincludedir="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=prefix ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington prefix="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -program-prefix | --program-prefix | --program-prefi | --program-pref \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --program-pre | --program-pr | --program-p)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_prev=program_prefix ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington -program-prefix=* | --program-prefix=* | --program-prefi=* \
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington program_prefix="$ac_optarg" ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -program-suffix | --program-suffix | --program-suffi | --program-suff \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-suf | --program-su | --program-s)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=program_suffix ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -program-suffix=* | --program-suffix=* | --program-suffi=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington program_suffix="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -program-transform-name | --program-transform-name \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transform-nam | --program-transform-na \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transform-n | --program-transform- \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transform | --program-transfor \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transfo | --program-transf \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-trans | --program-tran \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --progr-tra | --program-tr | --program-t)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=program_transform_name ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -program-transform-name=* | --program-transform-name=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transform-nam=* | --program-transform-na=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transform-n=* | --program-transform-=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transform=* | --program-transfor=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-transfo=* | --program-transf=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --program-trans=* | --program-tran=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --progr-tra=* | --program-tr=* | --program-t=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington program_transform_name="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -q | -quiet | --quiet | --quie | --qui | --qu | --q \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | -silent | --silent | --silen | --sile | --sil)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington silent=yes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=sbindir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --sbi=* | --sb=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington sbindir="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -sharedstatedir | --sharedstatedir | --sharedstatedi \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --sharedst | --shareds | --shared | --share | --shar \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --sha | --sh)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=sharedstatedir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --sha=* | --sh=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington sharedstatedir="$ac_optarg" ;;
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellington
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellington -site | --site | --sit)
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellington ac_prev=site ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -site=* | --site=* | --sit=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington site="$ac_optarg" ;;
5e387b9ce6bafdfadedb5b34e4c33a4404e5d589Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=srcdir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington srcdir="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --syscon | --sysco | --sysc | --sys | --sy)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=sysconfdir ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington sysconfdir="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -target | --target | --targe | --targ | --tar | --ta | --t)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=target ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington target="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -v | -verbose | --verbose | --verbos | --verbo | --verb)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington verbose=yes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -version | --version | --versio | --versi | --vers)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "configure generated by autoconf version 2.13"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington exit 0 ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -with-* | --with-*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Reject names that are not valid shell variable names.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_package=`echo $ac_package| sed 's/-/_/g'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ac_option" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *=*) ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *) ac_optarg=yes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington eval "with_${ac_package}='$ac_optarg'" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -without-* | --without-*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_package=`echo $ac_option|sed -e 's/-*without-//'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Reject names that are not valid shell variable names.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_package=`echo $ac_package| sed 's/-/_/g'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington eval "with_${ac_package}=no" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington --x)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Obsolete; use --with-x.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington with_x=yes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --x-incl | --x-inc | --x-in | --x-i)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=x_includes ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington x_includes="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -x-libraries | --x-libraries | --x-librarie | --x-librari \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prev=x_libraries ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington x_libraries="$ac_optarg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "configure: warning: $ac_option: invalid host type" 1>&2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test "x$nonopt" != xNONE; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington nonopt="$ac_option"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondone
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -n "$ac_prev"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtontrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# File descriptor usage:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 0 standard input
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 1 file creation
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 2 errors and warnings
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 3 some systems may open it to /dev/tty
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 4 used on the Kubota Titan
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 6 checking for... messages and results
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# 5 compiler messages saved in config.log
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test "$silent" = yes; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington exec 6>/dev/null
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington exec 6>&1
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonexec 5>./config.log
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "\
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonThis file contains any messages produced by compilers while
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonrunning configure, to aid debugging if configure makes a mistake.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington" 1>&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Strip out --no-create and --no-recursion so they do not pile up.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Also quote any args containing shell metacharacters.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_configure_args=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfor ac_arg
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondo
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ac_arg" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -no-create | --no-create | --no-creat | --no-crea | --no-cre \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --no-cr | --no-c) ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington -no-recursion | --no-recursion | --no-recursio | --no-recursi \
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_configure_args="$ac_configure_args '$ac_arg'" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *) ac_configure_args="$ac_configure_args $ac_arg" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondone
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# NLS nuisances.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Only set these to C if already set. These must not be set unconditionally
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# because not all systems understand e.g. LANG=C (notably SCO).
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Non-C LC_CTYPE values break the ctype check.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test "${LANG+set}" = set; then LANG=C; export LANG; fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# confdefs.h avoids OS command line length limits that DEFS can exceed.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonrm -rf conftest* confdefs.h
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AIX cpp loses on an empty file, so make sure it contains at least a newline.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho > confdefs.h
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# A filename unique to this package, relative to the directory that
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# configure is in, which we can look for to find out if srcdir is correct.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_unique_file=lib/dns/name.c
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Find the source files, if location was not specified.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -z "$srcdir"; then
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_srcdir_defaulted=yes
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Try the directory containing this script, then its parent.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prog=$0
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington srcdir=$ac_confdir
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test ! -r $srcdir/$ac_unique_file; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington srcdir=..
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonelse
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_srcdir_defaulted=no
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonfi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonif test ! -r $srcdir/$ac_unique_file; then
5e387b9ce6bafdfadedb5b34e4c33a4404e5d589Brian Wellington if test "$ac_srcdir_defaulted" = yes; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington else
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Prefer explicitly selected file to automatically selected ones.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -z "$CONFIG_SITE"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test "x$prefix" != xNONE; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington else
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonfor ac_site_file in $CONFIG_SITE; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -r "$ac_site_file"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "loading site script $ac_site_file"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington . "$ac_site_file"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondone
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -r "$cache_file"; then
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington echo "loading cache $cache_file"
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington . $cache_file
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington echo "creating cache $cache_file"
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington > $cache_file
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonfi
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonac_ext=c
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonac_cpp='$CPP $CPPFLAGS'
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtoncross_compiling=$ac_cv_prog_cc_cross
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonac_exeext=
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonac_objext=o
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellingtonif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a4c351fcef77fb332e3cb20253fb96556a414a17Brian Wellington if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_n= ac_c='
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington' ac_t=' '
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington else
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_n=-n ac_c= ac_t=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_n= ac_c='\c' ac_t=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellingtonac_aux_dir=
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellingtonfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f $ac_dir/install-sh; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_aux_dir=$ac_dir
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_install_sh="$ac_aux_dir/install-sh -c"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington elif test -f $ac_dir/install.sh; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_aux_dir=$ac_dir
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_install_sh="$ac_aux_dir/install.sh -c"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondone
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -z "$ac_aux_dir"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_config_guess=$ac_aux_dir/config.guess
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_config_sub=$ac_aux_dir/config.sub
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Make sure we can run config.sub.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking host system type""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:695: checking host system type" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonhost_alias=$host
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoncase "$host_alias" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonNONE)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case $nonopt in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington NONE)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *) host_alias=$nonopt ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "$ac_t""$host" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:717: checking whether ${MAKE-make} sets \${MAKE}" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat > conftestmake <<\EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonall:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington @echo 'ac_maketemp="${MAKE}"'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoneval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -n "$ac_maketemp"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington eval ac_cv_prog_make_${ac_make}_set=yes
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington eval ac_cv_prog_make_${ac_make}_set=no
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonrm -f conftestmake
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""yes" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington SET_MAKE=
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""no" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington SET_MAKE="MAKE=${MAKE-make}"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Extract the first word of "ranlib", so it can be a program name with args.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonset dummy ranlib; ac_word=$2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:746: checking for $ac_word" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "$RANLIB"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
0a45f098e446a7f41c2a71d9dd0fd8f459b49c34Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0a45f098e446a7f41c2a71d9dd0fd8f459b49c34Brian Wellington ac_dummy="$PATH"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_dir in $ac_dummy; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -z "$ac_dir" && ac_dir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f $ac_dir/$ac_word; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_prog_RANLIB="ranlib"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington done
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="$ac_save_ifs"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonRANLIB="$ac_cv_prog_RANLIB"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -n "$RANLIB"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""$RANLIB" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""no" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Find a good install program. We prefer a C program (faster),
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# so one script is as good as another. But avoid the broken or
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# incompatible versions:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# SysV /etc/install, /usr/sbin/install
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# SunOS /usr/etc/install
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# IRIX /sbin/install
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AIX /bin/install
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# AFS /usr/afsws/bin/install, which mishandles nonexistent args
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# ./install, which can be erroneously created by make from ./install.sh.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:785: checking for a BSD compatible install" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -z "$INSTALL"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_dir in $PATH; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Account for people who put trailing slashes in PATH elements.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ac_dir/" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # OSF1 and SCO ODT 3.0 have their own names for install.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Don't use installbsd from OSF since it installs stuff as root
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # by default.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_prog in ginstall scoinst install; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f $ac_dir/$ac_prog; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test $ac_prog = install &&
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # AIX install. It has an incompatible calling convention.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington :
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington else
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_install="$ac_dir/$ac_prog -c"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break 2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington done
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington done
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="$ac_save_IFS"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test "${ac_cv_path_install+set}" = set; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington INSTALL="$ac_cv_path_install"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington else
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # As a last resort, use the slow shell script. We don't cache a
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # path for INSTALL within a source directory, because that will
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # break other packages using the cache if that directory is
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # removed, or if the path is relative.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington INSTALL="$ac_install_sh"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "$ac_t""$INSTALL" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# It thinks the first close brace ends the variable substitution.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtontest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtontest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtontest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Extract the first word of "ar", so it can be a program name with args.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonset dummy ar; ac_word=$2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:846: checking for $ac_word" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$AR" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington /*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_AR="$AR" # Let the user override the test with a path.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ?:/*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_dummy="$PATH"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_dir in $ac_dummy; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -z "$ac_dir" && ac_dir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f $ac_dir/$ac_word; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_AR="$ac_dir/$ac_word"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington done
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="$ac_save_ifs"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonAR="$ac_cv_path_AR"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -n "$AR"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""$AR" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""no" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonARFLAGS="cruv"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# The POSIX ln(1) program. Non-POSIX systems may substitute
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# "copy" or something.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonLN=ln
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoncase "$AR" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington "")
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonar program not found. Please fix your PATH to include the directory in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonwhich ar resides, or set AR in the environment with the full path to ar.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfor ac_prog in etags emacs-etags
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondo
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Extract the first word of "$ac_prog", so it can be a program name with args.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonset dummy $ac_prog; ac_word=$2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:902: checking for $ac_word" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ETAGS" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington /*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington ?:/*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington *)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_dummy="$PATH"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington for ac_dir in $ac_dummy; do
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington test -z "$ac_dir" && ac_dir=.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington if test -f $ac_dir/$ac_word; then
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ac_cv_path_ETAGS="$ac_dir/$ac_word"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington break
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington fi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington done
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington IFS="$ac_save_ifs"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonesac
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonfi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian WellingtonETAGS="$ac_cv_path_ETAGS"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonif test -n "$ETAGS"; then
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""$ETAGS" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonelse
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""no" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonfi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtontest -n "$ETAGS" && break
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtondone
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Perl is optional; it is used only by some of the system test scripts.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonfor ac_prog in perl5 perl
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtondo
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Extract the first word of "$ac_prog", so it can be a program name with args.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonset dummy $ac_prog; ac_word=$2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:947: checking for $ac_word" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$PERL" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington /*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ?:/*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_dummy="$PATH"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_dir in $ac_dummy; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -z "$ac_dir" && ac_dir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f $ac_dir/$ac_word; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_path_PERL="$ac_dir/$ac_word"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington done
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="$ac_save_ifs"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonPERL="$ac_cv_path_PERL"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test -n "$PERL"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""$PERL" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""no" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtontest -n "$PERL" && break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtondone
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Special processing of paths depending on whether --prefix,
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# --sysconfdir or --localstatedir arguments were given. What's
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# desired is some compatability with the way previous versions
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# of BIND built; they defaulted to /usr/local for most parts of
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# the installation, but named.boot/named.conf was in /etc
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# and named.pid was in /var/run.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# So ... if none of --prefix, --sysconfdir or --localstatedir are
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# specified, set things up that way. If --prefix is given, use
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# it for sysconfdir and localstatedir the way configure normally
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# would. To change the prefix for everything but leave named.conf
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# in /etc or named.pid in /var/run, then do this the usual configure way:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# ./configure --prefix=/somewhere --sysconfdir=/etc
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# ./configure --prefix=/somewhere --localstatedir=/var
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# To put named.conf and named.pid in /usr/local with everything else,
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# set the prefix explicitly to /usr/local even though that's the default:
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# ./configure --prefix=/usr/local
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoncase "$prefix" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington NONE)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$sysconfdir" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington '${prefix}/etc')
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington sysconfdir=/etc
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$localstatedir" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington '${prefix}/var')
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington localstatedir=/var
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Make sure INSTALL uses an absolute path, else it will be wrong in all
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# configure based on the location of the file where it is substituted.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# subdirectory of install-sh, This relative path will be wrong for all
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# directories more than one level down from install-sh.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
b55c30f2de6e1baaa3a9ba69b92f428f2c255ac3Mark Andrewscase "$INSTALL" in
b55c30f2de6e1baaa3a9ba69b92f428f2c255ac3Mark Andrews /*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington #
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Not all systems have dirname.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington #
b55c30f2de6e1baaa3a9ba69b92f428f2c255ac3Mark Andrews
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test "$ac_dir" = "$ac_prog" && ac_dir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington INSTALL="$ac_dir/$ac_prog"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Decide whether to use multithreading or not.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking whether to use threads""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:1049: checking whether to use threads" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Check whether --enable-threads or --disable-threads was given.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test "${enable_threads+set}" = set; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington enableval="$enable_threads"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington :
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoncase "$enable_threads" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington yes|'')
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""yes" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington use_threads=true
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington no)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""no" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington use_threads=false
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS" ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: "--enable-threads takes yes or no"" 1>&2; exit 1; } ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# On these hosts, we really want to use cc, not gcc, even if it is
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# found. The gcc that these systems have will not correctly handle
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews# pthreads.
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews#
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews# However, if the user sets $CC to be something, let that override
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews# our change.
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews#
4a30ede93d59137009db734661cde17612e8ffbeMark Andrewsif test "X$CC" = "X" ; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$host" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *-dec-osf*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington CC="cc"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *-solaris*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # Use Sun's cc if it is available, but watch
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # out for /usr/ucb/cc; it will never be the right
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # compiler to use.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington #
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # If setting CC here fails, the AC_PROG_CC done
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # below might still find gcc.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_dir in $PATH; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -z "$ac_dir" && ac_dir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington case "$ac_dir" in
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington /usr/ucb)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # exclude
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f "$ac_dir/cc"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington CC="$ac_dir/cc"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington fi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington done
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews IFS="$ac_save_ifs"
4a30ede93d59137009db734661cde17612e8ffbeMark Andrews ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *-hp-hpux*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington CC="cc"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington mips-sgi-irix*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington CC="cc"
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Find the machine's endian flavor.
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
77ac297199fc44809d9628558223627c10ae3f31Brian Wellingtonecho "configure:1120: checking whether byte ordering is bigendian" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
77ac297199fc44809d9628558223627c10ae3f31Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_c_bigendian=unknown
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# See if sys/param.h defines the BYTE_ORDER macro.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoncat > conftest.$ac_ext <<EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#line 1127 "configure"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include "confdefs.h"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include <sys/types.h>
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include <sys/param.h>
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonint main() {
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington bogus endian macros
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#endif
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington; return 0; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif { (eval echo configure:1138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington rm -rf conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington # It does; now see whether it defined to BIG_ENDIAN or not.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtoncat > conftest.$ac_ext <<EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#line 1142 "configure"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include "confdefs.h"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include <sys/types.h>
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include <sys/param.h>
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonint main() {
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#if BYTE_ORDER != BIG_ENDIAN
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington not big endian
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#endif
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington; return 0; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif { (eval echo configure:1153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington rm -rf conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_c_bigendian=yes
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "configure: failed program was:" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat conftest.$ac_ext >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington rm -rf conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_c_bigendian=no
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonrm -f conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "configure: failed program was:" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat conftest.$ac_ext >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonrm -f conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test $ac_cv_c_bigendian = unknown; then
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellingtonif test "$cross_compiling" = yes; then
34f991028382079af7c2b53bac6768803ff28f8cBrian Wellington { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
75e1e12f48012505699f504cfa364260cb2bc1afBrian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat > conftest.$ac_ext <<EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#line 1173 "configure"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#include "confdefs.h"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonmain () {
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington /* Are we little or big endian? From Harbison&Steele. */
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington union
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington {
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington long l;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington char c[sizeof (long)];
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington } u;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington u.l = 1;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington exit (u.c[sizeof (long) - 1] == 1);
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington}
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonthen
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_c_bigendian=no
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "configure: failed program was:" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat conftest.$ac_ext >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington rm -fr conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_c_bigendian=yes
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonrm -fr conftest*
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "$ac_t""$ac_cv_c_bigendian" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test $ac_cv_c_bigendian = yes; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat >> confdefs.h <<\EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#define WORDS_BIGENDIAN 1
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# was --with-openssl specified?
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:1214: checking for compatible OpenSSL library" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Check whether --with-openssl or --without-openssl was given.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif test "${with_openssl+set}" = set; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington withval="$with_openssl"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington use_openssl="$withval"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington use_openssl="no"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonfi
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# If the user didn't specify where openssl is, and we didn't find or it
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# is incompatible with our code, use our internal one.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# XXX This appears to assume that the user specified path is correct,
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# and does no checking.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtoncase "$use_openssl" in
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington no)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington dst_privateopenssl='openssl'
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_OPENSSL_INC='-I${srcdir}/../openssl/include'
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_OPENSSL_LIB=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_OPENSSL_OBJS='${OPENSSLOBJS}'
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""using private library" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington yes)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington { echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington *)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_PRIVATEOPENSSL=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington dst_privateopenssl=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_OPENSSL_INC="-I$use_openssl/include"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_OPENSSL_LIB=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonesac
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# This would include the system openssl path (and linker options to use
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# it as needed) if it is found.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# was --with-gssapi specified?
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonecho $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonecho "configure:1271: checking for GSSAPI library" >&5
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Check whether --with-gssapi or --without-gssapi was given.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonif test "${with_gssapi+set}" = set; then
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington withval="$with_gssapi"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington use_gssapi="$withval"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonelse
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington use_gssapi="no"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonfi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtoncase "$use_gssapi" in
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington no)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington USE_GSSAPI=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_GSSAPI_INC=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DNS_GSSAPI_LIBS=''
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""not specified" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington yes)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington { echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington *)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington USE_GSSAPI='-DGSSAPI'
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DST_GSSAPI_INC="-I$use_gssapi/include"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington ;;
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonesac
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# was --with-randomdev specified?
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonecho $ac_n "checking for random device""... $ac_c" 1>&6
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonecho "configure:1307: checking for random device" >&5
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington# Check whether --with-randomdev or --without-randomdev was given.
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonif test "${with_randomdev+set}" = set; then
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington withval="$with_randomdev"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington use_randomdev="$withval"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonelse
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington use_randomdev="unspec"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtonfi
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellingtoncase "$use_randomdev" in
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington unspec)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington case "$host" in
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington *-openbsd*)
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington cat >> confdefs.h <<\EOF
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington#define PATH_RANDOMDEV "/dev/srandom"
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian WellingtonEOF
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington
60b90a37f41ab7607762d0e9791e79bd19eae4f4Brian Wellington echo "$ac_t""using /dev/srandom" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *-linux*|*-freebsd*|*-netbsd*)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat >> confdefs.h <<\EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#define PATH_RANDOMDEV "/dev/random"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""using /dev/random" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""not found" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington esac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington yes)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington { echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington *)
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington cat >> confdefs.h <<EOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington#define PATH_RANDOMDEV "$use_randomdev"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian WellingtonEOF
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo "$ac_t""using "$use_randomdev"" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ;;
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonesac
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington# Extract the first word of "gcc", so it can be a program name with args.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonset dummy gcc; ac_word=$2
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonecho "configure:1354: checking for $ac_word" >&5
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -n "$CC"; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_prog_CC="$CC" # Let the user override the test.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellingtonelse
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_dummy="$PATH"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington for ac_dir in $ac_dummy; do
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington test -z "$ac_dir" && ac_dir=.
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington if test -f $ac_dir/$ac_word; then
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington ac_cv_prog_CC="gcc"
033ba09d6df0ac92a736a480b9c3b164b61dccb2Brian Wellington break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1384: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_prog_rejected=no
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
break
fi
done
IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# -gt 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
set dummy "$ac_dir/$ac_word" "$@"
shift
ac_cv_prog_CC="$@"
fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test -z "$CC"; then
case "`uname -s`" in
*win32* | *WIN32*)
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1435: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="cl"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
;;
esac
fi
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1467: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
#line 1478 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
ac_cv_prog_cc_cross=no
else
ac_cv_prog_cc_cross=yes
fi
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1509: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1514: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
fi
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
else
GCC=
fi
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1542: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
ac_cv_prog_cc_g=yes
else
ac_cv_prog_cc_g=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1578: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_YACC="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
echo "$ac_t""$YACC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1610: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1625 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1642 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1659 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1690: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1695 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1720 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "memchr" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1738 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 1759 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
for ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1798: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1803 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1836: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1841 "configure"
#include "confdefs.h"
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
; return 0; }
EOF
if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:1911: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
#line 1918 "configure"
#include "confdefs.h"
int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
no) cat >> confdefs.h <<\EOF
#define inline
EOF
;;
*) cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
;;
esac
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1951: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1956 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
rm -rf conftest*
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1984: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1989 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
if $use_threads
then
#
# Search for / configure pthreads in a system-dependent fashion.
#
case "$host" in
*-netbsd*)
# NetBSD has multiple pthreads implementations. The
# recommended one to use is "unproven-pthreads". The
# older "mit-pthreads" may also work on some NetBSD
# versions. The PTL2 thread library does not
# currently work with bind9, but can be chosen with
# the --with-ptl2 option for those who wish to
# experiment with it.
CC="gcc"
echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
echo "configure:2035: checking which NetBSD thread library to use" >&5
# Check whether --with-ptl2 or --without-ptl2 was given.
if test "${with_ptl2+set}" = set; then
withval="$with_ptl2"
use_ptl2="$withval"
else
use_ptl2="no"
fi
: ${LOCALBASE:=/usr/pkg}
if test "X$use_ptl2" = "Xyes"
then
echo "$ac_t""PTL2" 1>&6
echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
CC=ptlgcc
else
echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
if test ! -d $LOCALBASE/pthreads
then
{ echo "configure: error: no thread library found.
Please install the devel/unproven-pthreads package and rerun configure.
" 1>&2; exit 1; }
fi
pkg="$LOCALBASE/pthreads"
lib1="-L$pkg/lib -Wl,-R$pkg/lib"
lib2="-lpthread -lm -lgcc -lpthread"
LIBS="$lib1 $lib2 $LIBS"
CPPFLAGS="$CPPFLAGS -I$pkg/include"
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
fi
;;
*)
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2074: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2082 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2119: checking for __pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2127 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create();
int main() {
__pthread_create()
; return 0; }
EOF
if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
echo "configure:2166: checking for __pthread_create_system in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2174 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create_system();
int main() {
__pthread_create_system()
; return 0; }
EOF
if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
fi
;;
esac
#
# We'd like to use sigwait() too
#
echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
echo "configure:2221: checking for sigwait in -lc" >&5
ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2229 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2262: checking for sigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2270 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2303: checking for _Psigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2311 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _Psigwait();
int main() {
_Psigwait()
; return 0; }
EOF
if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
fi
fi
#
# Additional OS-specific issues related to pthreads and sigwait.
#
case "$host" in
#
# One more place to look for sigwait.
#
*-freebsd*)
echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
echo "configure:2360: checking for sigwait in -lc_r" >&5
ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc_r $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2368 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# BSDI 3.1 through 4.0.1 needs pthread_init() to be
# called before certain pthreads calls. This is deprecated
# in BSD/OS 4.1.
#
*-bsdi3.1*|*-bsdi4.0*)
cat >> confdefs.h <<\EOF
#define NEED_PTHREAD_INIT 1
EOF
;;
#
# LinuxThreads requires some changes to the way we
# deal with signals.
#
*-linux*)
cat >> confdefs.h <<\EOF
#define HAVE_LINUXTHREADS 1
EOF
;;
#
# Ensure the right sigwait() semantics on Solaris and make
# sure we call pthread_setconcurrency.
#
*-solaris*)
cat >> confdefs.h <<\EOF
#define _POSIX_PTHREAD_SEMANTICS 1
EOF
echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
echo "configure:2434: checking for pthread_setconcurrency" >&5
if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2439 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_setconcurrency(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_setconcurrency();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
choke me
#else
pthread_setconcurrency();
#endif
; return 0; }
EOF
if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_pthread_setconcurrency=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_pthread_setconcurrency=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define CALL_PTHREAD_SETCONCURRENCY 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# UnixWare does things its own way.
#
*-UnixWare*)
cat >> confdefs.h <<\EOF
#define HAVE_UNIXWARE_SIGWAIT 1
EOF
;;
esac
#
# Look for sysconf to allow detection of the number of processors.
#
echo $ac_n "checking for sysconf""... $ac_c" 1>&6
echo "configure:2500: checking for sysconf" >&5
if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2505 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sysconf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sysconf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sysconf) || defined (__stub___sysconf)
choke me
#else
sysconf();
#endif
; return 0; }
EOF
if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_sysconf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_sysconf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SYSCONF 1
EOF
else
echo "$ac_t""no" 1>&6
fi
if test "X$GCC" = "Xyes"; then
case "$host" in
*-freebsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-openbsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
LIBS="$LIBS -lthread"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
esac
else
case $host in
*-dec-osf*)
CC="$CC -std -pthread"
CCOPT="$CCOPT -std -pthread"
MKDEPCC="$CC"
;;
*-solaris*)
CC="$CC -mt"
CCOPT="$CCOPT -mt"
;;
*-hp-hpux*)
CC="$CC -Ae -z +w1"
CCOPT="CCOPT -Ae -z"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-UnixWare*)
CC="$CC -Kthread -w"
CCOPT="$CCOPT -Kthread"
;;
esac
fi
thread_dir=pthreads
else
thread_dir=nothreads
fi
#
# End of pthreads stuff.
#
ISC_THREAD_DIR=$thread_dir
#
# NLS
#
echo $ac_n "checking for catgets""... $ac_c" 1>&6
echo "configure:2608: checking for catgets" >&5
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2613 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char catgets(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char catgets();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_catgets) || defined (__stub___catgets)
choke me
#else
catgets();
#endif
; return 0; }
EOF
if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_catgets=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_catgets=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CATGETS 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# -lxnet buys us one big porting headache... standards, gotta love 'em.
#
# AC_CHECK_LIB(xnet, socket, ,
# AC_CHECK_LIB(socket, socket)
# AC_CHECK_LIB(nsl, inet_ntoa)
# )
#
# Use this for now, instead:
#
case "$host" in
mips-sgi-irix*)
;;
*)
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:2674: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2682 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lsocket $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
echo "configure:2721: checking for inet_ntoa in -lnsl" >&5
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2729 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntoa();
int main() {
inet_ntoa()
; return 0; }
EOF
if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
fi
;;
esac
MKDEPCC="$CC"
MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
else
case "$host" in
*-solaris*)
MKDEPCC="$CC"
MKDEPCFLAGS="-xM"
;;
*-hp-hpux*)
LIBS="-Wl,+vnocompatwarnings $LIBS"
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
;;
*-sgi-irix*)
STD_CWARNINGS="-fullwarn -woff 1209"
#
# Silence more than 250 instances of
# "prototyped function redeclared without prototype"
# and 11 instances of
# "variable ... was set but never used"
# from lib/dns/sec/openssl.
#
IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
;;
*-UnixWare*)
MKDEPCC="$CC"
YACC="yacc" # bison calls alloca, avoid on UnixWare
;;
esac
fi
#
#
# GNU libtool support
#
# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
withval="$with_libtool"
use_libtool="$withval"
else
use_libtool="no"
fi
case $use_libtool in
yes)
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_shared=yes
fi
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_static=yes
fi
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_fast_install=yes
fi
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:2892: checking build system type" >&5
build_alias=$build
case "$build_alias" in
NONE)
case $nonopt in
NONE) build_alias=$host_alias ;;
*) build_alias=$nonopt ;;
esac ;;
esac
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
withval="$with_gnu_ld"
test "$withval" = no || with_gnu_ld=yes
else
with_gnu_ld=no
fi
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:2921: checking for ld used by GCC" >&5
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:2945: checking for GNU ld" >&5
else
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:2948: checking for non-GNU ld" >&5
fi
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
LD="$ac_cv_path_LD"
if test -n "$LD"; then
echo "$ac_t""$LD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:2984: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi
fi
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:3000: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi
NM="$ac_cv_path_NM"
echo "$ac_t""$NM" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3037: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
rm -f conftestdata
ac_cv_prog_LN_S="ln -s"
else
ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
enableval="$enable_libtool_lock"
:
fi
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3081 "configure"' > conftest.$ac_ext
if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
echo "configure:3103: checking whether the C compiler needs -belf" >&5
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3108 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
lt_cv_cc_needs_belf=no
fi
rm -f conftest*
fi
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
esac
# Save cache, so that ltconfig can load it
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
O=lo
A=la
;;
*)
O=o
A=a
LIBTOOL=
;;
esac
# File name extension for static archive files, for those few places
# where they are treated differently from dynamic ones.
SA=a
#
# Here begins a very long section to determine the system's networking
# capabilities. The order of the tests is signficant.
#
#
# IPv6
#
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
enableval="$enable_ipv6"
:
fi
case "$enable_ipv6" in
yes|''|autodetect)
cat >> confdefs.h <<\EOF
#define WANT_IPV6 1
EOF
;;
no)
;;
esac
#
# We do the IPv6 compilation checking after libtool so that we can put
# the right suffix on the files.
#
echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
echo "configure:3266: checking for IPv6 structures" >&5
cat > conftest.$ac_ext <<EOF
#line 3268 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main() {
struct sockaddr_in6 sin6; return (0);
; return 0; }
EOF
if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
found_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
found_ipv6=no
fi
rm -f conftest*
#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests to LIBS is properly set.
#
echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
echo "configure:3296: checking for Kame IPv6 support" >&5
# Check whether --with-kame or --without-kame was given.
if test "${with_kame+set}" = set; then
withval="$with_kame"
use_kame="$withval"
else
use_kame="no"
fi
case "$use_kame" in
no)
;;
yes)
kame_path=/usr/local/v6
;;
*)
kame_path="$use_kame"
;;
esac
case "$use_kame" in
no)
echo "$ac_t""no" 1>&6
;;
*)
if test -f $kame_path/lib/libinet6.a; then
echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
LIBS="-L$kame_path/lib -linet6 $LIBS"
else
{ echo "configure: error: $kame_path/lib/libinet6.a not found.
Please choose the proper path with the following command:
configure --with-kame=PATH
" 1>&2; exit 1; }
fi
;;
esac
#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion. So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
*-bsdi4.[01]*)
ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
isc_netinet6in6_hack="#include <netinet6/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
isc_netinet6in6_hack=""
;;
esac
#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
*-UnixWare*)
ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
isc_netinetin6_hack="#include <netinet/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
isc_netinetin6_hack=""
;;
esac
#
# Now delve deeper into the suitability of the IPv6 support.
#
case "$found_ipv6" in
yes)
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3384: checking for in6addr_any" >&5
cat > conftest.$ac_ext <<EOF
#line 3386 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
int main() {
struct in6_addr in6; in6 = in6addr_any; return (0);
; return 0; }
EOF
if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
fi
rm -f conftest*
echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
echo "configure:3413: checking for sin6_scope_id in struct sockaddr_in6" >&5
cat > conftest.$ac_ext <<EOF
#line 3415 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
fi
rm -f conftest*
LWRES_HAVE_SIN6_SCOPE_ID="$result"
echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
echo "configure:3443: checking for in6_pktinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3445 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct in6_pktinfo xyzzy; return (0);
; return 0; }
EOF
if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
fi
rm -f conftest*
;;
no)
ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
ISC_IPV6_H="ipv6.h"
ISC_IPV6_O="ipv6.$O"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
;;
esac
#
# Check for network functions that are often missing. We do this
# after the libtool checking, so we can put the right suffix on
# the files. It also needs to come after checking for a Kame add-on,
# which provides some (all?) of the desired functions.
#
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3507: checking for inet_ntop" >&5
cat > conftest.$ac_ext <<EOF
#line 3509 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_ntop(0, 0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3534: checking for inet_pton" >&5
cat > conftest.$ac_ext <<EOF
#line 3536 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_pton(0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3561: checking for inet_aton" >&5
cat > conftest.$ac_ext <<EOF
#line 3563 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
struct in_addr in; inet_aton(0, &in); return (0);
; return 0; }
EOF
if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
fi
rm -f conftest*
#
# Look for a 4.4BSD-style sa_len member in struct sockaddr.
#
case "$host" in
*-dec-osf*)
# Turn on 4.4BSD style sa_len support.
cat >> confdefs.h <<\EOF
#define _SOCKADDR_LEN 1
EOF
;;
esac
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:3606: checking for sa_len in struct sockaddr" >&5
cat > conftest.$ac_ext <<EOF
#line 3608 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa; sa.sa_len = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
fi
rm -f conftest*
#
# Look for a 4.4BSD or 4.3BSD struct msghdr
#
echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
echo "configure:3638: checking for struct msghdr flavor" >&5
cat > conftest.$ac_ext <<EOF
#line 3640 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct msghdr msg; msg.msg_flags = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""4.4BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""4.3BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
fi
rm -f conftest*
#
# Look for in_port_t.
#
echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
echo "configure:3667: checking for type in_port_t" >&5
cat > conftest.$ac_ext <<EOF
#line 3669 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
int main() {
in_port_t port = 25; return (0);
; return 0; }
EOF
if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
fi
rm -f conftest*
#
# Check for addrinfo
#
echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
echo "configure:3696: checking for struct addrinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3698 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
struct addrinfo a; return (0);
; return 0; }
EOF
if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
cat >> confdefs.h <<\EOF
#define HAVE_ADDRINFO 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
fi
rm -f conftest*
echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
echo "configure:3725: checking for int sethostent" >&5
cat > conftest.$ac_ext <<EOF
#line 3727 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = sethostent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
echo "configure:3750: checking for int endhostent" >&5
cat > conftest.$ac_ext <<EOF
#line 3752 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endhostent(); return(0);
; return 0; }
EOF
if { (eval echo configure:3760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
echo "configure:3775: checking for getnetbyaddr(in_addr_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 3777 "configure"
#include "confdefs.h"
#include <netdb.h>
struct netent *getnetbyaddr(in_addr_t, int);
int main() {
; return 0; }
EOF
if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
fi
rm -f conftest*
echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
echo "configure:3801: checking for int setnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 3803 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = setnetent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
echo "configure:3826: checking for int endnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 3828 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endnetent(); return(0);
; return 0; }
EOF
if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
echo "configure:3851: checking for gethostbyadd(const void *, size_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 3853 "configure"
#include "confdefs.h"
#include <netdb.h>
struct hostent *gethostbyaddr(const void *, size_t, int);
int main() {
return(0);
; return 0; }
EOF
if { (eval echo configure:3862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
fi
rm -f conftest*
echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
echo "configure:3877: checking for h_errno in netdb.h" >&5
cat > conftest.$ac_ext <<EOF
#line 3879 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
h_errno = 1; return(0);
; return 0; }
EOF
if { (eval echo configure:3887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
fi
rm -f conftest*
echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
echo "configure:3902: checking for getipnodebyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3907 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getipnodebyname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getipnodebyname();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
choke me
#else
getipnodebyname();
#endif
; return 0; }
EOF
if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
fi
echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
echo "configure:3951: checking for getnameinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3956 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getnameinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getnameinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
choke me
#else
getnameinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getnameinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getnameinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
fi
echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
echo "configure:4000: checking for getaddrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4005 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getaddrinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getaddrinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
choke me
#else
getaddrinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
cat >> confdefs.h <<\EOF
#define HAVE_GETADDRINFO 1
EOF
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
fi
#
# Look for a sysctl call to get the list of network interfaces.
#
echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
echo "configure:4060: checking for interface list sysctl" >&5
cat > conftest.$ac_ext <<EOF
#line 4062 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#ifdef NET_RT_IFLIST
found_rt_iflist
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "found_rt_iflist" >/dev/null 2>&1; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_IFLIST_SYSCTL 1
EOF
else
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# Check for some other useful functions that are not ever-present.
#
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:4092: checking for strsep" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4097 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strsep(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strsep();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_strsep) || defined (__stub___strsep)
choke me
#else
strsep();
#endif
; return 0; }
EOF
if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strsep=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_strsep=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
else
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:4141: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4146 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char vsnprintf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
choke me
#else
vsnprintf();
#endif
; return 0; }
EOF
if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_vsnprintf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
fi
echo $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
echo "configure:4198: checking for sizeof(long long int) == sizeof(long int)" >&5
if test "$cross_compiling" = yes; then
echo "$ac_t""default yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
cat > conftest.$ac_ext <<EOF
#line 4204 "configure"
#include "confdefs.h"
main() { exit(!(sizeof(long long int) == sizeof(long int))); }
EOF
if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
fi
rm -fr conftest*
fi
#
# Security Stuff
#
echo $ac_n "checking for chroot""... $ac_c" 1>&6
echo "configure:4228: checking for chroot" >&5
if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4233 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char chroot(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char chroot();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_chroot) || defined (__stub___chroot)
choke me
#else
chroot();
#endif
; return 0; }
EOF
if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_chroot=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_chroot=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CHROOT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
for ac_hdr in linux/capability.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4282: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4287 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in linux/prctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4322: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4327 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#
# Random remaining OS-specific issues.
# XXXDCL print messages to indicate some compensation is being done?
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
case "$host" in
*-bsdi3.1*)
hack_shutup_sputaux=yes
;;
*-bsdi4.0*)
hack_shutup_sigwait=yes
hack_shutup_sputaux=yes
;;
*-bsdi4.1*)
hack_shutup_stdargcast=yes
;;
*-solaris2.8)
hack_shutup_pthreadonceinit=yes
;;
esac
case "$hack_shutup_pthreadonceinit" in
yes)
#
# Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
;;
esac
case "$hack_shutup_sigwait" in
yes)
#
# Shut up a -Wmissing-prototypes warning for sigwait().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SIGWAIT 1
EOF
;;
esac
case "$hack_shutup_sputaux" in
yes)
#
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SPUTAUX 1
EOF
;;
esac
case "$hack_shutup_stdargcast" in
yes)
#
# Shut up a -Wcast-qual warning from va_start().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_STDARG_CAST 1
EOF
;;
esac
#
# Substitutions
#
BIND9_TOP_BUILDDIR=`pwd`
if test "X$srcdir" != "X"; then
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
else
BIND9_ISC_BUILDINCLUDE=""
BIND9_DNS_BUILDINCLUDE=""
BIND9_OMAPI_BUILDINCLUDE=""
BIND9_LWRES_BUILDINCLUDE=""
fi
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
. $srcdir/version
BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/api
LIBLWRES_API=$srcdir/lib/lwres/api
LIBOMAPI_API=$srcdir/lib/omapi/api
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
isc-config.sh
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@CCOPT@%$CCOPT%g
s%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@LN@%$LN%g
s%@ETAGS@%$ETAGS%g
s%@PERL@%$PERL%g
s%@ISC_PLATFORM_USETHREADS@%$ISC_PLATFORM_USETHREADS%g
s%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
s%@dst_privateopenssl@%$dst_privateopenssl%g
s%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
s%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
s%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
s%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
s%@USE_GSSAPI@%$USE_GSSAPI%g
s%@DST_GSSAPI_INC@%$DST_GSSAPI_INC%g
s%@DNS_GSSAPI_LIBS@%$DNS_GSSAPI_LIBS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@ISC_THREAD_DIR@%$ISC_THREAD_DIR%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@LD@%$LD%g
s%@NM@%$NM%g
s%@LN_S@%$LN_S%g
s%@LIBTOOL@%$LIBTOOL%g
s%@O@%$O%g
s%@A@%$A%g
s%@SA@%$SA%g
s%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
s%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
s%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
s%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
s%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
s%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
s%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
s%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
s%@ISC_IPV6_H@%$ISC_IPV6_H%g
s%@ISC_IPV6_O@%$ISC_IPV6_O%g
s%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
s%@ISC_IPV6_C@%$ISC_IPV6_C%g
s%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
s%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
s%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
s%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
s%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
s%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
s%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
s%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
s%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
s%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
s%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
s%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
s%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
s%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
s%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
s%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
s%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
s%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
s%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
s%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
s%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
s%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
s%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
s%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
s%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
/@BIND9_INCLUDES@/r $BIND9_INCLUDES
s%@BIND9_INCLUDES@%%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
s%@BIND9_VERSION@%$BIND9_VERSION%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_API@%%g
/@LIBLWRES_API@/r $LIBLWRES_API
s%@LIBLWRES_API@%%g
/@LIBOMAPI_API@/r $LIBOMAPI_API
s%@LIBOMAPI_API@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
isc-config.sh
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
chmod a+x isc-config.sh
# Tell Emacs to edit this file in shell mode.
# Local Variables:
# mode: sh
# End: