configure revision 7817a6f41b9e16da0325252ec24226b40f15a923
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#! /bin/sh
7d32c065c7bb56f281651ae3dd2888f32ce4f1d9Bob Halley
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Copyright (C) 1996-2001 Internet Software Consortium.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Permission to use, copy, modify, and distribute this software for any
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# copyright notice and this permission notice appear in all copies.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley# From configure.in Revision: 1.217
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley##
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## This program is free software; you can redistribute it and/or modify
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## it under the terms of the GNU General Public License as published by
ddfe394c061049bbd71125ad41c3dd3092b2bbfdAndreas Gustafsson## the Free Software Foundation; either version 2 of the License, or
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## (at your option) any later version.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley##
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## This program is distributed in the hope that it will be useful, but
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley## General Public License for more details.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley##
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## You should have received a copy of the GNU General Public License
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## along with this program; if not, write to the Free Software
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley##
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## As a special exception to the GNU General Public License, if you
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## distribute this file as part of a program that contains a
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## configuration script generated by Autoconf, you may include it under
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## the same distribution terms that you use for the rest of that program.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# serial 40 AC_PROG_LIBTOOL
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews# AC_ENABLE_SHARED - implement the --enable-shared flag
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews# Usage: AC_ENABLE_SHARED[(DEFAULT)]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# `yes'.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrence# AC_ENABLE_STATIC - implement the --enable-static flag
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# `yes'.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# `yes'.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_PROG_LD - find the path to the GNU or non-GNU linker
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_PROG_NM - find the path to a BSD-compatible name lister
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_CHECK_LIBM - check for math library
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl convenience library and INCLTDL to the include flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl header and adds --enable-ltdl-convenience to the
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# configure arguments. Note that LIBLTDL and INCLTDL are not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# with '${top_builddir}/' and INCLTDL will be prefixed with
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# '${top_srcdir}/' (note the single quotes!). If your package is not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# flat and you're not using automake, define top_builddir and
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# top_srcdir appropriately in the Makefiles.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl installable library and INCLTDL to the include flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl header and adds --enable-ltdl-install to the configure
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# with '${top_srcdir}/' (note the single quotes!). If your package is
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# not flat and you're not using automake, define top_builddir and
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# top_srcdir appropriately in the Makefiles.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Guess values for system-dependent variables and create Makefiles.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Generated automatically using autoconf version 2.13
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# This configure script is free software; the Free Software Foundation
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# gives unlimited permission to copy, distribute and modify it.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# Defaults:
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_help=
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_default_prefix=/usr/local
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# Any additions from configure.in:
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_help="$ac_help
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-openssl=PATH Specify path for system-supplied openssl
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley (rather than using bind-9 internal openssl)"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_help="$ac_help
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-gssapi=PATH Specify path for system-supplied GSSAPI"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_help="$ac_help
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-randomdev=PATH Specify path for random device"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_help="$ac_help
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley --disable-threads disable multithreading"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_help="$ac_help
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyac_help="$ac_help
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --with-libtool use GNU libtool (following indented options supported)"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyac_help="$ac_help
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --enable-shared[=PKGS] build shared libraries [default=yes]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyac_help="$ac_help
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --enable-static[=PKGS] build static libraries [default=yes]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyac_help="$ac_help
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyac_help="$ac_help
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyac_help="$ac_help
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halleyac_help="$ac_help
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley --enable-ipv6 use IPv6 [default=autodetect]"
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halleyac_help="$ac_help
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# Initialize some variables set by options.
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# The variables have the same names as the options, with
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# dashes changed to underlines.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleybuild=NONE
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleycache_file=./config.cache
95f78a208ad6dfb8359320c77ab30c670c773922Mark Andrewsexec_prefix=NONE
95f78a208ad6dfb8359320c77ab30c670c773922Mark Andrewshost=NONE
95f78a208ad6dfb8359320c77ab30c670c773922Mark Andrewsno_create=
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleynonopt=NONE
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyno_recursion=
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyprefix=NONE
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyprogram_prefix=NONE
3740b569ae76295b941d57a724a43beb75b533baBob Halleyprogram_suffix=NONE
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyprogram_transform_name=s,x,x,
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleysilent=
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleysite=
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleysrcdir=
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleytarget=NONE
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleyverbose=
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleyx_includes=NONE
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleyx_libraries=NONE
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleybindir='${exec_prefix}/bin'
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleysbindir='${exec_prefix}/sbin'
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleylibexecdir='${exec_prefix}/libexec'
5f120ce962b03e4dcf6f1974b9b896f0fa7cacb0Bob Halleydatadir='${prefix}/share'
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleysysconfdir='${prefix}/etc'
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleysharedstatedir='${prefix}/com'
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleylocalstatedir='${prefix}/var'
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleylibdir='${exec_prefix}/lib'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyincludedir='${prefix}/include'
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleyoldincludedir='/usr/include'
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleyinfodir='${prefix}/info'
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleymandir='${prefix}/man'
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# Initialize some other variables.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleysubdirs=
577179503f2eb7695ec668d8eeb41889a150e28fBob HalleyMFLAGS= MAKEFLAGS=
577179503f2eb7695ec668d8eeb41889a150e28fBob HalleySHELL=${CONFIG_SHELL-/bin/sh}
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# Maximum number of lines to put in a shell here document.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleyac_max_here_lines=12
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleyac_prev=
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleyfor ac_option
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleydo
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley # If the previous option needs an argument, assign it.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley if test -n "$ac_prev"; then
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley eval "$ac_prev=\$ac_option"
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley ac_prev=
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley continue
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley fi
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley case "$ac_option" in
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley *) ac_optarg= ;;
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley esac
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$ac_option" in
3740b569ae76295b941d57a724a43beb75b533baBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=bindir ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley bindir="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -build | --build | --buil | --bui | --bu)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=build ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley build="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=cache_file ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cache_file="$ac_optarg" ;;
3740b569ae76295b941d57a724a43beb75b533baBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=datadir ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --da=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley datadir="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -disable-* | --disable-*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Reject names that are not valid shell variable names.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley eval "enable_${ac_feature}=no" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -enable-* | --enable-*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Reject names that are not valid shell variable names.
3740b569ae76295b941d57a724a43beb75b533baBob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$ac_option" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *=*) ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *) ac_optarg=yes ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --exec | --exe | --ex)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=exec_prefix ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --exec=* | --exe=* | --ex=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley exec_prefix="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -gas | --gas | --ga | --g)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Obsolete; use --with-gas.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley with_gas=yes ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -help | --help | --hel | --he)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Omit some internal or obsolete options to make the list less imposing.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # This message is too long to be a string in the A/UX 3.1 sh.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat << EOF
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob HalleyUsage: configure [options] [host]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyOptions: [defaults in brackets after descriptions]
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob HalleyConfiguration:
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --cache-file=FILE cache test results in FILE
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --help print this message
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --no-create do not create output files
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --quiet, --silent do not print \`checking...' messages
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --version print the version of autoconf that created configure
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyDirectory and file names:
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley [$ac_default_prefix]
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley [same as prefix]
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --datadir=DIR read-only architecture-independent data in DIR
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley [PREFIX/share]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley [PREFIX/com]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --includedir=DIR C header files in DIR [PREFIX/include]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --program-transform-name=PROGRAM
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley run sed PROGRAM on installed program names
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat << EOF
ce3761f64d3d734cc94605026985898900ecc474Bob HalleyHost type:
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --host=HOST configure for HOST [guessed]
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
ce3761f64d3d734cc94605026985898900ecc474Bob HalleyFeatures and packages:
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --x-includes=DIR X include files are in DIR
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --x-libraries=DIR X library files are in DIR
ce3761f64d3d734cc94605026985898900ecc474Bob HalleyEOF
ce3761f64d3d734cc94605026985898900ecc474Bob Halley if test -n "$ac_help"; then
ce3761f64d3d734cc94605026985898900ecc474Bob Halley echo "--enable and --with options recognized:$ac_help"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley fi
ce3761f64d3d734cc94605026985898900ecc474Bob Halley exit 0 ;;
ce3761f64d3d734cc94605026985898900ecc474Bob Halley
ce3761f64d3d734cc94605026985898900ecc474Bob Halley -host | --host | --hos | --ho)
ce3761f64d3d734cc94605026985898900ecc474Bob Halley ac_prev=host ;;
ce3761f64d3d734cc94605026985898900ecc474Bob Halley -host=* | --host=* | --hos=* | --ho=*)
ce3761f64d3d734cc94605026985898900ecc474Bob Halley host="$ac_optarg" ;;
ce3761f64d3d734cc94605026985898900ecc474Bob Halley
ce3761f64d3d734cc94605026985898900ecc474Bob Halley -includedir | --includedir | --includedi | --included | --include \
ce3761f64d3d734cc94605026985898900ecc474Bob Halley | --includ | --inclu | --incl | --inc)
ce3761f64d3d734cc94605026985898900ecc474Bob Halley ac_prev=includedir ;;
ce3761f64d3d734cc94605026985898900ecc474Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
ce3761f64d3d734cc94605026985898900ecc474Bob Halley | --includ=* | --inclu=* | --incl=* | --inc=*)
ce3761f64d3d734cc94605026985898900ecc474Bob Halley includedir="$ac_optarg" ;;
ce3761f64d3d734cc94605026985898900ecc474Bob Halley
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
3740b569ae76295b941d57a724a43beb75b533baBob Halley ac_prev=infodir ;;
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley infodir="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -libdir | --libdir | --libdi | --libd)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=libdir ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -libdir=* | --libdir=* | --libdi=* | --libd=*)
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley libdir="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley | --libexe | --libex | --libe)
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley ac_prev=libexecdir ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --libexe=* | --libex=* | --libe=*)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley libexecdir="$ac_optarg" ;;
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --localstate | --localstat | --localsta | --localst \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --locals | --local | --loca | --loc | --lo)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley ac_prev=localstatedir ;;
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley localstatedir="$ac_optarg" ;;
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley ac_prev=mandir ;;
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley mandir="$ac_optarg" ;;
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -nfp | --nfp | --nf)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley # Obsolete; use --without-fp.
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley with_fp=no ;;
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --no-cr | --no-c)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley no_create=yes ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley no_recursion=yes ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldin | --oldi | --old | --ol | --o)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley ac_prev=oldincludedir ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley oldincludedir="$ac_optarg" ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley ac_prev=prefix ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley prefix="$ac_optarg" ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --program-pre | --program-pr | --program-p)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley ac_prev=program_prefix ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley program_prefix="$ac_optarg" ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --program-suf | --program-su | --program-s)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley ac_prev=program_suffix ;;
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1366b7833c86343de278480b9abd71754e418bfaBob Halley program_suffix="$ac_optarg" ;;
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley
f0bbac2c0f1afa74b88cab902daf11202ebe7cbdBob Halley -program-transform-name | --program-transform-name \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-nam | --program-transform-na \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-n | --program-transform- \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --program-transform | --program-transfor \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transfo | --program-transf \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-trans | --program-tran \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --progr-tra | --program-tr | --program-t)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley ac_prev=program_transform_name ;;
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -program-transform-name=* | --program-transform-name=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-nam=* | --program-transform-na=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-n=* | --program-transform-=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform=* | --program-transfor=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transfo=* | --program-transf=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-trans=* | --program-tran=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley program_transform_name="$ac_optarg" ;;
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | -silent | --silent | --silen | --sile | --sil)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley silent=yes ;;
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley ac_prev=sbindir ;;
1366b7833c86343de278480b9abd71754e418bfaBob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sbi=* | --sb=*)
1366b7833c86343de278480b9abd71754e418bfaBob Halley sbindir="$ac_optarg" ;;
1366b7833c86343de278480b9abd71754e418bfaBob Halley
1366b7833c86343de278480b9abd71754e418bfaBob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedst | --shareds | --shared | --share | --shar \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sha | --sh)
1366b7833c86343de278480b9abd71754e418bfaBob Halley ac_prev=sharedstatedir ;;
1366b7833c86343de278480b9abd71754e418bfaBob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sha=* | --sh=*)
1366b7833c86343de278480b9abd71754e418bfaBob Halley sharedstatedir="$ac_optarg" ;;
1366b7833c86343de278480b9abd71754e418bfaBob Halley
1366b7833c86343de278480b9abd71754e418bfaBob Halley -site | --site | --sit)
1366b7833c86343de278480b9abd71754e418bfaBob Halley ac_prev=site ;;
1366b7833c86343de278480b9abd71754e418bfaBob Halley -site=* | --site=* | --sit=*)
1366b7833c86343de278480b9abd71754e418bfaBob Halley site="$ac_optarg" ;;
1366b7833c86343de278480b9abd71754e418bfaBob Halley
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley ac_prev=srcdir ;;
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley srcdir="$ac_optarg" ;;
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley | --syscon | --sysco | --sysc | --sys | --sy)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_prev=sysconfdir ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley sysconfdir="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=target ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley target="$ac_optarg" ;;
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley verbose=yes ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -version | --version | --versio | --versi | --vers)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure generated by autoconf version 2.13"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley exit 0 ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley -with-* | --with-*)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Reject names that are not valid shell variable names.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$ac_option" in
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley *=*) ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *) ac_optarg=yes ;;
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley esac
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley -without-* | --without-*)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Reject names that are not valid shell variable names.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley eval "with_${ac_package}=no" ;;
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --x)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Obsolete; use --with-x.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley with_x=yes ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --x-incl | --x-inc | --x-in | --x-i)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=x_includes ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley x_includes="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prev=x_libraries ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley x_libraries="$ac_optarg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley *)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test "x$nonopt" != xNONE; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley nonopt="$ac_option"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydone
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$ac_prev"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# File descriptor usage:
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 0 standard input
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 1 file creation
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 2 errors and warnings
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 3 some systems may open it to /dev/tty
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 4 used on the Kubota Titan
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 6 checking for... messages and results
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# 5 compiler messages saved in config.log
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test "$silent" = yes; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley exec 6>/dev/null
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyelse
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley exec 6>&1
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyexec 5>./config.log
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyecho "\
29b487b0a458d655f0aad9257ca46021f4903d08Bob HalleyThis file contains any messages produced by compilers while
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley" 1>&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Strip out --no-create and --no-recursion so they do not pile up.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# Also quote any args containing shell metacharacters.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_configure_args=
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfor ac_arg
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleydo
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$ac_arg" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --no-cr | --no-c) ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydone
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# NLS nuisances.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Only set these to C if already set. These must not be set unconditionally
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# because not all systems understand e.g. LANG=C (notably SCO).
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Non-C LC_CTYPE values break the ctype check.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -rf conftest* confdefs.h
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyecho > confdefs.h
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# A filename unique to this package, relative to the directory that
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_unique_file=lib/dns/name.c
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# Find the source files, if location was not specified.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -z "$srcdir"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_srcdir_defaulted=yes
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Try the directory containing this script, then its parent.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_prog=$0
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley srcdir=$ac_confdir
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test ! -r $srcdir/$ac_unique_file; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley srcdir=..
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley fi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyelse
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_srcdir_defaulted=no
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test ! -r $srcdir/$ac_unique_file; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test "$ac_srcdir_defaulted" = yes; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley else
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley fi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# Prefer explicitly selected file to automatically selected ones.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -z "$CONFIG_SITE"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test "x$prefix" != xNONE; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley else
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley fi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfor ac_site_file in $CONFIG_SITE; do
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -r "$ac_site_file"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley echo "loading site script $ac_site_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley . "$ac_site_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley fi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleydone
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -r "$cache_file"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley echo "loading cache $cache_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley . $cache_file
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyelse
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley echo "creating cache $cache_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley > $cache_file
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_ext=c
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_cpp='$CPP $CPPFLAGS'
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleycross_compiling=$ac_cv_prog_cc_cross
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_exeext=
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_objext=o
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_n= ac_c='
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley' ac_t=' '
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley else
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_n=-n ac_c= ac_t=
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley fi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyelse
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_n= ac_c='\c' ac_t=
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_aux_dir=
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -f $ac_dir/install-sh; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_aux_dir=$ac_dir
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_install_sh="$ac_aux_dir/install-sh -c"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley break
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley elif test -f $ac_dir/install.sh; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_aux_dir=$ac_dir
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_install_sh="$ac_aux_dir/install.sh -c"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley break
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley fi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleydone
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -z "$ac_aux_dir"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfi
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_config_guess=$ac_aux_dir/config.guess
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_config_sub=$ac_aux_dir/config.sub
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Make sure we can run config.sub.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyfi
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho "configure:699: checking host system type" >&5
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_alias=$host
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleycase "$host_alias" in
6957b87f931bb110ba4d0adf495932691ba550b1Bob HalleyNONE)
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley case $nonopt in
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley NONE)
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley fi ;;
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley *) host_alias=$nonopt ;;
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley esac ;;
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyesac
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho "$ac_t""$host" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho "configure:721: checking whether ${MAKE-make} sets \${MAKE}" >&5
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley cat > conftestmake <<\EOF
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyall:
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley @echo 'ac_maketemp="${MAKE}"'
6957b87f931bb110ba4d0adf495932691ba550b1Bob HalleyEOF
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif test -n "$ac_maketemp"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley eval ac_cv_prog_make_${ac_make}_set=yes
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley eval ac_cv_prog_make_${ac_make}_set=no
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyfi
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyrm -f conftestmake
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyfi
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley echo "$ac_t""yes" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley SET_MAKE=
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley echo "$ac_t""no" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley SET_MAKE="MAKE=${MAKE-make}"
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyfi
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley# Extract the first word of "ranlib", so it can be a program name with args.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyset dummy ranlib; ac_word=$2
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho "configure:750: checking for $ac_word" >&5
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley if test -n "$RANLIB"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley ac_dummy="$PATH"
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley for ac_dir in $ac_dummy; do
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews test -z "$ac_dir" && ac_dir=.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews if test -f $ac_dir/$ac_word; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews ac_cv_prog_RANLIB="ranlib"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews break
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews fi
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews done
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews IFS="$ac_save_ifs"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsfi
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsfi
7c0539bea56022274da04263eb41fbb5b8835c38Mark AndrewsRANLIB="$ac_cv_prog_RANLIB"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsif test -n "$RANLIB"; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews echo "$ac_t""$RANLIB" 1>&6
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewselse
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews echo "$ac_t""no" 1>&6
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsfi
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# Find a good install program. We prefer a C program (faster),
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# so one script is as good as another. But avoid the broken or
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# incompatible versions:
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# SysV /etc/install, /usr/sbin/install
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# SunOS /usr/etc/install
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# IRIX /sbin/install
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# AIX /bin/install
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# ./install, which can be erroneously created by make from ./install.sh.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsecho "configure:789: checking for a BSD compatible install" >&5
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsif test -z "$INSTALL"; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewselse
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews for ac_dir in $PATH; do
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # Account for people who put trailing slashes in PATH elements.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews case "$ac_dir/" in
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews *)
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # OSF1 and SCO ODT 3.0 have their own names for install.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # Don't use installbsd from OSF since it installs stuff as root
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # by default.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews for ac_prog in ginstall scoinst install; do
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews if test -f $ac_dir/$ac_prog; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews if test $ac_prog = install &&
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # AIX install. It has an incompatible calling convention.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews :
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews else
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews ac_cv_path_install="$ac_dir/$ac_prog -c"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews break 2
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews fi
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews fi
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews done
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews ;;
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews esac
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews done
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews IFS="$ac_save_IFS"
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsfi
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews if test "${ac_cv_path_install+set}" = set; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews INSTALL="$ac_cv_path_install"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews else
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # As a last resort, use the slow shell script. We don't cache a
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # path for INSTALL within a source directory, because that will
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # break other packages using the cache if that directory is
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # removed, or if the path is relative.
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson INSTALL="$ac_install_sh"
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson fi
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafssonfi
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafssonecho "$ac_t""$INSTALL" 1>&6
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson# It thinks the first close brace ends the variable substitution.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley
3740b569ae76295b941d57a724a43beb75b533baBob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Extract the first word of "ar", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyset dummy ar; ac_word=$2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:850: checking for $ac_word" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$AR" in
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley /*)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a path.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ?:/*)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley *)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_dummy="$PATH"
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington for ac_dir in $ac_dummy; do
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington test -z "$ac_dir" && ac_dir=.
5d661f0bde49c68d33eb1146d60058782aca50a7Bob Halley if test -f $ac_dir/$ac_word; then
5d661f0bde49c68d33eb1146d60058782aca50a7Bob Halley ac_cv_path_AR="$ac_dir/$ac_word"
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington break
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington fi
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington done
a8e4c27d2c00e831d1eb7260e3f455d97907d799Bob Halley IFS="$ac_save_ifs"
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington ;;
a8e4c27d2c00e831d1eb7260e3f455d97907d799Bob Halleyesac
a8e4c27d2c00e831d1eb7260e3f455d97907d799Bob Halleyfi
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian WellingtonAR="$ac_cv_path_AR"
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellingtonif test -n "$AR"; then
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington echo "$ac_t""$AR" 1>&6
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellingtonelse
5d661f0bde49c68d33eb1146d60058782aca50a7Bob Halley echo "$ac_t""no" 1>&6
5d661f0bde49c68d33eb1146d60058782aca50a7Bob Halleyfi
5d661f0bde49c68d33eb1146d60058782aca50a7Bob Halley
5d661f0bde49c68d33eb1146d60058782aca50a7Bob HalleyARFLAGS="cruv"
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellington
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# The POSIX ln(1) program. Non-POSIX systems may substitute
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# "copy" or something.
453603c018a9e7c3ee7726868f27c95798544ed7Bob HalleyLN=ln
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleycase "$AR" in
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley "")
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley { echo "configure: error:
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyar program not found. Please fix your PATH to include the directory in
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleywhich ar resides, or set AR in the environment with the full path to ar.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley" 1>&2; exit 1; }
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ;;
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyesac
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# Etags.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyfor ac_prog in etags emacs-etags
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleydo
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyset dummy $ac_prog; ac_word=$2
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyecho "configure:909: checking for $ac_word" >&5
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyelse
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley case "$ETAGS" in
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley /*)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ;;
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ?:/*)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ;;
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley *)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ac_dummy="$PATH"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley for ac_dir in $ac_dummy; do
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley test -z "$ac_dir" && ac_dir=.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley if test -f $ac_dir/$ac_word; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ac_cv_path_ETAGS="$ac_dir/$ac_word"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley break
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley done
3740b569ae76295b941d57a724a43beb75b533baBob Halley IFS="$ac_save_ifs"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyesac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyETAGS="$ac_cv_path_ETAGS"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$ETAGS"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""$ETAGS" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytest -n "$ETAGS" && break
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydone
3740b569ae76295b941d57a724a43beb75b533baBob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# GNU emacs etags, and it requires the -L flag.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "X$ETAGS" != "X"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:950: checking for Exuberant Ctags etags" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""yes" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ETAGS="$ETAGS -L"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley else
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley fi
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyfi
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Perl is optional; it is used only by some of the system test scripts.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfor ac_prog in perl5 perl
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydo
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
3740b569ae76295b941d57a724a43beb75b533baBob Halleyset dummy $ac_prog; ac_word=$2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740b569ae76295b941d57a724a43beb75b533baBob Halleyecho "configure:968: checking for $ac_word" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyelse
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley case "$PERL" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley /*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ?:/*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
0370190a682a3933119784a1023b1b9a51c66fa3Bob Halley *)
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_dummy="$PATH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley for ac_dir in $ac_dummy; do
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley test -z "$ac_dir" && ac_dir=.
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley if test -f $ac_dir/$ac_word; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_path_PERL="$ac_dir/$ac_word"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley break
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley fi
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley done
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley IFS="$ac_save_ifs"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley ;;
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyesac
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyfi
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleyPERL="$ac_cv_path_PERL"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyif test -n "$PERL"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "$ac_t""$PERL" 1>&6
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyelse
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "$ac_t""no" 1>&6
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytest -n "$PERL" && break
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleydone
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# Special processing of paths depending on whether --prefix,
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# --sysconfdir or --localstatedir arguments were given. What's
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# desired is some compatability with the way previous versions
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# of BIND built; they defaulted to /usr/local for most parts of
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# the installation, but named.boot/named.conf was in /etc
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# and named.pid was in /var/run.
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley#
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# So ... if none of --prefix, --sysconfdir or --localstatedir are
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# specified, set things up that way. If --prefix is given, use
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# it for sysconfdir and localstatedir the way configure normally
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# would. To change the prefix for everything but leave named.conf
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# in /etc or named.pid in /var/run, then do this the usual configure way:
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# ./configure --prefix=/somewhere --sysconfdir=/etc
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# ./configure --prefix=/somewhere --localstatedir=/var
fff9a37a0355e4181b3132370a173d1dbb5a0f3cBob Halley#
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley# To put named.conf and named.pid in /usr/local with everything else,
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley# set the prefix explicitly to /usr/local even though that's the default:
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# ./configure --prefix=/usr/local
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley#
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halleycase "$prefix" in
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley NONE)
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley case "$sysconfdir" in
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley '${prefix}/etc')
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley sysconfdir=/etc
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley ;;
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley esac
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley case "$localstatedir" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley '${prefix}/var')
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley localstatedir=/var
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley ;;
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley esac
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews ;;
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrewsesac
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Make sure INSTALL uses an absolute path, else it will be wrong in all
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# configure based on the location of the file where it is substituted.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# subdirectory of install-sh, This relative path will be wrong for all
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# directories more than one level down from install-sh.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleycase "$INSTALL" in
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley /*)
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews ;;
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews *)
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews #
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews # Not all systems have dirname.
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews #
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews test "$ac_dir" = "$ac_prog" && ac_dir=.
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews INSTALL="$ac_dir/$ac_prog"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyesac
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley
f257e9369c27578eb87077923dc010a6614e2a7aMark Andrews#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# On these hosts, we really want to use cc, not gcc, even if it is
f257e9369c27578eb87077923dc010a6614e2a7aMark Andrews# found. The gcc that these systems have will not correctly handle
f257e9369c27578eb87077923dc010a6614e2a7aMark Andrews# pthreads.
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews#
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews# However, if the user sets $CC to be something, let that override
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews# our change.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "X$CC" = "X" ; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$host" in
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley *-dec-osf*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CC="cc"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *-solaris*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Use Sun's cc if it is available, but watch
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # out for /usr/ucb/cc; it will never be the right
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # compiler to use.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley #
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # If setting CC here fails, the AC_PROG_CC done
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # below might still find gcc.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley for ac_dir in $PATH; do
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley test -z "$ac_dir" && ac_dir=.
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff case "$ac_dir" in
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley /usr/ucb)
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley # exclude
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -f "$ac_dir/cc"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CC="$ac_dir/cc"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley break
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley esac
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley done
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="$ac_save_ifs"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley ;;
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley *-hp-hpux*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CC="cc"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley mips-sgi-irix*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CC="cc"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Find the machine's endian flavor.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:1116: checking whether byte ordering is bigendian" >&5
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
ce3761f64d3d734cc94605026985898900ecc474Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyelse
ce3761f64d3d734cc94605026985898900ecc474Bob Halley ac_cv_c_bigendian=unknown
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# See if sys/param.h defines the BYTE_ORDER macro.
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halleycat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1123 "configure"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#include "confdefs.h"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include <sys/types.h>
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#include <sys/param.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyint main() {
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley bogus endian macros
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#endif
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # It does; now see whether it defined to BIG_ENDIAN or not.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1138 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <sys/types.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <sys/param.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyint main() {
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#if BYTE_ORDER != BIG_ENDIAN
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley not big endian
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#endif
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_cv_c_bigendian=yes
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "configure: failed program was:" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_c_bigendian=no
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halleyelse
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley echo "configure: failed program was:" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_c_bigendian = unknown; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "$cross_compiling" = yes; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1169 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleymain () {
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley /* Are we little or big endian? From Harbison&Steele. */
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley union
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley {
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley long l;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley char c[sizeof (long)];
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley } u;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley u.l = 1;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley exit (u.c[sizeof (long) - 1] == 1);
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley}
38d2d0e9326a2f70b5893302b89a26978b539405Bob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleythen
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley ac_cv_c_bigendian=no
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyelse
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "configure: failed program was:" >&5
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews cat conftest.$ac_ext >&5
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews rm -fr conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_c_bigendian=yes
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -fr conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "$ac_t""$ac_cv_c_bigendian" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_c_bigendian = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<\EOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#define WORDS_BIGENDIAN 1
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# was --with-openssl specified?
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyecho "configure:1210: checking for compatible OpenSSL library" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --with-openssl or --without-openssl was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_openssl+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley withval="$with_openssl"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_openssl="$withval"
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyelse
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley use_openssl="no"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# If the user didn't specify where openssl is, and we didn't find or it
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# is incompatible with our code, use our internal one.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# XXX This appears to assume that the user specified path is correct,
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# and does no checking.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycase "$use_openssl" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley no)
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley DST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley dst_privateopenssl='openssl'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley DST_OPENSSL_INC='-I${srcdir}/../openssl/include'
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley DST_OPENSSL_LIB=''
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley DST_OPENSSL_OBJS='${OPENSSLOBJS}'
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley echo "$ac_t""using private library" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley openssl_makefiles="lib/dns/sec/openssl/Makefile \
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley lib/dns/sec/openssl/include/Makefile \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley lib/dns/sec/openssl/include/openssl/Makefile"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley yes)
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley { echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *)
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley DST_PRIVATEOPENSSL=''
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley dst_privateopenssl=''
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley DST_OPENSSL_INC="-I$use_openssl/include"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
af3459443207253f197cd684567bfea0311ab76dMark Andrews DST_OPENSSL_LIB=''
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley openssl_makefiles=""
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
577179503f2eb7695ec668d8eeb41889a150e28fBob Halleyesac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# This would include the system openssl path (and linker options to use
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# it as needed) if it is found.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
af3459443207253f197cd684567bfea0311ab76dMark Andrews
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# was --with-gssapi specified?
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1272: checking for GSSAPI library" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --with-gssapi or --without-gssapi was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_gssapi+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley withval="$with_gssapi"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_gssapi="$withval"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_gssapi="no"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleycase "$use_gssapi" in
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley no)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley USE_GSSAPI=''
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley DST_GSSAPI_INC=''
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley DNS_GSSAPI_LIBS=''
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""not specified" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley yes)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *)
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley USE_GSSAPI='-DGSSAPI'
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley DST_GSSAPI_INC="-I$use_gssapi/include"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyesac
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#
af3459443207253f197cd684567bfea0311ab76dMark Andrews# was --with-randomdev specified?
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for random device""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1308: checking for random device" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --with-randomdev or --without-randomdev was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_randomdev+set}" = set; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley withval="$with_randomdev"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley use_randomdev="$withval"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_randomdev="unspec"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycase "$use_randomdev" in
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley unspec)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$host" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *-openbsd*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<\EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define PATH_RANDOMDEV "/dev/srandom"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""using /dev/srandom" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *-linux*|*-freebsd*|*-netbsd*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<\EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define PATH_RANDOMDEV "/dev/random"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""using /dev/random" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *)
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""not found" 1>&6
c7dd70fe1b0d3815ce267a575450662b8ee289b6Bob Halley ;;
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley yes)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<EOF
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence#define PATH_RANDOMDEV "$use_randomdev"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid LawrenceEOF
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence echo "$ac_t""using "$use_randomdev"" 1>&6
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ;;
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceesac
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence# Extract the first word of "gcc", so it can be a program name with args.
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceset dummy gcc; ac_word=$2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1355: checking for $ac_word" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley ac_dummy="$PATH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley for ac_dir in $ac_dummy; do
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley test -z "$ac_dir" && ac_dir=.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -f $ac_dir/$ac_word; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="gcc"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley break
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley done
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="$ac_save_ifs"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyCC="$ac_cv_prog_CC"
af3459443207253f197cd684567bfea0311ab76dMark Andrewsif test -n "$CC"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""$CC" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Extract the first word of "cc", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyset dummy cc; ac_word=$2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1385: checking for $ac_word" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prog_rejected=no
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_dummy="$PATH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley for ac_dir in $ac_dummy; do
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley test -z "$ac_dir" && ac_dir=.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -f $ac_dir/$ac_word; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_prog_rejected=yes
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley continue
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_cv_prog_CC="cc"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley break
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley done
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="$ac_save_ifs"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif test $ac_prog_rejected = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # We found a bogon in the path, so make sure we never use it.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley set dummy $ac_cv_prog_CC
af3459443207253f197cd684567bfea0311ab76dMark Andrews shift
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test $# -gt 0; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # We chose a different compiler from the bogus one.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley # However, it has the same basename, so the bogon will be chosen
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # first if we set CC to just the basename; use the full file name.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley shift
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley set dummy "$ac_dir/$ac_word" "$@"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley shift
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$@"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyCC="$ac_cv_prog_CC"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$CC"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""$CC" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -z "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "`uname -s`" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *win32* | *WIN32*)
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence # Extract the first word of "cl", so it can be a program name with args.
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyset dummy cl; ac_word=$2
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyecho "configure:1436: checking for $ac_word" >&5
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_dummy="$PATH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley for ac_dir in $ac_dummy; do
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley test -z "$ac_dir" && ac_dir=.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -f $ac_dir/$ac_word; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="cl"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley break
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley done
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="$ac_save_ifs"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyCC="$ac_cv_prog_CC"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""$CC" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencefi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ;;
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence esac
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence fi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencefi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceecho "configure:1468: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_ext=c
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_cpp='$CPP $CPPFLAGS'
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencecross_compiling=$ac_cv_prog_cc_cross
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencecat > conftest.$ac_ext << EOF
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence#line 1479 "configure"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence#include "confdefs.h"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencemain(){return(0);}
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid LawrenceEOF
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceif { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ac_cv_prog_cc_works=yes
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence # If we can't run a trivial program, we are probably using a cross compiler.
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence if (./conftest; exit) 2>/dev/null; then
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ac_cv_prog_cc_cross=no
402b05ddea16c6179fd251e4e740606dd973d593Bob Halley else
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ac_cv_prog_cc_cross=yes
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence fi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceelse
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence echo "configure: failed program was:" >&5
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence cat conftest.$ac_ext >&5
402b05ddea16c6179fd251e4e740606dd973d593Bob Halley ac_cv_prog_cc_works=no
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -fr conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_ext=c
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_cpp='$CPP $CPPFLAGS'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycross_compiling=$ac_cv_prog_cc_cross
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_prog_cc_works = no; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1510: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycross_compiling=$ac_cv_prog_cc_cross
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1515: checking whether we are using GNU C" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.c <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#ifdef __GNUC__
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley yes;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#endif
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid LawrenceEOF
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ac_cv_prog_gcc=yes
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceelse
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence ac_cv_prog_gcc=no
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencefi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencefi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceecho "$ac_t""$ac_cv_prog_gcc" 1>&6
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_prog_gcc = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley GCC=yes
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceelse
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence GCC=
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencefi
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_test_CFLAGS="${CFLAGS+set}"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_save_CFLAGS="$CFLAGS"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid LawrenceCFLAGS=
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1543: checking whether ${CC-cc} accepts -g" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff echo 'void f(){}' > conftest.c
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_cc_g=yes
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley ac_cv_prog_cc_g=no
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "$ac_test_CFLAGS" = set; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley CFLAGS="$ac_save_CFLAGS"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyelif test $ac_cv_prog_cc_g = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test "$GCC" = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CFLAGS="-g -O2"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley else
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CFLAGS="-g"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley fi
af3459443207253f197cd684567bfea0311ab76dMark Andrewselse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test "$GCC" = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CFLAGS="-O2"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley else
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CFLAGS=
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfor ac_prog in 'bison -y' byacc
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydo
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyset dummy $ac_prog; ac_word=$2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1579: checking for $ac_word" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$YACC"; then
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley ac_cv_prog_YACC="$YACC" # Let the user override the test.
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_dummy="$PATH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley for ac_dir in $ac_dummy; do
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley test -z "$ac_dir" && ac_dir=.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley if test -f $ac_dir/$ac_word; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_cv_prog_YACC="$ac_prog"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley break
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley done
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley IFS="$ac_save_ifs"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffYACC="$ac_cv_prog_YACC"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif test -n "$YACC"; then
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews echo "$ac_t""$YACC" 1>&6
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrewselse
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff echo "$ac_t""no" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytest -n "$YACC" && break
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydone
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleytest -n "$YACC" || YACC="yacc"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1611: checking how to run the C preprocessor" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff# On Suns, sometimes $CPP names a directory.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$CPP" && test -d "$CPP"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CPP=
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$CPP"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyelse
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # This must be in double quotes, not single quotes, because CPP may get
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley CPP="${CC-cc} -E"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # not just through cpp.
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley cat > conftest.$ac_ext <<EOF
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#line 1626 "configure"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include "confdefs.h"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include <assert.h>
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleySyntax Error
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleyEOF
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley{ (eval echo configure:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyif test -z "$ac_err"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley :
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyelse
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "$ac_err" >&5
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "configure: failed program was:" >&5
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley cat conftest.$ac_ext >&5
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley rm -rf conftest*
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley CPP="${CC-cc} -E -traditional-cpp"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley cat > conftest.$ac_ext <<EOF
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#line 1643 "configure"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include "confdefs.h"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include <assert.h>
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleySyntax Error
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleyEOF
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley{ (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$ac_err"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley :
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_err" >&5
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "configure: failed program was:" >&5
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley CPP="${CC-cc} -nologo -E"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.$ac_ext <<EOF
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley#line 1660 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <assert.h>
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob HalleySyntax Error
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley{ (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif test -z "$ac_err"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley :
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff echo "$ac_err" >&5
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley echo "configure: failed program was:" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CPP=/lib/cpp
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CPP="$CPP"
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley CPP="$ac_cv_prog_CPP"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CPP="$CPP"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "$ac_t""$CPP" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1691: checking for ANSI C header files" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1696 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <stdlib.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stdarg.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <string.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <float.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley{ (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$ac_err"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff ac_cv_header_stdc=yes
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_err" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: failed program was:" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_header_stdc=no
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halleyif test $ac_cv_header_stdc = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1721 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <string.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley egrep "memchr" >/dev/null 2>&1; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley :
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_header_stdc=no
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
b9a2c5ddf99250e851f45a606cdbe3e3fc4beccaBob Halleyif test $ac_cv_header_stdc = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1739 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stdlib.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley egrep "free" >/dev/null 2>&1; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff :
b9a2c5ddf99250e851f45a606cdbe3e3fc4beccaBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_header_stdc=no
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_header_stdc = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "$cross_compiling" = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley :
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1760 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <ctype.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffint main () { int i; for (i = 0; i < 256; i++)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyexit (0); }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleythen
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley :
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: failed program was:" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -fr conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_header_stdc=no
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -fr conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "$ac_t""$ac_cv_header_stdc" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_header_stdc = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<\EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define STDC_HEADERS 1
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h sys/select.h
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydo
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1799: checking for $ac_hdr" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1804 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <$ac_hdr>
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyEOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley{ (eval echo configure:1809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif test -z "$ac_err"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley eval "ac_cv_header_$ac_safe=yes"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_err" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: failed program was:" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_header_$ac_safe=no"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""yes" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define $ac_tr_hdr 1
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleydone
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho "configure:1837: checking for working const" >&5
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley echo $ac_n "(cached) $ac_c" 1>&6
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonelse
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley cat > conftest.$ac_ext <<EOF
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington#line 1842 "configure"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley#include "confdefs.h"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyint main() {
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* Ultrix mips cc rejects this. */
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtontypedef int charset[2]; const charset x;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* SunOS 4.1.1 cc rejects this. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleychar const *const *ccp;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleychar **p;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* NEC SVR4.0.2 mips cc rejects this. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleystruct point {int x, y;};
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleystatic struct point const zero = {0,0};
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* AIX XL C 1.02.0.0 rejects this.
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley It does not let you subtract one const X* pointer from another in an arm
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley of an if-expression whose if-part is not a constant expression */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyconst char *g = "string";
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyccp = &g + (g ? g-g : 0);
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* HPUX 7.0 cc rejects these. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley++ccp;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyp = (char**) ccp;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyccp = (char const *const *) p;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* SCO 3.2v4 cc rejects this. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley char *t;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley *t++ = 0;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley}
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff int x[] = {25, 17};
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley const int *foo = &x[0];
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington ++foo;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington}
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley typedef const int *iptr;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley iptr p = 0;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington ++p;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington}
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* AIX XL C 1.02.0.0 rejects this saying
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley struct s { int j; const int *ap[3]; };
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington struct s *b; b->j = 5;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington}
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington const int foo = 10;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington}
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley; return 0; }
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian WellingtonEOF
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonif { (eval echo configure:1891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington rm -rf conftest*
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington ac_cv_c_const=yes
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonelse
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington echo "configure: failed program was:" >&5
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington cat conftest.$ac_ext >&5
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington rm -rf conftest*
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley ac_cv_c_const=no
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonfi
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyrm -f conftest*
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyfi
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho "$ac_t""$ac_cv_c_const" 1>&6
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonif test $ac_cv_c_const = no; then
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington cat >> confdefs.h <<\EOF
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington#define const
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian WellingtonEOF
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonfi
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho $ac_n "checking for inline""... $ac_c" 1>&6
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho "configure:1912: checking for inline" >&5
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley echo $ac_n "(cached) $ac_c" 1>&6
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyelse
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley ac_cv_c_inline=no
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyfor ac_kw in inline __inline__ __inline; do
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley cat > conftest.$ac_ext <<EOF
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley#line 1919 "configure"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley#include "confdefs.h"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyint main() {
a0abd77baacdd97272356faab5efc79dd1483077Bob Halley} $ac_kw foo() {
a0abd77baacdd97272356faab5efc79dd1483077Bob Halley; return 0; }
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob HalleyEOF
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonif { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_c_inline=$ac_kw; break
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyelse
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley echo "configure: failed program was:" >&5
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleydone
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "$ac_t""$ac_cv_c_inline" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycase "$ac_cv_c_inline" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley inline | yes) ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley no) cat >> confdefs.h <<\EOF
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#define inline
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *) cat >> confdefs.h <<EOF
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#define inline $ac_cv_c_inline
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleyEOF
566f721b3a0a4e63e7da775a0fbcc2c44645cae4Mark Andrews ;;
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyesac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for size_t""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1952: checking for size_t" >&5
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley cat > conftest.$ac_ext <<EOF
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#line 1957 "configure"
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#include "confdefs.h"
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#include <sys/types.h>
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#if STDC_HEADERS
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stdlib.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stddef.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#endif
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_type_size_t=yes
566f721b3a0a4e63e7da775a0fbcc2c44645cae4Mark Andrewselse
566f721b3a0a4e63e7da775a0fbcc2c44645cae4Mark Andrews rm -rf conftest*
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley ac_cv_type_size_t=no
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyfi
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyrm -f conftest*
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyfi
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyecho "$ac_t""$ac_cv_type_size_t" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_type_size_t = no; then
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley cat >> confdefs.h <<\EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define size_t unsigned
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1985: checking whether time.h and sys/time.h may both be included" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1990 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <sys/types.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <sys/time.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <time.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyint main() {
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleystruct tm *tp;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley ac_cv_header_time=yes
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: failed program was:" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat conftest.$ac_ext >&5
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_header_time=no
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "$ac_t""$ac_cv_header_time" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test $ac_cv_header_time = yes; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat >> confdefs.h <<\EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define TIME_WITH_SYS_TIME 1
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# check if we need to #include sys/select.h explicitly
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycase $ac_cv_header_unistd_h in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyyes)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:2026: checking if unistd.h defines fd_set" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycat > conftest.$ac_ext <<EOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 2028 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <unistd.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyint main() {
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfd_set read_set; return (0);
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyEOF
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:2036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""yes" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: failed program was:" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley cat conftest.$ac_ext >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley rm -rf conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case ac_cv_header_sys_select_h in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley yes)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley no)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: "need either working unistd.h or sys/select.h"" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrm -f conftest*
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyno)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case ac_cv_header_sys_select_h in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley yes)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley no)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: "need either unistd.h or sys/select.h"" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley esac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyesac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Begin pthreads checking.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# First, decide whether to use multithreading or not.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether to look for thread support""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:2079: checking whether to look for thread support" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --enable-threads or --disable-threads was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${enable_threads+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley enableval="$enable_threads"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley :
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleycase "$enable_threads" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley yes|'')
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""yes" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_threads=true
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley no)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""no" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_threads=false
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: "--enable-threads takes yes or no"" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyesac
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif $use_threads
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleythen
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley #
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Search for / configure pthreads in a system-dependent fashion.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley #
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley case "$host" in
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *-netbsd*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # NetBSD has multiple pthreads implementations. The
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # recommended one to use is "unproven-pthreads". The
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # older "mit-pthreads" may also work on some NetBSD
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # versions. The PTL2 thread library does not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # currently work with bind9, but can be chosen with
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # the --with-ptl2 option for those who wish to
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # experiment with it.
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halley CC="gcc"
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halley echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halleyecho "configure:2116: checking which NetBSD thread library to use" >&5
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halley
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halley # Check whether --with-ptl2 or --without-ptl2 was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_ptl2+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley withval="$with_ptl2"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley use_ptl2="$withval"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyelse
566f721b3a0a4e63e7da775a0fbcc2c44645cae4Mark Andrews use_ptl2="no"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley : ${LOCALBASE:=/usr/pkg}
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley if test "X$use_ptl2" = "Xyes"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""PTL2" 1>&6
a0abd77baacdd97272356faab5efc79dd1483077Bob Halley echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrence CC=ptlgcc
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrence else
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley if test ! -d $LOCALBASE/pthreads
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley { echo "configure: error: no thread library found.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyPlease install the devel/unproven-pthreads package and rerun configure.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley" 1>&2; exit 1; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley fi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley pkg="$LOCALBASE/pthreads"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley lib1="-L$pkg/lib -Wl,-R$pkg/lib"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley lib2="-lpthread -lm -lgcc -lpthread"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley LIBS="$lib1 $lib2 $LIBS"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley CPPFLAGS="$CPPFLAGS -I$pkg/include"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley fi
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley ;;
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley *)
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyecho "configure:2155: checking for pthread_create in -lpthread" >&5
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley ac_save_LIBS="$LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyLIBS="-lpthread $LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleycat > conftest.$ac_ext <<EOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2163 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* Override any gcc2 internal prototype to avoid an error. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* We use char because int might match the return type of a gcc2
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley builtin and then its argument prototype would still apply. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleychar pthread_create();
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyint main() {
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleypthread_create()
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley; return 0; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyEOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "configure: failed program was:" >&5
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley cat conftest.$ac_ext >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyrm -f conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyLIBS="$ac_save_LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""yes" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley cat >> confdefs.h <<EOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#define $ac_tr_lib 1
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyEOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley LIBS="-lpthread $LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""no" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2200: checking for __pthread_create in -lpthread" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_save_LIBS="$LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyLIBS="-lpthread $LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleycat > conftest.$ac_ext <<EOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2208 "configure"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews#include "confdefs.h"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews/* We use char because int might match the return type of a gcc2
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrence builtin and then its argument prototype would still apply. */
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrencechar __pthread_create();
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrenceint main() {
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley__pthread_create()
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley; return 0; }
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob HalleyEOF
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halleyif { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley rm -rf conftest*
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "configure: failed program was:" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley cat conftest.$ac_ext >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyrm -f conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffLIBS="$ac_save_LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""yes" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley cat >> confdefs.h <<EOF
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley#define $ac_tr_lib 1
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob HalleyEOF
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley LIBS="-lpthread $LIBS"
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewselse
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews echo "$ac_t""no" 1>&6
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewsecho $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2245: checking for __pthread_create_system in -lpthread" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo $ac_n "(cached) $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_save_LIBS="$LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyLIBS="-lpthread $LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleycat > conftest.$ac_ext <<EOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2253 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* Override any gcc2 internal prototype to avoid an error. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* We use char because int might match the return type of a gcc2
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley builtin and then its argument prototype would still apply. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleychar __pthread_create_system();
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrewsint main() {
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews__pthread_create_system()
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews; return 0; }
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark AndrewsEOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_lib_$ac_lib_var=yes"
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrewselse
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews echo "configure: failed program was:" >&5
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews cat conftest.$ac_ext >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyrm -f conftest*
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyLIBS="$ac_save_LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewsfi
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews echo "$ac_t""yes" 1>&6
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews cat >> confdefs.h <<EOF
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews#define $ac_tr_lib 1
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark AndrewsEOF
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews LIBS="-lpthread $LIBS"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewselse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""no" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2290: checking for pthread_create in -lc_r" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo $ac_n "(cached) $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_save_LIBS="$LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyLIBS="-lc_r $LIBS"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffcat > conftest.$ac_ext <<EOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2298 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* Override any gcc2 internal prototype to avoid an error. */
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley/* We use char because int might match the return type of a gcc2
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley builtin and then its argument prototype would still apply. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleychar pthread_create();
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyint main() {
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleypthread_create()
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley; return 0; }
c5839c39bd07c9dd3d4cd598035deb0537098475Bob HalleyEOF
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "configure: failed program was:" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley cat conftest.$ac_ext >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyrm -f conftest*
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael GraffLIBS="$ac_save_LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyfi
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews echo "$ac_t""yes" 1>&6
571469b0a58b011966bbea91ca992928554d6ca1David Lawrence ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/^a-zA-Z0-9_/_/g' \
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews cat >> confdefs.h <<EOF
86921103ec656d7a0176d356b5adac10a362d2d3Bob Halley#define $ac_tr_lib 1
52637f592f705ca93fadc218e403fd55e8ce4aeaMark AndrewsEOF
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews LIBS="-lc_r $LIBS"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""no" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2335: checking for pthread_create in -lc" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo $ac_n "(cached) $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyelse
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews ac_save_LIBS="$LIBS"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark AndrewsLIBS="-lc $LIBS"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewscat > conftest.$ac_ext <<EOF
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#line 2343 "configure"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#include "confdefs.h"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews/* We use char because int might match the return type of a gcc2
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews builtin and then its argument prototype would still apply. */
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewschar pthread_create();
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsint main() {
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewspthread_create()
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews; return 0; }
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark AndrewsEOF
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrewsif { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews rm -rf conftest*
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrewselse
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews echo "configure: failed program was:" >&5
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews cat conftest.$ac_ext >&5
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_lib_$ac_lib_var=no"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsfi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsrm -f conftest*
52637f592f705ca93fadc218e403fd55e8ce4aeaMark AndrewsLIBS="$ac_save_LIBS"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsfi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff echo "$ac_t""yes" 1>&6
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews ac_tr_lib=HAVE_LIB`echo c | sed -e 's/^a-zA-Z0-9_/_/g' \
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews cat >> confdefs.h <<EOF
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#define $ac_tr_lib 1
52637f592f705ca93fadc218e403fd55e8ce4aeaMark AndrewsEOF
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews LIBS="-lc $LIBS"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewselse
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews echo "$ac_t""no" 1>&6
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrenceuse_threads=false
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsfi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsfi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrencefi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ;;
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff esac
518be7faab2498c795e6dc9bb25ac10ca38b3a8dMark Andrewsfi
518be7faab2498c795e6dc9bb25ac10ca38b3a8dMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsif $use_threads
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleythen
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley #
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley # We'd like to use sigwait() too
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley #
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2400: checking for sigwait in -lc" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
ce3761f64d3d734cc94605026985898900ecc474Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley ac_save_LIBS="$LIBS"
ce3761f64d3d734cc94605026985898900ecc474Bob HalleyLIBS="-lc $LIBS"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewscat > conftest.$ac_ext <<EOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#line 2408 "configure"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#include "confdefs.h"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* We use char because int might match the return type of a gcc2
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley builtin and then its argument prototype would still apply. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleychar sigwait();
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyint main() {
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleysigwait()
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley; return 0; }
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyEOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley rm -rf conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "configure: failed program was:" >&5
ce3761f64d3d734cc94605026985898900ecc474Bob Halley cat conftest.$ac_ext >&5
ce3761f64d3d734cc94605026985898900ecc474Bob Halley rm -rf conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyfi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsrm -f conftest*
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob HalleyLIBS="$ac_save_LIBS"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyfi
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "$ac_t""yes" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley cat >> confdefs.h <<\EOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#define HAVE_SIGWAIT 1
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyEOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "$ac_t""no" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2441: checking for sigwait in -lpthread" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley ac_save_LIBS="$LIBS"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyLIBS="-lpthread $LIBS"
ce3761f64d3d734cc94605026985898900ecc474Bob Halleycat > conftest.$ac_ext <<EOF
518be7faab2498c795e6dc9bb25ac10ca38b3a8dMark Andrews#line 2449 "configure"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley#include "confdefs.h"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
ce3761f64d3d734cc94605026985898900ecc474Bob Halley/* We use char because int might match the return type of a gcc2
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews builtin and then its argument prototype would still apply. */
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewschar sigwait();
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsint main() {
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleysigwait()
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley; return 0; }
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyEOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley rm -rf conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "configure: failed program was:" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley cat conftest.$ac_ext >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley rm -rf conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyfi
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyrm -f conftest*
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob HalleyLIBS="$ac_save_LIBS"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyfi
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "$ac_t""yes" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley cat >> confdefs.h <<\EOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#define HAVE_SIGWAIT 1
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyEOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "$ac_t""no" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2482: checking for _Psigwait in -lpthread" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley ac_save_LIBS="$LIBS"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyLIBS="-lpthread $LIBS"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleycat > conftest.$ac_ext <<EOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#line 2490 "configure"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#include "confdefs.h"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* We use char because int might match the return type of a gcc2
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley builtin and then its argument prototype would still apply. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleychar _Psigwait();
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyint main() {
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley_Psigwait()
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley; return 0; }
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyEOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley rm -rf conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "configure: failed program was:" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley cat conftest.$ac_ext >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley rm -rf conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyfi
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyrm -f conftest*
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob HalleyLIBS="$ac_save_LIBS"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsfi
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo "$ac_t""yes" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley cat >> confdefs.h <<\EOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#define HAVE_SIGWAIT 1
ce3761f64d3d734cc94605026985898900ecc474Bob HalleyEOF
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""no" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyfi
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyfi
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyfi
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2531: checking for pthread_attr_getstacksize" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyelse
ce3761f64d3d734cc94605026985898900ecc474Bob Halley cat > conftest.$ac_ext <<EOF
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#line 2536 "configure"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#include "confdefs.h"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley/* System header to define __stub macros and hopefully few prototypes,
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff which can conflict with char pthread_attr_getstacksize(); below. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <assert.h>
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar pthread_attr_getstacksize();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceint main() {
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* The GNU C library defines this for functions which it implements
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence to always fail with ENOSYS. Some functions are actually named
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff something starting with __ and the normal name is an alias. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechoke me
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#else
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencepthread_attr_getstacksize();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#endif
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence; return 0; }
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_attr_getstacksize=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "configure: failed program was:" >&5
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley cat conftest.$ac_ext >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_attr_getstacksize=no"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencerm -f conftest*
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halleyfi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$ac_cv_func_'pthread_attr_getstacksize`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""yes" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""no" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # Additional OS-specific issues related to pthreads and sigwait.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence case "$host" in
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # One more place to look for sigwait.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-freebsd*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceecho "configure:2591: checking for sigwait in -lc_r" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ac_save_LIBS="$LIBS"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceLIBS="-lc_r $LIBS"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencecat > conftest.$ac_ext <<EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#line 2599 "configure"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include "confdefs.h"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar sigwait();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceint main() {
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencesigwait()
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence; return 0; }
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "configure: failed program was:" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat conftest.$ac_ext >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencerm -f conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceLIBS="$ac_save_LIBS"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""yes" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_SIGWAIT 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""no" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # BSDI 3.0 through 4.0.1 needs pthread_init() to be
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # called before certain pthreads calls. This is deprecated
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # in BSD/OS 4.1.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff *-bsdi3.*|*-bsdi4.0*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define NEED_PTHREAD_INIT 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # LinuxThreads requires some changes to the way we
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # deal with signals.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-linux*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_LINUXTHREADS 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
402b05ddea16c6179fd251e4e740606dd973d593Bob Halley ;;
402b05ddea16c6179fd251e4e740606dd973d593Bob Halley #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # Ensure the right sigwait() semantics on Solaris and make
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # sure we call pthread_setconcurrency.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-solaris*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define _POSIX_PTHREAD_SEMANTICS 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceecho "configure:2665: checking for pthread_setconcurrency" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat > conftest.$ac_ext <<EOF
d92d2f722ad5a2063010a6720fe137ada7562e30David Lawrence#line 2670 "configure"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include "confdefs.h"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* System header to define __stub macros and hopefully few prototypes,
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence which can conflict with char pthread_setconcurrency(); below. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include <assert.h>
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar pthread_setconcurrency();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceint main() {
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* The GNU C library defines this for functions which it implements
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence to always fail with ENOSYS. Some functions are actually named
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence something starting with __ and the normal name is an alias. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechoke me
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#else
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencepthread_setconcurrency();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#endif
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence; return 0; }
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_setconcurrency=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "configure: failed program was:" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat conftest.$ac_ext >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_setconcurrency=no"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencerm -f conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""yes" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define CALL_PTHREAD_SETCONCURRENCY 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""no" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # UnixWare does things its own way.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-UnixWare*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_UNIXWARE_SIGWAIT 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence esac
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # Look for sysconf to allow detection of the number of processors.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence #
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "checking for sysconf""... $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceecho "configure:2731: checking for sysconf" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat > conftest.$ac_ext <<EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#line 2736 "configure"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include "confdefs.h"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* System header to define __stub macros and hopefully few prototypes,
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence which can conflict with char sysconf(); below. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include <assert.h>
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar sysconf();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceint main() {
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* The GNU C library defines this for functions which it implements
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence to always fail with ENOSYS. Some functions are actually named
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence something starting with __ and the normal name is an alias. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#if defined (__stub_sysconf) || defined (__stub___sysconf)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechoke me
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#else
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencesysconf();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#endif
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence; return 0; }
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_sysconf=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "configure: failed program was:" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence cat conftest.$ac_ext >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence rm -rf conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_sysconf=no"
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrewsfi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencerm -f conftest*
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""yes" 1>&6
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews cat >> confdefs.h <<\EOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_SYSCONF 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David LawrenceEOF
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceelse
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo "$ac_t""no" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencefi
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence if test "X$GCC" = "Xyes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence case "$host" in
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-freebsd*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CC="$CC -pthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CCOPT="$CCOPT -pthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-openbsd*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CC="$CC -pthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CCOPT="$CCOPT -pthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-solaris*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence LIBS="$LIBS -lthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-ibm-aix*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence esac
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence else
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence case $host in
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-dec-osf*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CC="$CC -pthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CCOPT="$CCOPT -pthread"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence *-solaris*)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CC="$CC -mt"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence CCOPT="$CCOPT -mt"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence ;;
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley *-ibm-aix*)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ;;
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley *-UnixWare*)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley CC="$CC -Kthread"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley CCOPT="$CCOPT -Kthread"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ;;
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley esac
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley fi
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley thread_dir=pthreads
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyelse
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley thread_dir=nothreads
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyfi
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob HalleyISC_THREAD_DIR=$thread_dir
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
3dbea10f98472c452cc2467634059f28a87feb29Bob Halley#
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# flockfile is usually provided by pthreads, but we may want to use it
3dbea10f98472c452cc2467634059f28a87feb29Bob Halley# even if compiled with --disable-threads.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyecho $ac_n "checking for flockfile""... $ac_c" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyecho "configure:2836: checking for flockfile" >&5
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyelse
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley cat > conftest.$ac_ext <<EOF
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#line 2841 "configure"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#include "confdefs.h"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* System header to define __stub macros and hopefully few prototypes,
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley which can conflict with char flockfile(); below. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#include <assert.h>
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* We use char because int might match the return type of a gcc2
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley builtin and then its argument prototype would still apply. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleychar flockfile();
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyint main() {
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* The GNU C library defines this for functions which it implements
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley to always fail with ENOSYS. Some functions are actually named
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley something starting with __ and the normal name is an alias. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#if defined (__stub_flockfile) || defined (__stub___flockfile)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleychoke me
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#else
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyflockfile();
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#endif
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley; return 0; }
453603c018a9e7c3ee7726868f27c95798544ed7Bob HalleyEOF
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley rm -rf conftest*
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley eval "ac_cv_func_flockfile=yes"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyelse
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley echo "configure: failed program was:" >&5
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley cat conftest.$ac_ext >&5
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley rm -rf conftest*
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley eval "ac_cv_func_flockfile=no"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyfi
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyrm -f conftest*
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyfi
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley echo "$ac_t""yes" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley cat >> confdefs.h <<\EOF
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#define HAVE_FLOCKFILE 1
402b05ddea16c6179fd251e4e740606dd973d593Bob HalleyEOF
8326257468615966b10820260beb3ee96eee94b5Bob Halley
8326257468615966b10820260beb3ee96eee94b5Bob Halleyelse
8326257468615966b10820260beb3ee96eee94b5Bob Halley echo "$ac_t""no" 1>&6
8326257468615966b10820260beb3ee96eee94b5Bob Halleyfi
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
402b05ddea16c6179fd251e4e740606dd973d593Bob Halley#
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# Indicate what the final decision was regarding threads.
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyecho $ac_n "checking whether to build with threads""... $ac_c" 1>&6
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyecho "configure:2891: checking whether to build with threads" >&5
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyif $use_threads; then
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley echo "$ac_t""yes" 1>&6
402b05ddea16c6179fd251e4e740606dd973d593Bob Halleyelse
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley echo "$ac_t""no" 1>&6
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halleyfi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley# End of pthreads stuff.
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# Additional compiler settings.
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob HalleyMKDEPCC="$CC"
63c8c8f2a1c1e490305fde095321798f0342739dBob HalleyMKDEPCFLAGS="-M"
63c8c8f2a1c1e490305fde095321798f0342739dBob HalleyIRIX_DNSSEC_WARNINGS_HACK=""
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley
63c8c8f2a1c1e490305fde095321798f0342739dBob Halleyif test "X$GCC" = "Xyes"; then
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halleyelse
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley case $host in
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *-dec-osf*)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley CC="$CC -std"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff CCOPT="$CCOPT -std"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley MKDEPCC="$CC"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley ;;
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *-hp-hpux*)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley CC="$CC -Ae -z"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # The version of the C compiler that constantly warns about
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # 'const' as well as alignment issues is unfortunately not
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # able to be discerned via the version of the operating
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # system, nor does cc have a version flag.
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley case "`$CC +W 123 2>&1`" in
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *Unknown?option*)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley STD_CWARNINGS="+w1"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley ;;
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # Turn off the pointlessly noisy warnings.
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley STD_CWARNINGS="+w1 +W 474,530"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley ;;
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley esac
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley CCOPT="$CCOPT -Ae -z"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley LIBS="-Wl,+vnocompatwarnings $LIBS"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley ;;
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *-sgi-irix*)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley STD_CWARNINGS="-fullwarn -woff 1209"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley #
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff # Silence more than 250 instances of
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # "prototyped function redeclared without prototype"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # and 11 instances of
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # "variable ... was set but never used"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # from lib/dns/sec/openssl.
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley #
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley ;;
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *-solaris*)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley MKDEPCFLAGS="-xM"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley ;;
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley *-UnixWare*)
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley CC="$CC -w"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley YACC="yacc" # bison calls alloca, avoid on UnixWare
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley ;;
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley esac
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halleyfi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley#
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley# NLS
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halleyecho $ac_n "checking for catgets""... $ac_c" 1>&6
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halleyecho "configure:2967: checking for catgets" >&5
8326257468615966b10820260beb3ee96eee94b5Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8326257468615966b10820260beb3ee96eee94b5Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8326257468615966b10820260beb3ee96eee94b5Bob Halleyelse
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley cat > conftest.$ac_ext <<EOF
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley#line 2972 "configure"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley#include "confdefs.h"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley/* System header to define __stub macros and hopefully few prototypes,
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley which can conflict with char catgets(); below. */
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#include <assert.h>
8326257468615966b10820260beb3ee96eee94b5Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* We use char because int might match the return type of a gcc2
8326257468615966b10820260beb3ee96eee94b5Bob Halley builtin and then its argument prototype would still apply. */
8326257468615966b10820260beb3ee96eee94b5Bob Halleychar catgets();
8326257468615966b10820260beb3ee96eee94b5Bob Halley
8326257468615966b10820260beb3ee96eee94b5Bob Halleyint main() {
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
8326257468615966b10820260beb3ee96eee94b5Bob Halley/* The GNU C library defines this for functions which it implements
8326257468615966b10820260beb3ee96eee94b5Bob Halley to always fail with ENOSYS. Some functions are actually named
8326257468615966b10820260beb3ee96eee94b5Bob Halley something starting with __ and the normal name is an alias. */
8326257468615966b10820260beb3ee96eee94b5Bob Halley#if defined (__stub_catgets) || defined (__stub___catgets)
8326257468615966b10820260beb3ee96eee94b5Bob Halleychoke me
8326257468615966b10820260beb3ee96eee94b5Bob Halley#else
8326257468615966b10820260beb3ee96eee94b5Bob Halleycatgets();
8326257468615966b10820260beb3ee96eee94b5Bob Halley#endif
8326257468615966b10820260beb3ee96eee94b5Bob Halley
8326257468615966b10820260beb3ee96eee94b5Bob Halley; return 0; }
8326257468615966b10820260beb3ee96eee94b5Bob HalleyEOF
8326257468615966b10820260beb3ee96eee94b5Bob Halleyif { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8326257468615966b10820260beb3ee96eee94b5Bob Halley rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_func_catgets=yes"
8326257468615966b10820260beb3ee96eee94b5Bob Halleyelse
8326257468615966b10820260beb3ee96eee94b5Bob Halley echo "configure: failed program was:" >&5
8326257468615966b10820260beb3ee96eee94b5Bob Halley cat conftest.$ac_ext >&5
8326257468615966b10820260beb3ee96eee94b5Bob Halley rm -rf conftest*
8326257468615966b10820260beb3ee96eee94b5Bob Halley eval "ac_cv_func_catgets=no"
8326257468615966b10820260beb3ee96eee94b5Bob Halleyfi
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrewsrm -f conftest*
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrewsfi
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrews
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrewsif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrews echo "$ac_t""yes" 1>&6
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley cat >> confdefs.h <<\EOF
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley#define HAVE_CATGETS 1
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob HalleyEOF
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrewselse
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrews echo "$ac_t""no" 1>&6
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrewsfi
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley#
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# -lxnet buys us one big porting headache... standards, gotta love 'em.
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley#
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# AC_CHECK_LIB(xnet, socket, ,
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# AC_CHECK_LIB(socket, socket)
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# AC_CHECK_LIB(nsl, inet_ntoa)
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# )
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley#
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# Use this for now, instead:
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley#
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleycase "$host" in
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley mips-sgi-irix*)
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley ;;
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley *)
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyecho "configure:3033: checking for socket in -lsocket" >&5
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyelse
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley ac_save_LIBS="$LIBS"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas GustafssonLIBS="-lsocket $LIBS"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssoncat > conftest.$ac_ext <<EOF
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson#line 3041 "configure"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson#include "confdefs.h"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson/* We use char because int might match the return type of a gcc2
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson builtin and then its argument prototype would still apply. */
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonchar socket();
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonint main() {
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonsocket()
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson; return 0; }
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas GustafssonEOF
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonif { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson rm -rf conftest*
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonelse
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson echo "configure: failed program was:" >&5
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson cat conftest.$ac_ext >&5
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson rm -rf conftest*
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonfi
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonrm -f conftest*
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas GustafssonLIBS="$ac_save_LIBS"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonfi
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:3080: 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 3088 "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:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
fi
;;
esac
#
#
# GNU libtool support
#
# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
withval="$with_libtool"
use_libtool="$withval"
else
use_libtool="no"
fi
case $use_libtool in
yes)
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_shared=yes
fi
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_static=yes
fi
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_fast_install=yes
fi
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:3214: 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:3243: 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:3267: checking for GNU ld" >&5
else
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:3270: 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:3305: 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:3321: 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:3357: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
rm -f conftestdata
ac_cv_prog_LN_S="ln -s"
else
ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
enableval="$enable_libtool_lock"
:
fi
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3406 "configure"' > conftest.$ac_ext
if { (eval echo configure:3407: \"$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:3428: 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 3433 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
lt_cv_cc_needs_belf=no
fi
rm -f conftest*
fi
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
esac
# Save cache, so that ltconfig can load it
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
O=lo
A=la
;;
*)
O=o
A=a
LIBTOOL=
;;
esac
# File name extension for static archive files, for those few places
# where they are treated differently from dynamic ones.
SA=a
#
# Here begins a very long section to determine the system's networking
# capabilities. The order of the tests is signficant.
#
#
# IPv6
#
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
enableval="$enable_ipv6"
:
fi
case "$enable_ipv6" in
yes|''|autodetect)
cat >> confdefs.h <<\EOF
#define WANT_IPV6 1
EOF
;;
no)
;;
esac
#
# We do the IPv6 compilation checking after libtool so that we can put
# the right suffix on the files.
#
echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
echo "configure:3591: checking for IPv6 structures" >&5
cat > conftest.$ac_ext <<EOF
#line 3593 "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:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
found_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
found_ipv6=no
fi
rm -f conftest*
#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests to LIBS is properly set.
#
echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
echo "configure:3621: checking for Kame IPv6 support" >&5
# Check whether --with-kame or --without-kame was given.
if test "${with_kame+set}" = set; then
withval="$with_kame"
use_kame="$withval"
else
use_kame="no"
fi
case "$use_kame" in
no)
;;
yes)
kame_path=/usr/local/v6
;;
*)
kame_path="$use_kame"
;;
esac
case "$use_kame" in
no)
echo "$ac_t""no" 1>&6
;;
*)
if test -f $kame_path/lib/libinet6.a; then
echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
LIBS="-L$kame_path/lib -linet6 $LIBS"
else
{ echo "configure: error: $kame_path/lib/libinet6.a not found.
Please choose the proper path with the following command:
configure --with-kame=PATH
" 1>&2; exit 1; }
fi
;;
esac
#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion. So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
*-bsdi4.[01]*)
ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
isc_netinet6in6_hack="#include <netinet6/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
isc_netinet6in6_hack=""
;;
esac
#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
*-UnixWare*)
ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
isc_netinetin6_hack="#include <netinet/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
isc_netinetin6_hack=""
;;
esac
#
# Now delve deeper into the suitability of the IPv6 support.
#
case "$found_ipv6" in
yes)
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
echo $ac_n "checking for in6_addr""... $ac_c" 1>&6
echo "configure:3711: checking for in6_addr" >&5
cat > conftest.$ac_ext <<EOF
#line 3713 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct in6_addr in6; return (0);
; return 0; }
EOF
if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
isc_in_addr6_hack=""
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
isc_in_addr6_hack="#define in6_addr in_addr6"
fi
rm -f conftest*
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3744: checking for in6addr_any" >&5
cat > conftest.$ac_ext <<EOF
#line 3746 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
$isc_in_addr6_hack
int main() {
struct in6_addr in6; in6 = in6addr_any; return (0);
; return 0; }
EOF
if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
fi
rm -f conftest*
echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
echo "configure:3776: checking for sin6_scope_id in struct sockaddr_in6" >&5
cat > conftest.$ac_ext <<EOF
#line 3778 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
fi
rm -f conftest*
LWRES_HAVE_SIN6_SCOPE_ID="$result"
echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
echo "configure:3806: checking for in6_pktinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3808 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct in6_pktinfo xyzzy; return (0);
; return 0; }
EOF
if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
fi
rm -f conftest*
;;
no)
ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
ISC_IPV6_H="ipv6.h"
ISC_IPV6_O="ipv6.$O"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
;;
esac
#
# Check for network functions that are often missing. We do this
# after the libtool checking, so we can put the right suffix on
# the files. It also needs to come after checking for a Kame add-on,
# which provides some (all?) of the desired functions.
#
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3873: checking for inet_ntop" >&5
cat > conftest.$ac_ext <<EOF
#line 3875 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_ntop(0, 0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3900: checking for inet_pton" >&5
cat > conftest.$ac_ext <<EOF
#line 3902 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_pton(0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3927: checking for inet_aton" >&5
cat > conftest.$ac_ext <<EOF
#line 3929 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
struct in_addr in; inet_aton(0, &in); return (0);
; return 0; }
EOF
if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
fi
rm -f conftest*
#
# Look for a 4.4BSD-style sa_len member in struct sockaddr.
#
case "$host" in
*-dec-osf*)
# Turn on 4.4BSD style sa_len support.
cat >> confdefs.h <<\EOF
#define _SOCKADDR_LEN 1
EOF
;;
esac
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:3972: checking for sa_len in struct sockaddr" >&5
cat > conftest.$ac_ext <<EOF
#line 3974 "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:3983: \"$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:4004: checking for struct msghdr flavor" >&5
cat > conftest.$ac_ext <<EOF
#line 4006 "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:4015: \"$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:4033: checking for type in_port_t" >&5
cat > conftest.$ac_ext <<EOF
#line 4035 "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:4044: \"$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:4062: checking for struct addrinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 4064 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
struct addrinfo a; return (0);
; return 0; }
EOF
if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
cat >> confdefs.h <<\EOF
#define HAVE_ADDRINFO 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
fi
rm -f conftest*
echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
echo "configure:4091: checking for int sethostent" >&5
cat > conftest.$ac_ext <<EOF
#line 4093 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = sethostent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:4101: \"$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:4116: checking for int endhostent" >&5
cat > conftest.$ac_ext <<EOF
#line 4118 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endhostent(); return(0);
; return 0; }
EOF
if { (eval echo configure:4126: \"$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:4141: checking for getnetbyaddr(in_addr_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 4143 "configure"
#include "confdefs.h"
#include <netdb.h>
struct netent *getnetbyaddr(in_addr_t, int);
int main() {
; return 0; }
EOF
if { (eval echo configure:4152: \"$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:4167: checking for int setnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 4169 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = setnetent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:4177: \"$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:4192: checking for int endnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 4194 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endnetent(); return(0);
; return 0; }
EOF
if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
echo "configure:4217: checking for gethostbyaddr(const void *, size_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 4219 "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:4228: \"$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:4243: checking for h_errno in netdb.h" >&5
cat > conftest.$ac_ext <<EOF
#line 4245 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
h_errno = 1; return(0);
; return 0; }
EOF
if { (eval echo configure:4253: \"$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:4268: 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 4273 "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:4296: \"$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:4317: 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 4322 "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:4345: \"$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:4366: 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 4371 "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:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
cat >> confdefs.h <<\EOF
#define HAVE_GETADDRINFO 1
EOF
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
fi
echo $ac_n "checking for gai_strerror""... $ac_c" 1>&6
echo "configure:4419: checking for gai_strerror" >&5
if eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4424 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gai_strerror(); 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 gai_strerror();
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_gai_strerror) || defined (__stub___gai_strerror)
choke me
#else
gai_strerror();
#endif
; return 0; }
EOF
if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_gai_strerror=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_gai_strerror=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'gai_strerror`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_GAISTRERROR 1
EOF
else
echo "$ac_t""no" 1>&6
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:4477: checking for interface list sysctl" >&5
cat > conftest.$ac_ext <<EOF
#line 4479 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#ifdef NET_RT_IFLIST
found_rt_iflist
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "found_rt_iflist" >/dev/null 2>&1; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_IFLIST_SYSCTL 1
EOF
else
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# Check for some other useful functions that are not ever-present.
#
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:4509: 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 4514 "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:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strsep=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_strsep=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
else
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:4558: 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 4563 "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:4586: \"$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:4615: 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 4621 "configure"
#include "confdefs.h"
main() { exit(!(sizeof(long long int) == sizeof(long int))); }
EOF
if { (eval echo configure:4625: \"$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:4645: 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 4650 "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:4673: \"$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:4699: 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 4704 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4709: \"$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:4739: 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 4744 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#
# BSD/OS, and perhaps some others, don't define rlim_t.
#
echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6
echo "configure:4780: checking for type rlim_t" >&5
cat > conftest.$ac_ext <<EOF
#line 4782 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
int main() {
rlim_t rl = 19671212; return (0);
; return 0; }
EOF
if { (eval echo configure:4792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_RLIM_T 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# Random remaining OS-specific issues involving compiler warnings.
# XXXDCL print messages to indicate some compensation is being done?
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
case "$host" in
*-bsdi3.1*)
hack_shutup_sputaux=yes
;;
*-bsdi4.0*)
hack_shutup_sigwait=yes
hack_shutup_sputaux=yes
;;
*-bsdi4.1*)
hack_shutup_stdargcast=yes
;;
*-solaris2.8)
hack_shutup_pthreadonceinit=yes
;;
esac
case "$hack_shutup_pthreadonceinit" in
yes)
#
# Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
;;
esac
case "$hack_shutup_sigwait" in
yes)
#
# Shut up a -Wmissing-prototypes warning for sigwait().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SIGWAIT 1
EOF
;;
esac
case "$hack_shutup_sputaux" in
yes)
#
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SPUTAUX 1
EOF
;;
esac
case "$hack_shutup_stdargcast" in
yes)
#
# Shut up a -Wcast-qual warning from va_start().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_STDARG_CAST 1
EOF
;;
esac
#
# Look for jade, preferring openjade if installed.
#
for ac_prog in openjade jade
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4885: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$JADE" in
/*)
ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_JADE="$JADE" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_JADE="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
JADE="$ac_cv_path_JADE"
if test -n "$JADE"; then
echo "$ac_t""$JADE" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$JADE" && break
done
test -n "$JADE" || JADE="jade"
#
# Look for SGML files. NetBSD has them under /usr/pkg/share
# (if installed), FreeBSD has them under /usr/local/share.
#
SGMLDIR=""
echo $ac_n "checking for SGML files""... $ac_c" 1>&6
echo "configure:4931: checking for SGML files" >&5
for d in /usr/pkg/share/sgml /usr/local/share/sgml
do
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
then
SGMLDIR=$d
echo "$ac_t""in $SGMLDIR" 1>&6
break
fi
done
if test "X$SGMLDIR" = "X"
then
echo "$ac_t"""not found"" 1>&6;
SGMLDIR=/usr/local/share/sgml
fi
#
# Look for XML files.
#
XGMLDIR=""
echo $ac_n "checking for XML files""... $ac_c" 1>&6
echo "configure:4957: checking for XML files" >&5
for d in /usr/pkg/share/xml /usr/local/share/xml
do
if test -f $d/dtd/docbook/docbookx.dtd
then
XMLDIR=$d
echo "$ac_t""in $XMLDIR" 1>&6
break
fi
done
if test "X$XMLDIR" = "X"
then
echo "$ac_t"""not found"" 1>&6;
XMLDIR=/usr/local/share/xml
fi
#
# Substitutions
#
BIND9_TOP_BUILDDIR=`pwd`
if test "X$srcdir" != "X"; then
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
else
BIND9_ISC_BUILDINCLUDE=""
BIND9_DNS_BUILDINCLUDE=""
BIND9_OMAPI_BUILDINCLUDE=""
BIND9_LWRES_BUILDINCLUDE=""
fi
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
. $srcdir/version
BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/api
LIBLWRES_API=$srcdir/lib/lwres/api
LIBOMAPI_API=$srcdir/lib/omapi/api
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
$openssl_makefiles
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/lwres/man/Makefile
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/check/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/system/tkey/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
doc/Makefile
doc/arm/Makefile
doc/arm/catalog
doc/arm/nominum-docbook-html.dsl
doc/arm/validate.sh
doc/arm/genhtml.sh
isc-config.sh
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@CCOPT@%$CCOPT%g
s%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@LN@%$LN%g
s%@ETAGS@%$ETAGS%g
s%@PERL@%$PERL%g
s%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
s%@dst_privateopenssl@%$dst_privateopenssl%g
s%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
s%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
s%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
s%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
s%@USE_GSSAPI@%$USE_GSSAPI%g
s%@DST_GSSAPI_INC@%$DST_GSSAPI_INC%g
s%@DNS_GSSAPI_LIBS@%$DNS_GSSAPI_LIBS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@ISC_PLATFORM_NEEDSYSSELECTH@%$ISC_PLATFORM_NEEDSYSSELECTH%g
s%@LWRES_PLATFORM_NEEDSYSSELECTH@%$LWRES_PLATFORM_NEEDSYSSELECTH%g
s%@ISC_PLATFORM_USETHREADS@%$ISC_PLATFORM_USETHREADS%g
s%@ISC_THREAD_DIR@%$ISC_THREAD_DIR%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@LN_S@%$LN_S%g
s%@LIBTOOL@%$LIBTOOL%g
s%@O@%$O%g
s%@A@%$A%g
s%@SA@%$SA%g
s%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
s%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
s%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
s%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
s%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
s%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
s%@ISC_PLATFORM_HAVEINADDR6@%$ISC_PLATFORM_HAVEINADDR6%g
s%@LWRES_PLATFORM_HAVEINADDR6@%$LWRES_PLATFORM_HAVEINADDR6%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
s%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
s%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
s%@ISC_PLATFORM_FIXIN6ISADDR@%$ISC_PLATFORM_FIXIN6ISADDR%g
s%@ISC_IPV6_H@%$ISC_IPV6_H%g
s%@ISC_IPV6_O@%$ISC_IPV6_O%g
s%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
s%@ISC_IPV6_C@%$ISC_IPV6_C%g
s%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
s%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
s%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
s%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
s%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
s%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
s%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
s%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
s%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
s%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
s%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
s%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
s%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
s%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
s%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
s%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
s%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
s%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
s%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
s%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
s%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
s%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
s%@JADE@%$JADE%g
s%@SGMLDIR@%$SGMLDIR%g
s%@XMLDIR@%$XMLDIR%g
s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
s%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
s%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
s%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
/@BIND9_INCLUDES@/r $BIND9_INCLUDES
s%@BIND9_INCLUDES@%%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
s%@BIND9_VERSION@%$BIND9_VERSION%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_API@%%g
/@LIBLWRES_API@/r $LIBLWRES_API
s%@LIBLWRES_API@%%g
/@LIBOMAPI_API@/r $LIBOMAPI_API
s%@LIBOMAPI_API@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
$openssl_makefiles
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/lwres/man/Makefile
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/check/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/system/tkey/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
doc/Makefile
doc/arm/Makefile
doc/arm/catalog
doc/arm/nominum-docbook-html.dsl
doc/arm/validate.sh
doc/arm/genhtml.sh
isc-config.sh
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
chmod a+x isc-config.sh
# Tell Emacs to edit this file in shell mode.
# Local Variables:
# mode: sh
# End: