configure revision badcc5419ccdba7635aa400a2c5b30e35af29b6f
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington# Copyright (C) 1996-2001 Internet Software Consortium.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# Permission to use, copy, modify, and distribute this software for any
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# purpose with or without fee is hereby granted, provided that the above
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# copyright notice and this permission notice appear in all copies.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# From configure.in Revision: 1.272
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## Copyright 1996, 1997, 1998, 1999, 2000, 2001
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is free software; you can redistribute it and/or modify
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## it under the terms of the GNU General Public License as published by
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the Free Software Foundation; either version 2 of the License, or
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## (at your option) any later version.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is distributed in the hope that it will be useful, but
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## General Public License for more details.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## You should have received a copy of the GNU General Public License
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## along with this program; if not, write to the Free Software
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## As a special exception to the GNU General Public License, if you
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## distribute this file as part of a program that contains a
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## configuration script generated by Autoconf, you may include it under
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the same distribution terms that you use for the rest of that program.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# serial 46 AC_PROG_LIBTOOL
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_CHECK_DLFCN
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# --------------------
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_CHECK_DLFCN
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ---------------------------------
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ---------------------------------
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_PROG_ECHO_BACKSLASH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# --------------------------
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Add some code to the start of the generated configure script which
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# will find an echo command which doesn;t interpret backslashes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_PROG_ECHO_BACKSLASH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ------------------------------------------------------------------
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_TRY_DLOPEN_SELF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBTOOL_DLOPEN_SELF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# -------------------
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBTOOL_DLOPEN_SELF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# _LT_AC_LTCONFIG_HACK
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_SHARED - implement the --enable-shared flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_SHARED[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_STATIC - implement the --enable-static flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBTOOL_PICMODE - implement the --with-pic flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Usage: AC_LIBTOOL_PICMODE[(MODE)]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Where MODE is either `yes' or `no'. If omitted, it defaults to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# `both'.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PATH_MAGIC - find a file program which can recognise a shared library
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_LD - find the path to the GNU or non-GNU linker
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PROG_LD_GNU -
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# -- PORTME Some linkers may need a different reload flag.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# -- PORTME fill in with the dynamic library characteristics
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_NM - find the path to a BSD-compatible name lister
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_CHECK_LIBM - check for math library
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl convenience library and INCLTDL to the include flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl header and adds --enable-ltdl-convenience to the
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# configure arguments. Note that LIBLTDL and INCLTDL are not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# with '${top_builddir}/' and INCLTDL will be prefixed with
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# '${top_srcdir}/' (note the single quotes!). If your package is not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# flat and you're not using automake, define top_builddir and
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# top_srcdir appropriately in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl installable library and INCLTDL to the include flags for
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# the libltdl header and adds --enable-ltdl-install to the configure
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# with '${top_srcdir}/' (note the single quotes!). If your package is
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# not flat and you're not using automake, define top_builddir and
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# top_srcdir appropriately in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# old names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This is just to silence aclocal about the macro not being used
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Guess values for system-dependent variables and create Makefiles.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# Generated automatically using autoconf version 2.13
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This configure script is free software; the Free Software Foundation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# gives unlimited permission to copy, distribute and modify it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Defaults:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_default_prefix=/usr/local
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any additions from configure.in:
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffac_help="$ac_help
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington --with-openssl=PATH Specify path for system-supplied openssl
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington (required for DNSSEC)"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonac_help="$ac_help
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington --with-randomdev=PATH Specify path for random device"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceac_help="$ac_help
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson --enable-threads enable multithreading"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonac_help="$ac_help
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobac_help="$ac_help
547f79ea44f0a91442fd942b04c11c1958f75136Andreas Gustafsson --with-purify[=PATH] use Rational purify"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --with-libtool use GNU libtool (following indented options supported)"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --enable-shared[=PKGS] build shared libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --enable-static[=PKGS] build static libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Find the correct PATH separator. Usually this is `:', but
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# DJGPP uses `;' like DOS.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X${PATH_SEPARATOR+set}" != Xset; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington UNAME=${UNAME-`uname 2>/dev/null`}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case X$UNAME in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-DOS) lt_cv_sys_path_separator=';' ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) lt_cv_sys_path_separator=':' ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check that we are running under the correct shell.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonSHELL=${CONFIG_SHELL-/bin/sh}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase X$ECHO in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonX*--fallback-echo)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Remove one level of quotation (which was required for Make).
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho=${ECHO-echo}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$1" = X--no-reexec; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Discard the --no-reexec flag, and continue.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shift
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelif test "X$1" = X--fallback-echo; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Avoid inline document here, it may be left over
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Yippee, $echo works!
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Restart under the correct shell.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exec $SHELL "$0" --no-reexec ${1+"$@"}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$1" = X--fallback-echo; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # used as fallback echo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shift
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exit 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The HP-UX ksh and POSIX shell print the target directory to stdout
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if CDPATH is set.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$ECHO"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X${echo_test_string+set}" != Xset; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# find a string as large as possible, as long as the shell can cope with it
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (echo_test_string="`eval $cmd`") 2>/dev/null &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_test_string="`eval $cmd`" &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = "X$echo_test_string"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The Solaris, AIX, and Digital Unix default echo programs unquote
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # backslashes. This makes it impossible to quote backslashes using
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # echo "$something" | sed 's/\\/\\\\/g'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington #
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # So, first we look for a working echo in the user's PATH.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for dir in $PATH /usr/ucb; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = "X$echo_test_string"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo="$dir/echo"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "X$echo" = Xecho; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We didn't find a better echo, so look for alternatives.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = "X$echo_test_string"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This shell has a builtin print -r that does the trick.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo='print -r'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$CONFIG_SHELL" != X/bin/ksh; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If we have ksh, try running configure again with it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export ORIGINAL_CONFIG_SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CONFIG_SHELL=/bin/ksh
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export CONFIG_SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Try using printf.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo='printf %s\n'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = "X$echo_test_string"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Cool, printf works
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = 'X\t' &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = "X$echo_test_string"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export CONFIG_SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington SHELL="$CONFIG_SHELL"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo="$CONFIG_SHELL $0 --fallback-echo"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = 'X\t' &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "X$echo_testing_string" = "X$echo_test_string"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo="$CONFIG_SHELL $0 --fallback-echo"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # maybe with a smaller string...
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington prev=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington prev="$cmd"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$prev" != 'sed 50q "$0"'; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo_test_string=`eval $prev`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export echo_test_string
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Oops. We lost completely, so just stick with echo.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo=echo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Copy echo and quote the copy suitably for passing to libtool from
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the Makefile, instead of quoting the original, which is used later.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonECHO=$echo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff --disable-libtool-lock avoid locking (might break parallel builds)"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_help="$ac_help
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --with-pic try to use only PIC/non-PIC objects [default=use both]"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsac_help="$ac_help
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews --enable-libbind build libbind [default=no]"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceac_help="$ac_help
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson --enable-ipv6 use IPv6 [default=autodetect]"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceac_help="$ac_help
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some variables set by options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The variables have the same names as the options, with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# dashes changed to underlines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleybuild=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycache_file=./config.cache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec_prefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyno_create=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleynonopt=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyno_recursion=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_prefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_suffix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_transform_name=s,x,x,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysilent=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysite=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytarget=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyverbose=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyx_includes=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyx_libraries=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleybindir='${exec_prefix}/bin'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysbindir='${exec_prefix}/sbin'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibexecdir='${exec_prefix}/libexec'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydatadir='${prefix}/share'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysysconfdir='${prefix}/etc'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysharedstatedir='${prefix}/com'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylocalstatedir='${prefix}/var'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibdir='${exec_prefix}/lib'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyincludedir='${prefix}/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyoldincludedir='/usr/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyinfodir='${prefix}/info'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymandir='${prefix}/man'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some other variables.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysubdirs=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyMFLAGS= MAKEFLAGS=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleySHELL=${CONFIG_SHELL-/bin/sh}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Maximum number of lines to put in a shell here document.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_max_here_lines=12
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_prev=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If the previous option needs an argument, assign it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "$ac_prev=\$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley continue
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg= ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=bindir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build | --build | --buil | --bui | --bu)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=build ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley build="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=cache_file ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cache_file="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=datadir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --da=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley datadir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -disable-* | --disable-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -enable-* | --enable-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec | --exe | --ex)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=exec_prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec=* | --exe=* | --ex=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec_prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -gas | --gas | --ga | --g)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-gas.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_gas=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Omit some internal or obsolete options to make the list less imposing.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This message is too long to be a string in the A/UX 3.1 sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyUsage: configure [options] [host]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyOptions: [defaults in brackets after descriptions]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyConfiguration:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --cache-file=FILE cache test results in FILE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --help print this message
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --no-create do not create output files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --quiet, --silent do not print \`checking...' messages
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --version print the version of autoconf that created configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDirectory and file names:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [$ac_default_prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [same as prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --datadir=DIR read-only architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/share]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/com]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --includedir=DIR C header files in DIR [PREFIX/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-transform-name=PROGRAM
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley run sed PROGRAM on installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyHost type:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --host=HOST configure for HOST [guessed]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyFeatures and packages:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-includes=DIR X include files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-libraries=DIR X library files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_help"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "--enable and --with options recognized:$ac_help"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -host | --host | --hos | --ho)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=host ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -host=* | --host=* | --hos=* | --ho=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley host="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir | --includedir | --includedi | --included | --include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --includ | --inclu | --incl | --inc)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=includedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --includ=* | --inclu=* | --incl=* | --inc=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley includedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=infodir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley infodir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libdir | --libdir | --libdi | --libd)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=libdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libdir=* | --libdir=* | --libdi=* | --libd=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley libdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --libexe | --libex | --libe)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=libexecdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --libexe=* | --libex=* | --libe=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley libexecdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate | --localstat | --localsta | --localst \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals | --local | --loca | --loc | --lo)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=localstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley localstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=mandir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mandir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -nfp | --nfp | --nf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --without-fp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_fp=no ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no_create=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no_recursion=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin | --oldi | --old | --ol | --o)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=oldincludedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley oldincludedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pre | --program-pr | --program-p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suf | --program-su | --program-s)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_suffix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_suffix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name | --program-transform-name \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam | --program-transform-na \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n | --program-transform- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform | --program-transfor \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transfo | --program-transf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-trans | --program-tran \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra | --program-tr | --program-t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_transform_name ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name=* | --program-transform-name=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam=* | --program-transform-na=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n=* | --program-transform-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform=* | --program-transfor=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transfo=* | --program-transf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-trans=* | --program-tran=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_transform_name="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | -silent | --silent | --silen | --sile | --sil)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley silent=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sbindir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sbi=* | --sb=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sbindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha | --sh)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sharedstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha=* | --sh=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sharedstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site | --site | --sit)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=site ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site=* | --site=* | --sit=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley site="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=srcdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon | --sysco | --sysc | --sys | --sy)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sysconfdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sysconfdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=target ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley target="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley verbose=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -with-* | --with-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -without-* | --without-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_x=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl | --x-inc | --x-in | --x-i)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_includes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_includes="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_libraries ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_libraries="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$nonopt" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley nonopt="$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$silent" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>&1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec 5>./config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "\
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" 1>&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure_args=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_arg
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_arg" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -rf conftest* confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho > confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_unique_file=lib/dns/name.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog=$0
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=$ac_confdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=..
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_srcdir_defaulted" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$prefix" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_site_file in $CONFIG_SITE; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . "$ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_exeext=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_objext=o
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley' ac_t=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n=-n ac_c= ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='\c' ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_aux_dir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/install-sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install-sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley elif test -f $ac_dir/install.sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install.sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_guess=$ac_aux_dir/config.guess
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_sub=$ac_aux_dir/config.sub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrewssubdirs="lib/bind"
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure we can run config.sub.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:928: checking host system type" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_alias=$host
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$host_alias" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyNONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case $nonopt in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley NONE)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) host_alias=$nonopt ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$host" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:950: checking whether ${MAKE-make} sets \${MAKE}" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff cat > conftestmake <<\EOF
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffall:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff @echo 'ac_maketemp="${MAKE}"'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffEOF
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$ac_maketemp"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff eval ac_cv_prog_make_${ac_make}_set=yes
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff eval ac_cv_prog_make_${ac_make}_set=no
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffrm -f conftestmake
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""yes" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff SET_MAKE=
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""no" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff SET_MAKE="MAKE=${MAKE-make}"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Extract the first word of "ranlib", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ranlib; ac_word=$2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:979: checking for $ac_word" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $ac_dummy; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_dir" && ac_dir=.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f $ac_dir/$ac_word; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="ranlib"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_ifs"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffRANLIB="$ac_cv_prog_RANLIB"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""$RANLIB" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""no" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Find a good install program. We prefer a C program (faster),
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# so one script is as good as another. But avoid the broken or
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# incompatible versions:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SysV /etc/install, /usr/sbin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SunOS /usr/etc/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# IRIX /sbin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AIX /bin/install
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AFS /usr/afsws/bin/install, which mishandles nonexistent args
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# ./install, which can be erroneously created by make from ./install.sh.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1018: checking for a BSD compatible install" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -z "$INSTALL"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_dir in $PATH; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Account for people who put trailing slashes in PATH elements.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$ac_dir/" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # OSF1 and SCO ODT 3.0 have their own names for install.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Don't use installbsd from OSF since it installs stuff as root
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # by default.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_prog in ginstall scoinst install; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f $ac_dir/$ac_prog; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test $ac_prog = install &&
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # AIX install. It has an incompatible calling convention.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff :
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_path_install="$ac_dir/$ac_prog -c"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break 2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_IFS"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test "${ac_cv_path_install+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff INSTALL="$ac_cv_path_install"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # As a last resort, use the slow shell script. We don't cache a
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # path for INSTALL within a source directory, because that will
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # break other packages using the cache if that directory is
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # removed, or if the path is relative.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff INSTALL="$ac_install_sh"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "$ac_t""$INSTALL" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# It thinks the first close brace ends the variable substitution.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian Wellington
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Extract the first word of "ar", so it can be a program name with args.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceset dummy ar; ac_word=$2
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1079: checking for $ac_word" >&5
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence case "$AR" in
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence /*)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff ?:/*)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence *)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_dummy="$PATH"
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff for ac_dir in $ac_dummy; do
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence test -z "$ac_dir" && ac_dir=.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence if test -f $ac_dir/$ac_word; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$ac_dir/$ac_word"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence break
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence fi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence done
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence IFS="$ac_save_ifs"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceesac
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencefi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrenceAR="$ac_cv_path_AR"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif test -n "$AR"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_t""$AR" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_t""no" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencefi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrenceARFLAGS="cruv"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson# The POSIX ln(1) program. Non-POSIX systems may substitute
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson# "copy" or something.
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas GustafssonLN=ln
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencecase "$AR" in
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence "")
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff { echo "configure: error:
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencear program not found. Please fix your PATH to include the directory in
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrencewhich ar resides, or set AR in the environment with the full path to ar.
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence" 1>&2; exit 1; }
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence ;;
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceesac
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley#
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley# Etags.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley#
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffor ac_prog in etags emacs-etags
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffdo
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# Extract the first word of "$ac_prog", so it can be a program name with args.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffset dummy $ac_prog; ac_word=$2
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1138: checking for $ac_word" >&5
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffelse
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff case "$ETAGS" in
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff /*)
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ;;
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff ?:/*)
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ;;
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff *)
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_dummy="$PATH"
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff for ac_dir in $ac_dummy; do
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff test -z "$ac_dir" && ac_dir=.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -f $ac_dir/$ac_word; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_ETAGS="$ac_dir/$ac_word"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff break
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff fi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff done
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff IFS="$ac_save_ifs"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ;;
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffesac
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael GraffETAGS="$ac_cv_path_ETAGS"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test -n "$ETAGS"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff echo "$ac_t""$ETAGS" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffelse
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff echo "$ac_t""no" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafftest -n "$ETAGS" && break
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffdone
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
ce8c568e0d6106bb87069453505e09bc66754b40Andreas Gustafsson
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley#
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley# GNU emacs etags, and it requires the -L flag.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley#
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyif test "X$ETAGS" != "X"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1180: checking for Exuberant Ctags etags" >&5
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley echo "$ac_t""yes" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley ETAGS="$ETAGS -L"
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley else
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley echo "$ac_t""no" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley fi
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyfi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# Perl is optional; it is used only by some of the system test scripts.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfor ac_prog in perl5 perl
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssondo
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# Extract the first word of "$ac_prog", so it can be a program name with args.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonset dummy $ac_prog; ac_word=$2
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1198: checking for $ac_word" >&5
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonelse
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson case "$PERL" in
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson /*)
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ;;
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff ?:/*)
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ;;
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson *)
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_dummy="$PATH"
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff for ac_dir in $ac_dummy; do
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson test -z "$ac_dir" && ac_dir=.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson if test -f $ac_dir/$ac_word; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ac_cv_path_PERL="$ac_dir/$ac_word"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson break
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson fi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson done
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="$ac_save_ifs"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ;;
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonesac
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas GustafssonPERL="$ac_cv_path_PERL"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif test -n "$PERL"; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson echo "$ac_t""$PERL" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonelse
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson echo "$ac_t""no" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssontest -n "$PERL" && break
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssondone
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Special processing of paths depending on whether --prefix,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# --sysconfdir or --localstatedir arguments were given. What's
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# desired is some compatability with the way previous versions
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# of BIND built; they defaulted to /usr/local for most parts of
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# the installation, but named.boot/named.conf was in /etc
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# and named.pid was in /var/run.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# So ... if none of --prefix, --sysconfdir or --localstatedir are
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# specified, set things up that way. If --prefix is given, use
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# it for sysconfdir and localstatedir the way configure normally
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# would. To change the prefix for everything but leave named.conf
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# in /etc or named.pid in /var/run, then do this the usual configure way:
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# ./configure --prefix=/somewhere --sysconfdir=/etc
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# ./configure --prefix=/somewhere --localstatedir=/var
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# To put named.conf and named.pid in /usr/local with everything else,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# set the prefix explicitly to /usr/local even though that's the default:
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# ./configure --prefix=/usr/local
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrencecase "$prefix" in
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence NONE)
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence case "$sysconfdir" in
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence '${prefix}/etc')
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence sysconfdir=/etc
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence ;;
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence esac
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence case "$localstatedir" in
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence '${prefix}/var')
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence localstatedir=/var
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence ;;
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence esac
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence ;;
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceesac
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Make sure INSTALL uses an absolute path, else it will be wrong in all
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# configure based on the location of the file where it is substituted.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# subdirectory of install-sh, This relative path will be wrong for all
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# directories more than one level down from install-sh.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrencecase "$INSTALL" in
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence /*)
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ;;
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence *)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence #
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # Not all systems have dirname.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence #
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence test "$ac_dir" = "$ac_prog" && ac_dir=.
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence INSTALL="$ac_dir/$ac_prog"
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ;;
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceesac
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# On these hosts, we really want to use cc, not gcc, even if it is
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# found. The gcc that these systems have will not correctly handle
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# pthreads.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# However, if the user sets $CC to be something, let that override
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# our change.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffif test "X$CC" = "X" ; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff case "$host" in
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *-dec-osf*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
1ce985ab3c6670662d555c108b35fed84a6a1001David Lawrence *-solaris*)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # Use Sun's cc if it is available, but watch
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # out for /usr/ucb/cc; it will never be the right
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # compiler to use.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence #
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # If setting CC here fails, the AC_PROG_CC done
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # below might still find gcc.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence for ac_dir in $PATH; do
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence test -z "$ac_dir" && ac_dir=.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence case "$ac_dir" in
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence /usr/ucb)
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence # exclude
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ;;
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence *)
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence if test -f "$ac_dir/cc"; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence CC="$ac_dir/cc"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence break
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence fi
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ;;
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence esac
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence done
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence IFS="$ac_save_ifs"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *-hp-hpux*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff mips-sgi-irix*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff esac
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Grafffi
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "gcc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy gcc; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1345: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="gcc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCC="$ac_cv_prog_CC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$CC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy cc; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1375: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog_rejected=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog_rejected=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley continue
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_prog_rejected = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We found a bogon in the path, so make sure we never use it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley set dummy $ac_cv_prog_CC
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test $# -gt 0; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We chose a different compiler from the bogus one.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # However, it has the same basename, so the bogon will be chosen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # first if we set CC to just the basename; use the full file name.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley set dummy "$ac_dir/$ac_word" "$@"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$@"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCC="$ac_cv_prog_CC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$CC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -z "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley case "`uname -s`" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley *win32* | *WIN32*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Extract the first word of "cl", so it can be a program name with args.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyset dummy cl; ac_word=$2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1426: checking for $ac_word" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $ac_dummy; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test -z "$ac_dir" && ac_dir=.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -f $ac_dir/$ac_word; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_CC="cl"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley done
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="$ac_save_ifs"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCC="$ac_cv_prog_CC"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -n "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""$CC" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley esac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1458: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat > conftest.$ac_ext << EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1469 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain(){return(0);}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_works=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If we can't run a trivial program, we are probably using a cross compiler.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (./conftest; exit) 2>/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_cross=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_cross=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_works=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_ext=c
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_cpp='$CPP $CPPFLAGS'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_prog_cc_works = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1500: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1505: checking whether we are using GNU C" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.c <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#ifdef __GNUC__
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley yes;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_gcc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_gcc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_gcc" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_prog_gcc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley GCC=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley GCC=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_test_CFLAGS="${CFLAGS+set}"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_save_CFLAGS="$CFLAGS"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCFLAGS=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1533: checking whether ${CC-cc} accepts -g" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo 'void f(){}' > conftest.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_g=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_g=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "$ac_test_CFLAGS" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CFLAGS="$ac_save_CFLAGS"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelif test $ac_cv_prog_cc_g = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test "$GCC" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-g -O2"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CFLAGS="-g"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test "$GCC" = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CFLAGS="-O2"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CFLAGS=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1566: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CPP" && test -d "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1581 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews{ (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E -traditional-cpp"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1598 "configure"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include <assert.h>
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerSyntax Error
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews{ (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_err"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_err" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CPP="${CC-cc} -nologo -E"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1615 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <assert.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleySyntax Error
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews{ (eval echo configure:1621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=/lib/cpp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CPP="$CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="$ac_cv_prog_CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CPP="$CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$CPP" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1646: checking for ANSI C header files" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1651 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdarg.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <float.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews{ (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1676 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "memchr" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1694 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "free" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$cross_compiling" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1715 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexit (0); }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleythen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_stdc" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h sys/select.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1754: checking for $ac_hdr" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1759 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews{ (eval echo configure:1764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1792: checking for working const" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1797 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Ultrix mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytypedef int charset[2]; const charset x;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* SunOS 4.1.1 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar const *const *ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar **p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* NEC SVR4.0.2 mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct point {int x, y;};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystatic struct point const zero = {0,0};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* AIX XL C 1.02.0.0 rejects this.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley It does not let you subtract one const X* pointer from another in an arm
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley of an if-expression whose if-part is not a constant expression */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyconst char *g = "string";
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = &g + (g ? g-g : 0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* HPUX 7.0 cc rejects these. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley++ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyp = (char**) ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = (char const *const *) p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* SCO 3.2v4 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char *t;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *t++ = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley int x[] = {25, 17};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int *foo = &x[0];
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++foo;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley iptr p = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s { int j; const int *ap[3]; };
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_const" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_c_const = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#define const
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for inline""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1867: checking for inline" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_kw in inline __inline__ __inline; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1874 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:1881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=$ac_kw; break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_inline" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$ac_cv_c_inline" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley inline | yes) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no) cat >> confdefs.h <<\EOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#define inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline $ac_cv_c_inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# UnixWare 7.1.1 with the feature supplement to the UDK compiler
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# is reported to not support "static inline" (RT #1212).
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for static inline breakage""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1912: checking for static inline breakage" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssoncat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1914 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint main() {
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington foo1();
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington }
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington static inline int foo1() {
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington return 0;
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington }
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington static inline int foo2() {
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington return foo1();
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson; return 0; }
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas GustafssonEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:1931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""no" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat conftest.$ac_ext >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson rm -rf conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""yes" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson cat >> confdefs.h <<\EOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#define inline
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas GustafssonEOF
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonfi
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonrm -f conftest*
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for size_t""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1947: checking for size_t" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1952 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if STDC_HEADERS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stddef.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_type_size_t" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_type_size_t = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define size_t unsigned
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:1980: checking whether time.h and sys/time.h may both be included" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 1985 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct tm *tp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_time" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_time = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TIME_WITH_SYS_TIME 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsecho $ac_n "checking for long long""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:2015: checking for long long" >&5
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewscat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 2017 "configure"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews#include "confdefs.h"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsint main() {
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewslong long i = 0; return (0);
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews; return 0; }
754cca729dd82ae8363917dc00ad44f9d900635bMark AndrewsEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews rm -rf conftest*
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews echo "$ac_t""yes" 1>&6
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewselse
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews echo "configure: failed program was:" >&5
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews cat conftest.$ac_ext >&5
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews rm -rf conftest*
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews echo "$ac_t""no" 1>&6
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsfi
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsrm -f conftest*
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# check if we need to #include sys/select.h explicitly
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewscase $ac_cv_header_unistd_h in
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsyes)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsecho $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:2044: checking if unistd.h defines fd_set" >&5
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewscat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 2046 "configure"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include "confdefs.h"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include <unistd.h>
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsint main() {
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfd_set read_set; return (0);
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews; return 0; }
7817a6f41b9e16da0325252ec24226b40f15a923Mark AndrewsEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews rm -rf conftest*
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews echo "$ac_t""yes" 1>&6
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewselse
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews echo "configure: failed program was:" >&5
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews cat conftest.$ac_ext >&5
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews rm -rf conftest*
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews echo "$ac_t""no" 1>&6
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews case ac_cv_header_sys_select_h in
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews yes)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ;;
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews no)
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews { echo "configure: error: need either working unistd.h or sys/select.h" 1>&2; exit 1; }
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ;;
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews esac
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsfi
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsrm -f conftest*
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ;;
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsno)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews case ac_cv_header_sys_select_h in
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews yes)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ;;
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews no)
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews { echo "configure: error: need either unistd.h or sys/select.h" 1>&2; exit 1; }
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ;;
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews esac
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews ;;
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsesac
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Find the machine's endian flavor.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsecho "configure:2096: checking whether byte ordering is bigendian" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_cv_c_bigendian=unknown
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# See if sys/param.h defines the BYTE_ORDER macro.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 2103 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/types.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/param.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson bogus endian macros
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#endif
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson; return 0; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson # It does; now see whether it defined to BIG_ENDIAN or not.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 2118 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/types.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/param.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint main() {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#if BYTE_ORDER != BIG_ENDIAN
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson not big endian
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#endif
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson; return 0; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_cv_c_bigendian=yes
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat conftest.$ac_ext >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -rf conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_cv_c_bigendian=no
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat conftest.$ac_ext >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -f conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test $ac_cv_c_bigendian = unknown; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "$cross_compiling" = yes; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat > conftest.$ac_ext <<EOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#line 2149 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonmain () {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson /* Are we little or big endian? From Harbison&Steele. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson union
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson {
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson long l;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson char c[sizeof (long)];
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson } u;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson u.l = 1;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson exit (u.c[sizeof (long) - 1] == 1);
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson}
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonthen
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_cv_c_bigendian=no
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat conftest.$ac_ext >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson rm -fr conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_cv_c_bigendian=yes
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonrm -fr conftest*
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "$ac_t""$ac_cv_c_bigendian" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test $ac_cv_c_bigendian = yes; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat >> confdefs.h <<\EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define WORDS_BIGENDIAN 1
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# Subroutine for searching for an ordinary file (e.g., a stylesheet)
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# in a number of directories:
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# If the file FILENAME is found in one of the DIRECTORIES, the shell
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# variable VARIABLE is defined to its absolute pathname. Otherwise,
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# it is set to FILENAME, with no directory prefix (that's not terribly
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# useful, but looks less confusing in substitutions than leaving it
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# empty). The variable VARIABLE will be substituted into output files.
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# was --with-openssl specified?
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho $ac_n "checking for OpenSSL library""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2205: checking for OpenSSL library" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Check whether --with-openssl or --without-openssl was given.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "${with_openssl+set}" = set; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson withval="$with_openssl"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson use_openssl="$withval"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson use_openssl="no"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncase "$use_openssl" in
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson no)
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington echo "$ac_t""no" 1>&6
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington DST_OPENSSL_INC=""
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington USE_OPENSSL=""
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson *)
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t""yes" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if test "$use_openssl" = "yes"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson then
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson # User did not specify a path - guess it
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson openssldirs="/usr /usr/local /usr/pkg"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonuse_openssl=""
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho $ac_n "checking for include/openssl/opensslv.h""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2230: checking for include/openssl/opensslv.h" >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonfor d in $openssldirs
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssondo
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson f=$d/include/openssl/opensslv.h
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if test -f $f
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson then
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson use_openssl=$f
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t""$f" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson break
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson fi
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssondone
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif test "X$use_openssl" = "X"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonthen
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t"""not found"" 1>&6;
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson use_openssl=include/openssl/opensslv.h
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonfi
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if test "$use_openssl" = "include/openssl/opensslv.h"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson then
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson { echo "configure: error: openssl was not fine in any of $openssldirs; use --with-openssl=/path" 1>&2; exit 1; }
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson fi
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson fi
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington USE_OPENSSL='-DOPENSSL'
ff6b5e8406167f7cb32c0ec3fab75851c9f37b1aBrian Wellington DST_OPENSSL_INC="-I$use_openssl/include"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo $ac_n "checking OpenSSL library version""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2260: checking OpenSSL library version" >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson saved_cflags="$CFLAGS"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson saved_libs="$LIBS"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson CFLAGS="$CFLAGS $DST_OPENSSL_INC"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson LIBS="$LIBS $DNS_OPENSSL_LIBS"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if test "$cross_compiling" = yes; then
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonelse
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2269 "configure"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include "confdefs.h"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include <openssl/opensslv.h>
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonint main() {
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if (OPENSSL_VERSION_NUMBER >= 0x0090500fL)
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson return (0);
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson return (1);
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson}
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonthen
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t""ok" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonelse
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "configure: failed program was:" >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson cat conftest.$ac_ext >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson rm -fr conftest*
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "$ac_t""not compatible" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson { echo "configure: error: you need OpenSSL 0.9.5 or newer" 1>&2; exit 1; }
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonfi
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonrm -fr conftest*
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonfi
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson CFLAGS="$saved_cflags"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson LIBS="$saved_libs"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonesac
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# This would include the system openssl path (and linker options to use
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# it as needed) if it is found.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellington
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# was --with-gssapi specified?
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#AC_MSG_CHECKING(for GSSAPI library)
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#AC_ARG_WITH(gssapi,
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#[ --with-gssapi=PATH Specify path for system-supplied GSSAPI],
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# use_gssapi="$withval", use_gssapi="no")
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#case "$use_gssapi" in
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# no)
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# USE_GSSAPI=''
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# DST_GSSAPI_INC=''
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# DNS_GSSAPI_LIBS=''
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# AC_MSG_RESULT(not specified)
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# ;;
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# yes)
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# AC_MSG_ERROR([--with-gssapi must specify a path])
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# ;;
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# *)
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# USE_GSSAPI='-DGSSAPI'
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# DST_GSSAPI_INC="-I$use_gssapi/include"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# AC_MSG_RESULT(using gssapi from $use_gssapi/lib and $use_gssapi/include)
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# ;;
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#esac
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
b0954235fd6d64aab3c81c19c656af776095a63fBrian WellingtonUSE_GSSAPI=''
b0954235fd6d64aab3c81c19c656af776095a63fBrian WellingtonDST_GSSAPI_INC=''
b0954235fd6d64aab3c81c19c656af776095a63fBrian WellingtonDNS_GSSAPI_LIBS=''
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# was --with-randomdev specified?
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for random device""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2345: checking for random device" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Check whether --with-randomdev or --without-randomdev was given.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif test "${with_randomdev+set}" = set; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson withval="$with_randomdev"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson use_randomdev="$withval"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonelse
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson use_randomdev="unspec"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonfi
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssoncase "$use_randomdev" in
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson unspec)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson case "$host" in
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson *-openbsd*)
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington devrandom=/dev/srandom
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson *)
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington devrandom=/dev/random
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson esac
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonac_safe=`echo "$devrandom" | sed 'y%./+-%__p_%'`
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho $ac_n "checking for $devrandom""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2368: checking for $devrandom" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonelse
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington if test "$cross_compiling" = yes; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonelse
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington if test -r $devrandom; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington eval "ac_cv_file_$ac_safe=yes"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington else
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington eval "ac_cv_file_$ac_safe=no"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington fi
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonfi
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonfi
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonif eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "$ac_t""yes" 1>&6
898ad3e515d05d77c55976041658b22ce995b777Brian Wellington cat >> confdefs.h <<EOF
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#define PATH_RANDOMDEV "$devrandom"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian WellingtonEOF
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonelse
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington echo "$ac_t""no" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonfi
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson yes)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson { echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellington no)
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellington echo "$ac_t""disabled" 1>&6
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellington ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson *)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson cat >> confdefs.h <<EOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define PATH_RANDOMDEV "$use_randomdev"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas GustafssonEOF
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "$ac_t""using "$use_randomdev"" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ;;
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonesac
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Begin pthreads checking.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# First, decide whether to use multithreading or not.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# Enable multithreading by default on systems where it is known
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# to work well, and where debugging of multithreaded programs
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# is supported.
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking whether to build with thread support""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2420: checking whether to build with thread support" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssoncase $host in
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-dec-osf*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=true ;;
1925c92ec1b38b1516a2beb410c3d62e9f6998cdBrian Wellington*-solaris-2[0-6])
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # Thread signals are broken on Solaris 2.6; they are sometimes
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # delivered to the wrong thread.
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
1925c92ec1b38b1516a2beb410c3d62e9f6998cdBrian Wellington*-solaris-2*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=true ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-ibm-aix*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=true ;;
3b520900319f8982de2650705907fb452bd836c8Brian Wellington*-hp-hpux*)
3b520900319f8982de2650705907fb452bd836c8Brian Wellington use_threads=true ;;
3b520900319f8982de2650705907fb452bd836c8Brian Wellington*-sgi-irix*)
3b520900319f8982de2650705907fb452bd836c8Brian Wellington use_threads=true ;;
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence*-sco-sysv*uw*)
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence # UnixWare
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-netbsd*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # Socket I/O optimizations introduced in 9.2 expose a
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # bug in unproven-pthreads; see PR #12650
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-openbsd*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # OpenBSD users have reported that named dumps core on
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # startup when built with threads.
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-freebsd*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-bsdi*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # Thread signals do not appear to work reliably on BSDI.
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*-linux*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # Threads are disabled on Linux by default because most
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # Linux kernels produce unusable core dumps from multithreaded
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # programs, and because of limitations in setuid().
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson*)
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson use_threads=false ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonesac
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Check whether --enable-threads or --disable-threads was given.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif test "${enable_threads+set}" = set; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence enableval="$enable_threads"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence :
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencecase "$enable_threads" in
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson yes)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence use_threads=true
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence no)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence use_threads=false
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson '')
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson # Use system-dependent default
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *)
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews { echo "configure: error: --enable-threads takes yes or no" 1>&2; exit 1; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceesac
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif $use_threads
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonthen
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""yes" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonelse
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "$ac_t""no" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonfi
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson
9ce476812c93a1bb8b416adbe707ee5000a015f1Andreas Gustafssonif $use_threads
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonthen
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Search for / configure pthreads in a system-dependent fashion.
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson case "$host" in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-netbsd*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # NetBSD has multiple pthreads implementations. The
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # recommended one to use is "unproven-pthreads". The
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # older "mit-pthreads" may also work on some NetBSD
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # versions. The PTL2 thread library does not
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # currently work with bind9, but can be chosen with
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # the --with-ptl2 option for those who wish to
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # experiment with it.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CC="gcc"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2506: checking which NetBSD thread library to use" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Check whether --with-ptl2 or --without-ptl2 was given.
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonif test "${with_ptl2+set}" = set; then
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson withval="$with_ptl2"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson use_ptl2="$withval"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonelse
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson use_ptl2="no"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonfi
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson : ${LOCALBASE:=/usr/pkg}
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if test "X$use_ptl2" = "Xyes"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""PTL2" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CC=ptlgcc
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson else
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if test ! -d $LOCALBASE/pthreads
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson then
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington echo "$ac_t""none" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson { echo "configure: error: "could not find thread libraries"" 1>&2; exit 1; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson fi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington if $use_threads
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington then
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington pkg="$LOCALBASE/pthreads"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington lib1="-L$pkg/lib -Wl,-R$pkg/lib"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington lib2="-lpthread -lm -lgcc -lpthread"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington LIBS="$lib1 $lib2 $LIBS"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington CPPFLAGS="$CPPFLAGS -I$pkg/include"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington fi
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson fi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *)
ce7994d137a013133e874b92604183923267fc94Brian Wellington echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2545: checking for pthread_create in -lpthread" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_save_LIBS="$LIBS"
ce7994d137a013133e874b92604183923267fc94Brian WellingtonLIBS="-lpthread $LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2553 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar pthread_create();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceint main() {
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencepthread_create()
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_lib_$ac_lib_var=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceLIBS="$ac_save_LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat >> confdefs.h <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#define $ac_tr_lib 1
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
ce7994d137a013133e874b92604183923267fc94Brian Wellington LIBS="-lpthread $LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""no" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2590: checking for __pthread_create in -lpthread" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence ac_save_LIBS="$LIBS"
ce7994d137a013133e874b92604183923267fc94Brian WellingtonLIBS="-lpthread $LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2598 "configure"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include "confdefs.h"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* We use char because int might match the return type of a gcc2
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar __pthread_create();
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceint main() {
ce7994d137a013133e874b92604183923267fc94Brian Wellington__pthread_create()
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence; return 0; }
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "configure: failed program was:" >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence cat conftest.$ac_ext >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencefi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencerm -f conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceLIBS="$ac_save_LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencefi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""yes" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence cat >> confdefs.h <<EOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#define $ac_tr_lib 1
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
ce7994d137a013133e874b92604183923267fc94Brian Wellington LIBS="-lpthread $LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2635: checking for __pthread_create_system in -lpthread" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2643 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar __pthread_create_system();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
ce7994d137a013133e874b92604183923267fc94Brian Wellington__pthread_create_system()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2680: checking for pthread_create in -lc_r" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ac_save_LIBS="$LIBS"
ce7994d137a013133e874b92604183923267fc94Brian WellingtonLIBS="-lc_r $LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2688 "configure"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include "confdefs.h"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* We use char because int might match the return type of a gcc2
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar pthread_create();
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyint main() {
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonpthread_create()
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley; return 0; }
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "configure: failed program was:" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat conftest.$ac_ext >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyrm -f conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyLIBS="$ac_save_LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "$ac_t""yes" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/^a-zA-Z0-9_/_/g' \
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define $ac_tr_lib 1
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
ce7994d137a013133e874b92604183923267fc94Brian Wellington LIBS="-lc_r $LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "$ac_t""no" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonecho $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2725: checking for pthread_create in -lc" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_save_LIBS="$LIBS"
ce7994d137a013133e874b92604183923267fc94Brian WellingtonLIBS="-lc $LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2733 "configure"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include "confdefs.h"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* We use char because int might match the return type of a gcc2
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar pthread_create();
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyint main() {
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonpthread_create()
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley; return 0; }
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "configure: failed program was:" >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat conftest.$ac_ext >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyrm -f conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyLIBS="$ac_save_LIBS"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""yes" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellington ac_tr_lib=HAVE_LIB`echo c | sed -e 's/^a-zA-Z0-9_/_/g' \
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat >> confdefs.h <<EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define $ac_tr_lib 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
ce7994d137a013133e874b92604183923267fc94Brian Wellington LIBS="-lc $LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""no" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson{ echo "configure: error: "could not find thread libraries"" 1>&2; exit 1; }
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellingtonfi
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson esac
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif $use_threads
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonthen
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # We'd like to use sigwait() too
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2790: checking for sigwait in -lc" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_save_LIBS="$LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceLIBS="-lc $LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2798 "configure"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#include "confdefs.h"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence/* We use char because int might match the return type of a gcc2
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence builtin and then its argument prototype would still apply. */
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencechar sigwait();
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceint main() {
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencesigwait()
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence; return 0; }
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence rm -rf conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "configure: failed program was:" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence cat conftest.$ac_ext >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence rm -rf conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencerm -f conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceLIBS="$ac_save_LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "$ac_t""yes" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence cat >> confdefs.h <<\EOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#define HAVE_SIGWAIT 1
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceEOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2831: checking for sigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="-lpthread $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2839 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar sigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleysigwait()
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "configure: failed program was:" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""yes" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2872: checking for _Psigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="-lpthread $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2880 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar _Psigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley_Psigwait()
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "configure: failed program was:" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""yes" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2921: checking for pthread_attr_getstacksize" >&5
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2926 "configure"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#include "confdefs.h"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* System header to define __stub macros and hopefully few prototypes,
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington which can conflict with char pthread_attr_getstacksize(); below. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#include <assert.h>
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* We use char because int might match the return type of a gcc2
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington builtin and then its argument prototype would still apply. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonchar pthread_attr_getstacksize();
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonint main() {
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington/* The GNU C library defines this for functions which it implements
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington to always fail with ENOSYS. Some functions are actually named
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington something starting with __ and the normal name is an alias. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonchoke me
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#else
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonpthread_attr_getstacksize();
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#endif
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington; return 0; }
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington rm -rf conftest*
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington eval "ac_cv_func_pthread_attr_getstacksize=yes"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo "configure: failed program was:" >&5
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington cat conftest.$ac_ext >&5
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington rm -rf conftest*
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington eval "ac_cv_func_pthread_attr_getstacksize=no"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonrm -f conftest*
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif eval "test \"`echo '$ac_cv_func_'pthread_attr_getstacksize`\" = yes"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo "$ac_t""yes" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington cat >> confdefs.h <<\EOF
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian WellingtonEOF
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington echo "$ac_t""no" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonfi
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Additional OS-specific issues related to pthreads and sigwait.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson case "$host" in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # One more place to look for sigwait.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington *-freebsd*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:2981: checking for sigwait in -lc_r" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo $ac_n "(cached) $ac_c" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyelse
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ac_save_LIBS="$LIBS"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyLIBS="-lc_r $LIBS"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 2989 "configure"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley/* Override any gcc2 internal prototype to avoid an error. */
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley/* We use char because int might match the return type of a gcc2
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley builtin and then its argument prototype would still apply. */
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleychar sigwait();
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyint main() {
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleysigwait()
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley; return 0; }
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyelse
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "configure: failed program was:" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley cat conftest.$ac_ext >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley eval "ac_cv_lib_$ac_lib_var=no"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyfi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyrm -f conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyLIBS="$ac_save_LIBS"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyfi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "$ac_t""yes" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley cat >> confdefs.h <<\EOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#define HAVE_SIGWAIT 1
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyEOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyelse
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "$ac_t""no" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyfi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence # BSDI 3.0 through 4.0.1 needs pthread_init() to be
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # called before certain pthreads calls. This is deprecated
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # in BSD/OS 4.1.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence *-bsdi3.*|*-bsdi4.0*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat >> confdefs.h <<\EOF
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#define NEED_PTHREAD_INIT 1
566a01eb745d49bd866971062388cd11d525b60dDavid LawrenceEOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # LinuxThreads requires some changes to the way we
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # deal with signals.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-linux*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat >> confdefs.h <<\EOF
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#define HAVE_LINUXTHREADS 1
566a01eb745d49bd866971062388cd11d525b60dDavid LawrenceEOF
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Ensure the right sigwait() semantics on Solaris and make
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # sure we call pthread_setconcurrency.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-solaris*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define _POSIX_PTHREAD_SEMANTICS 1
b06bc71d84698c480410478863d9b51589fa6d0cDavid LawrenceEOF
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3055: checking for pthread_setconcurrency" >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffelse
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3060 "configure"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include "confdefs.h"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* System header to define __stub macros and hopefully few prototypes,
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff which can conflict with char pthread_setconcurrency(); below. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include <assert.h>
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* Override any gcc2 internal prototype to avoid an error. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* We use char because int might match the return type of a gcc2
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff builtin and then its argument prototype would still apply. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffchar pthread_setconcurrency();
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffint main() {
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff/* The GNU C library defines this for functions which it implements
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff to always fail with ENOSYS. Some functions are actually named
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff something starting with __ and the normal name is an alias. */
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffchoke me
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#else
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffpthread_setconcurrency();
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#endif
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff; return 0; }
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff rm -rf conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff eval "ac_cv_func_pthread_setconcurrency=yes"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffelse
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "configure: failed program was:" >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff cat conftest.$ac_ext >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff rm -rf conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff eval "ac_cv_func_pthread_setconcurrency=no"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Grafffi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffrm -f conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Grafffi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "$ac_t""yes" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff cat >> confdefs.h <<\EOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#define CALL_PTHREAD_SETCONCURRENCY 1
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffEOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffelse
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "$ac_t""no" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Grafffi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # UnixWare does things its own way.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence *-sco-sysv*uw*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat >> confdefs.h <<\EOF
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#define HAVE_UNIXWARE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson esac
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Look for sysconf to allow detection of the number of processors.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson #
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for sysconf""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3121: checking for sysconf" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonelse
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3126 "configure"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include "confdefs.h"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington which can conflict with char sysconf(); below. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <assert.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* We use char because int might match the return type of a gcc2
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington builtin and then its argument prototype would still apply. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonchar sysconf();
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonint main() {
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington/* The GNU C library defines this for functions which it implements
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington to always fail with ENOSYS. Some functions are actually named
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington something starting with __ and the normal name is an alias. */
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#if defined (__stub_sysconf) || defined (__stub___sysconf)
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonchoke me
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#else
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonsysconf();
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#endif
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington; return 0; }
7005cfed8cd3296d356883dcb414979f22e06b13Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington eval "ac_cv_func_sysconf=yes"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonelse
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "configure: failed program was:" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat conftest.$ac_ext >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington eval "ac_cv_func_sysconf=no"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonrm -f conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""yes" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat >> confdefs.h <<\EOF
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#define HAVE_SYSCONF 1
7005cfed8cd3296d356883dcb414979f22e06b13Brian WellingtonEOF
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonelse
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""no" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if test "X$GCC" = "Xyes"; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson case "$host" in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-freebsd*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CC="$CC -pthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CCOPT="$CCOPT -pthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-openbsd*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CC="$CC -pthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CCOPT="$CCOPT -pthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-solaris*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson LIBS="$LIBS -lthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-ibm-aix*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson esac
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson else
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson case $host in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-dec-osf*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CC="$CC -pthread"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CCOPT="$CCOPT -pthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-solaris*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CC="$CC -mt"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CCOPT="$CCOPT -mt"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson *-ibm-aix*)
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence *-sco-sysv*uw*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CC="$CC -Kthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson CCOPT="$CCOPT -Kthread"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson esac
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson fi
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halley ALWAYS_DEFINES="-D_REENTRANT"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington thread_dir=pthreads
65e218048d7be538af52710195e3ccc7d1427402Brian Wellingtonelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington thread_dir=nothreads
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halley ALWAYS_DEFINES=""
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonfi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halley
65e218048d7be538af52710195e3ccc7d1427402Brian WellingtonISC_THREAD_DIR=$thread_dir
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# flockfile is usually provided by pthreads, but we may want to use it
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington# even if compiled with --disable-threads. getc_unlocked might also not
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington# be defined.
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for flockfile""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3230: checking for flockfile" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3235 "configure"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington which can conflict with char flockfile(); below. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <assert.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* We use char because int might match the return type of a gcc2
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington builtin and then its argument prototype would still apply. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonchar flockfile();
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonint main() {
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* The GNU C library defines this for functions which it implements
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington to always fail with ENOSYS. Some functions are actually named
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington something starting with __ and the normal name is an alias. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#if defined (__stub_flockfile) || defined (__stub___flockfile)
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonchoke me
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#else
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonflockfile();
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#endif
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington; return 0; }
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington rm -rf conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington eval "ac_cv_func_flockfile=yes"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "configure: failed program was:" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington cat conftest.$ac_ext >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington rm -rf conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington eval "ac_cv_func_flockfile=no"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonrm -f conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""yes" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington cat >> confdefs.h <<\EOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#define HAVE_FLOCKFILE 1
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian WellingtonEOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""no" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho $ac_n "checking for getc_unlocked""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3281: checking for getc_unlocked" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_getc_unlocked'+set}'`\" = set"; then
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo $ac_n "(cached) $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonelse
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3286 "configure"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include "confdefs.h"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington/* System header to define __stub macros and hopefully few prototypes,
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington which can conflict with char getc_unlocked(); below. */
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <assert.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington/* Override any gcc2 internal prototype to avoid an error. */
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington/* We use char because int might match the return type of a gcc2
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington builtin and then its argument prototype would still apply. */
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonchar getc_unlocked();
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonint main() {
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington/* The GNU C library defines this for functions which it implements
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington to always fail with ENOSYS. Some functions are actually named
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington something starting with __ and the normal name is an alias. */
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#if defined (__stub_getc_unlocked) || defined (__stub___getc_unlocked)
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonchoke me
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#else
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtongetc_unlocked();
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#endif
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington; return 0; }
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington rm -rf conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington eval "ac_cv_func_getc_unlocked=yes"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonelse
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "configure: failed program was:" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington cat conftest.$ac_ext >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington rm -rf conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington eval "ac_cv_func_getc_unlocked=no"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonfi
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonrm -f conftest*
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonfi
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonif eval "test \"`echo '$ac_cv_func_'getc_unlocked`\" = yes"; then
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "$ac_t""yes" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington cat >> confdefs.h <<\EOF
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#define HAVE_GETCUNLOCKED 1
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian WellingtonEOF
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonelse
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington echo "$ac_t""no" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonfi
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Indicate what the final decision was regarding threads.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking whether to build with threads""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3336: checking whether to build with threads" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif $use_threads; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# End of pthreads stuff.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Additional compiler settings.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceMKDEPCC="$CC"
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceMKDEPCFLAGS="-M"
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceIRIX_DNSSEC_WARNINGS_HACK=""
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif test "X$GCC" = "Xyes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence case $host in
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *-dec-osf*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CC="$CC -std"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CCOPT="$CCOPT -std"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence MKDEPCC="$CC"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *-hp-hpux*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CC="$CC -Ae -z"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # The version of the C compiler that constantly warns about
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # 'const' as well as alignment issues is unfortunately not
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # able to be discerned via the version of the operating
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # system, nor does cc have a version flag.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence case "`$CC +W 123 2>&1`" in
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *Unknown?option*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence STD_CWARNINGS="+w1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # Turn off the pointlessly noisy warnings.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence STD_CWARNINGS="+w1 +W 474,530"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence esac
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CCOPT="$CCOPT -Ae -z"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence LIBS="-Wl,+vnocompatwarnings $LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *-sgi-irix*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence STD_CWARNINGS="-fullwarn -woff 1209"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence #
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # Silence more than 250 instances of
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # "prototyped function redeclared without prototype"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # and 11 instances of
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # "variable ... was set but never used"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence # from lib/dns/sec/openssl.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence #
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence *-solaris*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence MKDEPCFLAGS="-xM"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence *-sco-sysv*uw*)
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence # UnixWare
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CC="$CC -w"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ;;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence esac
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# NLS
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho $ac_n "checking for catgets""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3412: checking for catgets" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo $ac_n "(cached) $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3417 "configure"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* System header to define __stub macros and hopefully few prototypes,
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley which can conflict with char catgets(); below. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include <assert.h>
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar catgets();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyint main() {
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* The GNU C library defines this for functions which it implements
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley to always fail with ENOSYS. Some functions are actually named
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley something starting with __ and the normal name is an alias. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#if defined (__stub_catgets) || defined (__stub___catgets)
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychoke me
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#else
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleycatgets();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#endif
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_catgets=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "configure: failed program was:" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat conftest.$ac_ext >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_catgets=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyrm -f conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""yes" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat >> confdefs.h <<\EOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#define HAVE_CATGETS 1
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""no" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# -lxnet buys us one big porting headache... standards, gotta love 'em.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# AC_CHECK_LIB(xnet, socket, ,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# AC_CHECK_LIB(socket, socket)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# AC_CHECK_LIB(nsl, inet_ntoa)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# )
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Use this for now, instead:
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffcase "$host" in
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff mips-sgi-irix*)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff ;;
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff *)
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3478: checking for socket in -lsocket" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ac_save_LIBS="$LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="-lsocket $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3486 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar socket();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyint main() {
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleysocket()
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="$ac_save_LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley LIBS="-lsocket $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3525: checking for inet_ntoa in -lnsl" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ac_save_LIBS="$LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="-lnsl $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3533 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar inet_ntoa();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyint main() {
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyinet_ntoa()
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="$ac_save_LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley LIBS="-lnsl $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff ;;
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffesac
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Purify support
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho $ac_n "checking whether to use purify""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3578: checking whether to use purify" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Check whether --with-purify or --without-purify was given.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test "${with_purify+set}" = set; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob withval="$with_purify"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob use_purify="$withval"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob use_purify="no"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobcase "$use_purify" in
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob no)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob yes)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob # Extract the first word of "purify", so it can be a program name with args.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobset dummy purify; ac_word=$2
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3595: checking for $ac_word" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$''{'ac_cv_path_purify_path'+set}'`\" = set"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo $ac_n "(cached) $ac_c" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob case "$purify_path" in
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob /*)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ?:/*)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_cv_path_purify_path="$purify_path" # Let the user override the test with a dos path.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob *)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_dummy="$PATH"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob for ac_dir in $ac_dummy; do
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob test -z "$ac_dir" && ac_dir=.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob if test -f $ac_dir/$ac_word; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_cv_path_purify_path="$ac_dir/$ac_word"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob break
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob fi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob done
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob IFS="$ac_save_ifs"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobesac
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobpurify_path="$ac_cv_path_purify_path"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test -n "$purify_path"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""$purify_path" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobelse
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""no" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobfi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob *)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob purify_path="$use_purify"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobesac
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobcase "$use_purify" in
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob no)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""no" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob PURIFY=""
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob *)
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob if test -f $purify_path || test $purify_path = purify; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob echo "$ac_t""$purify_path" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob PURIFYFLAGS="`echo $PURIFYOPTIONS`"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob PURIFY="$purify_path $PURIFYFLAGS"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob else
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob { echo "configure: error: $purify_path not found.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen JacobPlease choose the proper path with the following command:
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob configure --with-purify=PATH
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob" 1>&2; exit 1; }
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob fi
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ;;
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobesac
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# GNU libtool support
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-libtool or --without-libtool was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_libtool+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence withval="$with_libtool"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence use_libtool="$withval"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence use_libtool="no"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsfi
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase $use_libtool in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence yes)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3672: checking for Cygwin environment" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3677 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifndef __CYGWIN__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#define __CYGWIN__ __CYGWIN32__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonreturn __CYGWIN__;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_cygwin=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_cygwin=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$ac_cv_cygwin" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCYGWIN=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "$ac_cv_cygwin" = yes && CYGWIN=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3705: checking for mingw32 environment" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 3710 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonreturn __MINGW32__;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_mingw32=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_mingw32=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$ac_cv_mingw32" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonMINGW32=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "$ac_cv_mingw32" = yes && MINGW32=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check whether --enable-shared or --disable-shared was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_shared+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_shared"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence p=${PACKAGE-default}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $enableval in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceyes) enable_shared=yes ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceno) enable_shared=no ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_shared=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for pkg in $enableval; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test "X$pkg" = "X$p"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_shared=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_shared=yes
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsfi
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-static or --disable-static was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_static+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_static"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence p=${PACKAGE-default}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $enableval in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceyes) enable_static=yes ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceno) enable_static=no ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_static=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for pkg in $enableval; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test "X$pkg" = "X$p"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_static=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_static=yes
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewsfi
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-fast-install or --disable-fast-install was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_fast_install+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_fast_install"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence p=${PACKAGE-default}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $enableval in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceyes) enable_fast_install=yes ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceno) enable_fast_install=no ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_fast_install=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for pkg in $enableval; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test "X$pkg" = "X$p"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_fast_install=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_fast_install=yes
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsfi
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking build system type""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3803: checking build system type" >&5
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_alias=$build
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$build_alias" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceNONE)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case $nonopt in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence NONE) build_alias=$host_alias ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *) build_alias=$nonopt ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "$ac_t""$build" 1>&6
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-gnu-ld or --without-gnu-ld was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_gnu_ld+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence withval="$with_gnu_ld"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test "$withval" = no || with_gnu_ld=yes
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence with_gnu_ld=no
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewsfi
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_prog=ld
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$GCC" = yes; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check if gcc -print-prog-name=ld gives a path.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3832: checking for ld used by GCC" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-*-mingw*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # gcc leaves a trailing carriage return which upsets mingw
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $ac_prog in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Accept absolute paths.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence [\\/]* | [A-Za-z]:[\\/]*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence re_direlt='/[^/][^/]*/\.\./'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Canonicalize the path of ld
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test -z "$LD" && LD="$ac_prog"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence "")
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # If it fails, then pretend we aren't using GCC.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_prog=ld
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # If it is relative, then search for the first ld in PATH.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence with_gnu_ld=unknown
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelif test "$with_gnu_ld" = yes; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3862: checking for GNU ld" >&5
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3865: checking for non-GNU ld" >&5
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -z "$LD"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for ac_dir in $PATH; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test -z "$ac_dir" && ac_dir=.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_LD="$ac_dir/$ac_prog"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check to see if the program is GNU ld. I'd rather use --version,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # but apparently some GNU ld's only accept -v.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Break only if it was the GNU/non-GNU ld that we prefer.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test "$with_gnu_ld" != no && break
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test "$with_gnu_ld" != yes && break
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_LD="$LD" # Let the user override the test with a path.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLD="$lt_cv_path_LD"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test -n "$LD"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""$LD" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3900: checking if the linker ($LD) is GNU ld" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # I'd rather use --version here, but apparently some GNU ld's only accept -v.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_gnu_ld=yes
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_gnu_ld=no
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwith_gnu_ld=$lt_cv_prog_gnu_ld
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3917: checking for $LD option to reload object files" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_ld_reload_flag='-r'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonreload_flag=$lt_cv_ld_reload_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -n "$reload_flag" && reload_flag=" $reload_flag"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3929: checking for BSD-compatible nm" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -n "$NM"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Let the user override the test.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_NM="$NM"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington tmp_nm=$ac_dir/${ac_tool_prefix}nm
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check to see if the nm accepts a BSD-compat flag.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Adding the `sed 1q' prevents false positives on HP-UX, which says:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # nm: unknown option "B" ignored
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Tru64's nm complains that /dev/null is an invalid object file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_NM="$tmp_nm -B"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_NM="$tmp_nm -p"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence break
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence continue # so that we can try to find one that supports BSD flags
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonNM="$lt_cv_path_NM"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "$ac_t""$NM" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3967: checking whether ln -s works" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -f conftestdata
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif ln -s X conftestdata 2>/dev/null
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencethen
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -f conftestdata
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_prog_LN_S="ln -s"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_prog_LN_S=ln
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLN_S="$ac_cv_prog_LN_S"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "$ac_cv_prog_LN_S" = "ln -s"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:3988: checking how to recognise dependant libraries" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd='$MAGIC_CMD'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlt_cv_file_magic_test_file=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlt_cv_deplibs_check_method='unknown'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Need to set the preceding variable on all platforms that support
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# interlibrary dependencies.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# 'none' -- dependencies not supported.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# `unknown' -- same as none, but documents that we really don't know.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# 'pass_all' -- all dependencies passed with no checks.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# 'test_compile' -- check by making test program.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ['file_magic [regex]'] -- check by looking for files in library path
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# which responds to the $file_magic_cmd with a given egrep regex.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# If you have `file' or equivalent on your system and you're not sure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# whether `pass_all' will *always* work, you probably want this one.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonaix4* | aix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbeos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbsdi4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd='/usr/bin/file -L'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=/shlib/libc.so
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd='$OBJDUMP -f'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondarwin* | rhapsody*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd='/usr/bin/file -L'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case "$host_os" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rhapsody* | darwin1.012)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) # Darwin 1.3 on
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfreebsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_cpu in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington i*86 )
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Not sure whether the presence of OpenBSD here was a mistake.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Let's accept both of them until this is cleared up.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd=/usr/bin/file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtongnu*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhpux10.20*|hpux11*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd=/usr/bin/file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=/usr/lib/libc.sl
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonirix5* | irix6*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington irix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # this will be overridden with pass_all, but let us keep it just in case
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $LD in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-32|*"-32 ") libmagic=32-bit;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-n32|*"-n32 ") libmagic=N32;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-64|*"-64 ") libmagic=64-bit;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) libmagic=never-match;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # this will be overridden with pass_all, but let us keep it just in case
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This must be Linux ELF.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlinux-gnu*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_cpu in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington alpha* | i*86 | powerpc* | sparc* | ia64* )
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # glibc up to 2.1.1 does not perform some relocations on ARM
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonnetbsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonnewos6*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd=/usr/bin/file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=/usr/lib/libnls.so
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonosf3* | osf4* | osf5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # this will be overridden with pass_all, but let us keep it just in case
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=/shlib/libc.so
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsco3.2v5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsolaris*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=/lib/libc.so
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsysv5uw[78]* | sysv4*uw2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_vendor in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington motorola)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ncr)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sequent)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd='/bin/file'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sni)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_cmd='/bin/file'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_file_magic_test_file=/lib/libc.so
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_deplibs_check_method" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfile_magic_cmd=$lt_cv_file_magic_cmd
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondeplibs_check_method=$lt_cv_deplibs_check_method
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for object suffix""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4161: checking for object suffix" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho 'int i = 1;' > conftest.$ac_ext
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_file in conftest.*; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $ac_file in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *.c) ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$ac_cv_objext" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonOBJEXT=$ac_cv_objext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_objext=$ac_cv_objext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for executable suffix""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4187: checking for executable suffix" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_exeext=.exe
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo 'int main () { return 0; }' > conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_exeext=
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for file in conftest.*; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $file in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *.c | *.o | *.obj) ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEXEEXT=""
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""${ac_cv_exeext}" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_exeext=$EXEEXT
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test $host != $build; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_tool_prefix=${host_alias}-
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_tool_prefix=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check for command to grab the raw symbol name followed by C symbol from nm.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4228: checking command to parse $NM output" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# These are sane defaults that work on at least a few old systems.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# [They come from Ultrix. What could be older than Ultrix?!! ;)]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Character class describing NM global symbol codes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsymcode='[BCDEGRST]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Regexp to match symbols that can be accessed directly from C.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Transform the above into a raw symbol and a C symbol.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsymxfrm='\1 \2\3 \3'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Transform an extracted symbol line into a proper C declaration
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Define system-specific variables.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonaix*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington symcode='[BCDT]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington symcode='[ABCDGISTW]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhpux*) # Its linker distinguishes data from code symbols
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonirix*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington symcode='[BCDEGRST]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsolaris* | sysv5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington symcode='[BDT]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsysv4)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington symcode='[DFNSTU]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Handle CRLF in mingw tool chain
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonopt_cr=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonmingw*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# If we're using GNU nm, then use its standard symbol codes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington symcode='[ABCDGISTW]'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Try without a prefix undercore, then with it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfor ac_symprfx in "" "_"; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Write the raw and C identifiers.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Check to see that the pipe works correctly.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington pipe_works=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonextern "C" {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchar nm_test_var;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonvoid nm_test_func(){}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main(){nm_test_var='a';nm_test_func();return(0);}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Now try to grab the symbols.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington nlist=conftest.nm
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:4307: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Try sorting and uniquifying the output.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if sort "$nlist" | uniq > "$nlist"T; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mv -f "$nlist"T "$nlist"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f "$nlist"T
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Make sure that we snagged all the symbols we need.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if egrep ' nm_test_var$' "$nlist" >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if egrep ' nm_test_func$' "$nlist" >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF > conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonextern "C" {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Now generate the symbol file.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF >> conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#if defined (__STDC__) && __STDC__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define lt_ptr_t void *
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define lt_ptr_t char *
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define const
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* The mapping between symbol names and symbols. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonconst struct {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington const char *name;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_ptr_t address;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlt_preloaded_symbols[] =
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington{
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<\EOF >> conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington {0, (lt_ptr_t) 0}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington};
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Now try linking the two files.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mv conftest.$ac_objext conftstm.$ac_objext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_LIBS="$LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LIBS="conftstm.$ac_objext"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$CFLAGS$no_builtin_flag"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington pipe_works=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LIBS="$save_LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$save_CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "cannot find nm_test_func in $nlist" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "cannot find nm_test_var in $nlist" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$progname: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest* conftst*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Do not use the global_symbol_pipe unless it works.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$pipe_works" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_sys_global_symbol_pipe=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonglobal_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$lt_cv_sys_global_symbol_pipe"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington global_symbol_to_cdecl=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""failed" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""ok" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfor ac_hdr in dlfcn.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4404: checking for $ac_hdr" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 4409 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <$ac_hdr>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson{ (eval echo configure:4414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$ac_err"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_header_$ac_safe=yes"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_err" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_header_$ac_safe=no"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat >> confdefs.h <<EOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#define $ac_tr_hdr 1
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Only perform the check for file, if the check method requires it
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $deplibs_check_method in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfile_magic*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4449: checking for ${ac_tool_prefix}file" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $MAGIC_CMD in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington /*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ?:/*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_save_MAGIC_CMD="$MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dummy="/usr/bin:$PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_dir in $ac_dummy; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $ac_dir/${ac_tool_prefix}file; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$file_magic_test_file"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $deplibs_check_method in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington "file_magic "*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington egrep "$file_magic_regex" > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** Warning: the command libtool uses to detect shared libraries,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** $file_magic_cmd, produces output that libtool cannot recognize.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** The result is that libtool may fail to recognize shared libraries
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** as such. This will affect the creation of libtool libraries that
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** depend on shared libraries, but programs linked with such libtool
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** libraries will work regardless of this problem. Nevertheless, you
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** may want to report the problem to your system manager and/or to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** bug-libtool@gnu.org
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington MAGIC_CMD="$ac_save_MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$MAGIC_CMD"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$MAGIC_CMD" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$lt_cv_path_MAGIC_CMD"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$ac_tool_prefix"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking for file""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4511: checking for file" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $MAGIC_CMD in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington /*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ?:/*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_save_MAGIC_CMD="$MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dummy="/usr/bin:$PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_dir in $ac_dummy; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $ac_dir/file; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_path_MAGIC_CMD="$ac_dir/file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$file_magic_test_file"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $deplibs_check_method in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington "file_magic "*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington egrep "$file_magic_regex" > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** Warning: the command libtool uses to detect shared libraries,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** $file_magic_cmd, produces output that libtool cannot recognize.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** The result is that libtool may fail to recognize shared libraries
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** as such. This will affect the creation of libtool libraries that
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** depend on shared libraries, but programs linked with such libtool
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** libraries will work regardless of this problem. Nevertheless, you
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** may want to report the problem to your system manager and/or to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** bug-libtool@gnu.org
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington MAGIC_CMD="$ac_save_MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$MAGIC_CMD"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$MAGIC_CMD" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington MAGIC_CMD=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonset dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4582: checking for $ac_word" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$RANLIB"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dummy="$PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_dir in $ac_dummy; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $ac_dir/$ac_word; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonRANLIB="$ac_cv_prog_RANLIB"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$RANLIB"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$RANLIB" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$ac_cv_prog_RANLIB"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$ac_tool_prefix"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Extract the first word of "ranlib", so it can be a program name with args.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonset dummy ranlib; ac_word=$2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4614: checking for $ac_word" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$RANLIB"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dummy="$PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_dir in $ac_dummy; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $ac_dir/$ac_word; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_RANLIB="ranlib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonRANLIB="$ac_cv_prog_RANLIB"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$RANLIB"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$RANLIB" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington RANLIB=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonset dummy ${ac_tool_prefix}strip; ac_word=$2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4649: checking for $ac_word" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$STRIP"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dummy="$PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_dir in $ac_dummy; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $ac_dir/$ac_word; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonSTRIP="$ac_cv_prog_STRIP"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$STRIP"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$STRIP" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$ac_cv_prog_STRIP"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$ac_tool_prefix"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Extract the first word of "strip", so it can be a program name with args.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonset dummy strip; ac_word=$2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4681: checking for $ac_word" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$STRIP"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dummy="$PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ac_dir in $ac_dummy; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_dir" && ac_dir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f $ac_dir/$ac_word; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_cv_prog_STRIP="strip"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington IFS="$ac_save_ifs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonSTRIP="$ac_cv_prog_STRIP"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$STRIP"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$STRIP" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington STRIP=":"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonenable_dlopen=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonenable_win32_dll=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "${enable_libtool_lock+set}" = set; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enableval="$enable_libtool_lock"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Some flags need to be propagated to the compiler or linker for good
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# libtool support.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*-*-irix6*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Find out which ABI we are using.
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo '#line 4730 "configure"' > conftest.$ac_ext
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:4731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case `/usr/bin/file conftest.$ac_objext` in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *32-bit*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LD="${LD-ld} -32"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *N32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LD="${LD-ld} -n32"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *64-bit*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LD="${LD-ld} -64"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*-*-sco3.2v5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington SAVE_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$CFLAGS -belf"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4752: checking whether the C compiler needs -belf" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_ext=c
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_cpp='$CPP $CPPFLAGS'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncross_compiling=$ac_cv_prog_cc_cross
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 4765 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_cc_needs_belf=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_cc_needs_belf=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_ext=c
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_cpp='$CPP $CPPFLAGS'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncross_compiling=$ac_cv_prog_cc_cross
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test x"$lt_cv_cc_needs_belf" != x"yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$SAVE_CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Sed substitution that helps us do robust quoting. It backslashifies
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# metacharacters that are still active within double-quoted strings.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonXsed='sed -e s/^X//'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Same as above, but do not quote variable references.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondouble_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Sed substitution to delay expansion of an escaped shell variable in a
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# double_quote_subst'ed string.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Constants:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm="rm -f"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Global variables:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondefault_ofile=libtool
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncan_build_shared=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# All known linkers require a `.a' archive for static linking (except M$VC,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# which needs '.lib').
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibext=a
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonltmain="$ac_aux_dir/ltmain.sh"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonofile="$default_ofile"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwith_gnu_ld="$lt_cv_prog_gnu_ld"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_locks="$enable_libtool_lock"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_CC="$CC"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Set sane defaults for various variables
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$AR" && AR=ar
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$AR_FLAGS" && AR_FLAGS=cru
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$AS" && AS=as
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$CC" && CC=cc
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$DLLTOOL" && DLLTOOL=dlltool
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$LD" && LD=ld
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$LN_S" && LN_S="ln -s"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$MAGIC_CMD" && MAGIC_CMD=file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$NM" && NM=nm
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$OBJDUMP" && OBJDUMP=objdump
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$RANLIB" && RANLIB=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$STRIP" && STRIP=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$ac_objext" && ac_objext=o
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test x"$host" != x"$build"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_tool_prefix=${host_alias}-
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_tool_prefix=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlinux-gnu*) ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlinux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonaix3*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # AIX sometimes has problems with the GCC collect2 program. For some
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # reason, if we set the COLLECT_NAMES environment variable, the problems
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # vanish in a puff of smoke.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "X${COLLECT_NAMES+set}" != Xset; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington COLLECT_NAMES=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export COLLECT_NAMES
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Determine commands to create old-style static archives.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_postinstall_cmds='chmod 644 $oldlib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_postuninstall_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$RANLIB"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Allow CC to be a program name with arguments.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonset dummy $CC
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncompiler="$2"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for objdir""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4887: checking for objdir" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f .libs 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonmkdir .libs 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -d .libs; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington objdir=.libs
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # MS-DOS does not allow filenames that begin with a dot.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington objdir=_libs
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrmdir .libs 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$objdir" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check whether --with-pic or --without-pic was given.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "${with_pic+set}" = set; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington withval="$with_pic"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington pic_mode="$withval"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington pic_mode=default
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$pic_mode" && pic_mode=default
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# We assume here that the value for lt_cv_prog_cc_pic will not be cached
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# in isolation, and that seeing it set (from the cache) indicates that
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the associated values are set (in the cache) correctly too.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:4918: checking for $compiler option to produce PIC" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_shlib=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_no_builtin=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_can_build_shared=$can_build_shared
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-static'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Below there is a dirty hack to force normal static linking with -ldl
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The problem is because libdl dynamically linked with both libc and
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # libC (AIX C++ library), which obviously doesn't included in libraries
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # list by gcc. This cause undefined symbols with -static flags.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This hack allows C programs to be linked with "-static -ldl", but
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # we not sure about C++ programs.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington amigaos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: we need at least 68020 code to build shared libraries, but
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # adding the `-m68020' flag to GCC prevents building anything better,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # like `-m68040'.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # PIC is the default for these OSes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington darwin* | rhapsody*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # PIC is the default on this platform
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Common symbols not allowed in MH_DYLIB files
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-fno-common'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32* | os2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This hack is so that the source file can tell whether it is being
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # built for inclusion in a dll (and should export symbols for example).
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-DDLL_EXPORT'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4*MP*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -d /usr/nec; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic=-Kconform_pic
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-fPIC'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # PORTME Check for PIC flags for the system compiler.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix3* | aix4* | aix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # All AIX code is PIC.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$host_cpu" = ia64; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # AIX 5 now supports IA64 processor
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hpux9* | hpux10* | hpux11*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='+Z'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington irix5* | irix6*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-non_shared'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # PIC (with -KPIC) is the default.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32* | os2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This hack is so that the source file can tell whether it is being
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # built for inclusion in a dll (and should export symbols for example).
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-DDLL_EXPORT'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington newsos6)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-KPIC'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington osf3* | osf4* | osf5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # All OSF/1 code is PIC.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-non_shared'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sco3.2v5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-Kpic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-dn'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_shlib='-belf'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington solaris*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-KPIC'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sunos4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-PIC'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Qoption ld '
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-KPIC'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$host_vendor" = xsni; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-LD'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_wl='-Wl,'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington uts4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-pic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4*MP*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -d /usr/nec ;then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic='-Kconform_pic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static='-Bstatic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_can_build_shared=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -z "$lt_cv_prog_cc_pic"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""none" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Check to make sure the pic_flag actually works.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5070: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 5077 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hpux9* | hpux10* | hpux11*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # On HP-UX, both CC and GCC only warn that PIC is supported... then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # they create non-PIC objects. So, if there were any warnings, we
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # assume that PIC is not supported.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -s conftest.err; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic_works=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic_works=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic_works=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic_works=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$save_CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "X$lt_cv_prog_cc_pic_works" = Xno; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_can_build_shared=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check for any special shared library compilation flags.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$lt_cv_prog_cc_shlib"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_can_build_shared=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5140: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static_works=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_LDFLAGS="$LDFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 5148 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_prog_cc_static_works=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LDFLAGS="$save_LDFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Belt *and* braces to stop my trousers falling down:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpic_flag="$lt_cv_prog_cc_pic"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonspecial_shlib_compile_flags="$lt_cv_prog_cc_shlib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwl="$lt_cv_prog_cc_wl"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlink_static_flag="$lt_cv_prog_cc_static"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonno_builtin_flag="$lt_cv_prog_cc_no_builtin"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncan_build_shared="$lt_cv_prog_cc_can_build_shared"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check to see if options -o and -c are simultaneously supported by compiler
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5186: checking if $compiler supports -c -o file.$ac_objext" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington$rm -r conftest 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonmkdir conftest
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncd conftest
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "int some_variable = 0;" > conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonmkdir out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# that will create temporary files in the current directory regardless of
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the output directory. Thus, making CWD read-only will cause this test
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# to fail, enabling locking or at least warning the user not to do parallel
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# builds.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchmod -w .
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsave_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncompiler_c_o=no
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The compiler can only warn and ignore the option if not recognized
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # So say no if there are warnings
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -s out/conftest.err; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_compiler_c_o=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_compiler_c_o=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Append any errors to the config.log.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat out/conftest.err 1>&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_compiler_c_o=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCFLAGS="$save_CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchmod u+w .
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington$rm conftest* out/*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrmdir out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncd ..
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrmdir conftest
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington$rm -r conftest 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncompiler_c_o=$lt_cv_compiler_c_o
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$compiler_c_o" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test x"$compiler_c_o" = x"yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Check to see if we can write to a .lo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5234: checking if $compiler supports -c -o file.lo" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_compiler_o_lo=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$CFLAGS -c -o conftest.lo"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 5243 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint some_variable = 0;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:5250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The compiler can only warn and ignore the option if not recognized
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # So say no if there are warnings
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -s conftest.err; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_compiler_o_lo=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_compiler_o_lo=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$save_CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_o_lo=$lt_cv_compiler_o_lo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$compiler_c_lo" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_o_lo=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check to see if we can do hard links to lock some files if needed
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhard_links="nottested"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$compiler_c_o" = no && test "$need_locks" != no; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # do not overwrite the value of need_locks provided by the user
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5284: checking if we can lock with hard links" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hard_links=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $rm conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ln conftest.a conftest.b 2>/dev/null && hard_links=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington touch conftest.a
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ln conftest.a conftest.b 2>&5 || hard_links=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ln conftest.a conftest.b 2>/dev/null && hard_links=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$hard_links" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$hard_links" = no; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_locks=warn
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_locks=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5307: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "int some_variable = 0;" > conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_CFLAGS="$CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_rtti_exceptions=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 5313 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint some_variable = 0;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The compiler can only warn and ignore the option if not recognized
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # So say no if there are warnings
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -s conftest.err; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_rtti_exceptions=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_rtti_exceptions=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CFLAGS="$save_CFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$compiler_rtti_exceptions" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$compiler_rtti_exceptions" = "yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_builtin_flag=' -fno-builtin'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# See if the linker supports building shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5351: checking whether the linker ($LD) supports shared libraries" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonallow_undefined_flag=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonno_undefined_flag=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_lib_prefix=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_version=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# when you set need_version to no, make sure it does not cause -set_version
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# flags to be left without arguments
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonarchive_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonarchive_expsym_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_archive_from_new_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_archive_from_expsyms_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexport_dynamic_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwhole_archive_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonthread_safe_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_into_libs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_libdir_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_libdir_separator=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_direct=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_minus_L=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_shlibpath_var=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrunpath_var=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlink_all_deplibs=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonalways_export_symbols=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexport_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# include_expsyms should be a list of space-separated symbols to be *always*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# included in the symbol list
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoninclude_expsyms=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# exclude_expsyms can be an egrep regular expression of symbols to exclude
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# it will be wrapped by ` (' and `)$', so one must not match beginning or
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# as well as any symbol that contains `d'.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexclude_expsyms="_GLOBAL_OFFSET_TABLE_"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# platforms (ab)use it in PIC code, but their linkers get confused if
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the symbol is explicitly referenced. Since portable code cannot
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# rely on this symbol name, it's probably fine to never include it in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# preloaded symbol tables.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonextract_expsyms_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncygwin* | mingw* | pw32* )
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: the MSVC++ port hasn't been tested in a loooong time
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # When not using gcc, we currently assume that we are using
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Microsoft Visual C++.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" != yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington with_gnu_ld=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonld_shlibs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$with_gnu_ld" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If archive_cmds runs LD, not CC, wlarc should be empty
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington wlarc='${wl}'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # See if GNU ld supports shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix3* | aix4* | aix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # On AIX, the GNU linker is very broken
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** Warning: the GNU linker, at least up to release 2.9.1, is reported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** to be unable to reliably create shared libraries on AIX.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** Therefore, libtool is disabling shared libraries support. If you
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** really care for shared libraries, you may want to modify your PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** so that a non-GNU linker is found, and then restart.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington amigaos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # that the semantics of dynamic libraries on AmigaOS, at least up
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # to version 4, is to share data among multiple programs linked
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # with the same dynamic library. Since this doesn't match the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # behavior of shared libraries on other platforms, we can use
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # them.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington beos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # support --undefined. This deserves some investigation. FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # hardcode_libdir_flag_spec is actually meaningless, as there is
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # no search path for DLLs.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington always_export_symbols=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -f $output_objdir/impgen.exe || (cd $output_objdir && \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else $CC -o impgen impgen.c ; fi)~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # cygwin and mingw dlls have different entry points and sets of symbols
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # to exclude.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: what about values for MSVC?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dll_entry=__cygwin_dll_entry@12
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mingw*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # mingw values
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dll_entry=_DllMainCRTStartup@12
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # mingw and cygwin differ, and it's simplest to just exclude the union
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # of the two symbol sets.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # recent cygwin and mingw systems supply a stub DllMain which the user
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # can override, but on older systems we have to supply one (in ltdll.c)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$lt_cv_need_dllmain" = "xyes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ltdll_obj=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ltdll_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Extract the symbol export list from an `--export-all' def file,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # then regenerate the def file from the symbol export list, so that
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # the compiled dll only exports the symbol export list.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Be careful not to strip the DATA tag left be newer dlltools.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export_symbols_cmds="$ltdll_cmds"'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If the export-symbols file already is a .def file (1st line
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # is EXPORTS), use it as is.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If DATA tags from a recent dlltool are present, honour them!
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cp $export_symbols $output_objdir/$soname-def;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo EXPORTS > $output_objdir/$soname-def;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington _lt_hint=1;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat $export_symbols | while read symbol; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington set dummy \$symbol;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case \$# in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington _lt_hint=`expr 1 + \$_lt_hint`;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington '"$ltdll_cmds"'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington netbsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington wlarc=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington solaris* | sysv5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<EOF 1>&2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** Warning: The releases 2.8.* of the GNU linker cannot reliably
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** create shared libraries on Solaris systems. Therefore, libtool
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** is disabling shared libraries support. We urge you to upgrade GNU
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** binutils to release 2.9.1 or newer. Another option is to modify
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** your PATH or compiler configuration so that the native linker is
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*** used, and then restart.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sunos4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington wlarc=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$ld_shlibs" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var=LD_RUN_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export_dynamic_flag_spec='${wl}--export-dynamic'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # dlltool doesn't understand --whole-archive et. al.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington whole_archive_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # ancient GNU ld didn't support --whole-archive et. al.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington whole_archive_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # PORTME fill in a description of your system's linker (not GNU ld)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix3*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington always_export_symbols=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Note: this linker hardcodes the directories in LIBPATH if there
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # are no directories specified by -L.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes && test -z "$link_static_flag"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Neither direct hardcoding nor static linking is supported with a
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # broken collect2.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix4* | aix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # When large executables or shared objects are built, AIX ld can
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # have problems creating the table of contents. If linking a library
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # or program results in "error TOC overflow" add -mminimal-toc to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds=''
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=':'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington collect2name=`${CC} -print-prog-name=collect2`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -f "$collect2name" && \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington strings "$collect2name" | grep resolve_lib_name >/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We have reworked collect2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We have old collect2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # It fails to find uninstalled libraries when the uninstalled
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # path is not listed in the libpath. Setting hardcode_minus_L
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # to unsupported forces relinking
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shared_flag='-shared'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$host_cpu" = ia64; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shared_flag='-G'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shared_flag='${wl}-bM:SRE'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$host_cpu" = ia64; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # On IA64, the linker does run time linking by default, so we don't
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # have to do anything special.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix_use_runtimelinking=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exp_sym_flag='-Bexport'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_entry_flag=""
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Test if we are trying to use run time linking, or normal AIX style linking.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix_use_runtimelinking=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for ld_flag in $LDFLAGS; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix_use_runtimelinking=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington break
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exp_sym_flag='-bexport'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_entry_flag='-bnoentry'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # It seems that -bexpall can do strange things, so it is better to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # generate a list of symbols to export.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington always_export_symbols=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$aix_use_runtimelinking" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=' -Wl,-G'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$host_cpu" = ia64; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag="-znodefs"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Warning - without using the other run time loading flags, -berok will
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # link without error, but may produce a broken library.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag='${wl}-berok"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This is a bit strange, but is similar to how AIX traditionally builds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # it's shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington amigaos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # see comment about different semantics on the GNU ld section
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # When not using gcc, we currently assume that we are using
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Microsoft Visual C++.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # hardcode_libdir_flag_spec is actually meaningless, as there is
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # no search path for DLLs.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec=' '
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Tell ltmain to make .lib files, not .a files.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libext=lib
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: Setting linknames here is a bad hack.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The linker will automatically build a .lib file if we build a DLL.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_archive_from_new_cmds='true'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: Should let the user specify the lib program.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fix_srcfile_path='`cygpath -w "$srcfile"`'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington darwin* | rhapsody*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag='-undefined suppress'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: Relying on posixy $() will cause problems for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # cross-compilation, but unfortunately the echo tests do not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # yet detect zsh echo's removal of \ escapes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We need to add '_' to the symbols in $export_symbols first
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington whole_archive_flag_spec='-all_load $convenience'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd1*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # support. Future versions do this automatically, but an explicit c++rt0.o
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # does not break anything, and helps significantly (at the cost of a little
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # extra space).
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd2.2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-R$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-R$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hpux9* | hpux10* | hpux11*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes # Not in the search PATH, but as the default
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # location of the library.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export_dynamic_flag_spec='${wl}-E'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington irix5* | irix6*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington link_all_deplibs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington netbsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-R$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington newsos6)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington openbsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-R$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington os2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington osf3*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=' -expect_unresolved \*'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington osf4* | osf5*) # as osf3* with the addition of -msym flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=' -expect_unresolved \*'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington #Both c and cxx compiler support -rpath directly
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-rpath $libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_separator=:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sco3.2v5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var=LD_RUN_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_runpath_var=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington solaris*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_undefined_flag=' -z defs'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # $CC -shared without GNU ld will not create a library from C++
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # object files and a static libstdc++, better avoid it by now
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-R$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington solaris2.[0-5] | solaris2.[0-5].*) ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) # Supported since Solaris 2.6 (maybe 2.5.1?)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington link_all_deplibs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sunos4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$host_vendor" = xsequent; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Use $CC to link under sequent, because it throws in some extra .o
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # files that make .init and .fini sections work.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$host_vendor" = xsno; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes # is this really true???
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=no #Motorola manual says yes, but my tests say they lie
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var='LD_RUN_PATH'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4.3*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export_dynamic_flag_spec='-Bexport'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_undefined_flag=' -z text'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # $CC -shared without GNU ld will not create a library from C++
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # object files and a static libstdc++, better avoid it by now
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var='LD_RUN_PATH'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington uts4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dgux*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec='-L$libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4*MP*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -d /usr/nec; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var=LD_RUN_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_runpath_var=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv4.2uw2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_direct=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_minus_L=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_runpath_var=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var=LD_RUN_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sysv5uw7* | unixware7*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington no_undefined_flag='${wl}-z ${wl}text'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington runpath_var='LD_RUN_PATH'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_shlibpath_var=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ld_shlibs=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$ld_shlibs" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "$ld_shlibs" = no && can_build_shared=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Check hardcoding attributes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:5971: checking how to hardcode library paths into programs" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_action=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$hardcode_libdir_flag_spec" || \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -n "$runpath_var"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We can hardcode non-existant directories.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$hardcode_direct" != no &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If the only mechanism to avoid hardcoding is shlibpath_var, we
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # have to relink, otherwise we might link with an installed library
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # when we should be linking with a yet-to-be-installed one
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ## test "$hardcode_shlibpath_var" != no &&
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "$hardcode_minus_L" != no; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Linking always hardcodes the temporary library directory.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_action=relink
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We can link without hardcoding, and we can hardcode nonexisting dirs.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_action=immediate
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We cannot hardcode anything, or else we can only hardcode existing
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # directories.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_action=unsupported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$hardcode_action" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonstriplib=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_striplib=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6003: checking whether stripping libraries is possible" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonreload_cmds='$LD$reload_flag -o $output$reload_objs'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest -z "$deplibs_check_method" && deplibs_check_method=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# PORTME Fill in your ld.so characteristics
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6021: checking dynamic linker characteristics" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibrary_names_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibname_spec='lib$name'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsoname_spec=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpostinstall_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpostuninstall_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfinish_cmds=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfinish_eval=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonshlibpath_var=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonshlibpath_overrides_runpath=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonversion_type=none
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondynamic_linker="$host_os ld.so"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsys_lib_dlsearch_path_spec="/lib /usr/lib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncase $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonaix3*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix $libname.a'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LIBPATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # AIX has no versioning support, so we append a major version to the name.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonaix4* | aix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$host_cpu" = ia64; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # AIX 5 supports IA64
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # With GCC up to 2.95.x, collect2 would create an import file
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # for dependence libraries. The import file would start with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # the line `#! .'. This would cause the generated library to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # depend on `.', always an invalid library. This was fixed in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # development snapshots of GCC prior to 3.0.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix4 | aix4.[01] | aix4.[01].*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo ' yes '
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington can_build_shared=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # soname into executable. Probably we can add versioning support to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # collect2, so additional links can be useful in future.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$aix_use_runtimelinking" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # lib<name>.a to let people know that these are not typical AIX shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We preserve .a as extension for shared libraries through AIX4.2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # and later when we are not doing run time linking.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.a $libname.a'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LIBPATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington deplibs_check_method=pass_all
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonamigaos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='$libname.ixlibrary $libname.a'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Create ${libname}_ixlibrary.a entries in /sys/libs.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbeos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker="$host_os ld.so"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbsdi4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export_dynamic_flag_spec=-rdynamic
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # the default ld.so.conf also contains /usr/contrib/lib and
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # libtool to hard-code these into programs
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=windows
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $GCC,$host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington yes,cygwin*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='$libname.dll.a'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dldir=$destdir/`dirname \$dlpath`~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -d \$dldir || mkdir -p \$dldir~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $install_prog .libs/$dlname \$dldir/$dlname'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dlpath=$dir/\$dldll~
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $rm \$dlpath'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington yes,mingw*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington yes,pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker='Win32 ld.exe'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: first we should search . and the directory the executable is in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondarwin* | rhapsody*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker="$host_os dyld"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=darwin
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: Relying on posixy $() will cause problems for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # cross-compilation, but unfortunately the echo tests do not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # yet detect zsh echo's removal of \ escapes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=DYLD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfreebsd1*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfreebsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=freebsd-$objformat
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $version_type in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd-elf*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd-*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington freebsd2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_into_libs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtongnu*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_into_libs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhpux9* | hpux10* | hpux11*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Give a soname corresponding to the major version so that dld.sl refuses to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # link against other versions.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker="$host_os dld.sl"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=sunos
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=SHLIB_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.sl$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # HP-UX runs *really* slowly unless shared libraries are mode 555.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington postinstall_cmds='chmod 555 $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonirix5* | irix6*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=irix
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington irix5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libsuff= shlibsuff=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $LD in # libtool.m4 will add one of these switches to LD
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) libsuff= shlibsuff= libmagic=never-match;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# No shared lib support for Linux oldld, aout, or coff.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlinux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This must be Linux ELF.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlinux-gnu*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This implies no fast_install, which is unacceptable.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Some rework will be needed to allow for fast_install
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # before this can be enabled.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_into_libs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We used to test for /lib/ld.so.1 and disable shared libraries on
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # powerpc, because MkLinux only supported shared libraries with the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # GNU dynamic linker. Since this was broken with cross compilers,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # most powerpc-linux boxes support dynamic linking these days and
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # people can always --disable-shared, the test was removed, and we
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # assume the GNU/Linux dynamic linker is in use.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker='GNU/Linux ld.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonnetbsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=sunos
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker='NetBSD (a.out) ld.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker='NetBSD ld.elf_so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_into_libs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonnewsos6)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonopenbsd*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=sunos
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$with_gnu_ld" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonos2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libname_spec='$name'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='$libname.dll $libname.a'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker='OS/2 ld.exe'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LIBPATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonosf3* | osf4* | osf5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=osf
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsco3.2v5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=osf
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsolaris*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_into_libs=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # ldd complains unless libraries are executable
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington postinstall_cmds='chmod +x $lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsunos4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=sunos
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$with_gnu_ld" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_vendor in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sni)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington motorola)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_overrides_runpath=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonuts4*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondgux*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_lib_prefix=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington need_version=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='${libname}${release}.so$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsysv4*MP*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -d /usr/nec ;then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington version_type=linux
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname_spec='$libname.so.$major'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington shlibpath_var=LD_LIBRARY_PATH
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dynamic_linker=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonesac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$dynamic_linker" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "$dynamic_linker" = no && can_build_shared=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Report the final consequences.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6411: checking if libtool supports shared libraries" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$can_build_shared" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$hardcode_action" = relink; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Fast installation is not supported
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_fast_install=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelif test "$shlibpath_overrides_runpath" = yes ||
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "$enable_shared" = no; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Fast installation is not necessary
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_fast_install=needless
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "x$enable_dlopen" != xyes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_dlopen=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_dlopen_self=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_dlopen_self_static=unknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_libs=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington beos*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="load_add_on"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_libs=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_self=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="LoadLibrary"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_libs=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6452: checking for dlopen in -ldl" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_save_LIBS="$LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBS="-ldl $LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6460 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We use char because int might match the return type of a gcc2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington builtin and then its argument prototype would still apply. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchar dlopen();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondlopen()
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_lib_$ac_lib_var=yes"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_lib_$ac_lib_var=no"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBS="$ac_save_LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for dlopen""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6490: checking for dlopen" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6495 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington which can conflict with char dlopen(); below. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <assert.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We use char because int might match the return type of a gcc2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington builtin and then its argument prototype would still apply. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchar dlopen();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* The GNU C library defines this for functions which it implements
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington to always fail with ENOSYS. Some functions are actually named
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington something starting with __ and the normal name is an alias. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#if defined (__stub_dlopen) || defined (__stub___dlopen)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchoke me
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondlopen();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_func_dlopen=yes"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_func_dlopen=no"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="dlopen"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for shl_load""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6536: checking for shl_load" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6541 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington which can conflict with char shl_load(); below. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <assert.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We use char because int might match the return type of a gcc2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington builtin and then its argument prototype would still apply. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchar shl_load();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* The GNU C library defines this for functions which it implements
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington to always fail with ENOSYS. Some functions are actually named
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington something starting with __ and the normal name is an alias. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#if defined (__stub_shl_load) || defined (__stub___shl_load)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchoke me
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonshl_load();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_func_shl_load=yes"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_func_shl_load=no"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="shl_load"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6582: checking for dlopen in -lsvld" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_save_LIBS="$LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBS="-lsvld $LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6590 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We use char because int might match the return type of a gcc2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington builtin and then its argument prototype would still apply. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchar dlopen();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondlopen()
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_lib_$ac_lib_var=yes"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_lib_$ac_lib_var=no"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBS="$ac_save_LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6620: checking for shl_load in -ldld" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_save_LIBS="$LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBS="-ldld $LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6628 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We use char because int might match the return type of a gcc2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington builtin and then its argument prototype would still apply. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonchar shl_load();
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main() {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonshl_load()
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington; return 0; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_lib_$ac_lib_var=yes"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "configure: failed program was:" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.$ac_ext >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -rf conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "ac_cv_lib_$ac_lib_var=no"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -f conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBS="$ac_save_LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""yes" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""no" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$lt_cv_dlopen" != xno; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_dlopen=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington enable_dlopen=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $lt_cv_dlopen in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington dlopen)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_CPPFLAGS="$CPPFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_LDFLAGS="$LDFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_LIBS="$LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LIBS="$lt_cv_dlopen_libs $LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6692: checking whether a program can dlopen itself" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$cross_compiling" = yes; then :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_self=cross
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_status=$lt_dlunknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6702 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#if HAVE_DLFCN_H
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <dlfcn.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <stdio.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef RTLD_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLGLOBAL RTLD_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef DL_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLGLOBAL DL_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLGLOBAL 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington find out it does not work in some platform. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifndef LT_DLLAZY_OR_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef RTLD_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW RTLD_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef DL_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW DL_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef RTLD_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW RTLD_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef DL_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW DL_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonextern "C" void exit (int);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonvoid fnord() { int i=42;}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main ()
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington{
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington int status = $lt_dlunknown;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (self)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington /* dlclose (self); */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exit (status);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington (./conftest; exit; ) 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_status=$?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case x$lt_status in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # compilation failed
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_self=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -fr conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_dlopen_self" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "x$lt_cv_dlopen_self" = xyes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LDFLAGS="$LDFLAGS $link_static_flag"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6786: checking whether a statically linked program can dlopen itself" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$cross_compiling" = yes; then :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_self_static=cross
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_status=$lt_dlunknown
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 6796 "configure"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include "confdefs.h"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#if HAVE_DLFCN_H
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <dlfcn.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#include <stdio.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef RTLD_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLGLOBAL RTLD_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef DL_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLGLOBAL DL_GLOBAL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLGLOBAL 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington find out it does not work in some platform. */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifndef LT_DLLAZY_OR_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef RTLD_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW RTLD_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef DL_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW DL_LAZY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef RTLD_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW RTLD_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ifdef DL_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW DL_NOW
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# define LT_DLLAZY_OR_NOW 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonextern "C" void exit (int);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonvoid fnord() { int i=42;}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonint main ()
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington{
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington int status = $lt_dlunknown;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (self)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington /* dlclose (self); */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington exit (status);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington (./conftest; exit; ) 2>/dev/null
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_status=$?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case x$lt_status in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # compilation failed
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_dlopen_self_static=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrm -fr conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho "$ac_t""$lt_cv_dlopen_self_static" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CPPFLAGS="$save_CPPFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LDFLAGS="$save_LDFLAGS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington LIBS="$save_LIBS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $lt_cv_dlopen_self in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) enable_dlopen_self=unknown ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $lt_cv_dlopen_self_static in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) enable_dlopen_self_static=unknown ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "$enable_shared" = yes && test "$GCC" = yes; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $archive_cmds in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *'~'*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # FIXME: we may have to deal with multi-command sequences.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington '$CC '*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Test whether the compiler implicitly links with -lc since on some
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # systems, -lgcc has to come before -lc. If gcc already passes -lc
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # to ld, don't add -lc before -lgcc.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:6908: checking whether -lc should be explicitly linked in" >&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $rm conftest*
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo 'static int dummy;' > conftest.$ac_ext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:6915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington soname=conftest
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib=conftest
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libobjs=conftest.$ac_objext
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington deplibs=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington wl=$lt_cv_prog_cc_wl
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_flags=-v
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington linker_flags=-v
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington verstring=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington output_objdir=.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington libname=conftest
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington save_allow_undefined_flag=$allow_undefined_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson if { (eval echo configure:6928: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_archive_cmds_need_lc=no
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lt_cv_archive_cmds_need_lc=yes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington allow_undefined_flag=$save_allow_undefined_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington else
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat conftest.err 1>&5
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_lc=${lt_cv_archive_cmds_need_lc-yes}
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## FIXME: this should be a separate macro
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The second clause should only fire when bootstrapping the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# libtool distribution, otherwise you forgot to ship ltmain.sh
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# with your package, and you will get complaints that there are
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# no rules to generate ltmain.sh.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -f "$ltmain"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington :
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonelse
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # If there is no Makefile yet, we rely on a make rule to execute
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # `config.status --recheck' to rerun these tests and create the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # libtool script then.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington test -f Makefile && make "$ltmain"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test -f "$ltmain"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington trap "$rm \"${ofile}T\"; exit 1" 1 2 15
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington $rm -f "${ofile}T"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo creating $ofile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Now quote all the things that may contain metacharacters while being
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # careful not to overquote the AC_SUBSTed values. We take copies of the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # variables and quote the copies for generation of the libtool script.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington for var in echo old_CC old_CFLAGS \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington AR AR_FLAGS CC LD LN_S NM SHELL \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington reload_flag reload_cmds wl \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington thread_safe_flag_spec whole_archive_flag_spec libname_spec \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington library_names_spec soname_spec \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_striplib striplib file_magic_cmd export_symbols_cmds \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington deplibs_check_method allow_undefined_flag no_undefined_flag \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington hardcode_libdir_flag_spec hardcode_libdir_separator \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $var in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington old_postinstall_cmds | old_postuninstall_cmds | \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington postinstall_cmds | postuninstall_cmds | \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Double-quote double-evaled strings.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington done
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<__EOF__ > "${ofile}T"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#! $SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Copyright (C) 1996-2000 Free Software Foundation, Inc.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This program is free software; you can redistribute it and/or modify
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# it under the terms of the GNU General Public License as published by
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the Free Software Foundation; either version 2 of the License, or
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# (at your option) any later version.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This program is distributed in the hope that it will be useful, but
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# WITHOUT ANY WARRANTY; without even the implied warranty of
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# General Public License for more details.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# You should have received a copy of the GNU General Public License
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# along with this program; if not, write to the Free Software
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# As a special exception to the GNU General Public License, if you
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# distribute this file as part of a program that contains a
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# configuration script generated by Autoconf, you may include it under
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the same distribution terms that you use for the rest of that program.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Sed that helps us avoid accidentally triggering echo(1) options like -n.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonXsed="sed -e s/^X//"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The HP-UX ksh and POSIX shell print the target directory to stdout
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if CDPATH is set.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ### BEGIN LIBTOOL CONFIG
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Shell to use when invoking shell scripts.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonSHELL=$lt_SHELL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether or not to build shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbuild_libtool_libs=$enable_shared
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether or not to add -lc for building shared libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbuild_libtool_need_lc=$need_lc
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether or not to build static libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonbuild_old_libs=$enable_static
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether or not to optimize for fast installation.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfast_install=$enable_fast_install
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The host system.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhost_alias=$host_alias
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhost=$host
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# An echo program that does not interpret backslashes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonecho=$lt_echo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The archiver.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonAR=$lt_AR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonAR_FLAGS=$lt_AR_FLAGS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The default C compiler.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCC=$lt_CC
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Is the compiler the GNU C compiler?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwith_gcc=$GCC
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The linker used to build libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLD=$lt_LD
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether we need hard or soft links.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLN_S=$lt_LN_S
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# A BSD-compatible nm program.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonNM=$lt_NM
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# A symbol stripping program
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonSTRIP=$STRIP
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Used to examine libraries when file_magic_cmd begins "file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonMAGIC_CMD=$MAGIC_CMD
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Used on cygwin: DLL creation program.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonDLLTOOL="$DLLTOOL"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Used on cygwin: object dumper.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonOBJDUMP="$OBJDUMP"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Used on cygwin: assembler.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonAS="$AS"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The name of the directory that contains temporary libtool files.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonobjdir=$objdir
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# How to create reloadable object files.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonreload_flag=$lt_reload_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonreload_cmds=$lt_reload_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# How to pass a linker flag through the compiler.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwl=$lt_wl
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Object file suffix (normally "o").
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonobjext="$ac_objext"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Old archive suffix (normally "a").
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibext="$libext"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Executable file suffix (normally "").
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexeext="$exeext"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Additional compiler flags for building library objects.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpic_flag=$lt_pic_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpic_mode=$pic_mode
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Does compiler simultaneously support -c and -o options?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncompiler_c_o=$lt_compiler_c_o
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Can we write directly to a .lo ?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoncompiler_o_lo=$lt_compiler_o_lo
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Must we lock files when doing compilation ?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_locks=$lt_need_locks
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Do we need the lib prefix for modules?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_lib_prefix=$need_lib_prefix
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Do we need a version for libraries?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonneed_version=$need_version
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether dlopen is supported.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondlopen_support=$enable_dlopen
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether dlopen of programs is supported.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondlopen_self=$enable_dlopen_self
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether dlopen of statically linked programs is supported.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondlopen_self_static=$enable_dlopen_self_static
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Compiler flag to prevent dynamic linking.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlink_static_flag=$lt_link_static_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Compiler flag to turn off builtin functions.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonno_builtin_flag=$lt_no_builtin_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Compiler flag to allow reflexive dlopens.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Compiler flag to generate shared objects directly from archives.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonwhole_archive_flag_spec=$lt_whole_archive_flag_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Compiler flag to generate thread-safe objects.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonthread_safe_flag_spec=$lt_thread_safe_flag_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Library versioning type.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonversion_type=$version_type
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Format of library name prefix.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibname_spec=$lt_libname_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# List of archive names. First name is the real one, the rest are links.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The last name is the one that the linker finds with -lNAME.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlibrary_names_spec=$lt_library_names_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The coded name of the library, if different from the real name.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsoname_spec=$lt_soname_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Commands used to build and install an old-style archive.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonRANLIB=$lt_RANLIB
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_archive_cmds=$lt_old_archive_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_postinstall_cmds=$lt_old_postinstall_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_postuninstall_cmds=$lt_old_postuninstall_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Create an old-style archive from a shared archive.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Create a temporary old-style archive to link instead of a shared archive.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Commands used to build and install a shared archive.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonarchive_cmds=$lt_archive_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonarchive_expsym_cmds=$lt_archive_expsym_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpostinstall_cmds=$lt_postinstall_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonpostuninstall_cmds=$lt_postuninstall_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Commands to strip libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonold_striplib=$lt_old_striplib
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonstriplib=$lt_striplib
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Method to check whether dependent libraries are shared objects.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtondeplibs_check_method=$lt_deplibs_check_method
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Command to use when deplibs_check_method == file_magic.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfile_magic_cmd=$lt_file_magic_cmd
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Flag that allows shared libraries with undefined symbols to be built.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonallow_undefined_flag=$lt_allow_undefined_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Flag that forces no undefined symbols.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonno_undefined_flag=$lt_no_undefined_flag
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Commands used to finish a libtool library installation in a directory.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfinish_cmds=$lt_finish_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Same as above, but a single script fragment to be evaled but not shown.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfinish_eval=$lt_finish_eval
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Take the output of nm and produce a listing of raw symbols and C names.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonglobal_symbol_pipe=$lt_global_symbol_pipe
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Transform the output of nm in a proper C declaration
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonglobal_symbol_to_cdecl=$lt_global_symbol_to_cdecl
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This is the shared library runtime path variable.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonrunpath_var=$runpath_var
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This is the shared library path variable.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonshlibpath_var=$shlibpath_var
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Is shlibpath searched before the hard-coded library search path?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonshlibpath_overrides_runpath=$shlibpath_overrides_runpath
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# How to hardcode a shared library path into an executable.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_action=$hardcode_action
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether we should hardcode library paths into libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_into_libs=$hardcode_into_libs
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Flag to hardcode \$libdir into a binary during linking.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This must work even if \$libdir does not exist.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether we need a single -rpath flag with a separated argument.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_libdir_separator=$lt_hardcode_libdir_separator
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# resulting binary.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_direct=$hardcode_direct
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# resulting binary.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_minus_L=$hardcode_minus_L
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the resulting binary.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonhardcode_shlibpath_var=$hardcode_shlibpath_var
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Variables whose values should be saved in libtool wrapper scripts and
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# restored at relink time.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonvariables_saved_for_relink="$variables_saved_for_relink"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Whether libtool must link a program against all its dependency libraries.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonlink_all_deplibs=$link_all_deplibs
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Compile-time system search path for libraries
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Run-time system search path for libraries
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Fix the shell variable \$srcfile for the compiler.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfix_srcfile_path="$fix_srcfile_path"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Set to yes if exported symbols are required.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonalways_export_symbols=$always_export_symbols
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The commands to list exported symbols.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexport_symbols_cmds=$lt_export_symbols_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The commands to extract the exported symbol list from a shared archive.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonextract_expsyms_cmds=$lt_extract_expsyms_cmds
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Symbols that should not be listed in the preloaded symbols.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonexclude_expsyms=$lt_exclude_expsyms
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Symbols that must always be exported.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtoninclude_expsyms=$lt_include_expsyms
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ### END LIBTOOL CONFIG
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington__EOF__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington aix3*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<\EOF >> "${ofile}T"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AIX sometimes has problems with the GCC collect2 program. For some
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# reason, if we set the COLLECT_NAMES environment variable, the problems
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# vanish in a puff of smoke.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X${COLLECT_NAMES+set}" != Xset; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington COLLECT_NAMES=
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington export COLLECT_NAMES
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case $host_os in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cygwin* | mingw* | pw32* | os2*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington cat <<'EOF' >> "${ofile}T"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This is a source program that is used to create dlls on Windows
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Don't remove nor modify the starting and closing comments
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# /* ltdll.c starts here */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #define WIN32_LEAN_AND_MEAN
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <windows.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #undef WIN32_LEAN_AND_MEAN
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <stdio.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #ifndef __CYGWIN__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# # ifdef __CYGWIN32__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# # define __CYGWIN__ __CYGWIN32__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# # endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# extern "C" {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #ifdef __cplusplus
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #ifdef __CYGWIN__
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <cygwin/cygwin_dll.h>
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# DECLARE_CYGWIN_DLL( DllMain );
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# HINSTANCE __hDllInstance_base;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# BOOL APIENTRY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# __hDllInstance_base = hInst;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return TRUE;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# /* ltdll.c ends here */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This is a source program that is used to create import libraries
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # on Windows for dlls which lack them. Don't remove nor modify the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # starting and closing comments
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# /* impgen.c starts here */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This file is part of GNU libtool.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This program is free software; you can redistribute it and/or modify
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# it under the terms of the GNU General Public License as published by
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the Free Software Foundation; either version 2 of the License, or
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# (at your option) any later version.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This program is distributed in the hope that it will be useful,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# but WITHOUT ANY WARRANTY; without even the implied warranty of
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# GNU General Public License for more details.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# You should have received a copy of the GNU General Public License
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# along with this program; if not, write to the Free Software
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <stdio.h> /* for printf() */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <unistd.h> /* for open(), lseek(), read() */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #include <string.h> /* for strdup() */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# /* O_BINARY isn't required (or even defined sometimes) under Unix */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #ifndef O_BINARY
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #define O_BINARY 0
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# #endif
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# static unsigned int
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# pe_get16 (fd, offset)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int fd;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int offset;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned char b[2];
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# lseek (fd, offset, SEEK_SET);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# read (fd, b, 2);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return b[0] + (b[1]<<8);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# static unsigned int
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# pe_get32 (fd, offset)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int fd;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int offset;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned char b[4];
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# lseek (fd, offset, SEEK_SET);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# read (fd, b, 4);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# static unsigned int
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# pe_as32 (ptr)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# void *ptr;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned char *b = ptr;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# main (argc, argv)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int argc;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# char *argv[];
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# int dll;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long export_rva, export_size, nsections, secptr, expptr;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long name_rvas, nexp;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned char *expdata, *erva;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# char *filename, *dll_name;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# filename = argv[1];
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# dll = open(filename, O_RDONLY|O_BINARY);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if (dll < 1)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return 1;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# dll_name = filename;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# for (i=0; filename[i]; i++)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# dll_name = filename + i +1;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# pe_header_offset = pe_get32 (dll, 0x3c);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# opthdr_ofs = pe_header_offset + 4 + 20;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# num_entries = pe_get32 (dll, opthdr_ofs + 92);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if (num_entries < 1) /* no exports */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return 1;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# export_rva = pe_get32 (dll, opthdr_ofs + 96);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# export_size = pe_get32 (dll, opthdr_ofs + 100);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# secptr = (pe_header_offset + 4 + 20 +
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# pe_get16 (dll, pe_header_offset + 4 + 16));
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# expptr = 0;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# for (i = 0; i < nsections; i++)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# char sname[8];
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long secptr1 = secptr + 40 * i;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# lseek(dll, secptr1, SEEK_SET);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# read(dll, sname, 8);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if (vaddr <= export_rva && vaddr+vsize > export_rva)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# expptr = fptr + (export_rva - vaddr);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# if (export_rva + export_size > vaddr + vsize)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# export_size = vsize - (export_rva - vaddr);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# break;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# expdata = (unsigned char*)malloc(export_size);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# lseek (dll, expptr, SEEK_SET);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# read (dll, expdata, export_size);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# erva = expdata - export_rva;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# nexp = pe_as32 (expdata+24);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# name_rvas = pe_as32 (expdata+32);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# printf ("EXPORTS\n");
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# for (i = 0; i<nexp; i++)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# {
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington#
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# return 0;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# /* impgen.c ends here */
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonEOF
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington esac
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # We use sed instead of cat because bash on DJGPP gets confused if
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # if finds mixed CR/LF and LF-only lines. Since sed operates in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # text mode, it properly converts lines to CR/LF. This bash problem
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # is reportedly fixed, but why not run on old versions too?
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington mv -f "${ofile}T" "$ofile" || \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington chmod +x "$ofile"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington##
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington## END FIXME
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This can be used to rebuild libtool when needed
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Always use our own libtool.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonLIBTOOL='$(SHELL) $(top_builddir)/libtool'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Prevent multiple expansion
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence O=lo
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence A=la
bbc715f20b8f7d4348c1e094ae301496ccc589ceBob Halley LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence O=o
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence A=a
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LIBTOOL=
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
bbc715f20b8f7d4348c1e094ae301496ccc589ceBob Halley LIBTOOL_MKDEP_SED=
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
ce8c568e0d6106bb87069453505e09bc66754b40Andreas Gustafsson#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# File name extension for static archive files, for those few places
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# where they are treated differently from dynamic ones.
ce8c568e0d6106bb87069453505e09bc66754b40Andreas Gustafsson#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceSA=a
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
bbc715f20b8f7d4348c1e094ae301496ccc589ceBob Halley
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews# build libbind?
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews#
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews# Check whether --enable-libbind or --disable-libbind was given.
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsif test "${enable_libbind+set}" = set; then
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews enableval="$enable_libbind"
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews :
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsfi
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewscase "$enable_libbind" in
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews yes)
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews LIBBIND=lib/bind
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews ;;
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews no|'')
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews ;;
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewsesac
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Here begins a very long section to determine the system's networking
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# capabilities. The order of the tests is signficant.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# IPv6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-ipv6 or --disable-ipv6 was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_ipv6+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_ipv6"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtoncase "$enable_ipv6" in
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington yes|''|autodetect)
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington cat >> confdefs.h <<\EOF
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington#define WANT_IPV6 1
4108eed5092156cf0407a97a9bd8ab7775164694Brian WellingtonEOF
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington ;;
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington no)
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington ;;
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtonesac
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# We do the IPv6 compilation checking after libtool so that we can put
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the right suffix on the files.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtonecho $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7585: checking for IPv6 structures" >&5
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtoncat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7587 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr_in6 sin6; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington found_ipv6=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington found_ipv6=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# See whether IPv6 support is provided via a Kame add-on.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is done before other IPv6 linking tests to LIBS is properly set.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7615: checking for Kame IPv6 support" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-kame or --without-kame was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_kame+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence withval="$with_kame"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence use_kame="$withval"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence use_kame="no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$use_kame" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence no)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence yes)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence kame_path=/usr/local/v6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence kame_path="$use_kame"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$use_kame" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence no)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -f $kame_path/lib/libinet6.a; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LIBS="-L$kame_path/lib -linet6 $LIBS"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence { echo "configure: error: $kame_path/lib/libinet6.a not found.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrencePlease choose the proper path with the following command:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence configure --with-kame=PATH
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Including it on Kame-using platforms is very bad, though, because
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Kame uses #error against direct inclusion. So include it on only
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is done before the in6_pktinfo check because that's what
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# netinet6/in6.h is needed for.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$host" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*-bsdi4.[01]*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinet6in6_hack="#include <netinet6/in6.h>"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinet6in6_hack=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is similar to the netinet6/in6.h issue.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$host" in
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence*-sco-sysv*uw*)
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence # UnixWare
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrence ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinetin6_hack="#include <netinet/in6.h>"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrence ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinetin6_hack=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Now delve deeper into the suitability of the IPv6 support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$found_ipv6" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence yes)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo $ac_n "checking for in6_addr""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7706: checking for in6_addr" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7708 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinet6in6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsint main() {
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsstruct in6_addr in6; return (0);
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews; return 0; }
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews rm -rf conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""yes" 1>&6
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews isc_in_addr6_hack=""
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewselse
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "configure: failed program was:" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat conftest.$ac_ext >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews rm -rf conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""no" 1>&6
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews isc_in_addr6_hack="#define in6_addr in_addr6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsfi
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsrm -f conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7739: checking for in6addr_any" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7741 "configure"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include "confdefs.h"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <sys/types.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <sys/socket.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <netinet/in.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinetin6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinet6in6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_in_addr6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in6_addr in6; in6 = in6addr_any; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7771: checking for sin6_scope_id in struct sockaddr_in6" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7773 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinet6in6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_HAVE_SIN6_SCOPE_ID="$result"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7801: checking for in6_pktinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7803 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinet6in6_hack
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in6_pktinfo xyzzy; return (0);
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence no)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_IPV6_H="ipv6.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_IPV6_O="ipv6.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_ISCIPV6_O="unix/ipv6.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_IPV6_C="ipv6.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for network functions that are often missing. We do this
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# after the libtool checking, so we can put the right suffix on
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the files. It also needs to come after checking for a Kame add-on,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# which provides some (all?) of the desired functions.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7869: checking for inet_ntop" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7871 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceinet_ntop(0, 0, 0, 0); return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson# On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson# addresses with less than four octets, like "1.2.3".
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7901: checking for inet_pton" >&5
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafssonif test "$cross_compiling" = yes; then
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafssonelse
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7906 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafssonmain() { char a[4]; return (inet_pton(AF_INET, "1.2.3", a) == 0 ? 0 : 1); }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafssonthen
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson rm -fr conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafssonrm -fr conftest*
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafssonfi
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson
41149b919e439a0551be66eabe76398ab493e436Andreas Gustafsson
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7933: checking for inet_aton" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7935 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in_addr in; inet_aton(0, &in); return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for a 4.4BSD-style sa_len member in struct sockaddr.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$host" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *-dec-osf*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Turn on 4.4BSD style sa_len support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<\EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define _SOCKADDR_LEN 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:7978: checking for sa_len in struct sockaddr" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 7980 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr sa; sa.sa_len = 0; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:7989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for a 4.4BSD or 4.3BSD struct msghdr
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8010: checking for struct msghdr flavor" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8012 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct msghdr msg; msg.msg_flags = 0; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""4.4BSD" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""4.3BSD" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for in_port_t.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8039: checking for type in_port_t" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8041 "configure"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley#include "confdefs.h"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson#include <sys/types.h>
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson#include <netinet/in.h>
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencein_port_t port = 25; return (0);
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley; return 0; }
a7c7193f985cbb2d995775ae8be44878a6d453bdBob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley rm -rf conftest*
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyelse
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "configure: failed program was:" >&5
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley cat conftest.$ac_ext >&5
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley rm -rf conftest*
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfi
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyrm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for addrinfo
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8068: checking for struct addrinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8070 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct addrinfo a; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<\EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define HAVE_ADDRINFO 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8097: checking for int sethostent" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8099 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = sethostent(0); return(0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8122: checking for int endhostent" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8124 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = endhostent(); return(0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8147: checking for getnetbyaddr(in_addr_t, ...)" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8149 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct netent *getnetbyaddr(in_addr_t, int);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8173: checking for int setnetent" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8175 "configure"
b67a66514e9778907586786041705aaa832e8113Bob Halley#include "confdefs.h"
b67a66514e9778907586786041705aaa832e8113Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
b67a66514e9778907586786041705aaa832e8113Bob Halleyint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = setnetent(0); return(0);
b67a66514e9778907586786041705aaa832e8113Bob Halley; return 0; }
b67a66514e9778907586786041705aaa832e8113Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b67a66514e9778907586786041705aaa832e8113Bob Halley rm -rf conftest*
b67a66514e9778907586786041705aaa832e8113Bob Halley echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
b67a66514e9778907586786041705aaa832e8113Bob Halleyelse
b67a66514e9778907586786041705aaa832e8113Bob Halley echo "configure: failed program was:" >&5
b67a66514e9778907586786041705aaa832e8113Bob Halley cat conftest.$ac_ext >&5
b67a66514e9778907586786041705aaa832e8113Bob Halley rm -rf conftest*
b67a66514e9778907586786041705aaa832e8113Bob Halley echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
b67a66514e9778907586786041705aaa832e8113Bob Halleyfi
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graffrm -f conftest*
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8198: checking for int endnetent" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8200 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint i = endnetent(); return(0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonecho $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8223: checking for gethostbyaddr(const void *, size_t, ...)" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8225 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct hostent *gethostbyaddr(const void *, size_t, int);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencereturn(0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8249: checking for h_errno in netdb.h" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8251 "configure"
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff#include "confdefs.h"
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netdb.h>
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graffint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceh_errno = 1; return(0);
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff; return 0; }
8313838954d67250d0ed7edf67fba5da0790d1a7Michael GraffEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff rm -rf conftest*
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graffelse
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff echo "configure: failed program was:" >&5
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff cat conftest.$ac_ext >&5
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff rm -rf conftest*
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Grafffi
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graffrm -f conftest*
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8274: checking for getipnodebyname" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8279 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char getipnodebyname(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar getipnodebyname();
163bf7444f140c9201cc093c31431a56d4665af7Michael Graff
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graffint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechoke me
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencegetipnodebyname();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff; return 0; }
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael GraffEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getipnodebyname=yes"
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graffelse
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff echo "configure: failed program was:" >&5
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff cat conftest.$ac_ext >&5
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getipnodebyname=no"
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Grafffi
b67a66514e9778907586786041705aaa832e8113Bob Halleyrm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8323: checking for getnameinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8328 "configure"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char getnameinfo(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar getnameinfo();
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechoke me
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencegetnameinfo();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff; return 0; }
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael GraffEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getnameinfo=yes"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffelse
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff echo "configure: failed program was:" >&5
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff cat conftest.$ac_ext >&5
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getnameinfo=no"
28ed3013196c373745dbde87b75a490148dab840Bob Halleyfi
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8372: checking for getaddrinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8377 "configure"
28ed3013196c373745dbde87b75a490148dab840Bob Halley#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char getaddrinfo(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar getaddrinfo();
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halleyint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechoke me
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencegetaddrinfo();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
28ed3013196c373745dbde87b75a490148dab840Bob Halley; return 0; }
28ed3013196c373745dbde87b75a490148dab840Bob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
28ed3013196c373745dbde87b75a490148dab840Bob Halley rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getaddrinfo=yes"
28ed3013196c373745dbde87b75a490148dab840Bob Halleyelse
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "configure: failed program was:" >&5
28ed3013196c373745dbde87b75a490148dab840Bob Halley cat conftest.$ac_ext >&5
28ed3013196c373745dbde87b75a490148dab840Bob Halley rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_getaddrinfo=no"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<\EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define HAVE_GETADDRINFO 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonecho $ac_n "checking for gai_strerror""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8425: checking for gai_strerror" >&5
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonelse
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8430 "configure"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#include "confdefs.h"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* System header to define __stub macros and hopefully few prototypes,
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington which can conflict with char gai_strerror(); below. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#include <assert.h>
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* We use char because int might match the return type of a gcc2
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington builtin and then its argument prototype would still apply. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonchar gai_strerror();
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonint main() {
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington/* The GNU C library defines this for functions which it implements
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington to always fail with ENOSYS. Some functions are actually named
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington something starting with __ and the normal name is an alias. */
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonchoke me
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#else
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtongai_strerror();
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#endif
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington; return 0; }
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian WellingtonEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington rm -rf conftest*
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington eval "ac_cv_func_gai_strerror=yes"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonelse
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington echo "configure: failed program was:" >&5
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington cat conftest.$ac_ext >&5
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington rm -rf conftest*
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington eval "ac_cv_func_gai_strerror=no"
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonfi
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonrm -f conftest*
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonfi
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonif eval "test \"`echo '$ac_cv_func_'gai_strerror`\" = yes"; then
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington echo "$ac_t""yes" 1>&6
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington cat >> confdefs.h <<\EOF
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#define HAVE_GAISTRERROR 1
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian WellingtonEOF
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonelse
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington echo "$ac_t""no" 1>&6
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtonfi
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Look for a sysctl call to get the list of network interfaces.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8483: checking for interface list sysctl" >&5
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8485 "configure"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include "confdefs.h"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/param.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/sysctl.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#ifdef NET_RT_IFLIST
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefound_rt_iflist
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael GraffEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence egrep "found_rt_iflist" >/dev/null 2>&1; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff rm -rf conftest*
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<\EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define HAVE_IFLIST_SYSCTL 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffelse
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff rm -rf conftest*
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence echo "$ac_t""no" 1>&6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffrm -f conftest*
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence# Check for some other useful functions that are not ever-present.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsecho $ac_n "checking for strsep""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8515: checking for strsep" >&5
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewselse
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8520 "configure"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include "confdefs.h"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews which can conflict with char strsep(); below. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include <assert.h>
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* We use char because int might match the return type of a gcc2
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews builtin and then its argument prototype would still apply. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewschar strsep();
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsint main() {
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews/* The GNU C library defines this for functions which it implements
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews to always fail with ENOSYS. Some functions are actually named
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews something starting with __ and the normal name is an alias. */
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#if defined (__stub_strsep) || defined (__stub___strsep)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewschoke me
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#else
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsstrsep();
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#endif
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews; return 0; }
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews rm -rf conftest*
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews eval "ac_cv_func_strsep=yes"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewselse
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo "configure: failed program was:" >&5
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews cat conftest.$ac_ext >&5
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews rm -rf conftest*
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews eval "ac_cv_func_strsep=no"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsfi
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsrm -f conftest*
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsfi
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo "$ac_t""yes" 1>&6
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewselse
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo "$ac_t""no" 1>&6
0e8da6dbd60e874ad3259ac3d29a0a6193e0f9f0David LawrenceISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsfi
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8564: checking for vsnprintf" >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewselse
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8569 "configure"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include "confdefs.h"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews which can conflict with char vsnprintf(); below. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include <assert.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* We use char because int might match the return type of a gcc2
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews builtin and then its argument prototype would still apply. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewschar vsnprintf();
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsint main() {
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/* The GNU C library defines this for functions which it implements
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews to always fail with ENOSYS. Some functions are actually named
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews something starting with __ and the normal name is an alias. */
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewschoke me
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#else
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsvsnprintf();
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#endif
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews; return 0; }
affd6c025b39ec89a91056efb084fff7239ad6e3Mark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews rm -rf conftest*
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews eval "ac_cv_func_vsnprintf=yes"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewselse
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews echo "configure: failed program was:" >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews cat conftest.$ac_ext >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews rm -rf conftest*
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews eval "ac_cv_func_vsnprintf=no"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsfi
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsrm -f conftest*
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsfi
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews echo "$ac_t""yes" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewselse
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews echo "$ac_t""no" 1>&6
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark AndrewsISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrews ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsfi
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson#
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson# Determine the printf format characters to use when printing
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson# values of type isc_int64_t. We make the assumption that platforms
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson# where a "long long" is the same size as a "long" (e.g., Alpha/OSF1)
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson# want "%ld" and everyone else can use "%lld". Win32 uses "%I64d",
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson# but that's defined elsewhere since we don't use configure on Win32.
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson#
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafssonecho $ac_n "checking printf format modifier for 64-bit integers""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8628: checking printf format modifier for 64-bit integers" >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsif test "$cross_compiling" = yes; then
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson echo "$ac_t""default ll" 1>&6
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewselse
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8634 "configure"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews#include "confdefs.h"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsmain() { exit(!(sizeof(long long int) == sizeof(long int))); }
8a1930d026517e4733d680ac51abeb01353332c4Mark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsthen
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson echo "$ac_t""l" 1>&6
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewselse
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews echo "configure: failed program was:" >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews cat conftest.$ac_ext >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews rm -fr conftest*
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson echo "$ac_t""ll" 1>&6
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafsson ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsfi
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsrm -fr conftest*
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsfi
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Security Stuff
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for chroot""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8658: checking for chroot" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo $ac_n "(cached) $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8663 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* System header to define __stub macros and hopefully few prototypes,
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley which can conflict with char chroot(); below. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <assert.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* Override any gcc2 internal prototype to avoid an error. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* We use char because int might match the return type of a gcc2
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley builtin and then its argument prototype would still apply. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleychar chroot();
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyint main() {
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley/* The GNU C library defines this for functions which it implements
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley to always fail with ENOSYS. Some functions are actually named
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley something starting with __ and the normal name is an alias. */
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#if defined (__stub_chroot) || defined (__stub___chroot)
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleychoke me
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#else
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleychroot();
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#endif
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_func_chroot=yes"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "configure: failed program was:" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat conftest.$ac_ext >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_func_chroot=no"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyrm -f conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""yes" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat >> confdefs.h <<\EOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#define HAVE_CHROOT 1
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""no" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfor ac_hdr in linux/capability.h
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleydo
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8712: checking for $ac_hdr" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo $ac_n "(cached) $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8717 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <$ac_hdr>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson{ (eval echo configure:8722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif test -z "$ac_err"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_header_$ac_safe=yes"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_err" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "configure: failed program was:" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat conftest.$ac_ext >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley eval "ac_cv_header_$ac_safe=no"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyrm -f conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""yes" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat >> confdefs.h <<EOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#define $ac_tr_hdr 1
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""no" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleydone
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
1d1a5a98cf4f9de78cdee82d414a7ffc2d77af06Brian Wellingtonfor ac_hdr in sys/prctl.h
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleydo
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8752: checking for $ac_hdr" >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyelse
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8757 "configure"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include "confdefs.h"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include <$ac_hdr>
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob HalleyEOF
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson{ (eval echo configure:8762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif test -z "$ac_err"; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley rm -rf conftest*
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley eval "ac_cv_header_$ac_safe=yes"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyelse
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley echo "$ac_err" >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley echo "configure: failed program was:" >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley cat conftest.$ac_ext >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley rm -rf conftest*
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley eval "ac_cv_header_$ac_safe=no"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyfi
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyrm -f conftest*
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyfi
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley echo "$ac_t""yes" 1>&6
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley cat >> confdefs.h <<EOF
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#define $ac_tr_hdr 1
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob HalleyEOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyelse
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley echo "$ac_t""no" 1>&6
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyfi
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleydone
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence#
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# BSD/OS, and perhaps some others, don't define rlim_t.
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrenceecho $ac_n "checking for type rlim_t""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8793: checking for type rlim_t" >&5
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencecat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8795 "configure"
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include "confdefs.h"
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include <sys/types.h>
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include <sys/time.h>
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#include <sys/resource.h>
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrenceint main() {
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencerlim_t rl = 19671212; return (0);
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence; return 0; }
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David LawrenceEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence rm -rf conftest*
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence echo "$ac_t""yes" 1>&6
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence cat >> confdefs.h <<\EOF
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#define HAVE_RLIM_T 1
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David LawrenceEOF
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrenceelse
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence echo "configure: failed program was:" >&5
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence cat conftest.$ac_ext >&5
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence rm -rf conftest*
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence echo "$ac_t""no" 1>&6
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencefi
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencerm -f conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsecho $ac_n "checking sizeof rlim_cur""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8820: checking sizeof rlim_cur" >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsif test "$cross_compiling" = yes; then
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewselse
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8825 "configure"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include "confdefs.h"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/types.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/time.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/resource.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsmain() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsthen
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews echo "$ac_t""int" 1>&6
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewselse
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews echo "configure: failed program was:" >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews cat conftest.$ac_ext >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews rm -fr conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsif test "$cross_compiling" = yes; then
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewselse
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8846 "configure"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include "confdefs.h"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/types.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/time.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/resource.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsmain() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsthen
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews echo "$ac_t""long int" 1>&6
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewselse
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews echo "configure: failed program was:" >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews cat conftest.$ac_ext >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews rm -fr conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsif test "$cross_compiling" = yes; then
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewselse
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews cat > conftest.$ac_ext <<EOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#line 8867 "configure"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include "confdefs.h"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/types.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/time.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews#include <sys/resource.h>
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsmain() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsEOF
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsthen
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews echo "$ac_t""long long int" 1>&6
545d51072b8febd40ba3f06851fa1fc642258585Mark AndrewsISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewselse
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews echo "configure: failed program was:" >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews cat conftest.$ac_ext >&5
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews rm -fr conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews { echo "configure: error: unable to determine sizeof rlim_cur" 1>&2; exit 1; }
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsfi
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsrm -fr conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsfi
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsfi
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsrm -fr conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsfi
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsfi
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsrm -fr conftest*
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewsfi
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrews
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
52d6c41cfcf21ddd240ddba15f3cdccea2e1ef47Andreas Gustafsson
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrence#
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrence# Microsoft has their own way of handling shared libraries that requires
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrence# additional qualifiers on extern variables. Unix systems don't need it.
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrence#
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrence
37aa91031830d2fc428331378f089169eb3e6dc2David LawrenceISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence#
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# Random remaining OS-specific issues involving compiler warnings.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence# XXXDCL print messages to indicate some compensation is being done?
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence#
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David LawrenceISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrencecase "$host" in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence *-bsdi3.1*)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence hack_shutup_sputaux=yes
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence *-bsdi4.0*)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence hack_shutup_sigwait=yes
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence hack_shutup_sputaux=yes
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence *-bsdi4.1*)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence hack_shutup_stdargcast=yes
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence *-solaris2.8)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence hack_shutup_pthreadonceinit=yes
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrenceesac
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencecase "$hack_shutup_pthreadonceinit" in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence yes)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrenceesac
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencecase "$hack_shutup_sigwait" in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence yes)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up a -Wmissing-prototypes warning for sigwait().
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence cat >> confdefs.h <<\EOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence#define SHUTUP_SIGWAIT 1
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David LawrenceEOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrenceesac
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencecase "$hack_shutup_sputaux" in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence yes)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up a -Wmissing-prototypes warning from <stdio.h>.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence cat >> confdefs.h <<\EOF
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence#define SHUTUP_SPUTAUX 1
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid LawrenceEOF
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence ;;
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrenceesac
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencecase "$hack_shutup_stdargcast" in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence yes)
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Shut up a -Wcast-qual warning from va_start().
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence #
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence cat >> confdefs.h <<\EOF
49a2cf8f211213712d452287ae8e121cf59e3178David Lawrence#define SHUTUP_STDARG_CAST 1
49a2cf8f211213712d452287ae8e121cf59e3178David LawrenceEOF
49a2cf8f211213712d452287ae8e121cf59e3178David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ;;
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrenceesac
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# The following sections deal with tools used for formatting
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# the documentation. They are all optional, unless you are
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson# a developer editing the documentation source.
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson# Directory trees where SGML files are commonly found.
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonsgmltrees="/usr/pkg/share/sgml /usr/local/share/sgml"
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson#
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson# Look for openjade. Plain jade is no longer supported.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson#
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonfor ac_prog in openjade
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssondo
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson# Extract the first word of "$ac_prog", so it can be a program name with args.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonset dummy $ac_prog; ac_word=$2
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:8994: checking for $ac_word" >&5
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_OPENJADE'+set}'`\" = set"; then
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonelse
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson case "$OPENJADE" in
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson /*)
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson ac_cv_path_OPENJADE="$OPENJADE" # Let the user override the test with a path.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ;;
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ?:/*)
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson ac_cv_path_OPENJADE="$OPENJADE" # Let the user override the test with a dos path.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ;;
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson *)
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ac_dummy="$PATH"
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson for ac_dir in $ac_dummy; do
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson test -z "$ac_dir" && ac_dir=.
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson if test -f $ac_dir/$ac_word; then
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson ac_cv_path_OPENJADE="$ac_dir/$ac_word"
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson break
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson fi
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson done
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson IFS="$ac_save_ifs"
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson ;;
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonesac
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonfi
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas GustafssonOPENJADE="$ac_cv_path_OPENJADE"
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonif test -n "$OPENJADE"; then
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson echo "$ac_t""$OPENJADE" 1>&6
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonelse
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson echo "$ac_t""no" 1>&6
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssonfi
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssontest -n "$OPENJADE" && break
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafssondone
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssontest -n "$OPENJADE" || OPENJADE="openjade"
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson
d334bfdf70c54b8388c5875fac5daecf01cfca4aAndreas Gustafsson
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce#
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson# Look for TeX.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce#
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonfor ac_prog in jadetex
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucedo
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce# Extract the first word of "$ac_prog", so it can be a program name with args.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceset dummy $ac_prog; ac_word=$2
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9041: checking for $ac_word" >&5
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_JADETEX'+set}'`\" = set"; then
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce echo $ac_n "(cached) $ac_c" 1>&6
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceelse
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson case "$JADETEX" in
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce /*)
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ;;
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ?:/*)
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a dos path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ;;
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce *)
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ac_dummy="$PATH"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce for ac_dir in $ac_dummy; do
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce test -z "$ac_dir" && ac_dir=.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce if test -f $ac_dir/$ac_word; then
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson ac_cv_path_JADETEX="$ac_dir/$ac_word"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce break
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce fi
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce done
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce IFS="$ac_save_ifs"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ;;
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceesac
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucefi
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas GustafssonJADETEX="$ac_cv_path_JADETEX"
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonif test -n "$JADETEX"; then
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson echo "$ac_t""$JADETEX" 1>&6
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceelse
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce echo "$ac_t""no" 1>&6
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucefi
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssontest -n "$JADETEX" && break
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucedone
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssontest -n "$JADETEX" || JADETEX="jadetex"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonfor ac_prog in pdfjadetex
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucedo
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce# Extract the first word of "$ac_prog", so it can be a program name with args.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceset dummy $ac_prog; ac_word=$2
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9084: checking for $ac_word" >&5
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_PDFJADETEX'+set}'`\" = set"; then
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce echo $ac_n "(cached) $ac_c" 1>&6
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceelse
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson case "$PDFJADETEX" in
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce /*)
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson ac_cv_path_PDFJADETEX="$PDFJADETEX" # Let the user override the test with a path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ;;
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ?:/*)
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson ac_cv_path_PDFJADETEX="$PDFJADETEX" # Let the user override the test with a dos path.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ;;
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce *)
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ac_dummy="$PATH"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce for ac_dir in $ac_dummy; do
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce test -z "$ac_dir" && ac_dir=.
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce if test -f $ac_dir/$ac_word; then
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson ac_cv_path_PDFJADETEX="$ac_dir/$ac_word"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce break
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce fi
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce done
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce IFS="$ac_save_ifs"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce ;;
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceesac
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucefi
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas GustafssonPDFJADETEX="$ac_cv_path_PDFJADETEX"
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonif test -n "$PDFJADETEX"; then
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson echo "$ac_t""$PDFJADETEX" 1>&6
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luceelse
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce echo "$ac_t""no" 1>&6
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucefi
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssontest -n "$PDFJADETEX" && break
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Lucedone
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssontest -n "$PDFJADETEX" || PDFJADETEX="pdfjadetex"
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
2bd433da8785d3da8e8dd140248762c5d3220b0fEric Luce
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonSGMLCATALOG=""
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonecho $ac_n "checking for catalog""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9125: checking for catalog" >&5
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonfor d in $sgmltrees
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssondo
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson f=$d/catalog
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson if test -f $f
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson then
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson SGMLCATALOG=$f
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson echo "$ac_t""$f" 1>&6
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson break
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson fi
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$SGMLCATALOG" = "X"
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonthen
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson echo "$ac_t"""not found"" 1>&6;
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson SGMLCATALOG=catalog
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonfi
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson#
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson# Look for the HTML stylesheet html/docbook.dsl, used for
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson# formatting man pages in HTML. Its location varies,
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson# so far we have seen:
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson#
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson# NetBSD /usr/pkg/share/docbook/dsssl/modular/
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson# FreeBSD /usr/local/share/docbook/dsssl/modular/
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson# Linux /usr/local/share/dsssl/docbook/
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson#
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson# Ditto for the print stylesheet print/docbook.dsl.
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson#
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonstylepath=""
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonfor d in $sgmltrees
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafssondo
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson for s in docbook/dsssl/modular dsssl/docbook
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson do
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson stylepath="$stylepath $d/$s"
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson done
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafssondone
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonHTMLSTYLE=""
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonecho $ac_n "checking for html/docbook.dsl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9167: checking for html/docbook.dsl" >&5
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonfor d in $stylepath
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssondo
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson f=$d/html/docbook.dsl
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson if test -f $f
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson then
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson HTMLSTYLE=$f
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson echo "$ac_t""$f" 1>&6
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson break
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson fi
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$HTMLSTYLE" = "X"
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafssonthen
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson echo "$ac_t"""not found"" 1>&6;
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson HTMLSTYLE=html/docbook.dsl
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafssonfi
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonPRINTSTYLE=""
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonecho $ac_n "checking for print/docbook.dsl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9188: checking for print/docbook.dsl" >&5
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonfor d in $stylepath
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssondo
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson f=$d/print/docbook.dsl
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson if test -f $f
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson then
50d522b2b362dba697eada85d608554c9c76f4cfAndreas Gustafsson PRINTSTYLE=$f
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson echo "$ac_t""$f" 1>&6
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson break
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson fi
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$PRINTSTYLE" = "X"
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonthen
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson echo "$ac_t"""not found"" 1>&6;
50d522b2b362dba697eada85d608554c9c76f4cfAndreas Gustafsson PRINTSTYLE=print/docbook.dsl
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssonfi
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson#
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson# Look for XML declarations
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson#
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonXMLDCL=""
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonecho $ac_n "checking for docbook/dsssl/modular/dtds/decls/xml.dcl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9214: checking for docbook/dsssl/modular/dtds/decls/xml.dcl" >&5
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonfor d in $sgmltrees
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssondo
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson f=$d/docbook/dsssl/modular/dtds/decls/xml.dcl
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson if test -f $f
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson then
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson XMLDCL=$f
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson echo "$ac_t""$f" 1>&6
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson break
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson fi
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$XMLDCL" = "X"
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonthen
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafsson echo "$ac_t"""not found"" 1>&6;
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson XMLDCL=docbook/dsssl/modular/dtds/decls/xml.dcl
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssonfi
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson
a737f45fbacf209ec75595c85447b2bfd264138bAndreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson#
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson# Look for docbook2man-spec.pl
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson#
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas GustafssonDOCBOOK2MANSPEC=""
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonecho $ac_n "checking for docbook2X/docbook2man-spec.pl""... $ac_c" 1>&6
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho "configure:9240: checking for docbook2X/docbook2man-spec.pl" >&5
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssonfor d in $sgmltrees
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssondo
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson f=$d/docbook2X/docbook2man-spec.pl
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson if test -f $f
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson then
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson DOCBOOK2MANSPEC=$f
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson echo "$ac_t""$f" 1>&6
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson break
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson fi
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssondone
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "X$DOCBOOK2MANSPEC" = "X"
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssonthen
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson echo "$ac_t"""not found"" 1>&6;
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson DOCBOOK2MANSPEC=docbook2X/docbook2man-spec.pl
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafssonfi
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson
b13ad5067fbd3bab9b6bf3b97217f3e86306f689Andreas Gustafsson
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafsson
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Substitutions
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyBIND9_TOP_BUILDDIR=`pwd`
ff82c51f2ebe78c7dc7def880a9a70c2b3f1fd0dBob Halley
ff82c51f2ebe78c7dc7def880a9a70c2b3f1fd0dBob Halley
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif test "X$srcdir" != "X"; then
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyelse
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley BIND9_ISC_BUILDINCLUDE=""
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington BIND9_ISCCC_BUILDINCLUDE=""
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson BIND9_ISCCFG_BUILDINCLUDE=""
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley BIND9_DNS_BUILDINCLUDE=""
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff BIND9_LWRES_BUILDINCLUDE=""
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyfi
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob HalleyBIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyBIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael Graff. $srcdir/version
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael GraffBIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyLIBISC_API=$srcdir/lib/isc/api
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
b1e8b7fd92f6b23954c8077d6f5de93fab23fc12Andreas GustafssonLIBISCCC_API=$srcdir/lib/isccc/api
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas GustafssonLIBISCCFG_API=$srcdir/lib/isccfg/api
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyLIBDNS_API=$srcdir/lib/dns/api
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence
b2f85baf7905bad89781f8ef73003d4cfa955257Michael GraffLIBLWRES_API=$srcdir/lib/lwres/api
b2f85baf7905bad89781f8ef73003d4cfa955257Michael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap '' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > confcache <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This file is a shell script that caches the results of configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# tests run on this system so they can be shared between configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# scripts and configure runs. It is not useful on other systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If it contains results you don't want to keep, you may remove or edit it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# By default, configure uses ./config.cache as the cache file,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# creating it if it does not exist already. You can give configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the --cache-file=FILE option to use a different cache file; that is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# what configure does when it calls configure scripts in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# subdirectories, so they share the cache.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Giving --cache-file=/dev/null disables caching, for debugging configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# config.status only pays attention to the cache file if you give it the
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# --recheck option to rerun configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The following way of writing the cache mishandles newlines in values,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# but we know of no workaround that is simple, portable, and efficient.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# So, don't put newlines in cache variables' values.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Ultrix sh set writes to stderr and can't be redirected directly,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# and sets the high bit in the cache file unless we assign to the vars.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley(set) 2>&1 |
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley case `(ac_space=' '; set | grep ac_space) 2>&1` in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *ac_space=\ *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # `set' does not quote correctly, so add quotes (double-quote substitution
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # turns \\\\ into \\, and sed turns \\ into \).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -n \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e "s/'/'\\\\''/g" \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # `set' quotes correctly as required by POSIX, so do not add quotes.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac >> confcache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif cmp -s $cache_file confcache; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -w $cache_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "updating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat confcache > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "not updating unwritable cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f confcache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$prefix" = xNONE && prefix=$ac_default_prefix
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Let make expand exec_prefix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any assignment to VPATH causes Sun make to only execute
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the first set of double-colon rules, so remove it if not needed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If there is a colon in the path, we need to keep it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "x$srcdir" = x.; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDEFS=-DHAVE_CONFIG_H
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Without the "./", some shells look in PATH for config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley: ${CONFIG_STATUS=./config.status}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho creating $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Generated automatically by configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Run this file to recreate the current configuration.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This directory was configured as follows,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# $0 $ac_configure_args
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Compiler output produced by configure, useful for debugging
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure, is in ./config.log if it exists.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "\$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$CONFIG_STATUS generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he | --h)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "\$ac_cs_usage"; exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) echo "\$ac_cs_usage"; exit 1 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_srcdir=$srcdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_INSTALL="$INSTALL"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleytrap 'rm -fr `echo "make/rules
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley make/includes
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley Makefile
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley make/Makefile
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley make/mkdep
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley lib/isc/include/isc/platform.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley lib/isc/nls/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/isc/Makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington lib/isccc/Makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington lib/isccc/include/Makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington lib/isccc/include/isccc/Makefile
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson lib/isccfg/Makefile
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson lib/isccfg/include/Makefile
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson lib/isccfg/include/isccfg/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/dst/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/lwres/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/lwres/include/lwres/netdb.h
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley lib/lwres/include/lwres/platform.h
bf6d4f9cad79d182eea7487e2ee2fb2bc4b0824eBrian Wellington lib/lwres/man/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/unix/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/unix/include/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/unix/include/lwres/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/win32/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/win32/include/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/win32/include/lwres/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
fa67ca21f6d5033221d9893b3c38a7bf8fecdb18Mark Andrews bin/check/Makefile
690a68b8112039e633e26f9216c0d463751e011aMichael Graff bin/named/Makefile
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley bin/named/unix/Makefile
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence bin/rndc/Makefile
7a79882f00c1afb7091c9dc9da900aeb7eac51f1Michael Sawyer bin/dig/Makefile
d11097cf86e789c8dbb7df86753491b30add2f5aMichael Sawyer bin/nsupdate/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/names/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/master/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/rbt/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/db/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/tasks/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/timers/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington bin/tests/dst/Makefile
b2e6071406542058cca3c34cbe04d324322dfa05Bob Halley bin/tests/mem/Makefile
0111b7c5e12837bca4b97d2dd0e3989348a6a85dMichael Graff bin/tests/net/Makefile
683da0cd900532fc45fa4dfb687b5041156ec8abAndreas Gustafsson bin/tests/sockaddr/Makefile
7ffc4c63ac8841d127c2d77c8716cc0dc483badcDavid Lawrence bin/tests/system/Makefile
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson bin/tests/system/conf.sh
39469093ea30f42ee3fcc6c457688cf8577432c6Brian Wellington bin/tests/system/lwresd/Makefile
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington bin/tests/system/tkey/Makefile
e855fd594d04413c29504bdc6b8792be9fa79bd2Andreas Gustafsson bin/tests/headerdep_test.sh
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafsson bin/dnssec/Makefile
4bd173d7ae482d5cc297295aca6db1d609ab7b91Andreas Gustafsson doc/Makefile
59563a18b7d83c3de5bb4b57f41fb4c0f9162cd0Andreas Gustafsson doc/arm/Makefile
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/nominum-docbook-html.dsl
dc50587e2e2411c43e4e09f500fb41f9f3856125Andreas Gustafsson doc/arm/nominum-docbook-print.dsl
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/validate.sh
6c68e68fc550c947100581eb7b5340b81c062c94Andreas Gustafsson docutil/docbook2man-wrapper.sh
c7dd0420a25bcc4adcdd8d8f9d6b01c3e90ae816Brian Wellington isc-config.sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley$ac_vpsub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley$extrasub
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@SHELL@%$SHELL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CFLAGS@%$CFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CPPFLAGS@%$CPPFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CXXFLAGS@%$CXXFLAGS%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@FFLAGS@%$FFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DEFS@%$DEFS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LDFLAGS@%$LDFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LIBS@%$LIBS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@exec_prefix@%$exec_prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@prefix@%$prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@program_transform_name@%$program_transform_name%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@bindir@%$bindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sbindir@%$sbindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libexecdir@%$libexecdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@datadir@%$datadir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sysconfdir@%$sysconfdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sharedstatedir@%$sharedstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@localstatedir@%$localstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libdir@%$libdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@includedir@%$includedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@oldincludedir@%$oldincludedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@infodir@%$infodir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@mandir@%$mandir%g
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrewss%@subdirs@%$subdirs%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host@%$host%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_alias@%$host_alias%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_cpu@%$host_cpu%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_vendor@%$host_vendor%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_os@%$host_os%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@SET_MAKE@%$SET_MAKE%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@RANLIB@%$RANLIB%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_DATA@%$INSTALL_DATA%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CINCLUDES@%$STD_CINCLUDES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CDEFINES@%$STD_CDEFINES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CWARNINGS@%$STD_CWARNINGS%g
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian Wellingtons%@CCOPT@%$CCOPT%g
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrences%@AR@%$AR%g
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrences%@ARFLAGS@%$ARFLAGS%g
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafssons%@LN@%$LN%g
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffs%@ETAGS@%$ETAGS%g
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssons%@PERL@%$PERL%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@CC@%$CC%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@CPP@%$CPP%g
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewss%@ISC_PLATFORM_HAVELONGLONG@%$ISC_PLATFORM_HAVELONGLONG%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@ISC_PLATFORM_NEEDSYSSELECTH@%$ISC_PLATFORM_NEEDSYSSELECTH%g
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssons%@LWRES_PLATFORM_NEEDSYSSELECTH@%$LWRES_PLATFORM_NEEDSYSSELECTH%g
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssons%@use_openssl@%$use_openssl%g
08a768e82ad64ede97f640c88e02984b59122753Michael Graffs%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
08a768e82ad64ede97f640c88e02984b59122753Michael Graffs%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
b54a21e047f86d35396e898c008df6b7997568e6Brian Wellingtons%@USE_OPENSSL@%$USE_OPENSSL%g
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtons%@USE_GSSAPI@%$USE_GSSAPI%g
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtons%@DST_GSSAPI_INC@%$DST_GSSAPI_INC%g
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtons%@DNS_GSSAPI_LIBS@%$DNS_GSSAPI_LIBS%g
35020e50ce3de1800ef6cf0af63cbab4b78ab6f6Bob Halleys%@ALWAYS_DEFINES@%$ALWAYS_DEFINES%g
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrences%@ISC_PLATFORM_USETHREADS@%$ISC_PLATFORM_USETHREADS%g
65e218048d7be538af52710195e3ccc7d1427402Brian Wellingtons%@ISC_THREAD_DIR@%$ISC_THREAD_DIR%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@MKDEPCC@%$MKDEPCC%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@MKDEPPROG@%$MKDEPPROG%g
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrences%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobs%@purify_path@%$purify_path%g
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobs%@PURIFY@%$PURIFY%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build@%$build%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_alias@%$build_alias%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_cpu@%$build_cpu%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_vendor@%$build_vendor%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@build_os@%$build_os%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LN_S@%$LN_S%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@OBJEXT@%$OBJEXT%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@EXEEXT@%$EXEEXT%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ECHO@%$ECHO%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@STRIP@%$STRIP%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LIBTOOL@%$LIBTOOL%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@O@%$O%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@A@%$A%g
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafssons%@SA@%$SA%g
bbc715f20b8f7d4348c1e094ae301496ccc589ceBob Halleys%@LIBTOOL_MKDEP_SED@%$LIBTOOL_MKDEP_SED%g
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrewss%@LIBBIND@%$LIBBIND%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleys%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrences%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrences%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrences%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrences%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@ISC_PLATFORM_HAVEINADDR6@%$ISC_PLATFORM_HAVEINADDR6%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@LWRES_PLATFORM_HAVEINADDR6@%$LWRES_PLATFORM_HAVEINADDR6%g
b67a66514e9778907586786041705aaa832e8113Bob Halleys%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrences%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graffs%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrences%@ISC_PLATFORM_FIXIN6ISADDR@%$ISC_PLATFORM_FIXIN6ISADDR%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_IPV6_H@%$ISC_IPV6_H%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_IPV6_O@%$ISC_IPV6_O%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleys%@ISC_IPV6_C@%$ISC_IPV6_C%g
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graffs%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
51a659eb711eb6a17891675d3de6b8085a766ab2Mark Andrewss%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffs%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleys%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
28a3d529046ec5536e1ea619454624b683509675Andreas Gustafssons%@ISC_PLATFORM_QUADFORMAT@%$ISC_PLATFORM_QUADFORMAT%g
545d51072b8febd40ba3f06851fa1fc642258585Mark Andrewss%@ISC_PLATFORM_RLIMITTYPE@%$ISC_PLATFORM_RLIMITTYPE%g
37aa91031830d2fc428331378f089169eb3e6dc2David Lawrences%@ISC_PLATFORM_USEDECLSPEC@%$ISC_PLATFORM_USEDECLSPEC%g
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrences%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssons%@OPENJADE@%$OPENJADE%g
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssons%@JADETEX@%$JADETEX%g
f9f9c47053364ba915d3ef0dbb4f55bd202487daAndreas Gustafssons%@PDFJADETEX@%$PDFJADETEX%g
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssons%@SGMLCATALOG@%$SGMLCATALOG%g
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssons%@HTMLSTYLE@%$HTMLSTYLE%g
50d522b2b362dba697eada85d608554c9c76f4cfAndreas Gustafssons%@PRINTSTYLE@%$PRINTSTYLE%g
60084a1a5a9e570842b8147ff4c34b68ce4de7f8Andreas Gustafssons%@XMLDCL@%$XMLDCL%g
eee33df05a5f370bb74f6e9f7925642ba8a27c26Andreas Gustafssons%@DOCBOOK2MANSPEC@%$DOCBOOK2MANSPEC%g
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halleys%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtons%@BIND9_ISCCC_BUILDINCLUDE@%$BIND9_ISCCC_BUILDINCLUDE%g
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafssons%@BIND9_ISCCFG_BUILDINCLUDE@%$BIND9_ISCCFG_BUILDINCLUDE%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graffs%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley/@BIND9_INCLUDES@/r $BIND9_INCLUDES
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleys%@BIND9_INCLUDES@%%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@BIND9_MAKE_RULES@%%g
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael Graffs%@BIND9_VERSION@%$BIND9_VERSION%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/@LIBISC_API@/r $LIBISC_API
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LIBISC_API@%%g
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington/@LIBISCCC_API@/r $LIBISCCC_API
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtons%@LIBISCCC_API@%%g
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson/@LIBISCCFG_API@/r $LIBISCCFG_API
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafssons%@LIBISCCFG_API@%%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/@LIBDNS_API@/r $LIBDNS_API
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@LIBDNS_API@%%g
b2f85baf7905bad89781f8ef73003d4cfa955257Michael Graff/@LIBLWRES_API@/r $LIBLWRES_API
b2f85baf7905bad89781f8ef73003d4cfa955257Michael Graffs%@LIBLWRES_API@%%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Split the substitutions into bite-sized pieces for seds with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# small command number limits, like on Digital OSF/1 and HP-UX.
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafssonac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_file=1 # Number of current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_beg=1 # First line for current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_end=$ac_max_sed_cmds # Line after last line for current file.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_more_lines=:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_sed_cmds=""
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleywhile $ac_more_lines; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test $ac_beg -gt 1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed "${ac_end}q" conftest.subs > conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -s conftest.s$ac_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_more_lines=false
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_sed_cmds"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds="sed -f conftest.s$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file=`expr $ac_file + 1`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_beg=$ac_end
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_end=`expr $ac_end + $ac_max_sed_cmds`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_sed_cmds"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_sed_cmds=cat
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyCONFIG_FILES=\${CONFIG_FILES-"make/rules
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley make/includes
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley Makefile
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley make/Makefile
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley make/mkdep
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley lib/isc/include/isc/platform.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley lib/isc/nls/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/Makefile
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington lib/isc/$thread_dir/include/isc/Makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington lib/isccc/Makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington lib/isccc/include/Makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington lib/isccc/include/isccc/Makefile
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson lib/isccfg/Makefile
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson lib/isccfg/include/Makefile
0aabaa4fdd38f466d703295120d8d062a6e2dfdfAndreas Gustafsson lib/isccfg/include/isccfg/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington lib/dns/sec/dst/include/dst/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/Makefile
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff lib/lwres/include/lwres/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/lwres/include/lwres/netdb.h
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley lib/lwres/include/lwres/platform.h
bf6d4f9cad79d182eea7487e2ee2fb2bc4b0824eBrian Wellington lib/lwres/man/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/unix/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/unix/include/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/unix/include/lwres/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/win32/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/win32/include/Makefile
2729fdfb8d646f70293750433d153505c784ad7dAndreas Gustafsson lib/lwres/win32/include/lwres/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
fa67ca21f6d5033221d9893b3c38a7bf8fecdb18Mark Andrews bin/check/Makefile
690a68b8112039e633e26f9216c0d463751e011aMichael Graff bin/named/Makefile
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley bin/named/unix/Makefile
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence bin/rndc/Makefile
7a79882f00c1afb7091c9dc9da900aeb7eac51f1Michael Sawyer bin/dig/Makefile
d11097cf86e789c8dbb7df86753491b30add2f5aMichael Sawyer bin/nsupdate/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/names/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/master/Makefile
44aae046c38e796e581110b7ecdf4478167d684dBob Halley bin/tests/rbt/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/db/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/tasks/Makefile
a4fe5869c06072365156af9c332fd55fb4af2e43William King bin/tests/timers/Makefile
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington bin/tests/dst/Makefile
b2e6071406542058cca3c34cbe04d324322dfa05Bob Halley bin/tests/mem/Makefile
0111b7c5e12837bca4b97d2dd0e3989348a6a85dMichael Graff bin/tests/net/Makefile
683da0cd900532fc45fa4dfb687b5041156ec8abAndreas Gustafsson bin/tests/sockaddr/Makefile
7ffc4c63ac8841d127c2d77c8716cc0dc483badcDavid Lawrence bin/tests/system/Makefile
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson bin/tests/system/conf.sh
39469093ea30f42ee3fcc6c457688cf8577432c6Brian Wellington bin/tests/system/lwresd/Makefile
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington bin/tests/system/tkey/Makefile
e855fd594d04413c29504bdc6b8792be9fa79bd2Andreas Gustafsson bin/tests/headerdep_test.sh
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafsson bin/dnssec/Makefile
4bd173d7ae482d5cc297295aca6db1d609ab7b91Andreas Gustafsson doc/Makefile
59563a18b7d83c3de5bb4b57f41fb4c0f9162cd0Andreas Gustafsson doc/arm/Makefile
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/nominum-docbook-html.dsl
dc50587e2e2411c43e4e09f500fb41f9f3856125Andreas Gustafsson doc/arm/nominum-docbook-print.dsl
dc72c22fed5890484c7e5c000c64815eacfe7f00Andreas Gustafsson doc/arm/validate.sh
6c68e68fc550c947100581eb7b5340b81c062c94Andreas Gustafsson docutil/docbook2man-wrapper.sh
c7dd0420a25bcc4adcdd8d8f9d6b01c3e90ae816Brian Wellington isc-config.sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley"}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_file" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_file_in="${ac_file}.in" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Remove last slash and all that follows it. Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # The file is in a subdirectory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test ! -d "$ac_dir" && mkdir "$ac_dir"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # A "../" for each directory in $ac_dir_suffix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir_suffix= ac_dots=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_given_srcdir" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley .) srcdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_dots"; then top_srcdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) # Relative path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley top_srcdir="$ac_dots$ac_given_srcdir" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_given_INSTALL" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [/$]*) INSTALL="$ac_given_INSTALL" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo creating "$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f "$ac_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_file" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *Makefile*) ac_comsub="1i\\
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# $configure_input" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_comsub= ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -e "$ac_comsub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@configure_input@%$configure_input%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@srcdir@%$srcdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@top_srcdir@%$top_srcdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL@%$INSTALL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi; done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.s*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NAME is the cpp macro being defined and VALUE is the value it is being given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_d sets the value in "#define NAME VALUE" lines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dC='\3'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_dD='%g'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uB='\([ ]\)%\1#\2define\3'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uC=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_uD='\4%g'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eB='$%\1#\2define\3'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eC=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_eD='%g'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${CONFIG_HEADERS+set}" != set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_HEADERS="config.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_file" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_file_in="${ac_file}.in" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo creating $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.frag conftest.in conftest.out
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat $ac_file_inputs > conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Transform confdefs.h into a sed script conftest.vals that substitutes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the proper values into config.h.in to produce config.h. And first:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being in an unquoted here document in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.hdr <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys/[\\&%]/\\&/g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%[\\$`]%\\&%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%ac_d%ac_u%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%ac_u%ac_e%gp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysed -n -f conftest.hdr confdefs.h > conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.hdr
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This sed command replaces #undef with comments. This is necessary, for
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# example, in the case of _POSIX_SOURCE, which is predefined and required
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on some systems where configure will not decide to define it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> conftest.vals <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Break up conftest.vals because some shells have a limit on
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the size of here documents, and old seds have small limits too.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.tail
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleywhile :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_lines=`grep -c . conftest.vals`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # grep -c gives empty output for an empty file on some AIX systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Write a limited-size here document to conftest.frag.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo 'CEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -f conftest.frag conftest.in > conftest.out
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mv conftest.out conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley' >> $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mv conftest.tail conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest.vals
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.frag conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.in >> conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if cmp -s $ac_file conftest.h 2>/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_file is unchanged"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f conftest.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Remove last slash and all that follows it. Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # The file is in a subdirectory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test ! -d "$ac_dir" && mkdir "$ac_dir"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -f $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mv conftest.h $ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi; done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexit 0
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychmod +x $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr confdefs* $ac_clean_files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrewsif test "$no_recursion" != yes; then
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # Remove --cache-file and --srcdir arguments so they do not pile up.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_configure_args=
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_prev=
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews for ac_arg in $ac_configure_args; do
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews if test -n "$ac_prev"; then
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_prev=
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews continue
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews fi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews case "$ac_arg" in
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews -cache-file | --cache-file | --cache-fil | --cache-fi \
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_prev=cache_file ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_prev=srcdir ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews esac
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews done
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews for ac_config_dir in lib/bind; do
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # Do not complain, so a configure script can configure whichever
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # parts of a large source tree are present.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews if test ! -d $srcdir/$ac_config_dir; then
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews continue
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews fi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews echo configuring in $ac_config_dir
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews case "$srcdir" in
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews .) ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews *)
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews else
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews fi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews esac
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_popdir=`pwd`
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews cd $ac_config_dir
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # A "../" for each directory in /$ac_config_dir.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews case "$srcdir" in
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews .) # No --srcdir option. We are building in place.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_srcdir=$srcdir ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews /*) # Absolute path.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_srcdir=$srcdir/$ac_config_dir ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews *) # Relative path.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews esac
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # Check for guested configure; otherwise get Cygnus style configure.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews if test -f $ac_sub_srcdir/configure; then
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_configure=$ac_sub_srcdir/configure
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews elif test -f $ac_sub_srcdir/configure.in; then
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_configure=$ac_configure
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews else
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_configure=
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews fi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # The recursion is here.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews if test -n "$ac_sub_configure"; then
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # Make the cache file name correct relative to the subdirectory.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews case "$cache_file" in
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews /*) ac_sub_cache_file=$cache_file ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews *) # Relative path.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews ac_sub_cache_file="$ac_dots$cache_file" ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews esac
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews case "$ac_given_INSTALL" in
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews [/$]*) INSTALL="$ac_given_INSTALL" ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews esac
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews # The eval makes quoting arguments work.
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews then :
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews else
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews fi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews fi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews cd $ac_popdir
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews done
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrewsfi
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews
c7dd0420a25bcc4adcdd8d8f9d6b01c3e90ae816Brian Wellingtonchmod a+x isc-config.sh
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence# Tell Emacs to edit this file in shell mode.
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence# Local Variables:
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence# mode: sh
afbf0f0d778da7958bbd8d7d71614f32cdc9a9b0David Lawrence# End: