configure revision 7e5f154045ec3dbe72f5aeec310d6993c03ff251
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff#! /bin/sh
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# From configure.in Revision: 1.115
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## Copyright (C) 1996-1999 Free Software Foundation, Inc.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff##
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## This program is free software; you can redistribute it and/or modify
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## it under the terms of the GNU General Public License as published by
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## the Free Software Foundation; either version 2 of the License, or
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## (at your option) any later version.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff##
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## This program is distributed in the hope that it will be useful, but
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## WITHOUT ANY WARRANTY; without even the implied warranty of
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## General Public License for more details.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff##
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## You should have received a copy of the GNU General Public License
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## along with this program; if not, write to the Free Software
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff##
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## As a special exception to the GNU General Public License, if you
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff## distribute this file as part of a program that contains a
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff## configuration script generated by Autoconf, you may include it under
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff## the same distribution terms that you use for the rest of that program.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# serial 40 AC_PROG_LIBTOOL
440be4c866f6935ac069db79a414304507a664c2Michael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
7f1bd55920715d872389194c4201ea95b71378efMichael Graff
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# AC_ENABLE_SHARED - implement the --enable-shared flag
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# `yes'.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff# AC_ENABLE_STATIC - implement the --enable-static flag
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# Usage: AC_ENABLE_STATIC[(DEFAULT)]
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# `yes'.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# AC_DISABLE_STATIC - set the default static flag to --disable-static
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# `yes'.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# AC_PROG_LD - find the path to the GNU or non-GNU linker
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# AC_PROG_NM - find the path to a BSD-compatible name lister
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# AC_CHECK_LIBM - check for math library
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# the libltdl convenience library, adds --enable-ltdl-convenience to
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff# to be `${top_builddir}/libltdl'. Make sure you start DIR with
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff# '${top_builddir}/' (note the single quotes!) if your package is not
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff# flat, and, if you're not using automake, define top_builddir as
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff# appropriate in the Makefiles.
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# the libltdl installable library, and adds --enable-ltdl-install to
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff# to be `${top_builddir}/libltdl'. Make sure you start DIR with
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# '${top_builddir}/' (note the single quotes!) if your package is not
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff# flat, and, if you're not using automake, define top_builddir as
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# appropriate in the Makefiles.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# Guess values for system-dependent variables and create Makefiles.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# Generated automatically using autoconf version 2.13
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff#
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# This configure script is free software; the Free Software Foundation
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# gives unlimited permission to copy, distribute and modify it.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff# Defaults:
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help=
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_default_prefix=/usr/local
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff# Any additions from configure.in:
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --with-mit-pthreads use the mit-pthreads thread library"
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --with-ptl2 use the ptl2 thread library"
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --with-libtool use GNU libtool"
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --enable-shared[=PKGS] build shared libraries [default=yes]"
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --enable-static[=PKGS] build static libraries [default=yes]"
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffac_help="$ac_help
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graff --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_help="$ac_help
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff --disable-libtool-lock avoid locking (might break parallel builds)"
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graffac_help="$ac_help
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff --enable-ipv6 use IPv6 [default=autodetect]"
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graffac_help="$ac_help
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# Initialize some variables set by options.
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# The variables have the same names as the options, with
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# dashes changed to underlines.
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graffbuild=NONE
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffcache_file=./config.cache
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffexec_prefix=NONE
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffhost=NONE
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffno_create=
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffnonopt=NONE
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffno_recursion=
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffprefix=NONE
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffprogram_prefix=NONE
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graffprogram_suffix=NONE
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffprogram_transform_name=s,x,x,
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffsilent=
0a9fedafec59fd3ec2eeadc3f123db163e71c0fbMichael Graffsite=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffsrcdir=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafftarget=NONE
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffverbose=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffx_includes=NONE
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffx_libraries=NONE
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffbindir='${exec_prefix}/bin'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffsbindir='${exec_prefix}/sbin'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafflibexecdir='${exec_prefix}/libexec'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffdatadir='${prefix}/share'
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graffsysconfdir='${prefix}/etc'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffsharedstatedir='${prefix}/com'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafflocalstatedir='${prefix}/var'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafflibdir='${exec_prefix}/lib'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffincludedir='${prefix}/include'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffoldincludedir='/usr/include'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffinfodir='${prefix}/info'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffmandir='${prefix}/man'
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# Initialize some other variables.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffsubdirs=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffMFLAGS= MAKEFLAGS=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffSHELL=${CONFIG_SHELL-/bin/sh}
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# Maximum number of lines to put in a shell here document.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_max_here_lines=12
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_prev=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffor ac_option
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffdo
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # If the previous option needs an argument, assign it.
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff if test -n "$ac_prev"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff eval "$ac_prev=\$ac_option"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff continue
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff case "$ac_option" in
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff *) ac_optarg= ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff esac
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff # Accept the important Cygnus configure options, so we can diagnose typos.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff case "$ac_option" in
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -bindir | --bindir | --bindi | --bind | --bin | --bi)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=bindir ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff bindir="$ac_optarg" ;;
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff -build | --build | --buil | --bui | --bu)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=build ;;
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff build="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -cache-file | --cache-file | --cache-fil | --cache-fi \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=cache_file ;;
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff cache_file="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=datadir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --da=*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff datadir="$ac_optarg" ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff -disable-* | --disable-*)
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff # Reject names that are not valid shell variable names.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff eval "enable_${ac_feature}=no" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -enable-* | --enable-*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # Reject names that are not valid shell variable names.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff ac_feature=`echo $ac_feature| sed 's/-/_/g'`
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff case "$ac_option" in
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff *=*) ;;
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff *) ac_optarg=yes ;;
04458c8b5da001294e820289b34bf3aee6258f27Michael Graff esac
04458c8b5da001294e820289b34bf3aee6258f27Michael Graff eval "enable_${ac_feature}='$ac_optarg'" ;;
04458c8b5da001294e820289b34bf3aee6258f27Michael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --exec | --exe | --ex)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=exec_prefix ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --exec=* | --exe=* | --ex=*)
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff exec_prefix="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -gas | --gas | --ga | --g)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff # Obsolete; use --with-gas.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff with_gas=yes ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff -help | --help | --hel | --he)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff # Omit some internal or obsolete options to make the list less imposing.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff # This message is too long to be a string in the A/UX 3.1 sh.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff cat << EOF
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael GraffUsage: configure [options] [host]
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael GraffOptions: [defaults in brackets after descriptions]
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael GraffConfiguration:
bd7237e653e15bfb7f202a1c0914271912597ef4Michael Graff --cache-file=FILE cache test results in FILE
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --help print this message
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --no-create do not create output files
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --quiet, --silent do not print \`checking...' messages
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff --version print the version of autoconf that created configure
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael GraffDirectory and file names:
7f1bd55920715d872389194c4201ea95b71378efMichael Graff --prefix=PREFIX install architecture-independent files in PREFIX
7f1bd55920715d872389194c4201ea95b71378efMichael Graff [$ac_default_prefix]
7f1bd55920715d872389194c4201ea95b71378efMichael Graff --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff [same as prefix]
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --bindir=DIR user executables in DIR [EPREFIX/bin]
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff --datadir=DIR read-only architecture-independent data in DIR
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff [PREFIX/share]
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff --sharedstatedir=DIR modifiable architecture-independent data in DIR
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff [PREFIX/com]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --libdir=DIR object code libraries in DIR [EPREFIX/lib]
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff --includedir=DIR C header files in DIR [PREFIX/include]
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff --infodir=DIR info documentation in DIR [PREFIX/info]
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff --mandir=DIR man documentation in DIR [PREFIX/man]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --srcdir=DIR find the sources in DIR [configure dir or ..]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --program-prefix=PREFIX prepend PREFIX to installed program names
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --program-suffix=SUFFIX append SUFFIX to installed program names
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halley --program-transform-name=PROGRAM
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff run sed PROGRAM on installed program names
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffEOF
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halley cat << EOF
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffHost type:
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --build=BUILD configure for building on BUILD [BUILD=HOST]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --host=HOST configure for HOST [guessed]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --target=TARGET configure for TARGET [TARGET=HOST]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffFeatures and packages:
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff --x-includes=DIR X include files are in DIR
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff --x-libraries=DIR X library files are in DIR
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffEOF
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if test -n "$ac_help"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "--enable and --with options recognized:$ac_help"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff exit 0 ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -host | --host | --hos | --ho)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=host ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -host=* | --host=* | --hos=* | --ho=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff host="$ac_optarg" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -includedir | --includedir | --includedi | --included | --include \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --includ | --inclu | --incl | --inc)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=includedir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --includ=* | --inclu=* | --incl=* | --inc=*)
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff includedir="$ac_optarg" ;;
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff -infodir | --infodir | --infodi | --infod | --info | --inf)
7f1bd55920715d872389194c4201ea95b71378efMichael Graff ac_prev=infodir ;;
7f1bd55920715d872389194c4201ea95b71378efMichael Graff -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
7f1bd55920715d872389194c4201ea95b71378efMichael Graff infodir="$ac_optarg" ;;
7f1bd55920715d872389194c4201ea95b71378efMichael Graff
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff -libdir | --libdir | --libdi | --libd)
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff ac_prev=libdir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -libdir=* | --libdir=* | --libdi=* | --libd=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff libdir="$ac_optarg" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --libexe | --libex | --libe)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=libexecdir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --libexe=* | --libex=* | --libe=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff libexecdir="$ac_optarg" ;;
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -localstatedir | --localstatedir | --localstatedi | --localstated \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --localstate | --localstat | --localsta | --localst \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --locals | --local | --loca | --loc | --lo)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=localstatedir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff localstatedir="$ac_optarg" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=mandir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff mandir="$ac_optarg" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -nfp | --nfp | --nf)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # Obsolete; use --without-fp.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff with_fp=no ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --no-cr | --no-c)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff no_create=yes ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff no_recursion=yes ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --oldin | --oldi | --old | --ol | --o)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=oldincludedir ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff oldincludedir="$ac_optarg" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=prefix ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff prefix="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -program-prefix | --program-prefix | --program-prefi | --program-pref \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --program-pre | --program-pr | --program-p)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=program_prefix ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -program-prefix=* | --program-prefix=* | --program-prefi=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff program_prefix="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -program-suffix | --program-suffix | --program-suffi | --program-suff \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --program-suf | --program-su | --program-s)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=program_suffix ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -program-suffix=* | --program-suffix=* | --program-suffi=* \
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
58efc48a9623797187726360efb57cbabd916f0dMichael Graff program_suffix="$ac_optarg" ;;
58efc48a9623797187726360efb57cbabd916f0dMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -program-transform-name | --program-transform-name \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --program-transform-nam | --program-transform-na \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --program-transform-n | --program-transform- \
7f1bd55920715d872389194c4201ea95b71378efMichael Graff | --program-transform | --program-transfor \
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff | --program-transfo | --program-transf \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --program-trans | --program-tran \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --progr-tra | --program-tr | --program-t)
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff ac_prev=program_transform_name ;;
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff -program-transform-name=* | --program-transform-name=* \
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff | --program-transform-nam=* | --program-transform-na=* \
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff | --program-transform-n=* | --program-transform-=* \
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff | --program-transform=* | --program-transfor=* \
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff | --program-transfo=* | --program-transf=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --program-trans=* | --program-tran=* \
6149906644219cd01a9fd2625c08b1592dcdb1c8Michael Graff | --progr-tra=* | --program-tr=* | --program-t=*)
6149906644219cd01a9fd2625c08b1592dcdb1c8Michael Graff program_transform_name="$ac_optarg" ;;
6149906644219cd01a9fd2625c08b1592dcdb1c8Michael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | -silent | --silent | --silen | --sile | --sil)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff silent=yes ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=sbindir ;;
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff | --sbi=* | --sb=*)
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff sbindir="$ac_optarg" ;;
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff -sharedstatedir | --sharedstatedir | --sharedstatedi \
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff | --sharedst | --shareds | --shared | --share | --shar \
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff | --sha | --sh)
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ac_prev=sharedstatedir ;;
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --sha=* | --sh=*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff sharedstatedir="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff -site | --site | --sit)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=site ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -site=* | --site=* | --sit=*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff site="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7f1bd55920715d872389194c4201ea95b71378efMichael Graff ac_prev=srcdir ;;
7f1bd55920715d872389194c4201ea95b71378efMichael Graff -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff srcdir="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --syscon | --sysco | --sysc | --sys | --sy)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_prev=sysconfdir ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff sysconfdir="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -target | --target | --targe | --targ | --tar | --ta | --t)
7f1bd55920715d872389194c4201ea95b71378efMichael Graff ac_prev=target ;;
7f1bd55920715d872389194c4201ea95b71378efMichael Graff -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff target="$ac_optarg" ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -v | -verbose | --verbose | --verbos | --verbo | --verb)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff verbose=yes ;;
7f1bd55920715d872389194c4201ea95b71378efMichael Graff
7f1bd55920715d872389194c4201ea95b71378efMichael Graff -version | --version | --versio | --versi | --vers)
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff echo "configure generated by autoconf version 2.13"
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff exit 0 ;;
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff -with-* | --with-*)
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
58efc48a9623797187726360efb57cbabd916f0dMichael Graff # Reject names that are not valid shell variable names.
58efc48a9623797187726360efb57cbabd916f0dMichael Graff if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
58efc48a9623797187726360efb57cbabd916f0dMichael Graff ac_package=`echo $ac_package| sed 's/-/_/g'`
58efc48a9623797187726360efb57cbabd916f0dMichael Graff case "$ac_option" in
58efc48a9623797187726360efb57cbabd916f0dMichael Graff *=*) ;;
58efc48a9623797187726360efb57cbabd916f0dMichael Graff *) ac_optarg=yes ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff esac
58efc48a9623797187726360efb57cbabd916f0dMichael Graff eval "with_${ac_package}='$ac_optarg'" ;;
58efc48a9623797187726360efb57cbabd916f0dMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -without-* | --without-*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_package=`echo $ac_option|sed -e 's/-*without-//'`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # Reject names that are not valid shell variable names.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff ac_package=`echo $ac_package| sed 's/-/_/g'`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff eval "with_${ac_package}=no" ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff --x)
7f1bd55920715d872389194c4201ea95b71378efMichael Graff # Obsolete; use --with-x.
7f1bd55920715d872389194c4201ea95b71378efMichael Graff with_x=yes ;;
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff | --x-incl | --x-inc | --x-in | --x-i)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_prev=x_includes ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
58efc48a9623797187726360efb57cbabd916f0dMichael Graff | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff x_includes="$ac_optarg" ;;
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff -x-libraries | --x-libraries | --x-librarie | --x-librari \
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff ac_prev=x_libraries ;;
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff x_libraries="$ac_optarg" ;;
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff ;;
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff *)
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff echo "configure: warning: $ac_option: invalid host type" 1>&2
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff fi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff if test "x$nonopt" != xNONE; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
58efc48a9623797187726360efb57cbabd916f0dMichael Graff fi
58efc48a9623797187726360efb57cbabd916f0dMichael Graff nonopt="$ac_option"
58efc48a9623797187726360efb57cbabd916f0dMichael Graff ;;
58efc48a9623797187726360efb57cbabd916f0dMichael Graff
58efc48a9623797187726360efb57cbabd916f0dMichael Graff esac
9db3eaed9573b0fdd2109b38261806bde12ff9c3Bob Halleydone
58efc48a9623797187726360efb57cbabd916f0dMichael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif test -n "$ac_prev"; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Grafffi
58efc48a9623797187726360efb57cbabd916f0dMichael Graff
271d5bfc5ca8d746b535d1522f2aa9389ece2a7eBob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
58efc48a9623797187726360efb57cbabd916f0dMichael Graff
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff# File descriptor usage:
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# 0 standard input
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff# 1 file creation
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# 2 errors and warnings
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# 3 some systems may open it to /dev/tty
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# 4 used on the Kubota Titan
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# 6 checking for... messages and results
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# 5 compiler messages saved in config.log
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffif test "$silent" = yes; then
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff exec 6>/dev/null
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffelse
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff exec 6>&1
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffexec 5>./config.log
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho "\
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffThis file contains any messages produced by compilers while
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffrunning configure, to aid debugging if configure makes a mistake.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff" 1>&5
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Strip out --no-create and --no-recursion so they do not pile up.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Also quote any args containing shell metacharacters.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_configure_args=
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffor ac_arg
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffdo
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff case "$ac_arg" in
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff | --no-cr | --no-c) ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff -no-recursion | --no-recursion | --no-recursio | --no-recursi \
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_configure_args="$ac_configure_args '$ac_arg'" ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff *) ac_configure_args="$ac_configure_args $ac_arg" ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff esac
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffdone
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# NLS nuisances.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Only set these to C if already set. These must not be set unconditionally
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# because not all systems understand e.g. LANG=C (notably SCO).
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Non-C LC_CTYPE values break the ctype check.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif test "${LANG+set}" = set; then LANG=C; export LANG; fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# confdefs.h avoids OS command line length limits that DEFS can exceed.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffrm -rf conftest* confdefs.h
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# AIX cpp loses on an empty file, so make sure it contains at least a newline.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho > confdefs.h
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# A filename unique to this package, relative to the directory that
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halleyac_unique_file=lib/dns/name.c
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Find the source files, if location was not specified.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test -z "$srcdir"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_srcdir_defaulted=yes
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff # Try the directory containing this script, then its parent.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_prog=$0
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff srcdir=$ac_confdir
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if test ! -r $srcdir/$ac_unique_file; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff srcdir=..
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffelse
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_srcdir_defaulted=no
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test ! -r $srcdir/$ac_unique_file; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if test "$ac_srcdir_defaulted" = yes; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff else
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Prefer explicitly selected file to automatically selected ones.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test -z "$CONFIG_SITE"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if test "x$prefix" != xNONE; then
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley else
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley fi
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halleyfi
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halleyfor ac_site_file in $CONFIG_SITE; do
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley if test -r "$ac_site_file"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff echo "loading site script $ac_site_file"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff . "$ac_site_file"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffdone
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test -r "$cache_file"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff echo "loading cache $cache_file"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff . $cache_file
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffelse
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff echo "creating cache $cache_file"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff > $cache_file
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_ext=c
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_cpp='$CPP $CPPFLAGS'
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffcross_compiling=$ac_cv_prog_cc_cross
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_exeext=
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_objext=o
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_n= ac_c='
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff' ac_t=' '
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff else
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_n=-n ac_c= ac_t=
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffelse
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_n= ac_c='\c' ac_t=
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_aux_dir=
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if test -f $ac_dir/install-sh; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_aux_dir=$ac_dir
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_install_sh="$ac_aux_dir/install-sh -c"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff break
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff elif test -f $ac_dir/install.sh; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_aux_dir=$ac_dir
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_install_sh="$ac_aux_dir/install.sh -c"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff break
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff fi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffdone
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test -z "$ac_aux_dir"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_config_guess=$ac_aux_dir/config.guess
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_config_sub=$ac_aux_dir/config.sub
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# Make sure we can run config.sub.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho $ac_n "checking host system type""... $ac_c" 1>&6
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho "configure:672: checking host system type" >&5
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffhost_alias=$host
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffcase "$host_alias" in
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffNONE)
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff case $nonopt in
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff NONE)
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff fi ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff *) host_alias=$nonopt ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff esac ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffesac
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho "$ac_t""$host" 1>&6
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffecho "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff cat > conftestmake <<\EOF
271d5bfc5ca8d746b535d1522f2aa9389ece2a7eBob Halleyall:
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff @echo 'ac_maketemp="${MAKE}"'
c6066a8e67f40c7c12925c5634485f55713c06d6Michael GraffEOF
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif test -n "$ac_maketemp"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff eval ac_cv_prog_make_${ac_make}_set=yes
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffelse
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff eval ac_cv_prog_make_${ac_make}_set=no
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffrm -f conftestmake
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff echo "$ac_t""yes" 1>&6
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff SET_MAKE=
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffelse
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff echo "$ac_t""no" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff SET_MAKE="MAKE=${MAKE-make}"
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Grafffi
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff# Extract the first word of "ranlib", so it can be a program name with args.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffset dummy ranlib; ac_word=$2
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffecho "configure:723: checking for $ac_word" >&5
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo $ac_n "(cached) $ac_c" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -n "$RANLIB"; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffelse
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ac_dummy="$PATH"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff for ac_dir in $ac_dummy; do
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff test -z "$ac_dir" && ac_dir=.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -f $ac_dir/$ac_word; then
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff ac_cv_prog_RANLIB="ranlib"
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff break
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff fi
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff done
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff IFS="$ac_save_ifs"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffRANLIB="$ac_cv_prog_RANLIB"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -n "$RANLIB"; then
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halley echo "$ac_t""$RANLIB" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_t""no" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# Find a good install program. We prefer a C program (faster),
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# so one script is as good as another. But avoid the broken or
d524cd03ece72a4db67ec414992c486838732114Michael Graff# incompatible versions:
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# SysV /etc/install, /usr/sbin/install
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# SunOS /usr/etc/install
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# IRIX /sbin/install
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff# AIX /bin/install
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# ./install, which can be erroneously created by make from ./install.sh.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffecho "configure:762: checking for a BSD compatible install" >&5
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halleyif test -z "$INSTALL"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffelse
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff for ac_dir in $PATH; do
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff # Account for people who put trailing slashes in PATH elements.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff case "$ac_dir/" in
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff *)
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff # OSF1 and SCO ODT 3.0 have their own names for install.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff # Don't use installbsd from OSF since it installs stuff as root
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # by default.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff for ac_prog in ginstall scoinst install; do
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -f $ac_dir/$ac_prog; then
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff if test $ac_prog = install &&
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff # AIX install. It has an incompatible calling convention.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff :
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff else
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff ac_cv_path_install="$ac_dir/$ac_prog -c"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff break 2
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff fi
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff fi
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff done
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff ;;
04135883be6700d7c9f489e4db9cb6c147b064caMichael Graff esac
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff done
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff IFS="$ac_save_IFS"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Grafffi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff if test "${ac_cv_path_install+set}" = set; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff INSTALL="$ac_cv_path_install"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff else
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff # As a last resort, use the slow shell script. We don't cache a
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff # path for INSTALL within a source directory, because that will
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff # break other packages using the cache if that directory is
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff # removed, or if the path is relative.
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff INSTALL="$ac_install_sh"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff fi
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho "$ac_t""$INSTALL" 1>&6
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halley# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halley# It thinks the first close brace ends the variable substitution.
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Grafftest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafftest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Grafftest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff# Extract the first word of "ar", so it can be a program name with args.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffset dummy ar; ac_word=$2
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef4b66d3557505af25fec8ce461f07ddd671ea1eBob Halleyecho "configure:822: checking for $ac_word" >&5
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graffif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
04135883be6700d7c9f489e4db9cb6c147b064caMichael Graff echo $ac_n "(cached) $ac_c" 1>&6
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffelse
04135883be6700d7c9f489e4db9cb6c147b064caMichael Graff case "$AR" in
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff /*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_cv_path_AR="$AR" # Let the user override the test with a path.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ;;
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ?:/*)
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff ;;
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff *)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ac_dummy="$PATH"
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff for ac_dir in $ac_dummy; do
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff test -z "$ac_dir" && ac_dir=.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff if test -f $ac_dir/$ac_word; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ac_cv_path_AR="$ac_dir/$ac_word"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff break
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff fi
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff done
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff IFS="$ac_save_ifs"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ;;
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graffesac
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Grafffi
54a64ec428cb9f783d62a044cbec3a72724a937cMichael GraffAR="$ac_cv_path_AR"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffif test -n "$AR"; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff echo "$ac_t""$AR" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffelse
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff echo "$ac_t""no" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Grafffi
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
0b14ebe3132846e91bea02992493e3d506233e76Michael GraffARFLAGS="cruv"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Grafffor ac_prog in etags emacs-etags
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffdo
233f59d93351311880dd40e5a24e19085e5d4002Michael Graff# Extract the first word of "$ac_prog", so it can be a program name with args.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffset dummy $ac_prog; ac_word=$2
0b14ebe3132846e91bea02992493e3d506233e76Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffecho "configure:863: checking for $ac_word" >&5
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff echo $ac_n "(cached) $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffelse
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff case "$ETAGS" in
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff /*)
233f59d93351311880dd40e5a24e19085e5d4002Michael Graff ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ;;
0b14ebe3132846e91bea02992493e3d506233e76Michael Graff ?:/*)
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ;;
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff *)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ac_dummy="$PATH"
233f59d93351311880dd40e5a24e19085e5d4002Michael Graff for ac_dir in $ac_dummy; do
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff test -z "$ac_dir" && ac_dir=.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -f $ac_dir/$ac_word; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_cv_path_ETAGS="$ac_dir/$ac_word"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff break
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff done
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff IFS="$ac_save_ifs"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ;;
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffesac
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffETAGS="$ac_cv_path_ETAGS"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -n "$ETAGS"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_t""$ETAGS" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_t""no" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafftest -n "$ETAGS" && break
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffdone
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# Special processing of paths depending on whether --prefix,
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# --sysconfdir or --localstatedir arguments were given. What's
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# desired is some compatability with the way previous versions
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# of BIND built; they defaulted to /usr/local for most parts of
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# the installation, but named.boot/named.conf was in /etc
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# and named.pid was in /var/run.
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff#
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# So ... if none of --prefix, --sysconfdir or --localstatedir are
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# specified, set things up that way. If --prefix is given, use
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# it for sysconfdir and localstatedir the way configure normally
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# would. To change the prefix for everything but leave named.conf
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# in /etc or named.pid in /var/run, then do this the usual configure way:
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# ./configure --prefix=/somewhere --sysconfdir=/etc
b8ef99c3a7be2835b2395faff2d46e46f5c4adb3Michael Graff# ./configure --prefix=/somewhere --localstatedir=/var
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff#
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# To put named.conf and named.pid in /usr/local with everything else,
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# set the prefix explicitly to /usr/local even though that's the default:
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff# ./configure --prefix=/usr/local
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff#
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graffcase "$prefix" in
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff NONE)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff case "$sysconfdir" in
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff '${prefix}/etc')
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff sysconfdir=/etc
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ;;
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff esac
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff case "$localstatedir" in
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff '${prefix}/var')
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graff localstatedir=/var
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ;;
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff esac
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ;;
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffesac
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff#
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# Make sure INSTALL uses an absolute path, else it will be wrong in all
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# configure based on the location of the file where it is substituted.
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# subdirectory of install-sh, This relative path will be wrong for all
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff# directories more than one level down from install-sh.
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff#
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffcase "$INSTALL" in
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff /*)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ;;
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff *)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff #
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff # Not all systems have dirname.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff #
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
2743e0ce08d1decc963908f024007078d4a553acMichael Graff
2743e0ce08d1decc963908f024007078d4a553acMichael Graff
2743e0ce08d1decc963908f024007078d4a553acMichael Graff ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
2743e0ce08d1decc963908f024007078d4a553acMichael Graff test "$ac_dir" = "$ac_prog" && ac_dir=.
2743e0ce08d1decc963908f024007078d4a553acMichael Graff test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
2743e0ce08d1decc963908f024007078d4a553acMichael Graff INSTALL="$ac_dir/$ac_prog"
2743e0ce08d1decc963908f024007078d4a553acMichael Graff ;;
2743e0ce08d1decc963908f024007078d4a553acMichael Graffesac
2743e0ce08d1decc963908f024007078d4a553acMichael Graff
2743e0ce08d1decc963908f024007078d4a553acMichael Graff#
2743e0ce08d1decc963908f024007078d4a553acMichael Graff# On these hosts, we really want to use cc, not gcc, even if it is
2743e0ce08d1decc963908f024007078d4a553acMichael Graff# found. The gcc that these systems have will not correctly handle
2743e0ce08d1decc963908f024007078d4a553acMichael Graff# pthreads.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff#
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# However, if the user sets $CC to be something, let that override
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff# our change.
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff#
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffif test "X$CC" = "X" ; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff case "$host" in
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff *-dec-osf*)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff CC="cc"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ;;
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff *-solaris*)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff # Use Sun's cc if it is available, but watch
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff # out for /usr/ucb/cc; it will never be the right
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff # compiler to use.
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff #
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff # If setting CC here fails, the AC_PROG_CC done
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff # below might still find gcc.
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff for ac_dir in $PATH; do
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff test -z "$ac_dir" && ac_dir=.
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff case "$ac_dir" in
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff /usr/ucb)
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff # exclude
3cd4668988c5bccd59cca899459df4cfa985be67Bob Halley ;;
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff *)
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff if test -f "$ac_dir/cc"; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff CC="$ac_dir/cc"
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff break
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff fi
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff ;;
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff esac
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff done
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff IFS="$ac_save_ifs"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ;;
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff *-hp-hpux*)
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff CC="cc"
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff ;;
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff mips-sgi-irix*)
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff CC="cc"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ;;
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff esac
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff#
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# NetBSD has two alternative pthreads implementations. Make the
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# user choose one by saying --with-mit-pthreads or --with-ptl2
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# if necessary.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff#
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffcase "$host" in
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff *-netbsd*)
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff CC="gcc"
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graffecho "configure:1016: checking which thread library to use" >&5
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graffif test "${with_mit_pthreads+set}" = set; then
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff withval="$with_mit_pthreads"
04135883be6700d7c9f489e4db9cb6c147b064caMichael Graff use_mit_pthreads="$withval"
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graffelse
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff use_mit_pthreads="no"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff # Check whether --with-ptl2 or --without-ptl2 was given.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif test "${with_ptl2+set}" = set; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff withval="$with_ptl2"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff use_ptl2="$withval"
8d1943e8ffa991d54c5406342e44d7134762e7eaMichael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff use_ptl2="no"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff
607dc8013a8cb34cd03b59292aa1ac01e008c9c1Michael Graff : ${LOCALBASE:=/usr/pkg}
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff # If user did not choose a thread library explicitly,
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff # try to choose one automatically. This will work when
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff # exactly one library is installed.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff case "$use_mit_pthreads+$use_ptl2" in
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff no+no)
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff if test -d $LOCALBASE/pthreads
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff use_mit_pthreads="yes"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff fi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff if test -d $LOCALBASE/PTL
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff use_ptl2="yes"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff fi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ;;
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff esac
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff case "$use_mit_pthreads+$use_ptl2" in
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff yes+no)
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff echo "$ac_t""mit-pthreads" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff pkg="$LOCALBASE/pthreads"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff lib1="-L$pkg/lib -Wl,-R$pkg/lib"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff lib2="-lpthread -lm -lgcc -lpthread"
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff LIBS="$lib1 $lib2 $LIBS"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff CPPFLAGS="$CPPFLAGS -I$pkg/include"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ;;
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff no+yes)
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff echo "$ac_t""PTL2" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# pkg="$LOCALBASE/PTL"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# LIBS="-L$LOCALBASE/lib -lPTL $LIBS"
7f1bd55920715d872389194c4201ea95b71378efMichael Graff# STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff CC=ptlgcc
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ;;
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff *)
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff { echo "configure: error: no thread library.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael GraffPlease choose a thread library using one of
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff configure --with-mit-pthreads
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff configure --with-ptl2
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff" 1>&2; exit 1; }
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff ;;
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff esac
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff ;;
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffesac
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff# Extract the first word of "gcc", so it can be a program name with args.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffset dummy gcc; ac_word=$2
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffecho "configure:1088: checking for $ac_word" >&5
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff if test -n "$CC"; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_cv_prog_CC="$CC" # Let the user override the test.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_dummy="$PATH"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff for ac_dir in $ac_dummy; do
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff test -z "$ac_dir" && ac_dir=.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff if test -f $ac_dir/$ac_word; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_cv_prog_CC="gcc"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff break
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff fi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff done
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff IFS="$ac_save_ifs"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael GraffCC="$ac_cv_prog_CC"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif test -n "$CC"; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff echo "$ac_t""$CC" 1>&6
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffelse
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff echo "$ac_t""no" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Grafffi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffif test -z "$CC"; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff # Extract the first word of "cc", so it can be a program name with args.
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffset dummy cc; ac_word=$2
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffecho "configure:1118: checking for $ac_word" >&5
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff echo $ac_n "(cached) $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff if test -n "$CC"; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_cv_prog_CC="$CC" # Let the user override the test.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_prog_rejected=no
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley ac_dummy="$PATH"
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley for ac_dir in $ac_dummy; do
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley test -z "$ac_dir" && ac_dir=.
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley if test -f $ac_dir/$ac_word; then
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley ac_prog_rejected=yes
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley continue
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley fi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley ac_cv_prog_CC="cc"
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley break
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley fi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley done
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley IFS="$ac_save_ifs"
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyif test $ac_prog_rejected = yes; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff # We found a bogon in the path, so make sure we never use it.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff set dummy $ac_cv_prog_CC
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff shift
58efc48a9623797187726360efb57cbabd916f0dMichael Graff if test $# -gt 0; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff # We chose a different compiler from the bogus one.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff # However, it has the same basename, so the bogon will be chosen
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # first if we set CC to just the basename; use the full file name.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff shift
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff set dummy "$ac_dir/$ac_word" "$@"
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley shift
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley ac_cv_prog_CC="$@"
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley fi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyfi
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Grafffi
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Grafffi
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael GraffCC="$ac_cv_prog_CC"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif test -n "$CC"; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo "$ac_t""$CC" 1>&6
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo "$ac_t""no" 1>&6
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Grafffi
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff if test -z "$CC"; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff case "`uname -s`" in
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff *win32* | *WIN32*)
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # Extract the first word of "cl", so it can be a program name with args.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffset dummy cl; ac_word=$2
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffecho "configure:1169: checking for $ac_word" >&5
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffelse
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff if test -n "$CC"; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ac_cv_prog_CC="$CC" # Let the user override the test.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graffelse
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff ac_dummy="$PATH"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff for ac_dir in $ac_dummy; do
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff test -z "$ac_dir" && ac_dir=.
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff if test -f $ac_dir/$ac_word; then
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff ac_cv_prog_CC="cl"
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff break
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff fi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff done
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff IFS="$ac_save_ifs"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael GraffCC="$ac_cv_prog_CC"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif test -n "$CC"; then
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff echo "$ac_t""$CC" 1>&6
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graffelse
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff echo "$ac_t""no" 1>&6
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Grafffi
3446e5e9327ed3595f7a9403f9944666f4820f2aMichael Graff ;;
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff esac
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff fi
04135883be6700d7c9f489e4db9cb6c147b064caMichael Graff test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6fe411037dafd168a9f65e6b254c50f3db616688Michael Grafffi
6fe411037dafd168a9f65e6b254c50f3db616688Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho "configure:1201: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffac_ext=c
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffac_cpp='$CPP $CPPFLAGS'
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffcross_compiling=$ac_cv_prog_cc_cross
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graffcat > conftest.$ac_ext << EOF
11e2a221f173f6bebb1cb4bc634efd40054ed7deMichael Graff
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff#line 1212 "configure"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff#include "confdefs.h"
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffmain(){return(0);}
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael GraffEOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graff ac_cv_prog_cc_works=yes
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff # If we can't run a trivial program, we are probably using a cross compiler.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff if (./conftest; exit) 2>/dev/null; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_cv_prog_cc_cross=no
58efc48a9623797187726360efb57cbabd916f0dMichael Graff else
58efc48a9623797187726360efb57cbabd916f0dMichael Graff ac_cv_prog_cc_cross=yes
58efc48a9623797187726360efb57cbabd916f0dMichael Graff fi
58efc48a9623797187726360efb57cbabd916f0dMichael Graffelse
58efc48a9623797187726360efb57cbabd916f0dMichael Graff echo "configure: failed program was:" >&5
58efc48a9623797187726360efb57cbabd916f0dMichael Graff cat conftest.$ac_ext >&5
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ac_cv_prog_cc_works=no
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffrm -fr conftest*
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffac_ext=c
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffac_cpp='$CPP $CPPFLAGS'
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graffac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graffcross_compiling=$ac_cv_prog_cc_cross
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Graffecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif test $ac_cv_prog_cc_works = no; then
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graff { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
ab0e5066083abcbec62513a3cc041d1f1eb9098aMichael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffecho "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffecho "configure:1248: checking whether we are using GNU C" >&5
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff cat > conftest.c <<EOF
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff#ifdef __GNUC__
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff yes;
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff#endif
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael GraffEOF
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_cv_prog_gcc=yes
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff ac_cv_prog_gcc=no
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Grafffi
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffecho "$ac_t""$ac_cv_prog_gcc" 1>&6
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffif test $ac_cv_prog_gcc = yes; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff GCC=yes
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffelse
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff GCC=
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Grafffi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffac_test_CFLAGS="${CFLAGS+set}"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffac_save_CFLAGS="$CFLAGS"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael GraffCFLAGS=
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffecho "configure:1276: checking whether ${CC-cc} accepts -g" >&5
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffelse
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff echo 'void f(){}' > conftest.c
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley ac_cv_prog_cc_g=yes
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyelse
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley ac_cv_prog_cc_g=no
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyfi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyrm -f conftest*
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyfi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyif test "$ac_test_CFLAGS" = set; then
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley CFLAGS="$ac_save_CFLAGS"
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyelif test $ac_cv_prog_cc_g = yes; then
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley if test "$GCC" = yes; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff CFLAGS="-g -O2"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff else
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff CFLAGS="-g"
58efc48a9623797187726360efb57cbabd916f0dMichael Graff fi
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test "$GCC" = yes; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff CFLAGS="-O2"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff else
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley CFLAGS=
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley fi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyfi
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halley
6d58c9b95ec40eb38533061eefab6cb256e870e6Bob Halleyfor ac_prog in 'bison -y' byacc
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffdo
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff# Extract the first word of "$ac_prog", so it can be a program name with args.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffset dummy $ac_prog; ac_word=$2
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffecho "configure:1312: checking for $ac_word" >&5
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
a8dcebd0419f27234664e89b9cd48bc54cad08a7Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graffelse
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff if test -n "$YACC"; then
54a64ec428cb9f783d62a044cbec3a72724a937cMichael Graff ac_cv_prog_YACC="$YACC" # Let the user override the test.
83f8c56f43852bf9a9c6964eae285284b23f9d8dMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_dummy="$PATH"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff for ac_dir in $ac_dummy; do
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff test -z "$ac_dir" && ac_dir=.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff if test -f $ac_dir/$ac_word; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_cv_prog_YACC="$ac_prog"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff break
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff fi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff done
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff IFS="$ac_save_ifs"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffYACC="$ac_cv_prog_YACC"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -n "$YACC"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_t""$YACC" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_t""no" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafftest -n "$YACC" && break
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffdone
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafftest -n "$YACC" || YACC="yacc"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
58efc48a9623797187726360efb57cbabd916f0dMichael Graffecho "configure:1344: checking how to run the C preprocessor" >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff# On Suns, sometimes $CPP names a directory.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif test -n "$CPP" && test -d "$CPP"; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff CPP=
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -z "$CPP"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo $ac_n "(cached) $ac_c" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # This must be in double quotes, not single quotes, because CPP may get
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # substituted into the Makefile and "${CC-cc}" will confuse make.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff CPP="${CC-cc} -E"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff # On the NeXT, cc -E runs the code through the compiler's parser,
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # not just through cpp.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff cat > conftest.$ac_ext <<EOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#line 1359 "configure"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#include "confdefs.h"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#include <assert.h>
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffSyntax Error
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffEOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff{ (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -z "$ac_err"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff :
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_err" >&5
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo "configure: failed program was:" >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff cat conftest.$ac_ext >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff rm -rf conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff CPP="${CC-cc} -E -traditional-cpp"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff cat > conftest.$ac_ext <<EOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#line 1376 "configure"
9db3eaed9573b0fdd2109b38261806bde12ff9c3Bob Halley#include "confdefs.h"
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff#include <assert.h>
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffSyntax Error
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael GraffEOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
271d5bfc5ca8d746b535d1522f2aa9389ece2a7eBob Halley{ (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -z "$ac_err"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff :
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_err" >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "configure: failed program was:" >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff cat conftest.$ac_ext >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff rm -rf conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff CPP="${CC-cc} -nologo -E"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff cat > conftest.$ac_ext <<EOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#line 1393 "configure"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#include "confdefs.h"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <assert.h>
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffSyntax Error
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael GraffEOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff{ (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9db3eaed9573b0fdd2109b38261806bde12ff9c3Bob Halleyif test -z "$ac_err"; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff :
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffelse
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo "$ac_err" >&5
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo "configure: failed program was:" >&5
271d5bfc5ca8d746b535d1522f2aa9389ece2a7eBob Halley cat conftest.$ac_ext >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff rm -rf conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff CPP=/lib/cpp
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffrm -f conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffrm -f conftest*
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffrm -f conftest*
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff ac_cv_prog_CPP="$CPP"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff CPP="$ac_cv_prog_CPP"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_cv_prog_CPP="$CPP"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffecho "$ac_t""$CPP" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffecho "configure:1424: checking for ANSI C header files" >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff cat > conftest.$ac_ext <<EOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#line 1429 "configure"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include "confdefs.h"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <stdlib.h>
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <stdarg.h>
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <string.h>
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <float.h>
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael GraffEOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff{ (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test -z "$ac_err"; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff rm -rf conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_cv_header_stdc=yes
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "$ac_err" >&5
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff echo "configure: failed program was:" >&5
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff cat conftest.$ac_ext >&5
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff rm -rf conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff ac_cv_header_stdc=no
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffrm -f conftest*
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif test $ac_cv_header_stdc = yes; then
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffcat > conftest.$ac_ext <<EOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#line 1454 "configure"
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff#include "confdefs.h"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <string.h>
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael GraffEOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff egrep "memchr" >/dev/null 2>&1; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff :
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graff rm -rf conftest*
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff ac_cv_header_stdc=no
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Grafffi
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffrm -f conftest*
9db3eaed9573b0fdd2109b38261806bde12ff9c3Bob Halley
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Grafffi
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graff
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graffif test $ac_cv_header_stdc = yes; then
d1ba6e9180c7d7458656a6e53e52fde056fd244cMichael Graff # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
c6066a8e67f40c7c12925c5634485f55713c06d6Michael Graffcat > conftest.$ac_ext <<EOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#line 1472 "configure"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include "confdefs.h"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <stdlib.h>
271d5bfc5ca8d746b535d1522f2aa9389ece2a7eBob HalleyEOF
1ec39fc7a8b6ad92de3363d4c50b75e24fcd6accMichael Graffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff egrep "free" >/dev/null 2>&1; then
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff :
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graffelse
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff rm -rf conftest*
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff ac_cv_header_stdc=no
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Grafffi
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graffrm -f conftest*
c16cc434ef385a870bea53eb7ecfea7da8eb562dMichael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Grafffi
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif test $ac_cv_header_stdc = yes; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif test "$cross_compiling" = yes; then
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff :
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffelse
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff cat > conftest.$ac_ext <<EOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#line 1493 "configure"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include "confdefs.h"
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#include <ctype.h>
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffint main () { int i; for (i = 0; i < 256; i++)
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffexit (0); }
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graff
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael GraffEOF
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffif { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f1422b81ed2c5142092e2ced8e3faf0e61f3ba0Michael Graffthen
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
for ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1531: 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 1536 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1541: \"$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
#
# HAVE_NETINET6_IN6_H needs to go in platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame has an #error against direct inclusion. So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
#
case "$ac_cv_header_netinet6_in6_h+$host" in
yes+*-bsdi4.[01]*)
ISC_PLATFORM_HAVENETINET6IN6H="#define ISC_PLATFORM_HAVENETINET6IN6H 1"
LWRES_PLATFORM_HAVENETINET6IN6H="#define LWRES_PLATFORM_HAVENETINET6IN6H 1"
;;
*)
ISC_PLATFORM_HAVENETINET6IN6H="#undef ISC_PLATFORM_HAVENETINET6IN6H"
LWRES_PLATFORM_HAVENETINET6IN6H="#undef LWRES_PLATFORM_HAVENETINET6IN6H"
;;
esac
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1591: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1596 "configure"
#include "confdefs.h"
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
; return 0; }
EOF
if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:1666: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
#line 1673 "configure"
#include "confdefs.h"
int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:1680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
no) cat >> confdefs.h <<\EOF
#define inline
EOF
;;
*) cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
;;
esac
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1706: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1711 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
rm -rf conftest*
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1739: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1744 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:1775: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1783 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:1820: checking for __pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1828 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create();
int main() {
__pthread_create()
; return 0; }
EOF
if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
echo "configure:1867: checking for __pthread_create_system in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1875 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create_system();
int main() {
__pthread_create_system()
; return 0; }
EOF
if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
fi
#
# We'd like to use sigwait() too
#
echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
echo "configure:1921: checking for sigwait in -lc" >&5
ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1929 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
echo "configure:1962: checking for sigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1970 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2003: checking for _Psigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2011 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _Psigwait();
int main() {
_Psigwait()
; return 0; }
EOF
if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
fi
fi
#
# Additional OS-specific issues related to pthreads.
#
case "$host" in
#
# One more place to look for sigwait.
#
*-freebsd*)
echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
echo "configure:2060: checking for sigwait in -lc_r" >&5
ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc_r $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2068 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# BSDI 3.1 through 4.0.1 needs pthread_init() to be called before
# certain pthreads calls. This is deprecated in BSD/OS 4.1.
#
*-bsdi3.1*|*-bsdi4.0*)
cat >> confdefs.h <<\EOF
#define NEED_PTHREAD_INIT 1
EOF
;;
#
# LinuxThreads requires some changes to the way we deal with signals.
#
*-linux*)
cat >> confdefs.h <<\EOF
#define HAVE_LINUXTHREADS 1
EOF
;;
#
# Ensure the right sigwait() semantics on Solaris.
#
*-solaris*)
cat >> confdefs.h <<\EOF
#define _POSIX_PTHREAD_SEMANTICS 1
EOF
;;
esac
#
# NLS
#
echo $ac_n "checking for catgets""... $ac_c" 1>&6
echo "configure:2137: checking for catgets" >&5
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2142 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char catgets(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char catgets();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_catgets) || defined (__stub___catgets)
choke me
#else
catgets();
#endif
; return 0; }
EOF
if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_catgets=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_catgets=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CATGETS 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# -lxnet buys us one big porting headache... standards, gotta love 'em.
#
# AC_CHECK_LIB(xnet, socket, ,
# AC_CHECK_LIB(socket, socket)
# AC_CHECK_LIB(nsl, inet_ntoa)
# )
#
# Use this for now, instead:
#
case "$host" in
mips-sgi-irix*)
;;
*)
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:2203: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2211 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lsocket $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
echo "configure:2250: checking for inet_ntoa in -lnsl" >&5
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2258 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntoa();
int main() {
inet_ntoa()
; return 0; }
EOF
if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
fi
;;
esac
MKDEPCC="$CC"
MKDEPCFLAGS="-M"
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
case "$host" in
*-freebsd*)
CC="$CC -pthread"
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-openbsd*)
CC="$CC -pthread"
;;
*-solaris*)
LIBS="$LIBS -lthread"
;;
esac
else
case "$host" in
*-dec-osf*)
CC="$CC -std -pthread"
MKDEPCC="$CC"
;;
*-solaris*)
CC="$CC -mt"
MKDEPCC="$CC"
MKDEPCFLAGS="-xM"
;;
*-hp-hpux*)
CC="$CC -Ae -z +w1"
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
;;
esac
fi
#
# Networking specifics.
#
case "$host" in
*-dec-osf*)
# Turn on 4.4BSD style sa_len support.
cat >> confdefs.h <<\EOF
#define _SOCKADDR_LEN 1
EOF
;;
esac
#
# Look for a 4.4BSD-style sa_len member in struct sockaddr.
#
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:2353: checking for sa_len in struct sockaddr" >&5
cat > conftest.$ac_ext <<EOF
#line 2355 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa; sa.sa_len = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
fi
rm -f conftest*
#
# Look for a 4.4BSD or 4.3BSD struct msghdr
#
echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
echo "configure:2385: checking for struct msghdr flavor" >&5
cat > conftest.$ac_ext <<EOF
#line 2387 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct msghdr msg; msg.msg_flags = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""4.4BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""4.3BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
fi
rm -f conftest*
#
# Look for in_port_t.
#
echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
echo "configure:2414: checking for type in_port_t" >&5
cat > conftest.$ac_ext <<EOF
#line 2416 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
int main() {
in_port_t port = 25; return (0);
; return 0; }
EOF
if { (eval echo configure:2425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
fi
rm -f conftest*
#
# Check for addrinfo
#
echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
echo "configure:2443: checking for struct addrinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 2445 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
struct addrinfo a; return (0);
; return 0; }
EOF
if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
fi
rm -f conftest*
echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
echo "configure:2468: checking for int sethostent" >&5
cat > conftest.$ac_ext <<EOF
#line 2470 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = sethostent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
echo "configure:2493: checking for int endhostent" >&5
cat > conftest.$ac_ext <<EOF
#line 2495 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endhostent(); return(0);
; return 0; }
EOF
if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
echo "configure:2518: checking for getnetbyaddr(in_addr_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 2520 "configure"
#include "confdefs.h"
#include <netdb.h>
struct netent *getnetbyaddr(in_addr_t, int);
int main() {
; return 0; }
EOF
if { (eval echo configure:2529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
fi
rm -f conftest*
echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
echo "configure:2544: checking for int setnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 2546 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = setnetent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:2554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
echo "configure:2569: checking for int endnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 2571 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endnetent(); return(0);
; return 0; }
EOF
if { (eval echo configure:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
echo "configure:2594: checking for gethostbyadd(const void *, size_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 2596 "configure"
#include "confdefs.h"
#include <netdb.h>
struct hostent *gethostbyaddr(const void *, size_t, int);
int main() {
return(0);
; return 0; }
EOF
if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
fi
rm -f conftest*
echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
echo "configure:2620: checking for h_errno in netdb.h" >&5
cat > conftest.$ac_ext <<EOF
#line 2622 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
h_errno = 1; return(0);
; return 0; }
EOF
if { (eval echo configure:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
fi
rm -f conftest*
echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
echo "configure:2645: checking for getipnodebyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2650 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getipnodebyname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getipnodebyname();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
choke me
#else
getipnodebyname();
#endif
; return 0; }
EOF
if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
fi
echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
echo "configure:2694: checking for getnameinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2699 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getnameinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getnameinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
choke me
#else
getnameinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getnameinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getnameinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
fi
echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
echo "configure:2743: checking for getaddrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2748 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getaddrinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getaddrinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
choke me
#else
getaddrinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
fi
#
# Look for a sysctl call to get the list of network interfaces.
#
echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
echo "configure:2799: checking for interface list sysctl" >&5
cat > conftest.$ac_ext <<EOF
#line 2801 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#ifdef NET_RT_IFLIST
found_rt_iflist
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "found_rt_iflist" >/dev/null 2>&1; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_IFLIST_SYSCTL 1
EOF
else
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# GNU libtool support
#
# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
withval="$with_libtool"
use_libtool="$withval"
else
use_libtool="no"
fi
case $use_libtool in
yes)
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_shared=yes
fi
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_static=yes
fi
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_fast_install=yes
fi
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:2911: checking build system type" >&5
build_alias=$build
case "$build_alias" in
NONE)
case $nonopt in
NONE) build_alias=$host_alias ;;
*) build_alias=$nonopt ;;
esac ;;
esac
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
withval="$with_gnu_ld"
test "$withval" = no || with_gnu_ld=yes
else
with_gnu_ld=no
fi
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:2940: checking for ld used by GCC" >&5
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:2964: checking for GNU ld" >&5
else
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:2967: checking for non-GNU ld" >&5
fi
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
LD="$ac_cv_path_LD"
if test -n "$LD"; then
echo "$ac_t""$LD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:3003: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi
fi
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:3019: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi
NM="$ac_cv_path_NM"
echo "$ac_t""$NM" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3056: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
rm -f conftestdata
ac_cv_prog_LN_S="ln -s"
else
ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
enableval="$enable_libtool_lock"
:
fi
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3100 "configure"' > conftest.$ac_ext
if { (eval echo configure:3101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
echo "configure:3122: checking whether the C compiler needs -belf" >&5
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3127 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
lt_cv_cc_needs_belf=no
fi
rm -f conftest*
fi
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
esac
# Save cache, so that ltconfig can load it
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
O=lo
A=la
;;
*)
O=o
A=a
LIBTOOL=
;;
esac
# File name extension for static archive files, for those few places
# where they are treated differently from dynamic ones.
SA=a
#
# IPv6
#
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
enableval="$enable_ipv6"
:
fi
#
# We do the IPv6 compilation checking after libtool so that we can put
# the right suffix on the files.
#
case "$enable_ipv6" in
yes|''|autodetect)
echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
echo "configure:3271: checking for IPv6 structures" >&5
cat > conftest.$ac_ext <<EOF
#line 3273 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main() {
struct sockaddr_in6 sin6; return (0);
; return 0; }
EOF
if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
found_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
found_ipv6=no
fi
rm -f conftest*
;;
no)
found_ipv6=no
;;
esac
case "$found_ipv6" in
yes)
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3306: checking for in6addr_any" >&5
cat > conftest.$ac_ext <<EOF
#line 3308 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main() {
struct in6_addr in6; in6 = in6addr_any; return (0);
; return 0; }
EOF
if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
fi
rm -f conftest*
;;
no)
ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
ISC_IPV6_H="ipv6.h"
ISC_IPV6_O="ipv6.$O"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
;;
esac
#
# IPv6 support provided via Kame
#
echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
echo "configure:3354: checking for Kame IPv6 support" >&5
# Check whether --with-kame or --without-kame was given.
if test "${with_kame+set}" = set; then
withval="$with_kame"
use_kame="$withval"
else
use_kame="no"
fi
case "$use_kame" in
no)
;;
yes)
kame_path=/usr/local/v6
;;
*)
kame_path="$use_kame"
;;
esac
case "$use_kame" in
no)
echo "$ac_t""no" 1>&6
;;
*)
if test -f $kame_path/lib/libinet6.a; then
echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
LIBS="-L$kame_path/lib -linet6 $LIBS"
else
{ echo "configure: error: $kame_path/lib/libinet6.a not found.
Please choose the proper path with the following command:
configure --with-kame=PATH
" 1>&2; exit 1; }
fi
;;
esac
#
# Check for network functions that are often missing. We do this
# after the libtool checking, so we can put the right suffix on
# the files.
#
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3401: checking for inet_ntop" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3406 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_ntop(); 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 inet_ntop();
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_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop();
#endif
; return 0; }
EOF
if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_inet_ntop=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_ntop=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
fi
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3453: checking for inet_pton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3458 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_pton(); 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 inet_pton();
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_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton();
#endif
; return 0; }
EOF
if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_inet_pton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_pton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
fi
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3505: checking for inet_aton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3510 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); 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 inet_aton();
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_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton();
#endif
; return 0; }
EOF
if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_inet_aton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
else
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:3557: 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 3562 "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:3585: \"$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:3608: 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 3613 "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:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_vsnprintf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
fi
echo $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
echo "configure:3666: checking for sizeof(long long int) == sizeof(long int)" >&5
if test "$cross_compiling" = yes; then
echo "$ac_t""default yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
cat > conftest.$ac_ext <<EOF
#line 3672 "configure"
#include "confdefs.h"
main() { exit(!(sizeof(long long int) == sizeof(long int))); }
EOF
if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
fi
rm -fr conftest*
fi
#
# Security Stuff
#
echo $ac_n "checking for chroot""... $ac_c" 1>&6
echo "configure:3696: 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 3701 "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:3724: \"$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:3750: 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 3755 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in linux/prctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3790: 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 3795 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3800: \"$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
#
# Substitutions
#
BIND9_TOP_BUILDDIR=`pwd`
if test "X$srcdir" != "X"; then
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
else
BIND9_ISC_BUILDINCLUDE=""
BIND9_DNS_BUILDINCLUDE=""
BIND9_OMAPI_BUILDINCLUDE=""
BIND9_LWRES_BUILDINCLUDE=""
fi
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
BIND9_VERSION=$srcdir/version
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/api
LIBLWRES_API=$srcdir/lib/lwres/api
LIBOMAPI_API=$srcdir/lib/omapi/api
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/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/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/lwresd/Makefile
bin/rndc/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
bin/tests/headerdep_test.sh
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@ETAGS@%$ETAGS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@ISC_PLATFORM_HAVENETINET6IN6H@%$ISC_PLATFORM_HAVENETINET6IN6H%g
s%@LWRES_PLATFORM_HAVENETINET6IN6H@%$LWRES_PLATFORM_HAVENETINET6IN6H%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
s%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
s%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
s%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
s%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
s%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
s%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
s%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
s%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
s%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
s%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
s%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
s%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
s%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
s%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@LD@%$LD%g
s%@NM@%$NM%g
s%@LN_S@%$LN_S%g
s%@LIBTOOL@%$LIBTOOL%g
s%@O@%$O%g
s%@A@%$A%g
s%@SA@%$SA%g
s%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
s%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%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%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%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
/@LIBLWRES_API@/r $LIBLWRES_API
s%@LIBLWRES_API@%%g
/@LIBOMAPI_API@/r $LIBOMAPI_API
s%@LIBOMAPI_API@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/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/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/lwresd/Makefile
bin/rndc/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
bin/tests/headerdep_test.sh
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1