configure revision cdc65374952183e7e738ed7d35cd1c2291c43e03
9e6de65c57eddc3790badaad3b9481aaaed18e03Brian Wellington#! /bin/sh
5fa46bc91672ef5737aee6f99763161511566c24Tinderbox User
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# From configure.in Revision: 1.82
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence## Copyright (C) 1996-1999 Free Software Foundation, Inc.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews##
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## This program is free software; you can redistribute it and/or modify
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## it under the terms of the GNU General Public License as published by
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## the Free Software Foundation; either version 2 of the License, or
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## (at your option) any later version.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews##
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence## This program is distributed in the hope that it will be useful, but
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence## WITHOUT ANY WARRANTY; without even the implied warranty of
28a8f5b0de57d269cf2845c69cb6abe18cbd3b3aMark Andrews## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein## General Public License for more details.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein##
d09197467bbb156dccf0cbe72bb5c63480d5cfdcDavid Lawrence## You should have received a copy of the GNU General Public License
d09197467bbb156dccf0cbe72bb5c63480d5cfdcDavid Lawrence## along with this program; if not, write to the Free Software
d09197467bbb156dccf0cbe72bb5c63480d5cfdcDavid Lawrence## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff##
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff## As a special exception to the GNU General Public License, if you
7829fad4093f2c1985b1efb7cea00287ff015d2bckb## distribute this file as part of a program that contains a
7829fad4093f2c1985b1efb7cea00287ff015d2bckb## configuration script generated by Autoconf, you may include it under
7829fad4093f2c1985b1efb7cea00287ff015d2bckb## the same distribution terms that you use for the rest of that program.
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews# serial 40 AC_PROG_LIBTOOL
dd57718608494835363244429432599aa15124a3Andreas Gustafsson
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
82a1986c04057804edf670bf5d59f716785af789Bob Halley
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
891a1bead8d02d29eb7b4993d7c0975047b0963dDavid Lawrence
891a1bead8d02d29eb7b4993d7c0975047b0963dDavid Lawrence
891a1bead8d02d29eb7b4993d7c0975047b0963dDavid Lawrence# AC_ENABLE_SHARED - implement the --enable-shared flag
891a1bead8d02d29eb7b4993d7c0975047b0963dDavid Lawrence# Usage: AC_ENABLE_SHARED[(DEFAULT)]
891a1bead8d02d29eb7b4993d7c0975047b0963dDavid Lawrence# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
891a1bead8d02d29eb7b4993d7c0975047b0963dDavid Lawrence# `yes'.
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# AC_ENABLE_STATIC - implement the --enable-static flag
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Usage: AC_ENABLE_STATIC[(DEFAULT)]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# `yes'.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# AC_DISABLE_STATIC - set the default static flag to --disable-static
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
c80dde0676a7f36f65e0ad8d646bf505705fe64bDavid Lawrence# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# `yes'.
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
c80dde0676a7f36f65e0ad8d646bf505705fe64bDavid Lawrence# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence# AC_PROG_LD - find the path to the GNU or non-GNU linker
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# AC_PROG_NM - find the path to a BSD-compatible name lister
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# AC_CHECK_LIBM - check for math library
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# the libltdl convenience library, adds --enable-ltdl-convenience to
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# to be `${top_builddir}/libltdl'. Make sure you start DIR with
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# '${top_builddir}/' (note the single quotes!) if your package is not
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# flat, and, if you're not using automake, define top_builddir as
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence# appropriate in the Makefiles.
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence# the libltdl installable library, and adds --enable-ltdl-install to
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# to be `${top_builddir}/libltdl'. Make sure you start DIR with
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# '${top_builddir}/' (note the single quotes!) if your package is not
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# flat, and, if you're not using automake, define top_builddir as
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# appropriate in the Makefiles.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Guess values for system-dependent variables and create Makefiles.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Generated automatically using autoconf version 2.13
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb#
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# This configure script is free software; the Free Software Foundation
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# gives unlimited permission to copy, distribute and modify it.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Defaults:
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_default_prefix=/usr/local
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Any additions from configure.in:
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --with-mit-pthreads use the mit-pthreads thread library"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --with-ptl2 use the ptl2 thread library"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --with-libtool use GNU libtool"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --enable-shared[=PKGS] build shared libraries [default=yes]"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --enable-static[=PKGS] build static libraries [default=yes]"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --disable-libtool-lock avoid locking (might break parallel builds)"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --enable-ipv6 use IPv6 [default=autodetect]"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_help="$ac_help
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Initialize some variables set by options.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# The variables have the same names as the options, with
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# dashes changed to underlines.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbbuild=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbcache_file=./config.cache
7829fad4093f2c1985b1efb7cea00287ff015d2bckbexec_prefix=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbhost=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbno_create=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbnonopt=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbno_recursion=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbprefix=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbprogram_prefix=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbprogram_suffix=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbprogram_transform_name=s,x,x,
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsilent=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsite=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsrcdir=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbtarget=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbverbose=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbx_includes=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbx_libraries=NONE
7829fad4093f2c1985b1efb7cea00287ff015d2bckbbindir='${exec_prefix}/bin'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsbindir='${exec_prefix}/sbin'
7829fad4093f2c1985b1efb7cea00287ff015d2bckblibexecdir='${exec_prefix}/libexec'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdatadir='${prefix}/share'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsysconfdir='${prefix}/etc'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsharedstatedir='${prefix}/com'
7829fad4093f2c1985b1efb7cea00287ff015d2bckblocalstatedir='${prefix}/var'
7829fad4093f2c1985b1efb7cea00287ff015d2bckblibdir='${exec_prefix}/lib'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbincludedir='${prefix}/include'
7829fad4093f2c1985b1efb7cea00287ff015d2bckboldincludedir='/usr/include'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbinfodir='${prefix}/info'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbmandir='${prefix}/man'
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Initialize some other variables.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsubdirs=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbMFLAGS= MAKEFLAGS=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbSHELL=${CONFIG_SHELL-/bin/sh}
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Maximum number of lines to put in a shell here document.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_max_here_lines=12
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_prev=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfor ac_option
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdo
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # If the previous option needs an argument, assign it.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test -n "$ac_prev"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb eval "$ac_prev=\$ac_option"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=
7829fad4093f2c1985b1efb7cea00287ff015d2bckb continue
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb case "$ac_option" in
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *) ac_optarg= ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb esac
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Accept the important Cygnus configure options, so we can diagnose typos.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb case "$ac_option" in
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -bindir | --bindir | --bindi | --bind | --bin | --bi)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=bindir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb bindir="$ac_optarg" ;;
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence -build | --build | --buil | --bui | --bu)
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence ac_prev=build ;;
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff build="$ac_optarg" ;;
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -cache-file | --cache-file | --cache-fil | --cache-fi \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff ac_prev=cache_file ;;
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff cache_file="$ac_optarg" ;;
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff ac_prev=datadir ;;
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff | --da=*)
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence datadir="$ac_optarg" ;;
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence -disable-* | --disable-*)
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence # Reject names that are not valid shell variable names.
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff fi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ac_feature=`echo $ac_feature| sed 's/-/_/g'`
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein eval "enable_${ac_feature}=no" ;;
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews -enable-* | --enable-*)
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews # Reject names that are not valid shell variable names.
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews fi
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews ac_feature=`echo $ac_feature| sed 's/-/_/g'`
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews case "$ac_option" in
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence *=*) ;;
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews *) ac_optarg=yes ;;
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff esac
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews eval "enable_${ac_feature}='$ac_optarg'" ;;
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews | --exec | --exe | --ex)
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence ac_prev=exec_prefix ;;
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence | --exec=* | --exe=* | --ex=*)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff exec_prefix="$ac_optarg" ;;
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -gas | --gas | --ga | --g)
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff # Obsolete; use --with-gas.
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence with_gas=yes ;;
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence -help | --help | --hel | --he)
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence # Omit some internal or obsolete options to make the list less imposing.
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence # This message is too long to be a string in the A/UX 3.1 sh.
47b7dfffe5d806c6a5e99ef17f07bcde812c2132Francis Dupont cat << EOF
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid LawrenceUsage: configure [options] [host]
33950f0a0262f4d49528c4adcf8be42807fa2576David LawrenceOptions: [defaults in brackets after descriptions]
f036af2c718147408d738081cdb0a564b981b4cdDavid LawrenceConfiguration:
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater --cache-file=FILE cache test results in FILE
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley --help print this message
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein --no-create do not create output files
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley --quiet, --silent do not print \`checking...' messages
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley --version print the version of autoconf that created configure
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob HalleyDirectory and file names:
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley [$ac_default_prefix]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7829fad4093f2c1985b1efb7cea00287ff015d2bckb [same as prefix]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --bindir=DIR user executables in DIR [EPREFIX/bin]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --datadir=DIR read-only architecture-independent data in DIR
7829fad4093f2c1985b1efb7cea00287ff015d2bckb [PREFIX/share]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --sharedstatedir=DIR modifiable architecture-independent data in DIR
7829fad4093f2c1985b1efb7cea00287ff015d2bckb [PREFIX/com]
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews --libdir=DIR object code libraries in DIR [EPREFIX/lib]
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews --includedir=DIR C header files in DIR [PREFIX/include]
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews --infodir=DIR info documentation in DIR [PREFIX/info]
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews --mandir=DIR man documentation in DIR [PREFIX/man]
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --srcdir=DIR find the sources in DIR [configure dir or ..]
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --program-prefix=PREFIX prepend PREFIX to installed program names
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --program-suffix=SUFFIX append SUFFIX to installed program names
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --program-transform-name=PROGRAM
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence run sed PROGRAM on installed program names
bd1190c84b08e61a12789c54f083318c36449e5eDavid LawrenceEOF
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence cat << EOF
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid LawrenceHost type:
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater --build=BUILD configure for building on BUILD [BUILD=HOST]
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --host=HOST configure for HOST [guessed]
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater --target=TARGET configure for TARGET [TARGET=HOST]
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterFeatures and packages:
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
401fc772b1bf058a981e3c474fa6502f6ee0e2bfDavid Lawrence --x-includes=DIR X include files are in DIR
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --x-libraries=DIR X library files are in DIR
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceEOF
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence if test -n "$ac_help"; then
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence echo "--enable and --with options recognized:$ac_help"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater exit 0 ;;
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -host | --host | --hos | --ho)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_prev=host ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -host=* | --host=* | --hos=* | --ho=*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater host="$ac_optarg" ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -includedir | --includedir | --includedi | --included | --include \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater | --includ | --inclu | --incl | --inc)
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence ac_prev=includedir ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence | --includ=* | --inclu=* | --incl=* | --inc=*)
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence includedir="$ac_optarg" ;;
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence -infodir | --infodir | --infodi | --infod | --info | --inf)
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ac_prev=infodir ;;
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence infodir="$ac_optarg" ;;
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
08e57545c2b1068080f5bf317224160426801406Brian Wellington -libdir | --libdir | --libdi | --libd)
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews ac_prev=libdir ;;
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrews -libdir=* | --libdir=* | --libdi=* | --libd=*)
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence libdir="$ac_optarg" ;;
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
08e57545c2b1068080f5bf317224160426801406Brian Wellington -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --libexe | --libex | --libe)
08e57545c2b1068080f5bf317224160426801406Brian Wellington ac_prev=libexecdir ;;
08e57545c2b1068080f5bf317224160426801406Brian Wellington -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence | --libexe=* | --libex=* | --libe=*)
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence libexecdir="$ac_optarg" ;;
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence -localstatedir | --localstatedir | --localstatedi | --localstated \
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence | --localstate | --localstat | --localsta | --localst \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence | --locals | --local | --loca | --loc | --lo)
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence ac_prev=localstatedir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --localstate=* | --localstat=* | --localsta=* | --localst=* \
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence localstatedir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=mandir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb mandir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -nfp | --nfp | --nf)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Obsolete; use --without-fp.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb with_fp=no ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --no-cr | --no-c)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb no_create=yes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -no-recursion | --no-recursion | --no-recursio | --no-recursi \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb no_recursion=yes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --oldin | --oldi | --old | --ol | --o)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=oldincludedir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb oldincludedir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=prefix ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb prefix="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -program-prefix | --program-prefix | --program-prefi | --program-pref \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-pre | --program-pr | --program-p)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=program_prefix ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -program-prefix=* | --program-prefix=* | --program-prefi=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb program_prefix="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -program-suffix | --program-suffix | --program-suffi | --program-suff \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-suf | --program-su | --program-s)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=program_suffix ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -program-suffix=* | --program-suffix=* | --program-suffi=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb program_suffix="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -program-transform-name | --program-transform-name \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transform-nam | --program-transform-na \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transform-n | --program-transform- \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transform | --program-transfor \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transfo | --program-transf \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-trans | --program-tran \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --progr-tra | --program-tr | --program-t)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=program_transform_name ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -program-transform-name=* | --program-transform-name=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transform-nam=* | --program-transform-na=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transform-n=* | --program-transform-=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transform=* | --program-transfor=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-transfo=* | --program-transf=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --program-trans=* | --program-tran=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --progr-tra=* | --program-tr=* | --program-t=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb program_transform_name="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | -silent | --silent | --silen | --sile | --sil)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb silent=yes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=sbindir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sbi=* | --sb=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb sbindir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -sharedstatedir | --sharedstatedir | --sharedstatedi \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sharedst | --shareds | --shared | --share | --shar \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sha | --sh)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=sharedstatedir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --sha=* | --sh=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb sharedstatedir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -site | --site | --sit)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=site ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -site=* | --site=* | --sit=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb site="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=srcdir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb srcdir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --syscon | --sysco | --sysc | --sys | --sy)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=sysconfdir ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb sysconfdir="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -target | --target | --targe | --targ | --tar | --ta | --t)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=target ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb target="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -v | -verbose | --verbose | --verbos | --verbo | --verb)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb verbose=yes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -version | --version | --versio | --versi | --vers)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo "configure generated by autoconf version 2.13"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb exit 0 ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -with-* | --with-*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Reject names that are not valid shell variable names.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_package=`echo $ac_package| sed 's/-/_/g'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb case "$ac_option" in
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *=*) ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *) ac_optarg=yes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb esac
7829fad4093f2c1985b1efb7cea00287ff015d2bckb eval "with_${ac_package}='$ac_optarg'" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -without-* | --without-*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_package=`echo $ac_option|sed -e 's/-*without-//'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Reject names that are not valid shell variable names.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_package=`echo $ac_package| sed 's/-/_/g'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb eval "with_${ac_package}=no" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb --x)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Obsolete; use --with-x.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb with_x=yes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --x-incl | --x-inc | --x-in | --x-i)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prev=x_includes ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb x_includes="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -x-libraries | --x-libraries | --x-librarie | --x-librari \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ac_prev=x_libraries ;;
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb x_libraries="$ac_optarg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo "configure: warning: $ac_option: invalid host type" 1>&2
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test "x$nonopt" != xNONE; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb nonopt="$ac_option"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb esac
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdone
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test -n "$ac_prev"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# File descriptor usage:
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 0 standard input
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 1 file creation
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 2 errors and warnings
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 3 some systems may open it to /dev/tty
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 4 used on the Kubota Titan
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 6 checking for... messages and results
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# 5 compiler messages saved in config.log
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "$silent" = yes; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb exec 6>/dev/null
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb exec 6>&1
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbexec 5>./config.log
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "\
7829fad4093f2c1985b1efb7cea00287ff015d2bckbThis file contains any messages produced by compilers while
7829fad4093f2c1985b1efb7cea00287ff015d2bckbrunning configure, to aid debugging if configure makes a mistake.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb" 1>&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Strip out --no-create and --no-recursion so they do not pile up.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Also quote any args containing shell metacharacters.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_configure_args=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfor ac_arg
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdo
7829fad4093f2c1985b1efb7cea00287ff015d2bckb case "$ac_arg" in
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --no-cr | --no-c) ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -no-recursion | --no-recursion | --no-recursio | --no-recursi \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_configure_args="$ac_configure_args '$ac_arg'" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *) ac_configure_args="$ac_configure_args $ac_arg" ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb esac
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdone
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# NLS nuisances.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Only set these to C if already set. These must not be set unconditionally
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# because not all systems understand e.g. LANG=C (notably SCO).
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Non-C LC_CTYPE values break the ctype check.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "${LANG+set}" = set; then LANG=C; export LANG; fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# confdefs.h avoids OS command line length limits that DEFS can exceed.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbrm -rf conftest* confdefs.h
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# AIX cpp loses on an empty file, so make sure it contains at least a newline.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho > confdefs.h
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# A filename unique to this package, relative to the directory that
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# configure is in, which we can look for to find out if srcdir is correct.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_unique_file=lib/dns/name.c
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Find the source files, if location was not specified.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test -z "$srcdir"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_srcdir_defaulted=yes
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Try the directory containing this script, then its parent.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prog=$0
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb srcdir=$ac_confdir
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test ! -r $srcdir/$ac_unique_file; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb srcdir=..
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_srcdir_defaulted=no
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test ! -r $srcdir/$ac_unique_file; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test "$ac_srcdir_defaulted" = yes; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb else
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# Prefer explicitly selected file to automatically selected ones.
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewsif test -z "$CONFIG_SITE"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test "x$prefix" != xNONE; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb else
7829fad4093f2c1985b1efb7cea00287ff015d2bckb CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfor ac_site_file in $CONFIG_SITE; do
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test -r "$ac_site_file"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo "loading site script $ac_site_file"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb . "$ac_site_file"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdone
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test -r "$cache_file"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo "loading cache $cache_file"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb . $cache_file
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo "creating cache $cache_file"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb > $cache_file
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_ext=c
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_cpp='$CPP $CPPFLAGS'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbcross_compiling=$ac_cv_prog_cc_cross
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_exeext=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_objext=o
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_n= ac_c='
7829fad4093f2c1985b1efb7cea00287ff015d2bckb' ac_t=' '
7829fad4093f2c1985b1efb7cea00287ff015d2bckb else
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_n=-n ac_c= ac_t=
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_n= ac_c='\c' ac_t=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_aux_dir=
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test -f $ac_dir/install-sh; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_aux_dir=$ac_dir
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_install_sh="$ac_aux_dir/install-sh -c"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb break
7829fad4093f2c1985b1efb7cea00287ff015d2bckb elif test -f $ac_dir/install.sh; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_aux_dir=$ac_dir
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_install_sh="$ac_aux_dir/install.sh -c"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb break
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbdone
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test -z "$ac_aux_dir"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_config_guess=$ac_aux_dir/config.guess
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_config_sub=$ac_aux_dir/config.sub
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Make sure we can run config.sub.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho $ac_n "checking host system type""... $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "configure:672: checking host system type" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbhost_alias=$host
7829fad4093f2c1985b1efb7cea00287ff015d2bckbcase "$host_alias" in
7829fad4093f2c1985b1efb7cea00287ff015d2bckbNONE)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb case $nonopt in
7829fad4093f2c1985b1efb7cea00287ff015d2bckb NONE)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
7829fad4093f2c1985b1efb7cea00287ff015d2bckb else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *) host_alias=$nonopt ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb esac ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckbesac
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "$ac_t""$host" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckbset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo $ac_n "(cached) $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb cat > conftestmake <<\EOF
7829fad4093f2c1985b1efb7cea00287ff015d2bckball:
7829fad4093f2c1985b1efb7cea00287ff015d2bckb @echo 'ac_maketemp="${MAKE}"'
7829fad4093f2c1985b1efb7cea00287ff015d2bckbEOF
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test -n "$ac_maketemp"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb eval ac_cv_prog_make_${ac_make}_set=yes
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewselse
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence eval ac_cv_prog_make_${ac_make}_set=no
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencefi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencerm -f conftestmake
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Grafffi
037b732f88edc943f3141e0342dc993156e3abf3Mark Andrewsif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley SET_MAKE=
7554feaef6057f5ea2926076900ac7634b911456Mark Andrewselse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews SET_MAKE="MAKE=${MAKE-make}"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# Extract the first word of "ranlib", so it can be a program name with args.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterset dummy ranlib; ac_word=$2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:723: checking for $ac_word" >&5
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -n "$RANLIB"; then
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_dummy="$PATH"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $ac_dummy; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_word; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_RANLIB="ranlib"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb break
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff fi
7554feaef6057f5ea2926076900ac7634b911456Mark Andrews done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterRANLIB="$ac_cv_prog_RANLIB"
7554feaef6057f5ea2926076900ac7634b911456Mark Andrewsif test -n "$RANLIB"; then
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence echo "$ac_t""$RANLIB" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Find a good install program. We prefer a C program (faster),
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# so one script is as good as another. But avoid the broken or
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# incompatible versions:
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# SysV /etc/install, /usr/sbin/install
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence# SunOS /usr/etc/install
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# IRIX /sbin/install
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# AIX /bin/install
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# AFS /usr/afsws/bin/install, which mishandles nonexistent args
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews# ./install, which can be erroneously created by make from ./install.sh.
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewsecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewsecho "configure:762: checking for a BSD compatible install" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$INSTALL"; then
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence for ac_dir in $PATH; do
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Account for people who put trailing slashes in PATH elements.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "$ac_dir/" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # OSF1 and SCO ODT 3.0 have their own names for install.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Don't use installbsd from OSF since it installs stuff as root
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # by default.
83e6eb0dfe7d3525dcf093f440e04e8971c4c5d2Brian Wellington for ac_prog in ginstall scoinst install; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_prog; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test $ac_prog = install &&
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence # AIX install. It has an incompatible calling convention.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_path_install="$ac_dir/$ac_prog -c"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break 2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence fi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence done
83e6eb0dfe7d3525dcf093f440e04e8971c4c5d2Brian Wellington ;;
83e6eb0dfe7d3525dcf093f440e04e8971c4c5d2Brian Wellington esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_IFS"
83e6eb0dfe7d3525dcf093f440e04e8971c4c5d2Brian Wellington
83e6eb0dfe7d3525dcf093f440e04e8971c4c5d2Brian Wellingtonfi
dd2a0a6d2dec1c23787351e51b434a838dec5603Evan Hunt if test "${ac_cv_path_install+set}" = set; then
dd2a0a6d2dec1c23787351e51b434a838dec5603Evan Hunt INSTALL="$ac_cv_path_install"
dd2a0a6d2dec1c23787351e51b434a838dec5603Evan Hunt else
dd2a0a6d2dec1c23787351e51b434a838dec5603Evan Hunt # As a last resort, use the slow shell script. We don't cache a
dd2a0a6d2dec1c23787351e51b434a838dec5603Evan Hunt # path for INSTALL within a source directory, because that will
dd2a0a6d2dec1c23787351e51b434a838dec5603Evan Hunt # break other packages using the cache if that directory is
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff # removed, or if the path is relative.
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence INSTALL="$ac_install_sh"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrencefi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$INSTALL" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# It thinks the first close brace ends the variable substitution.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterSTD_CINCLUDES=""
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterSTD_CDEFINES=""
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterSTD_CWARNINGS=""
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Extract the first word of "ar", so it can be a program name with args.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterset dummy ar; ac_word=$2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:825: checking for $ac_word" >&5
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffelse
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence case "$AR" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater /*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_path_AR="$AR" # Let the user override the test with a path.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ?:/*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *)
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_dummy="$PATH"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $ac_dummy; do
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_word; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_path_AR="$ac_dir/$ac_word"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrenceesac
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrencefi
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceAR="$ac_cv_path_AR"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceif test -n "$AR"; then
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence echo "$ac_t""$AR" 1>&6
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceelse
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff echo "$ac_t""no" 1>&6
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrencefi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterARFLAGS="cruv"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "X$CC" = "X" ; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "$host" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-dec-osf*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="cc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-sun-solaris*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $PATH; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "$ac_dir" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater /usr/ucb)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # exclude
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f "$ac_dir/cc"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="$ac_dir/cc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-hp-hpux*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="cc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater mips-sgi-irix*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="cc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$host" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-netbsd*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="gcc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:898: checking which thread library to use" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "${with_mit_pthreads+set}" = set; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater withval="$with_mit_pthreads"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_mit_pthreads="$withval"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_mit_pthreads="no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Check whether --with-ptl2 or --without-ptl2 was given.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "${with_ptl2+set}" = set; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater withval="$with_ptl2"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_ptl2="$withval"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_ptl2="no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "$use_mit_pthreads+$use_ptl2" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater no+no)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -d /usr/pkg/pthreads
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_mit_pthreads="yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -d /usr/pkg/PTL
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_ptl2="yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "$use_mit_pthreads+$use_ptl2" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater yes+no)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""mit-pthreads" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater pkg="/usr/pkg/pthreads"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater lib1="-L$pkg/lib -Wl,-R$pkg/lib"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater lib2="-lpthread -lm -lgcc -lpthread"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="$lib1 $lib2 $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPPFLAGS="-I$pkg/include $CPPFLAGS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater STD_CINCLUDES="-I$pkg/include"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater no+yes)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""PTL2" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC=ptlgcc
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater { echo "configure: error: no thread library.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterPlease choose a thread library using one of
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater configure --with-mit-pthreads
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater configure --with-ptl2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater" 1>&2; exit 1; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Extract the first word of "gcc", so it can be a program name with args.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterset dummy gcc; ac_word=$2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:962: checking for $ac_word" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -n "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="$CC" # Let the user override the test.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_dummy="$PATH"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $ac_dummy; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_word; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="gcc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterCC="$ac_cv_prog_CC"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -n "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""$CC" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Extract the first word of "cc", so it can be a program name with args.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterset dummy cc; ac_word=$2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:992: checking for $ac_word" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -n "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="$CC" # Let the user override the test.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_prog_rejected=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_dummy="$PATH"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $ac_dummy; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_word; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_prog_rejected=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater continue
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="cc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_prog_rejected = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # We found a bogon in the path, so make sure we never use it.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater set dummy $ac_cv_prog_CC
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater shift
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test $# -gt 0; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # We chose a different compiler from the bogus one.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # However, it has the same basename, so the bogon will be chosen
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # first if we set CC to just the basename; use the full file name.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater shift
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater set dummy "$ac_dir/$ac_word" "$@"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater shift
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="$@"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark Andrewsfi
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark Andrewsfi
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark Andrewsfi
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark AndrewsCC="$ac_cv_prog_CC"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -n "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""$CC" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -z "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "`uname -s`" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *win32* | *WIN32*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Extract the first word of "cl", so it can be a program name with args.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterset dummy cl; ac_word=$2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1043: checking for $ac_word" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -n "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="$CC" # Let the user override the test.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_dummy="$PATH"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $ac_dummy; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_word; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CC="cl"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterCC="$ac_cv_prog_CC"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -n "$CC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""$CC" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1075: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_ext=c
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_cpp='$CPP $CPPFLAGS'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercross_compiling=$ac_cv_prog_cc_cross
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext << EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1086 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatermain(){return(0);}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_cc_works=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # If we can't run a trivial program, we are probably using a cross compiler.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if (./conftest; exit) 2>/dev/null; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_cc_cross=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_cc_cross=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_cc_works=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -fr conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_ext=c
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_cpp='$CPP $CPPFLAGS'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercross_compiling=$ac_cv_prog_cc_cross
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_prog_cc_works = no; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1117: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercross_compiling=$ac_cv_prog_cc_cross
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1122: checking whether we are using GNU C" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.c <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#ifdef __GNUC__
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater yes;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
0f5962ac3e4ef336faff68f1cb838505e64665e5David LawrenceEOF
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrenceif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence ac_cv_prog_gcc=yes
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrenceelse
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence ac_cv_prog_gcc=no
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Grafffi
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrencefi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_prog_gcc" 1>&6
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_prog_gcc = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater GCC=yes
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrenceelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater GCC=
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrencefi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrenceac_test_CFLAGS="${CFLAGS+set}"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_save_CFLAGS="$CFLAGS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterCFLAGS=
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1150: checking whether ${CC-cc} accepts -g" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo 'void f(){}' > conftest.c
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_cc_g=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ac_cv_prog_cc_g=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencerm -f conftest*
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencefi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffif test "$ac_test_CFLAGS" = set; then
194f54f4da604a6601edefa2175d48412e01bf2fDavid Lawrence CFLAGS="$ac_save_CFLAGS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelif test $ac_cv_prog_cc_g = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test "$GCC" = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CFLAGS="-g -O2"
587fc7b519b0fed4e3dd234527edba1ca9334757David Lawrence else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CFLAGS="-g"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test "$GCC" = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CFLAGS="-O2"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CFLAGS=
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfor ac_prog in 'bison -y' byacc
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterdo
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Extract the first word of "$ac_prog", so it can be a program name with args.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterset dummy $ac_prog; ac_word=$2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1186: checking for $ac_word" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -n "$YACC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_YACC="$YACC" # Let the user override the test.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_dummy="$PATH"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for ac_dir in $ac_dummy; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $ac_dir/$ac_word; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_YACC="$ac_prog"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterYACC="$ac_cv_prog_YACC"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -n "$YACC"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""$YACC" 1>&6
0874abad14e3e9ecfc3dc1a1a2b9969f2f027724Mark Andrewselse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest -n "$YACC" && break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterdone
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest -n "$YACC" || YACC="yacc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1218: checking how to run the C preprocessor" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# On Suns, sometimes $CPP names a directory.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -n "$CPP" && test -d "$CPP"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPP=
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$CPP"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # This must be in double quotes, not single quotes, because CPP may get
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # substituted into the Makefile and "${CC-cc}" will confuse make.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPP="${CC-cc} -E"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # On the NeXT, cc -E runs the code through the compiler's parser,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # not just through cpp.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1233 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterSyntax Error
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
08e57545c2b1068080f5bf317224160426801406Brian Wellingtonif test -z "$ac_err"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_err" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPP="${CC-cc} -E -traditional-cpp"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1250 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterSyntax Error
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$ac_err"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_err" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPP="${CC-cc} -nologo -E"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1267 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterSyntax Error
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$ac_err"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_err" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPP=/lib/cpp
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CPP="$CPP"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CPP="$ac_cv_prog_CPP"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_CPP="$CPP"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$CPP" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1298: checking for ANSI C header files" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1303 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <stdlib.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <stdarg.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <string.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <float.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$ac_err"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_header_stdc=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_err" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_header_stdc=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_header_stdc = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1328 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <string.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater egrep "memchr" >/dev/null 2>&1; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
08e57545c2b1068080f5bf317224160426801406Brian Wellington ac_cv_header_stdc=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_header_stdc = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1346 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <stdlib.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater egrep "free" >/dev/null 2>&1; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_cv_header_stdc=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_header_stdc = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "$cross_compiling" = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1367 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <ctype.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main () { int i; for (i = 0; i < 256; i++)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterexit (0); }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterthen
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -fr conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_header_stdc=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -fr conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_header_stdc" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_header_stdc = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define STDC_HEADERS 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterdo
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1405: checking for $ac_hdr" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1410 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <$ac_hdr>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test -z "$ac_err"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_header_$ac_safe=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_err" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_header_$ac_safe=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define $ac_tr_hdr 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterdone
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for working const""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1443: checking for working const" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1448 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Ultrix mips cc rejects this. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertypedef int charset[2]; const charset x;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* SunOS 4.1.1 cc rejects this. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar const *const *ccp;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar **p;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* NEC SVR4.0.2 mips cc rejects this. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterstruct point {int x, y;};
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterstatic struct point const zero = {0,0};
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* AIX XL C 1.02.0.0 rejects this.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater It does not let you subtract one const X* pointer from another in an arm
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater of an if-expression whose if-part is not a constant expression */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterconst char *g = "string";
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterccp = &g + (g ? g-g : 0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* HPUX 7.0 cc rejects these. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater++ccp;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterp = (char**) ccp;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterccp = (char const *const *) p;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ /* SCO 3.2v4 cc rejects this. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater char *t;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater char const *s = 0 ? (char *) 0 : (char const *) 0;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *t++ = 0;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater int x[] = {25, 17};
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater const int *foo = &x[0];
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ++foo;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater typedef const int *iptr;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater iptr p = 0;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ++p;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ /* AIX XL C 1.02.0.0 rejects this saying
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater struct s { int j; const int *ap[3]; };
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater struct s *b; b->j = 5;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater const int foo = 10;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_c_const=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_c_const=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_c_const" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_c_const = no; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define const
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for inline""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1518: checking for inline" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_c_inline=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfor ac_kw in inline __inline__ __inline; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1525 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater} $ac_kw foo() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_c_inline=$ac_kw; break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterdone
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_c_inline" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$ac_cv_c_inline" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater inline | yes) ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater no) cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define inline
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *) cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define inline $ac_cv_c_inline
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for size_t""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1558: checking for size_t" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1563 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <sys/types.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#if STDC_HEADERS
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <stdlib.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <stddef.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_type_size_t=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
0874abad14e3e9ecfc3dc1a1a2b9969f2f027724Mark Andrews ac_cv_type_size_t=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_type_size_t" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_type_size_t = no; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define size_t unsigned
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1591: checking whether time.h and sys/time.h may both be included" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1596 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <sys/types.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <sys/time.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <time.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterstruct tm *tp;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_header_time=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_header_time=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$ac_cv_header_time" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test $ac_cv_header_time = yes; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define TIME_WITH_SYS_TIME 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1627: checking for pthread_create in -lpthread" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lpthread $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1635 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar pthread_create();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterpthread_create()
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="$ac_save_LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define $ac_tr_lib 1
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceEOF
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence LIBS="-lpthread $LIBS"
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrenceelse
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff echo "$ac_t""no" 1>&6
0a09237aa0b12f9e478a9617d9d54c8b3512f94bBob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1672: checking for __pthread_create in -lpthread" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
c4c843edb3f4c609e3552ee77a43400852400467David Lawrence ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lpthread $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence#line 1680 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar __pthread_create();
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence__pthread_create()
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence; return 0; }
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceEOF
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceif { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence rm -rf conftest*
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff eval "ac_cv_lib_$ac_lib_var=yes"
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrenceelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="$ac_save_LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define $ac_tr_lib 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="-lpthread $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1719: checking for __pthread_create_system in -lpthread" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lpthread $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1727 "configure"
94231e22882a98a3805060b0a1322e96d8f57b41David Lawrence#include "confdefs.h"
94231e22882a98a3805060b0a1322e96d8f57b41David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence/* We use char because int might match the return type of a gcc2
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence builtin and then its argument prototype would still apply. */
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrencechar __pthread_create_system();
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceint main() {
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence__pthread_create_system()
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence; return 0; }
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David LawrenceEOF
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceif { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence rm -rf conftest*
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceelse
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence echo "configure: failed program was:" >&5
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence cat conftest.$ac_ext >&5
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence rm -rf conftest*
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrencefi
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrencerm -f conftest*
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David LawrenceLIBS="$ac_save_LIBS"
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrencefi
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
b79e66b06d058ef3b9a26b71806ce67971cd3152David Lawrence echo "$ac_t""yes" 1>&6
b79e66b06d058ef3b9a26b71806ce67971cd3152David Lawrence ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
b79e66b06d058ef3b9a26b71806ce67971cd3152David Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
b79e66b06d058ef3b9a26b71806ce67971cd3152David Lawrence cat >> confdefs.h <<EOF
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence#define $ac_tr_lib 1
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David LawrenceEOF
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
b79e66b06d058ef3b9a26b71806ce67971cd3152David Lawrence LIBS="-lpthread $LIBS"
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceelse
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence echo "$ac_t""no" 1>&6
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrencefi
a571ebca8b8c472e775d518e82b7335f93ea25c4Andreas Gustafsson
a571ebca8b8c472e775d518e82b7335f93ea25c4Andreas Gustafsson
510f4bdcb66acbec3f276efaacecbebea891c868David Lawrencefi
510f4bdcb66acbec3f276efaacecbebea891c868David Lawrence
510f4bdcb66acbec3f276efaacecbebea891c868David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "$ac_cv_lib_pthread" != "yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1772: checking for pthread_create in -lc_r" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lc_r $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1780 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar pthread_create();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterpthread_create()
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="$ac_save_LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define $ac_tr_lib 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="-lc_r $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafssonelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafssonfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1822: checking for sigwait in -lpthread" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lpthread $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1830 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar sigwait();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatersigwait()
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence eval "ac_cv_lib_$ac_lib_var=no"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencefi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencerm -f conftest*
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid LawrenceLIBS="$ac_save_LIBS"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define HAVE_SIGWAIT 1
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceEOF
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceelse
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1863: checking for _Psigwait in -lpthread" >&5
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lpthread $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence#line 1871 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrencechar _Psigwait();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater_Psigwait()
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=yes"
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrenceelse
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence echo "configure: failed program was:" >&5
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence cat conftest.$ac_ext >&5
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence rm -rf conftest*
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="$ac_save_LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define HAVE_SIGWAIT 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
a09c545af1ceb8eb6f3aa2bb6fae286208a72141David Lawrence
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffcase "$host" in
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence *-sun-solaris*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define _POSIX_PTHREAD_SEMANTICS 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for catgets""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:1919: checking for catgets" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1924 "configure"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb#include "confdefs.h"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char catgets(); below. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
7829fad4093f2c1985b1efb7cea00287ff015d2bckb/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar catgets();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* The GNU C library defines this for functions which it implements
7829fad4093f2c1985b1efb7cea00287ff015d2bckb to always fail with ENOSYS. Some functions are actually named
7829fad4093f2c1985b1efb7cea00287ff015d2bckb something starting with __ and the normal name is an alias. */
7829fad4093f2c1985b1efb7cea00287ff015d2bckb#if defined (__stub_catgets) || defined (__stub___catgets)
7829fad4093f2c1985b1efb7cea00287ff015d2bckbchoke me
7829fad4093f2c1985b1efb7cea00287ff015d2bckb#else
7829fad4093f2c1985b1efb7cea00287ff015d2bckbcatgets();
7829fad4093f2c1985b1efb7cea00287ff015d2bckb#endif
08e57545c2b1068080f5bf317224160426801406Brian Wellington
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
08e57545c2b1068080f5bf317224160426801406Brian Wellingtonif { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_catgets=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_catgets=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark Andrewsrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define HAVE_CATGETS 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrewscase "$host" in
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews *-bsdi3.1*)
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define NEED_PTHREAD_INIT 1
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark AndrewsEOF
7704a47aec081144bdb7a0218d5e2dd5296b6b08Mark Andrews
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-linux*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define HAVE_LINUXTHREADS 1
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceEOF
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafssonesac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$host" in
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence mips-sgi-irix*)
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ;;
08e57545c2b1068080f5bf317224160426801406Brian Wellington *)
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrewsecho "configure:1991: checking for socket in -lsocket" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo $ac_n "(cached) $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_save_LIBS="$LIBS"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid LawrenceLIBS="-lsocket $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 1999 "configure"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence/* We use char because int might match the return type of a gcc2
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence builtin and then its argument prototype would still apply. */
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrencechar socket();
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrencesocket()
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=no"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrencefi
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrencerm -f conftest*
7554feaef6057f5ea2926076900ac7634b911456Mark AndrewsLIBS="$ac_save_LIBS"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define $ac_tr_lib 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
0874abad14e3e9ecfc3dc1a1a2b9969f2f027724Mark Andrews
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="-lsocket $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2038: checking for inet_ntoa in -lnsl" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_save_LIBS="$LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLIBS="-lnsl $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2046 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar inet_ntoa();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrenceinet_ntoa()
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence; return 0; }
7554feaef6057f5ea2926076900ac7634b911456Mark AndrewsEOF
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrewsif { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=yes"
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafssonelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_lib_$ac_lib_var=no"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrencefi
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrencerm -f conftest*
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid LawrenceLIBS="$ac_save_LIBS"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define $ac_tr_lib 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="-lnsl $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterMKDEPCC="$CC"
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid LawrenceMKDEPCFLAGS="-M"
08e57545c2b1068080f5bf317224160426801406Brian Wellingtonif test "X$GCC" = "Xyes"; then
b65f2ab14abb4b6ef906d7d02064fba158f07b1eDavid Lawrence STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence case "$host" in
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence *-sun-solaris*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="$LIBS -lthread"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence case "$host" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-dec-osf*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="$CC -pthread"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence MKDEPCC="$CC"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-sun-solaris*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CC="$CC -mt"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater MKDEPCC="$CC"
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence MKDEPCFLAGS="-xM"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-hp-hpux*)
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence CC="$CC -Ae -z +w1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
510f4bdcb66acbec3f276efaacecbebea891c868David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$host" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *-dec-osf*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence#define _SOCKADDR_LEN 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ;;
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceesac
092b4e5359c5982a438e36ced3dbefc313f7fbfcDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2128: checking for sa_len in struct sockaddr" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence#line 2130 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence#include <sys/types.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <sys/socket.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterstruct sockaddr sa; sa.sa_len = 0; return (0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid LawrenceEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
510f4bdcb66acbec3f276efaacecbebea891c868David Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
5d4f11b265c396d71ec2162a632e620425481a9eDavid Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceecho "configure:2155: checking for struct msghdr flavor" >&5
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencecat > conftest.$ac_ext <<EOF
c4c843edb3f4c609e3552ee77a43400852400467David Lawrence#line 2157 "configure"
c4c843edb3f4c609e3552ee77a43400852400467David Lawrence#include "confdefs.h"
c4c843edb3f4c609e3552ee77a43400852400467David Lawrence
c4c843edb3f4c609e3552ee77a43400852400467David Lawrence#include <sys/types.h>
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence#include <sys/socket.h>
7829fad4093f2c1985b1efb7cea00287ff015d2bckbint main() {
7829fad4093f2c1985b1efb7cea00287ff015d2bckbstruct msghdr msg; msg.msg_flags = 0; return (0);
005c7ad70f55a6e4333808cdf63811777254c339David Lawrence; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""4.4BSD" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""4.3BSD" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2181: checking for type in_port_t" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2183 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <sys/types.h>
0874abad14e3e9ecfc3dc1a1a2b9969f2f027724Mark Andrews#include <netinet/in.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterin_port_t port = 25; return (0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2207: checking for struct addrinfo" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2209 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <netdb.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterstruct addrinfo a; return (0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2232: checking for int sethostent" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2234 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <netdb.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint i = sethostent(0); return(0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2257: checking for int endhostent" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2259 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence#include <netdb.h>
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceint main() {
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrenceint i = endhostent(); return(0);
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence; return 0; }
0f5962ac3e4ef336faff68f1cb838505e64665e5David LawrenceEOF
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrenceif { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0f5962ac3e4ef336faff68f1cb838505e64665e5David Lawrence rm -rf conftest*
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2282: checking for int setnetent" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2284 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <netdb.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint i = setnetent(0); return(0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2307: checking for gethostbyadd(const void *, size_t, ...)" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2309 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <netdb.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterstruct hostent *gethostbyaddr(const void *, size_t, int);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterreturn(0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2333: checking for h_errno in netdb.h" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2335 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <netdb.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterh_errno = 1; return(0);
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2358: checking for getipnodebyname" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2363 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char getipnodebyname(); below. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar getipnodebyname();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* The GNU C library defines this for functions which it implements
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater to always fail with ENOSYS. Some functions are actually named
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater something starting with __ and the normal name is an alias. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchoke me
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatergetipnodebyname();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_getipnodebyname=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_getipnodebyname=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2407: checking for getnameinfo" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2412 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char getnameinfo(); below. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar getnameinfo();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* The GNU C library defines this for functions which it implements
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater to always fail with ENOSYS. Some functions are actually named
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater something starting with __ and the normal name is an alias. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchoke me
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatergetnameinfo();
8f1c29d73f605d020824b9b10257de013917530fMark Andrews#endif
8f1c29d73f605d020824b9b10257de013917530fMark Andrews
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_getnameinfo=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_getnameinfo=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2456: checking for getaddrinfo" >&5
47b7dfffe5d806c6a5e99ef17f07bcde812c2132Francis Dupontif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2461 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char getaddrinfo(); below. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
8f1c29d73f605d020824b9b10257de013917530fMark Andrewschar getaddrinfo();
8f1c29d73f605d020824b9b10257de013917530fMark Andrews
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* The GNU C library defines this for functions which it implements
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater to always fail with ENOSYS. Some functions are actually named
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater something starting with __ and the normal name is an alias. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchoke me
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatergetaddrinfo();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_getaddrinfo=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_getaddrinfo=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceelse
72d4e9f06f548af14696a0771626d288ba41522fDavid Lawrence echo "$ac_t""no" 1>&6
72d4e9f06f548af14696a0771626d288ba41522fDavid LawrenceISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
72d4e9f06f548af14696a0771626d288ba41522fDavid Lawrencefi
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrence
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrence
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrence
84f8cc7e22cccde283627f6df6b8b74ec473cdc9David Lawrence
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrence
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrence
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrenceecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrenceecho "configure:2510: checking for interface list sysctl" >&5
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrencecat > conftest.$ac_ext <<EOF
d65db52903505c1bcbc6dd1651e9f9f347e48217David Lawrence#line 2512 "configure"
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley#include "confdefs.h"
72d4e9f06f548af14696a0771626d288ba41522fDavid Lawrence
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews#include <sys/param.h>
7829fad4093f2c1985b1efb7cea00287ff015d2bckb#include <sys/sysctl.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <sys/socket.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#ifdef NET_RT_IFLIST
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfound_rt_iflist
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829fad4093f2c1985b1efb7cea00287ff015d2bckb egrep "found_rt_iflist" >/dev/null 2>&1; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat >> confdefs.h <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#define HAVE_IFLIST_SYSCTL 1
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Check whether --with-libtool or --without-libtool was given.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "${with_libtool+set}" = set; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater withval="$with_libtool"
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews use_libtool="$withval"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater use_libtool="no"
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewsfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewscase $use_libtool in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater yes)
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews # Check whether --enable-shared or --disable-shared was given.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "${enable_shared+set}" = set; then
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews enableval="$enable_shared"
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff p=${PACKAGE-default}
7829fad4093f2c1985b1efb7cea00287ff015d2bckbcase "$enableval" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateryes) enable_shared=yes ;;
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrewsno) enable_shared=no ;;
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews*)
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews enable_shared=no
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Look at the argument we got. We use all the common list separators.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb for pkg in $enableval; do
7829fad4093f2c1985b1efb7cea00287ff015d2bckb if test "X$pkg" = "X$p"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb enable_shared=yes
7829fad4093f2c1985b1efb7cea00287ff015d2bckb fi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb done
7829fad4093f2c1985b1efb7cea00287ff015d2bckb IFS="$ac_save_ifs"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckbesac
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb enable_shared=yes
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Check whether --enable-static or --disable-static was given.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "${enable_static+set}" = set; then
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews enableval="$enable_static"
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews p=${PACKAGE-default}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$enableval" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateryes) enable_static=yes ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterno) enable_static=no ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater*)
72d4e9f06f548af14696a0771626d288ba41522fDavid Lawrence enable_static=no
a03848252fa85734ca75beae3d0b01bb503c0a8bMark Andrews # Look at the argument we got. We use all the common list separators.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater for pkg in $enableval; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test "X$pkg" = "X$p"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater enable_static=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater enable_static=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Check whether --enable-fast-install or --disable-fast-install was given.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "${enable_fast_install+set}" = set; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater enableval="$enable_fast_install"
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson p=${PACKAGE-default}
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$enableval" in
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafssonyes) enable_fast_install=yes ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterno) enable_fast_install=no ;;
4a253e12fc611763cd7c1b793e78a00d47894399Francis Dupont*)
4a253e12fc611763cd7c1b793e78a00d47894399Francis Dupont enable_fast_install=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Look at the argument we got. We use all the common list separators.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4a253e12fc611763cd7c1b793e78a00d47894399Francis Dupont for pkg in $enableval; do
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test "X$pkg" = "X$p"; then
4a253e12fc611763cd7c1b793e78a00d47894399Francis Dupont enable_fast_install=yes
4a253e12fc611763cd7c1b793e78a00d47894399Francis Dupont fi
4a253e12fc611763cd7c1b793e78a00d47894399Francis Dupont done
7829fad4093f2c1985b1efb7cea00287ff015d2bckb IFS="$ac_save_ifs"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckbesac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater enable_fast_install=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking build system type""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2619: checking build system type" >&5
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrencebuild_alias=$build
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrencecase "$build_alias" in
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid LawrenceNONE)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case $nonopt in
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence NONE) build_alias=$host_alias ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb *) build_alias=$nonopt ;;
7829fad4093f2c1985b1efb7cea00287ff015d2bckb esac ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "$ac_t""$build" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# Check whether --with-gnu-ld or --without-gnu-ld was given.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "${with_gnu_ld+set}" = set; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb withval="$with_gnu_ld"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb test "$withval" = no || with_gnu_ld=yes
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb with_gnu_ld=no
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbac_prog=ld
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test "$ac_cv_prog_gcc" = yes; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Check if gcc -print-prog-name=ld gives a path.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "configure:2648: checking for ld used by GCC" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prog=`($CC -print-prog-name=ld) 2>&5`
7829fad4093f2c1985b1efb7cea00287ff015d2bckb case "$ac_prog" in
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # Accept absolute paths.
7829fad4093f2c1985b1efb7cea00287ff015d2bckb [\\/]* | [A-Za-z]:[\\/]*)
7829fad4093f2c1985b1efb7cea00287ff015d2bckb re_direlt='/[^/][^/]*/\.\./'
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence # Canonicalize the path of ld
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test -z "$LD" && LD="$ac_prog"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater "")
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence # If it fails, then pretend we aren't using GCC.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_prog=ld
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # If it is relative, then search for the first ld in PATH.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater with_gnu_ld=unknown
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
9658892dbcf34d7afa8d1ca0400551a8b6ce8394David Lawrenceelif test "$with_gnu_ld" = yes; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceecho "configure:2672: checking for GNU ld" >&5
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceelse
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrence echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho "configure:2675: checking for non-GNU ld" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -z "$LD"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7829fad4093f2c1985b1efb7cea00287ff015d2bckb for ac_dir in $PATH; do
7829fad4093f2c1985b1efb7cea00287ff015d2bckb test -z "$ac_dir" && ac_dir=.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_path_LD="$ac_dir/$ac_prog"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Check to see if the program is GNU ld. I'd rather use --version,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # but apparently some GNU ld's only accept -v.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Break only if it was the GNU/non-GNU ld that we prefer.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test "$with_gnu_ld" != no && break
7829fad4093f2c1985b1efb7cea00287ff015d2bckb else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater test "$with_gnu_ld" != yes && break
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_cv_path_LD="$LD" # Let the user override the test with a path.
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbLD="$ac_cv_path_LD"
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif test -n "$LD"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""$LD" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbtest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2711: checking if the linker ($LD) is GNU ld" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb echo $ac_n "(cached) $ac_c" 1>&6
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb # I'd rather use --version here, but apparently some GNU ld's only accept -v.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_cv_prog_gnu_ld=yes
7829fad4093f2c1985b1efb7cea00287ff015d2bckbelse
7829fad4093f2c1985b1efb7cea00287ff015d2bckb ac_cv_prog_gnu_ld=no
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
7829fad4093f2c1985b1efb7cea00287ff015d2bckbfi
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
bd1190c84b08e61a12789c54f083318c36449e5eDavid Lawrenceecho "configure:2727: checking for BSD-compatible nm" >&5
7829fad4093f2c1985b1efb7cea00287ff015d2bckbif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrenceelse
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence if test -n "$NM"; then
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence # Let the user override the test.
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence ac_cv_path_NM="$NM"
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrenceelse
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews test -z "$ac_dir" && ac_dir=.
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews # Check to see if the nm accepts a BSD-compat flag.
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews # nm: unknown option "B" ignored
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews ac_cv_path_NM="$ac_dir/nm -B"
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews break
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews ac_cv_path_NM="$ac_dir/nm -p"
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews break
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence else
5497de6931b5ac26f65c2343b0318614f73933baMark Andrews ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence continue # so that we can try to find one that supports BSD flags
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence fi
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff fi
ec80744ad68b97f15657b1fdf5591c30b559b57dDavid Lawrence done
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater IFS="$ac_save_ifs"
c5944292e9ebee4a39fe939b9a16fe5596808556David Lawrence test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterNM="$ac_cv_path_NM"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$NM" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2764: checking whether ln -s works" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -f conftestdata
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif ln -s X conftestdata 2>/dev/null
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterthen
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -f conftestdata
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_LN_S="ln -s"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ac_cv_prog_LN_S=ln
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterLN_S="$ac_cv_prog_LN_S"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif test "$ac_cv_prog_LN_S" = "ln -s"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Check for any special flags to pass to ltconfig.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterlibtool_flags="--cache-file=$cache_file"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffif test "${enable_libtool_lock+set}" = set; then
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence enableval="$enable_libtool_lock"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrencefi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatertest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Some flags need to be propagated to the compiler or linker for good
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# libtool support.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$host" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater*-*-irix6*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # Find out which ABI we are using.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo '#line 2808 "configure"' > conftest.$ac_ext
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case "`/usr/bin/file conftest.o`" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *32-bit*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LD="${LD-ld} -32"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *N32*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LD="${LD-ld} -n32"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *64-bit*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LD="${LD-ld} -64"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater*-*-sco3.2v5*)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # On SCO OpenServer 5, we need -belf to get full-featured binaries.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater SAVE_CFLAGS="$CFLAGS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CFLAGS="$CFLAGS -belf"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:2830: checking whether the C compiler needs -belf" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 2835 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater lt_cv_cc_needs_belf=yes
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater lt_cv_cc_needs_belf=no
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test x"$lt_cv_cc_needs_belf" != x"yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater CFLAGS="$SAVE_CFLAGS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Save cache, so that ltconfig can load it
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercat > confcache <<\EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# This file is a shell script that caches the results of configure
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# tests run on this system so they can be shared between configure
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# scripts and configure runs. It is not useful on other systems.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# If it contains results you don't want to keep, you may remove or edit it.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# By default, configure uses ./config.cache as the cache file,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# creating it if it does not exist already. You can give configure
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# the --cache-file=FILE option to use a different cache file; that is
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# what configure does when it calls configure scripts in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# subdirectories, so they share the cache.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Giving --cache-file=/dev/null disables caching, for debugging configure.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# config.status only pays attention to the cache file if you give it the
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# --recheck option to rerun configure.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# The following way of writing the cache mishandles newlines in values,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# but we know of no workaround that is simple, portable, and efficient.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# So, don't put newlines in cache variables' values.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# Ultrix sh set writes to stderr and can't be redirected directly,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater# and sets the high bit in the cache file unless we assign to the vars.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater(set) 2>&1 |
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater case `(ac_space=' '; set | grep ac_space) 2>&1` in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *ac_space=\ *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # `set' does not quote correctly, so add quotes (double-quote substitution
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # turns \\\\ into \\, and sed turns \\ into \).
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater sed -n \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e "s/'/'\\\\''/g" \
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater # `set' quotes correctly as required by POSIX, so do not add quotes.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater esac >> confcache
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif cmp -s $cache_file confcache; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater :
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -w $cache_file; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "updating cache $cache_file"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat confcache > $cache_file
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "not updating unwritable cache $cache_file"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrencefi
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrencerm -f confcache
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# Actually configure libtool. ac_aux_dir is where install-sh is found.
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# Reload cache, that may have been modified by ltconfig
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsif test -r "$cache_file"; then
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews echo "loading cache $cache_file"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews . $cache_file
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewselse
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews echo "creating cache $cache_file"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews > $cache_file
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsfi
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# This can be used to rebuild libtool when needed
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# Always use our own libtool.
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsLIBTOOL='$(SHELL) $(top_builddir)/libtool'
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# Redirect the config.log output again, so that the ltconfig log is not
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# clobbered by the next message.
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsexec 5>>./config.log
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews O=lo
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews A=la
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ;;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews *)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews O=o
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews A=a
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews LIBTOOL=
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ;;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsesac
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# Check whether --enable-ipv6 or --disable-ipv6 was given.
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsif test "${enable_ipv6+set}" = set; then
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews enableval="$enable_ipv6"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews :
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsfi
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewscase "$enable_ipv6" in
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews yes|''|autodetect)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsecho "configure:2966: checking for IPv6 structures" >&5
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews cat > conftest.$ac_ext <<EOF
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#line 2968 "configure"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#include "confdefs.h"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#include <sys/types.h>
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#include <sys/socket.h>
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#include <netinet/in.h>
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsint main() {
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsstruct sockaddr_in6 sin6; return (0);
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews; return 0; }
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsEOF
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsif { (eval echo configure:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews rm -rf conftest*
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews echo "$ac_t""yes" 1>&6
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews found_ipv6=yes
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewselse
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews echo "configure: failed program was:" >&5
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews cat conftest.$ac_ext >&5
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews rm -rf conftest*
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews echo "$ac_t""no" 1>&6
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews found_ipv6=no
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsfi
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsrm -f conftest*
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ;;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews no)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews found_ipv6=no
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ;;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsesac
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewscase "$found_ipv6" in
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews yes)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1",
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ;;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews no)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ISC_IPV6_H="ipv6.h"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ISC_IPV6_O="ipv6.$O"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ISC_ISCIPV6_O="unix/ipv6.$O"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ISC_IPV6_C="ipv6.c"
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ;;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsesac
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsecho "configure:3016: checking for Kame IPv6 support" >&5
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# Check whether --with-kame or --without-kame was given.
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsif test "${with_kame+set}" = set; then
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff withval="$with_kame"
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence use_kame="$withval"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence use_kame="no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$use_kame" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater no)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater yes)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater kame_path=/usr/local/v6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater kame_path="$use_kame"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updatercase "$use_kame" in
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater no)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater *)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater if test -f $kame_path/lib/libinet6.a; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater LIBS="$kame_path/lib -linet6 $LIBS"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater { echo "configure: error: $kame_path/lib/libinet6.a not found.
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterPlease choose the proper path with the following command:
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater configure --with-kame=PATH
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater" 1>&2; exit 1; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater fi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ;;
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updateresac
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:3058: checking for inet_ntop" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 3063 "configure"
47b7dfffe5d806c6a5e99ef17f07bcde812c2132Francis Dupont#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char inet_ntop(); below. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar inet_ntop();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* The GNU C library defines this for functions which it implements
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater to always fail with ENOSYS. Some functions are actually named
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater something starting with __ and the normal name is an alias. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchoke me
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterinet_ntop();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_inet_ntop=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_inet_ntop=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""no" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic UpdaterISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho "configure:3110: checking for inet_pton" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#line 3115 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char inet_pton(); below. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar inet_pton();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* The GNU C library defines this for functions which it implements
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater to always fail with ENOSYS. Some functions are actually named
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater something starting with __ and the normal name is an alias. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchoke me
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence#else
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrenceinet_pton();
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#endif
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
33950f0a0262f4d49528c4adcf8be42807fa2576David LawrenceEOF
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrenceif { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence eval "ac_cv_func_inet_pton=yes"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "configure: failed program was:" >&5
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence cat conftest.$ac_ext >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence eval "ac_cv_func_inet_pton=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrencerm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo "$ac_t""yes" 1>&6
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterelse
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence echo "$ac_t""no" 1>&6
5f50687f61057f7f0acb161d5803f4a48e40b3a8David LawrenceISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrencefi
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrenceecho "configure:3162: checking for inet_aton" >&5
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater echo $ac_n "(cached) $ac_c" 1>&6
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrenceelse
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater cat > conftest.$ac_ext <<EOF
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence#line 3167 "configure"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#include "confdefs.h"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* System header to define __stub macros and hopefully few prototypes,
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater which can conflict with char inet_aton(); below. */
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence#include <assert.h>
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence/* We use char because int might match the return type of a gcc2
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater builtin and then its argument prototype would still apply. */
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchar inet_aton();
1adfd0a9119434de35e1a6b6ddc65b28dd608308David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterint main() {
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence/* The GNU C library defines this for functions which it implements
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence to always fail with ENOSYS. Some functions are actually named
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence something starting with __ and the normal name is an alias. */
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterchoke me
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#else
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterinet_aton();
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater#endif
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater; return 0; }
5f50687f61057f7f0acb161d5803f4a48e40b3a8David LawrenceEOF
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_inet_aton=yes"
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrenceelse
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence echo "configure: failed program was:" >&5
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence cat conftest.$ac_ext >&5
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence rm -rf conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater eval "ac_cv_func_inet_aton=no"
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterrm -f conftest*
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterfi
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updaterif eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence echo "$ac_t""yes" 1>&6
f731b5d665e484c9b9634531c791cee9d87ab7a0Automatic Updater ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrenceelse
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
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:3214: 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 3219 "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:3242: \"$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_EXTRA_OBJS="$ISC_EXTRA_OBJS strsep.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS strsep.c"
ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:3265: 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 3270 "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:3293: \"$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 chroot""... $ac_c" 1>&6
echo "configure:3326: 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 3331 "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:3354: \"$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:3380: 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 3385 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3390: \"$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
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
BIND9_VERSION=$srcdir/version
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/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/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/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/dnssafe/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/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/lwresd/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/sockaddr/Makefile
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%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_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_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%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%@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%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%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%@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_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%@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
/@BIND9_VERSION@/r $BIND9_VERSION
s%@BIND9_VERSION@%%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_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/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/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/dnssafe/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/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/lwresd/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/sockaddr/Makefile
"}
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