configure revision 2c7e99b941c3f1ffa29f9034c710f358c09f13c9
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#! /bin/sh
28d9fd53819cc163629c867466b20d8ebcae8842David Lawrence
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# From configure.in Revision: 1.26
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Guess values for system-dependent variables and create Makefiles.
15a44745412679c30a6d022733925af70a38b715David Lawrence# Generated automatically using autoconf version 2.12
15a44745412679c30a6d022733925af70a38b715David Lawrence# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# This configure script is free software; the Free Software Foundation
15a44745412679c30a6d022733925af70a38b715David Lawrence# gives unlimited permission to copy, distribute and modify it.
15a44745412679c30a6d022733925af70a38b715David Lawrence
15a44745412679c30a6d022733925af70a38b715David Lawrence# Defaults:
15a44745412679c30a6d022733925af70a38b715David Lawrenceac_help=
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsac_default_prefix=/usr/local
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Any additions from configure.in:
b589e90689c6e87bf9608424ca8d99571c18bc61Mark Andrewsac_help="$ac_help
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graff --with-mit-pthreads use the mit-pthreads thread library"
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graffac_help="$ac_help
de153390f5a1f6d4fa86af91d4cae772d9846ca0Mark Andrews --with-ptl2 use the ptl2 thread library"
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graff
822f6cdabb1edd44472c7a758b5cae71376fa9beBrian Wellington# Initialize some variables set by options.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# The variables have the same names as the options, with
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# dashes changed to underlines.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencebuild=NONE
973a19342597823f111fce6a8cd5adfd0e2e7c0dMark Andrewscache_file=./config.cache
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graffexec_prefix=NONE
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencehost=NONE
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrenceno_create=
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencenonopt=NONE
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrenceno_recursion=
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrenceprefix=NONE
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsprogram_prefix=NONE
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsprogram_suffix=NONE
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrenceprogram_transform_name=s,x,x,
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewssilent=
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencesite=
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewssrcdir=
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssontarget=NONE
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonverbose=
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonx_includes=NONE
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsx_libraries=NONE
eb6bd543c7d072efdca509eb17f8f301c1467b53Mark Andrewsbindir='${exec_prefix}/bin'
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrencesbindir='${exec_prefix}/sbin'
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrencelibexecdir='${exec_prefix}/libexec'
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrencedatadir='${prefix}/share'
eb6bd543c7d072efdca509eb17f8f301c1467b53Mark Andrewssysconfdir='${prefix}/etc'
deaaf94332abbfdb3aff53675546acfed16e5eb6Mark Andrewssharedstatedir='${prefix}/com'
0b056755b2f423ba5f6adac8f7851d78f7d11437David Lawrencelocalstatedir='${prefix}/var'
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrencelibdir='${exec_prefix}/lib'
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrenceincludedir='${prefix}/include'
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrenceoldincludedir='/usr/include'
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrenceinfodir='${prefix}/info'
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrencemandir='${prefix}/man'
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
0b056755b2f423ba5f6adac8f7851d78f7d11437David Lawrence# Initialize some other variables.
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrencesubdirs=
6d12fdf96621801e80f3f4c2a8a569fe48766a20David LawrenceMFLAGS= MAKEFLAGS=
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence# Maximum number of lines to put in a shell here document.
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrenceac_max_here_lines=12
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrenceac_prev=
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrencefor ac_option
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrencedo
0b056755b2f423ba5f6adac8f7851d78f7d11437David Lawrence
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence # If the previous option needs an argument, assign it.
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence if test -n "$ac_prev"; then
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence eval "$ac_prev=\$ac_option"
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence ac_prev=
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence continue
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence fi
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence case "$ac_option" in
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence *) ac_optarg= ;;
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence esac
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence # Accept the important Cygnus configure options, so we can diagnose typos.
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson case "$ac_option" in
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson -bindir | --bindir | --bindi | --bind | --bin | --bi)
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson ac_prev=bindir ;;
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson bindir="$ac_optarg" ;;
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson -build | --build | --buil | --bui | --bu)
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson ac_prev=build ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence build="$ac_optarg" ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -cache-file | --cache-file | --cache-fil | --cache-fi \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_prev=cache_file ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence cache_file="$ac_optarg" ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_prev=datadir ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --da=*)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence datadir="$ac_optarg" ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence -disable-* | --disable-*)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence # Reject names that are not valid shell variable names.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence fi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence eval "enable_${ac_feature}=no" ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -enable-* | --enable-*)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence # Reject names that are not valid shell variable names.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence fi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence case "$ac_option" in
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence *=*) ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence *) ac_optarg=yes ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence esac
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence eval "enable_${ac_feature}='$ac_optarg'" ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --exec | --exe | --ex)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_prev=exec_prefix ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence | --exec=* | --exe=* | --ex=*)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence exec_prefix="$ac_optarg" ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -gas | --gas | --ga | --g)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence # Obsolete; use --with-gas.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence with_gas=yes ;;
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -help | --help | --hel | --he)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence # Omit some internal or obsolete options to make the list less imposing.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence # This message is too long to be a string in the A/UX 3.1 sh.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence cat << EOF
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceUsage: configure [options] [host]
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceOptions: [defaults in brackets after descriptions]
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceConfiguration:
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --cache-file=FILE cache test results in FILE
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --help print this message
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --no-create do not create output files
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --quiet, --silent do not print \`checking...' messages
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --version print the version of autoconf that created configure
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceDirectory and file names:
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --prefix=PREFIX install architecture-independent files in PREFIX
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence [$ac_default_prefix]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence [same as prefix]
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence --bindir=DIR user executables in DIR [EPREFIX/bin]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence --datadir=DIR read-only architecture-independent data in DIR
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence [PREFIX/share]
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --sharedstatedir=DIR modifiable architecture-independent data in DIR
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews [PREFIX/com]
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews --libdir=DIR object code libraries in DIR [EPREFIX/lib]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --includedir=DIR C header files in DIR [PREFIX/include]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence --infodir=DIR info documentation in DIR [PREFIX/info]
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafsson --mandir=DIR man documentation in DIR [PREFIX/man]
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --srcdir=DIR find the sources in DIR [configure dir or ..]
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --program-prefix=PREFIX prepend PREFIX to installed program names
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --program-suffix=SUFFIX append SUFFIX to installed program names
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --program-transform-name=PROGRAM
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews run sed PROGRAM on installed program names
2002be4f65776451676df6ee21a2e28f52bcad6dMark AndrewsEOF
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews cat << EOF
2002be4f65776451676df6ee21a2e28f52bcad6dMark AndrewsHost type:
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --build=BUILD configure for building on BUILD [BUILD=HOST]
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --host=HOST configure for HOST [guessed]
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --target=TARGET configure for TARGET [TARGET=HOST]
2002be4f65776451676df6ee21a2e28f52bcad6dMark AndrewsFeatures and packages:
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --x-includes=DIR X include files are in DIR
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews --x-libraries=DIR X library files are in DIR
f6407f9a0b890bebbfd5f738d9c4aef3d3315fe9Michael GraffEOF
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews if test -n "$ac_help"; then
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews echo "--enable and --with options recognized:$ac_help"
2002be4f65776451676df6ee21a2e28f52bcad6dMark Andrews fi
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews exit 0 ;;
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -host | --host | --hos | --ho)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_prev=host ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -host=* | --host=* | --hos=* | --ho=*)
bed8e84810a80dad3d37870be927d1dfd015f480Mark Andrews host="$ac_optarg" ;;
bed8e84810a80dad3d37870be927d1dfd015f480Mark Andrews
bed8e84810a80dad3d37870be927d1dfd015f480Mark Andrews -includedir | --includedir | --includedi | --included | --include \
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews | --includ | --inclu | --incl | --inc)
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews ac_prev=includedir ;;
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews | --includ=* | --inclu=* | --incl=* | --inc=*)
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews includedir="$ac_optarg" ;;
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews -infodir | --infodir | --infodi | --infod | --info | --inf)
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews ac_prev=infodir ;;
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews infodir="$ac_optarg" ;;
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews -libdir | --libdir | --libdi | --libd)
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington ac_prev=libdir ;;
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington -libdir=* | --libdir=* | --libdi=* | --libd=*)
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington libdir="$ac_optarg" ;;
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews
613991eef6bb79b9703382aff26cddd0281da915Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews | --libexe | --libex | --libe)
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews ac_prev=libexecdir ;;
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington | --libexe=* | --libex=* | --libe=*)
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington libexecdir="$ac_optarg" ;;
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington -localstatedir | --localstatedir | --localstatedi | --localstated \
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington | --localstate | --localstat | --localsta | --localst \
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington | --locals | --local | --loca | --loc | --lo)
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington ac_prev=localstatedir ;;
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington | --localstate=* | --localstat=* | --localsta=* | --localst=* \
87ecd67dae468cf5c9bae213c6fa321449b2ebc2Andreas Gustafsson | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
87ecd67dae468cf5c9bae213c6fa321449b2ebc2Andreas Gustafsson localstatedir="$ac_optarg" ;;
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews
87ecd67dae468cf5c9bae213c6fa321449b2ebc2Andreas Gustafsson -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews ac_prev=mandir ;;
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews mandir="$ac_optarg" ;;
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews -nfp | --nfp | --nf)
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews # Obsolete; use --without-fp.
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson with_fp=no ;;
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews | --no-cr | --no-c)
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews no_create=yes ;;
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews no_recursion=yes ;;
bcd7fdf06ca76eb2f6eb157f56b612c503e062a7Mark Andrews
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --oldin | --oldi | --old | --ol | --o)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ac_prev=oldincludedir ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson oldincludedir="$ac_optarg" ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ac_prev=prefix ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews prefix="$ac_optarg" ;;
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews -program-prefix | --program-prefix | --program-prefi | --program-pref \
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence | --program-pre | --program-pr | --program-p)
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence ac_prev=program_prefix ;;
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff -program-prefix=* | --program-prefix=* | --program-prefi=* \
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington program_prefix="$ac_optarg" ;;
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff -program-suffix | --program-suffix | --program-suffi | --program-suff \
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff | --program-suf | --program-su | --program-s)
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff ac_prev=program_suffix ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -program-suffix=* | --program-suffix=* | --program-suffi=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence program_suffix="$ac_optarg" ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -program-transform-name | --program-transform-name \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transform-nam | --program-transform-na \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transform-n | --program-transform- \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transform | --program-transfor \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transfo | --program-transf \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-trans | --program-tran \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --progr-tra | --program-tr | --program-t)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ac_prev=program_transform_name ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -program-transform-name=* | --program-transform-name=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transform-nam=* | --program-transform-na=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transform-n=* | --program-transform-=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transform=* | --program-transfor=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-transfo=* | --program-transf=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --program-trans=* | --program-tran=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --progr-tra=* | --program-tr=* | --program-t=*)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson program_transform_name="$ac_optarg" ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | -silent | --silent | --silen | --sile | --sil)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson silent=yes ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ac_prev=sbindir ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --sbi=* | --sb=*)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson sbindir="$ac_optarg" ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -sharedstatedir | --sharedstatedir | --sharedstatedi \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --sharedst | --shareds | --shared | --share | --shar \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --sha | --sh)
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ac_prev=sharedstatedir ;;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews | --sha=* | --sh=*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews sharedstatedir="$ac_optarg" ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -site | --site | --sit)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_prev=site ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -site=* | --site=* | --sit=*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews site="$ac_optarg" ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_prev=srcdir ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews srcdir="$ac_optarg" ;;
d981ca645597116d227a48bf37cc5edc061c854dBob Halley
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
e6bd97dded968f82e26b270842b789bff7bca422Mark Andrews | --syscon | --sysco | --sysc | --sys | --sy)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_prev=sysconfdir ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews sysconfdir="$ac_optarg" ;;
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews -target | --target | --targe | --targ | --tar | --ta | --t)
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews ac_prev=target ;;
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews target="$ac_optarg" ;;
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews -v | -verbose | --verbose | --verbos | --verbo | --verb)
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews verbose=yes ;;
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews -version | --version | --versio | --versi | --vers)
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews echo "configure generated by autoconf version 2.12"
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews exit 0 ;;
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews -with-* | --with-*)
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews # Reject names that are not valid shell variable names.
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews fi
389c749a5ee18f1c0d6278ae49f2aae5d5f0d2dcMark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews case "$ac_option" in
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews *=*) ;;
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews *) ac_optarg=yes ;;
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews esac
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews eval "with_${ac_package}='$ac_optarg'" ;;
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews -without-* | --without-*)
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews ac_package=`echo $ac_option|sed -e 's/-*without-//'`
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews # Reject names that are not valid shell variable names.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews fi
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews eval "with_${ac_package}=no" ;;
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews --x)
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews # Obsolete; use --with-x.
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews with_x=yes ;;
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews
29c818c7d40fc8898b062903ec703851328a4deaMark Andrews -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews | --x-incl | --x-inc | --x-in | --x-i)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_prev=x_includes ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews x_includes="$ac_optarg" ;;
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews -x-libraries | --x-libraries | --x-librarie | --x-librari \
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_prev=x_libraries ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews x_libraries="$ac_optarg" ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
d981ca645597116d227a48bf37cc5edc061c854dBob Halley *)
d981ca645597116d227a48bf37cc5edc061c854dBob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "configure: warning: $ac_option: invalid host type" 1>&2
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews fi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews if test "x$nonopt" != xNONE; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews fi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews nonopt="$ac_option"
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews ;;
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews esac
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsdone
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsif test -n "$ac_prev"; then
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewstrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# File descriptor usage:
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# 0 standard input
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# 1 file creation
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# 2 errors and warnings
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# 3 some systems may open it to /dev/tty
d981ca645597116d227a48bf37cc5edc061c854dBob Halley# 4 used on the Kubota Titan
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# 6 checking for... messages and results
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# 5 compiler messages saved in config.log
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceif test "$silent" = yes; then
19d365e4448f1782611280b020987988b7ac3210Mark Andrews exec 6>/dev/null
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewselse
19d365e4448f1782611280b020987988b7ac3210Mark Andrews exec 6>&1
19d365e4448f1782611280b020987988b7ac3210Mark Andrewsfi
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsexec 5>./config.log
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho "\
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsThis file contains any messages produced by compilers while
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyrunning configure, to aid debugging if configure makes a mistake.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews" 1>&5
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Strip out --no-create and --no-recursion so they do not pile up.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Also quote any args containing shell metacharacters.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsac_configure_args=
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrencefor ac_arg
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsdo
19d365e4448f1782611280b020987988b7ac3210Mark Andrews case "$ac_arg" in
19d365e4448f1782611280b020987988b7ac3210Mark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews | --no-cr | --no-c) ;;
19d365e4448f1782611280b020987988b7ac3210Mark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews *) ac_configure_args="$ac_configure_args $ac_arg" ;;
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff esac
d981ca645597116d227a48bf37cc5edc061c854dBob Halleydone
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# NLS nuisances.
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# Only set these to C if already set. These must not be set unconditionally
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# because not all systems understand e.g. LANG=C (notably SCO).
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Non-C LC_CTYPE values break the ctype check.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif test "${LANG+set}" = set; then LANG=C; export LANG; fi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
19d365e4448f1782611280b020987988b7ac3210Mark Andrews# confdefs.h avoids OS command line length limits that DEFS can exceed.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsrm -rf conftest* confdefs.h
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews# AIX cpp loses on an empty file, so make sure it contains at least a newline.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho > confdefs.h
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
19d365e4448f1782611280b020987988b7ac3210Mark Andrews# A filename unique to this package, relative to the directory that
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# configure is in, which we can look for to find out if srcdir is correct.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsac_unique_file=lib/dns/name.c
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graff# Find the source files, if location was not specified.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif test -z "$srcdir"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_srcdir_defaulted=yes
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews # Try the directory containing this script, then its parent.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_prog=$0
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews srcdir=$ac_confdir
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if test ! -r $srcdir/$ac_unique_file; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews srcdir=..
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_srcdir_defaulted=no
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif test ! -r $srcdir/$ac_unique_file; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if test "$ac_srcdir_defaulted" = yes; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews else
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence fi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencefi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews# Prefer explicitly selected file to automatically selected ones.
ad7209ea70d346527ffdcda335153831341d9dcfAndreas Gustafssonif test -z "$CONFIG_SITE"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews if test "x$prefix" != xNONE; then
d981ca645597116d227a48bf37cc5edc061c854dBob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews else
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff fi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfor ac_site_file in $CONFIG_SITE; do
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews if test -r "$ac_site_file"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "loading site script $ac_site_file"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews . "$ac_site_file"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews fi
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffdone
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrewsif test -r "$cache_file"; then
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews echo "loading cache $cache_file"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff . $cache_file
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewselse
f0a5bb8f86631ce638cb2b6c65bbb9bcf9b0cdc0Bob Halley echo "creating cache $cache_file"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews > $cache_file
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
19d365e4448f1782611280b020987988b7ac3210Mark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsac_ext=c
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
693ddf84daa745a0ea8ca311a8154dfa03eabc43Andreas Gustafssonac_cpp='$CPP $CPPFLAGS'
693ddf84daa745a0ea8ca311a8154dfa03eabc43Andreas Gustafssonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693ddf84daa745a0ea8ca311a8154dfa03eabc43Andreas Gustafssonac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewscross_compiling=$ac_cv_prog_cc_cross
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
693ddf84daa745a0ea8ca311a8154dfa03eabc43Andreas Gustafssonif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
693ddf84daa745a0ea8ca311a8154dfa03eabc43Andreas Gustafsson if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews ac_n= ac_c='
19d365e4448f1782611280b020987988b7ac3210Mark Andrews' ac_t=' '
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews else
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ac_n=-n ac_c= ac_t=
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews fi
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrenceelse
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ac_n= ac_c='\c' ac_t=
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
f0a5bb8f86631ce638cb2b6c65bbb9bcf9b0cdc0Bob Halley
f0a5bb8f86631ce638cb2b6c65bbb9bcf9b0cdc0Bob Halley
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffac_aux_dir=
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7c0378745269fe49a05904935afc42b85528f53aDavid Lawrence if test -f $ac_dir/install-sh; then
7c0378745269fe49a05904935afc42b85528f53aDavid Lawrence ac_aux_dir=$ac_dir
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews ac_install_sh="$ac_aux_dir/install-sh -c"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews break
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews elif test -f $ac_dir/install.sh; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_aux_dir=$ac_dir
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_install_sh="$ac_aux_dir/install.sh -c"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews break
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsdone
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif test -z "$ac_aux_dir"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsac_config_guess=$ac_aux_dir/config.guess
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsac_config_sub=$ac_aux_dir/config.sub
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# Make sure we can run config.sub.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif $ac_config_sub sun4 >/dev/null 2>&1; then :
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho $ac_n "checking host system type""... $ac_c" 1>&6
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho "configure:558: checking host system type" >&5
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewshost_alias=$host
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewscase "$host_alias" in
9916239908343b3eb17f0578de4c3cd6a313d85fMark AndrewsNONE)
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews case $nonopt in
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews NONE)
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if host_alias=`$ac_config_guess`; then :
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews fi ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews *) host_alias=$nonopt ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews esac ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsesac
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewshost=`$ac_config_sub $host_alias`
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewshost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewshost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewshost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsecho "$ac_t""$host" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsecho "configure:580: checking whether ${MAKE-make} sets \${MAKE}" >&5
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews cat > conftestmake <<\EOF
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsall:
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews @echo 'ac_maketemp="${MAKE}"'
9916239908343b3eb17f0578de4c3cd6a313d85fMark AndrewsEOF
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewseval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif test -n "$ac_maketemp"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews eval ac_cv_prog_make_${ac_make}_set=yes
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews eval ac_cv_prog_make_${ac_make}_set=no
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsrm -f conftestmake
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo "$ac_t""yes" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews SET_MAKE=
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo "$ac_t""no" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews SET_MAKE="MAKE=${MAKE-make}"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# Extract the first word of "ranlib", so it can be a program name with args.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsset dummy ranlib; ac_word=$2
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsecho "configure:609: checking for $ac_word" >&5
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if test -n "$RANLIB"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews for ac_dir in $PATH; do
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews test -z "$ac_dir" && ac_dir=.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if test -f $ac_dir/$ac_word; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_cv_prog_RANLIB="ranlib"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews break
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews done
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews IFS="$ac_save_ifs"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark AndrewsRANLIB="$ac_cv_prog_RANLIB"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif test -n "$RANLIB"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo "$ac_t""$RANLIB" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo "$ac_t""no" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# Find a good install program. We prefer a C program (faster),
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# so one script is as good as another. But avoid the broken or
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# incompatible versions:
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# SysV /etc/install, /usr/sbin/install
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# SunOS /usr/etc/install
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff# IRIX /sbin/install
d981ca645597116d227a48bf37cc5edc061c854dBob Halley# AIX /bin/install
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# AFS /usr/afsws/bin/install, which mishandles nonexistent args
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews# ./install, which can be erroneously created by make from ./install.sh.
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrewsecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "configure:646: checking for a BSD compatible install" >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif test -z "$INSTALL"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewselse
f305d86668bfd4d4727c3e0f70e7e97a2fa1b772Bob Halley IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson for ac_dir in $PATH; do
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews # Account for people who put trailing slashes in PATH elements.
20b20b23948b90cb2f7d7f402da99d09f837efd0David Lawrence case "$ac_dir/" in
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews *)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews # OSF1 and SCO ODT 3.0 have their own names for install.
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence for ac_prog in ginstall installbsd scoinst install; do
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews if test -f $ac_dir/$ac_prog; then
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews if test $ac_prog = install &&
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews # AIX install. It has an incompatible calling convention.
19d365e4448f1782611280b020987988b7ac3210Mark Andrews # OSF/1 installbsd also uses dspmsg, but is usable.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews :
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graff else
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_cv_path_install="$ac_dir/$ac_prog -c"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews break 2
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews done
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews esac
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews done
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews IFS="$ac_save_IFS"
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if test "${ac_cv_path_install+set}" = set; then
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews INSTALL="$ac_cv_path_install"
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews else
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews # As a last resort, use the slow shell script. We don't cache a
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews # path for INSTALL within a source directory, because that will
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews # break other packages using the cache if that directory is
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews # removed, or if the path is relative.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews INSTALL="$ac_install_sh"
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews fi
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsfi
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsecho "$ac_t""$INSTALL" 1>&6
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews# It thinks the first close brace ends the variable substitution.
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffSTD_CINCLUDES=""
fdd04623a6a36aad8449ef0877d8801a558873b8Mark AndrewsSTD_CDEFINES=""
035504dbd8ca5949e8380b860873b3385a4e61e5Mark AndrewsSTD_CWARNINGS=""
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
035504dbd8ca5949e8380b860873b3385a4e61e5Mark Andrews
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrewsif test "X$CC" = "X" ; then
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews case "$host" in
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews *-dec-osf*)
c0d0a59d1b665423b8a0d1829d0f0da121cb3473Andreas Gustafsson CC="cc"
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews ;;
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff *-sun-solaris*)
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews CC="cc"
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews ;;
fdd04623a6a36aad8449ef0877d8801a558873b8Mark Andrews *-hp-hpux*)
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews CC="cc"
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews ;;
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews mips-sgi-irix*)
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews CC="cc"
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews ;;
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews esac
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewscase "$host" in
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews *-netbsd*)
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews CC="gcc"
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "configure:725: checking which thread library to use" >&5
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewsif test "${with_mit_pthreads+set}" = set; then
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews withval="$with_mit_pthreads"
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews use_mit_pthreads="$withval"
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrewselse
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews use_mit_pthreads="no"
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrewsfi
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff # Check whether --with-ptl2 or --without-ptl2 was given.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif test "${with_ptl2+set}" = set; then
d981ca645597116d227a48bf37cc5edc061c854dBob Halley withval="$with_ptl2"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews use_ptl2="$withval"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffelse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews use_ptl2="no"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff case "$use_mit_pthreads+$use_ptl2" in
ae70d32b67cf30e06553c01479e71c87b21d984cBob Halley no+no)
ae70d32b67cf30e06553c01479e71c87b21d984cBob Halley if test -d /usr/pkg/pthreads
19d365e4448f1782611280b020987988b7ac3210Mark Andrews then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff use_mit_pthreads="yes"
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews fi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews if test -d /usr/pkg/PTL
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews then
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence use_ptl2="yes"
19d365e4448f1782611280b020987988b7ac3210Mark Andrews fi
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence ;;
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence esac
19d365e4448f1782611280b020987988b7ac3210Mark Andrews
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence case "$use_mit_pthreads+$use_ptl2" in
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence yes+no)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence echo "$ac_t""mit-pthreads" 1>&6
b589e90689c6e87bf9608424ca8d99571c18bc61Mark Andrews pkg="/usr/pkg/pthreads"
b589e90689c6e87bf9608424ca8d99571c18bc61Mark Andrews lib1="-L$pkg/lib -Wl,-R$pkg/lib"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff lib2="-lpthread -lm -lgcc -lpthread"
b589e90689c6e87bf9608424ca8d99571c18bc61Mark Andrews LIBS="$lib1 $lib2 $LIBS"
f8aae502686e2448c48f56697c212a50e2a1cbaeAndreas Gustafsson STD_CINCLUDES="-I$pkg/include"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews no+yes)
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo "$ac_t""PTL2" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews CC=ptlgcc
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews *)
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews { echo "configure: error: no thread library.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark AndrewsPlease choose a thread library using one of
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews configure --with-mit-pthreads
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews configure --with-ptl2
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews" 1>&2; exit 1; }
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews esac
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ;;
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsesac
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews# Extract the first word of "gcc", so it can be a program name with args.
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsset dummy gcc; ac_word=$2
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsecho "configure:788: checking for $ac_word" >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff if test -n "$CC"; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_cv_prog_CC="$CC" # Let the user override the test.
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafssonelse
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews for ac_dir in $PATH; do
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews test -z "$ac_dir" && ac_dir=.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews if test -f $ac_dir/$ac_word; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_cv_prog_CC="gcc"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence break
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence fi
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafsson done
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafsson IFS="$ac_save_ifs"
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafssonfi
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafssonfi
ae70d32b67cf30e06553c01479e71c87b21d984cBob HalleyCC="$ac_cv_prog_CC"
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafssonif test -n "$CC"; then
7ab0e69f61e61e81d489c95c7ebd981e74e7ef16Andreas Gustafsson echo "$ac_t""$CC" 1>&6
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffelse
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson echo "$ac_t""no" 1>&6
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafssonfi
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafssonif test -z "$CC"; then
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews # Extract the first word of "cc", so it can be a program name with args.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsset dummy cc; ac_word=$2
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho "configure:817: checking for $ac_word" >&5
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceelse
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson if test -n "$CC"; then
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson ac_cv_prog_CC="$CC" # Let the user override the test.
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafssonelse
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson ac_prog_rejected=no
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson for ac_dir in $PATH; do
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson test -z "$ac_dir" && ac_dir=.
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson if test -f $ac_dir/$ac_word; then
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ae70d32b67cf30e06553c01479e71c87b21d984cBob Halley ac_prog_rejected=yes
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson continue
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafsson fi
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff ac_cv_prog_CC="cc"
d981ca645597116d227a48bf37cc5edc061c854dBob Halley break
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews fi
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews done
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews IFS="$ac_save_ifs"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif test $ac_prog_rejected = yes; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews # We found a bogon in the path, so make sure we never use it.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews set dummy $ac_cv_prog_CC
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews shift
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews if test $# -gt 0; then
19d365e4448f1782611280b020987988b7ac3210Mark Andrews # We chose a different compiler from the bogus one.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews # However, it has the same basename, so the bogon will be chosen
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews # first if we set CC to just the basename; use the full file name.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews shift
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews set dummy "$ac_dir/$ac_word" "$@"
19d365e4448f1782611280b020987988b7ac3210Mark Andrews shift
0c310d16b05ee94743d33f6920907edee6084fc8Michael Graff ac_cv_prog_CC="$@"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews fi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark AndrewsCC="$ac_cv_prog_CC"
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsif test -n "$CC"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "$ac_t""$CC" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffelse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "$ac_t""no" 1>&6
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho "configure:865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrewsac_ext=c
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsac_cpp='$CPP $CPPFLAGS'
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19d365e4448f1782611280b020987988b7ac3210Mark Andrewsac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewscross_compiling=$ac_cv_prog_cc_cross
19d365e4448f1782611280b020987988b7ac3210Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewscat > conftest.$ac_ext <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#line 875 "configure"
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews#include "confdefs.h"
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrewsmain(){return(0);}
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark AndrewsEOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif { (eval echo configure:879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_cv_prog_cc_works=yes
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews # If we can't run a trivial program, we are probably using a cross compiler.
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews if (./conftest; exit) 2>/dev/null; then
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews ac_cv_prog_cc_cross=no
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews else
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews ac_cv_prog_cc_cross=yes
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews fi
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrewselse
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews echo "configure: failed program was:" >&5
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews cat conftest.$ac_ext >&5
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff ac_cv_prog_cc_works=no
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyfi
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyrm -fr conftest*
d981ca645597116d227a48bf37cc5edc061c854dBob Halley
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyif test $ac_cv_prog_cc_works = no; then
d981ca645597116d227a48bf37cc5edc061c854dBob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyfi
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyecho "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
d981ca645597116d227a48bf37cc5edc061c854dBob Halleycross_compiling=$ac_cv_prog_cc_cross
d981ca645597116d227a48bf37cc5edc061c854dBob Halley
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho "configure:904: checking whether we are using GNU C" >&5
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
d981ca645597116d227a48bf37cc5edc061c854dBob Halley echo $ac_n "(cached) $ac_c" 1>&6
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyelse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews cat > conftest.c <<EOF
d981ca645597116d227a48bf37cc5edc061c854dBob Halley#ifdef __GNUC__
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews yes;
d981ca645597116d227a48bf37cc5edc061c854dBob Halley#endif
d981ca645597116d227a48bf37cc5edc061c854dBob HalleyEOF
d981ca645597116d227a48bf37cc5edc061c854dBob Halleyif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d981ca645597116d227a48bf37cc5edc061c854dBob Halley ac_cv_prog_gcc=yes
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffelse
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley ac_cv_prog_gcc=no
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyfi
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyecho "$ac_t""$ac_cv_prog_gcc" 1>&6
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyif test $ac_cv_prog_gcc = yes; then
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley GCC=yes
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley ac_test_CFLAGS="${CFLAGS+set}"
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley ac_save_CFLAGS="$CFLAGS"
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley CFLAGS=
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyecho "configure:928: checking whether ${CC-cc} accepts -g" >&5
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewselse
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews echo 'void f(){}' > conftest.c
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrewsif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9916239908343b3eb17f0578de4c3cd6a313d85fMark Andrews ac_cv_prog_cc_g=yes
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyelse
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley ac_cv_prog_cc_g=no
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyfi
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halleyrm -f conftest*
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff
6324997211a5e2d82528dcde98e8981190a35faeMichael Grafffi
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff if test "$ac_test_CFLAGS" = set; then
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff CFLAGS="$ac_save_CFLAGS"
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff elif test $ac_cv_prog_cc_g = yes; then
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff CFLAGS="-g -O2"
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff else
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence CFLAGS="-O2"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson fi
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffelse
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson GCC=
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson test "${CFLAGS+set}" = set || CFLAGS="-g"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
88ba491496daf4463a2c898be8a6c47775a6d048Mark Andrewsecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
88ba491496daf4463a2c898be8a6c47775a6d048Mark Andrewsecho "configure:957: checking how to run the C preprocessor" >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson# On Suns, sometimes $CPP names a directory.
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonif test -n "$CPP" && test -d "$CPP"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson CPP=
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonif test -z "$CPP"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonelse
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson # This must be in double quotes, not single quotes, because CPP may get
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson # substituted into the Makefile and "${CC-cc}" will confuse make.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence CPP="${CC-cc} -E"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson # On the NeXT, cc -E runs the code through the compiler's parser,
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson # not just through cpp.
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat > conftest.$ac_ext <<EOF
34b394b43e2207e8f8f3703f0402422121455638David Lawrence#line 972 "configure"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#include "confdefs.h"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#include <assert.h>
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas GustafssonSyntax Error
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceEOF
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence{ (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonac_err=`grep -v '^ *+' conftest.out`
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceif test -z "$ac_err"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson :
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceelse
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo "$ac_err" >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo "configure: failed program was:" >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat conftest.$ac_ext >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff CPP="${CC-cc} -E -traditional-cpp"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat > conftest.$ac_ext <<EOF
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#line 989 "configure"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#include "confdefs.h"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#include <assert.h>
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas GustafssonSyntax Error
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael GraffEOF
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonac_err=`grep -v '^ *+' conftest.out`
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonif test -z "$ac_err"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson :
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonelse
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo "$ac_err" >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo "configure: failed program was:" >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat conftest.$ac_ext >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson rm -rf conftest*
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson CPP=/lib/cpp
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonrm -f conftest*
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonrm -f conftest*
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff ac_cv_prog_CPP="$CPP"
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Grafffi
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff CPP="$ac_cv_prog_CPP"
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffelse
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff ac_cv_prog_CPP="$CPP"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Grafffi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceecho "$ac_t""$CPP" 1>&6
16996a04884731d647f43a5eb54f678581f09f68David Lawrence
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16996a04884731d647f43a5eb54f678581f09f68David Lawrenceecho "configure:1018: checking for ANSI C header files" >&5
16996a04884731d647f43a5eb54f678581f09f68David Lawrenceif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16996a04884731d647f43a5eb54f678581f09f68David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrenceelse
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrence cat > conftest.$ac_ext <<EOF
16996a04884731d647f43a5eb54f678581f09f68David Lawrence#line 1023 "configure"
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrence#include "confdefs.h"
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrence#include <stdlib.h>
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrence#include <stdarg.h>
600cfa2ba4c50017581b6c14e3a688a82ecebbe0David Lawrence#include <string.h>
16996a04884731d647f43a5eb54f678581f09f68David Lawrence#include <float.h>
16996a04884731d647f43a5eb54f678581f09f68David LawrenceEOF
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff{ (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffac_err=`grep -v '^ *+' conftest.out`
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffif test -z "$ac_err"; then
fc024be774c7cdee938da018aa3994be746e36deDavid Lawrence rm -rf conftest*
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff ac_cv_header_stdc=yes
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffelse
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff echo "$ac_err" >&5
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff echo "configure: failed program was:" >&5
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafsson cat conftest.$ac_ext >&5
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafsson rm -rf conftest*
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafsson ac_cv_header_stdc=no
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafssonfi
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafssonrm -f conftest*
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafsson
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffif test $ac_cv_header_stdc = yes; then
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffcat > conftest.$ac_ext <<EOF
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff#line 1048 "configure"
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff#include "confdefs.h"
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff#include <string.h>
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael GraffEOF
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff egrep "memchr" >/dev/null 2>&1; then
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff :
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffelse
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff rm -rf conftest*
16996a04884731d647f43a5eb54f678581f09f68David Lawrence ac_cv_header_stdc=no
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Grafffi
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsrm -f conftest*
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Grafffi
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsif test $ac_cv_header_stdc = yes; then
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrews # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewscat > conftest.$ac_ext <<EOF
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#line 1066 "configure"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#include "confdefs.h"
16996a04884731d647f43a5eb54f678581f09f68David Lawrence#include <stdlib.h>
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael GraffEOF
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff egrep "free" >/dev/null 2>&1; then
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff :
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffelse
6b0ce7d29fac9df84ed34aa2d4634e754aec750dAndreas Gustafsson rm -rf conftest*
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff ac_cv_header_stdc=no
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Grafffi
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffrm -f conftest*
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Grafffi
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffif test $ac_cv_header_stdc = yes; then
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffif test "$cross_compiling" = yes; then
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff :
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graffelse
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff cat > conftest.$ac_ext <<EOF
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrews#line 1087 "configure"
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff#include "confdefs.h"
79eec6934923f97a61edb8dbe2641ce56dc30085Bob Halley#include <ctype.h>
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsint main () { int i; for (i = 0; i < 256; i++)
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graffif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graffexit (0); }
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael GraffEOF
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graffif { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graffthen
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff :
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrenceelse
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence echo "configure: failed program was:" >&5
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff cat conftest.$ac_ext >&5
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff rm -fr conftest*
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff ac_cv_header_stdc=no
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Grafffi
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graffrm -fr conftest*
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Grafffi
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Graff
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Grafffi
94a537e6ab3069f8d34e12e5ea722250be2b89c8Michael Grafffi
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrews
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsecho "$ac_t""$ac_cv_header_stdc" 1>&6
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsif test $ac_cv_header_stdc = yes; then
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrews cat >> confdefs.h <<\EOF
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#define STDC_HEADERS 1
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceEOF
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff
6324997211a5e2d82528dcde98e8981190a35faeMichael Grafffi
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff
6324997211a5e2d82528dcde98e8981190a35faeMichael Grafffor ac_hdr in fcntl.h sys/time.h unistd.h
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffdo
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffecho "configure:1125: checking for $ac_hdr" >&5
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrewsif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
79eec6934923f97a61edb8dbe2641ce56dc30085Bob Halleyelse
79eec6934923f97a61edb8dbe2641ce56dc30085Bob Halley cat > conftest.$ac_ext <<EOF
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#line 1130 "configure"
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews#include "confdefs.h"
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington#include <$ac_hdr>
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian WellingtonEOF
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellingtonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington{ (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsac_err=`grep -v '^ *+' conftest.out`
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsif test -z "$ac_err"; then
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff rm -rf conftest*
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews eval "ac_cv_header_$ac_safe=yes"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceelse
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews echo "$ac_err" >&5
8d3e74b1683f714a484bbcf73249e8ee470e36d7Mark Andrews echo "configure: failed program was:" >&5
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington cat conftest.$ac_ext >&5
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington rm -rf conftest*
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington eval "ac_cv_header_$ac_safe=no"
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellingtonfi
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellingtonrm -f conftest*
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellingtonfi
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellingtonif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington echo "$ac_t""yes" 1>&6
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington cat >> confdefs.h <<EOF
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#define $ac_tr_hdr 1
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian WellingtonEOF
5d83b561ad7eb84885a8ec63dee4c51b335f067aBrian Wellington
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffelse
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews echo "$ac_t""no" 1>&6
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssondone
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceecho $ac_n "checking for working const""... $ac_c" 1>&6
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewsecho "configure:1163: checking for working const" >&5
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceelse
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews cat > conftest.$ac_ext <<EOF
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews#line 1168 "configure"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#include "confdefs.h"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonint main() {
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson/* Ultrix mips cc rejects this. */
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafftypedef int charset[2]; const charset x;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson/* SunOS 4.1.1 cc rejects this. */
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewschar const *const *ccp;
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffchar **p;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson/* NEC SVR4.0.2 mips cc rejects this. */
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonstruct point {int x, y;};
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewsstatic struct point const zero = {0,0};
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews/* AIX XL C 1.02.0.0 rejects this.
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff It does not let you subtract one const X* pointer from another in an arm
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson of an if-expression whose if-part is not a constant expression */
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonconst char *g = "string";
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonccp = &g + (g ? g-g : 0);
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson/* HPUX 7.0 cc rejects these. */
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff++ccp;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonp = (char**) ccp;
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewsccp = (char const *const *) p;
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff{ /* SCO 3.2v4 cc rejects this. */
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson char *t;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson char const *s = 0 ? (char *) 0 : (char const *) 0;
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews *t++ = 0;
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff}
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson int x[] = {25, 17};
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson const int *foo = &x[0];
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ++foo;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson}
88ba491496daf4463a2c898be8a6c47775a6d048Mark Andrews{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
88ba491496daf4463a2c898be8a6c47775a6d048Mark Andrews typedef const int *iptr;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson iptr p = 0;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ++p;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson}
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson{ /* AIX XL C 1.02.0.0 rejects this saying
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson struct s { int j; const int *ap[3]; };
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson struct s *b; b->j = 5;
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson}
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson const int foo = 10;
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence}
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson; return 0; }
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas GustafssonEOF
34b394b43e2207e8f8f3703f0402422121455638David Lawrenceif { (eval echo configure:1217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff ac_cv_c_const=yes
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonelse
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo "configure: failed program was:" >&5
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat conftest.$ac_ext >&5
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews rm -rf conftest*
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ac_cv_c_const=no
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonrm -f conftest*
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrencefi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonecho "$ac_t""$ac_cv_c_const" 1>&6
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonif test $ac_cv_c_const = no; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat >> confdefs.h <<\EOF
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#define const
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas GustafssonEOF
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfi
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonecho $ac_n "checking for inline""... $ac_c" 1>&6
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonecho "configure:1238: checking for inline" >&5
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewsif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonelse
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson ac_cv_c_inline=no
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonfor ac_kw in inline __inline__ __inline; do
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson cat > conftest.$ac_ext <<EOF
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#line 1245 "configure"
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson#include "confdefs.h"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonint main() {
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson} $ac_kw foo() {
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafsson; return 0; }
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark AndrewsEOF
3ddd92da6651bc72aa79a04195ad389d86fd1a66Andreas Gustafssonif { (eval echo configure:1252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff rm -rf conftest*
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrews ac_cv_c_inline=$ac_kw; break
54c26ab21c61c6d6b1e484bb88dc3ac263845d17Mark Andrewselse
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence echo "configure: failed program was:" >&5
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence cat conftest.$ac_ext >&5
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencefi
a98551ef592e9be6008e0141ceeb32efd586c5efMark Andrewsrm -f conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsdone
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho "$ac_t""$ac_cv_c_inline" 1>&6
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffcase "$ac_cv_c_inline" in
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews inline | yes) ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews no) cat >> confdefs.h <<\EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#define inline
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
fe47f41b13620bfafc4f8cf65d5df24f1e568764Bob Halley ;;
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews *) cat >> confdefs.h <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#define inline $ac_cv_c_inline
6e49e91bd08778d7eae45a2229dcf41ed97cc636David LawrenceEOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ;;
fe47f41b13620bfafc4f8cf65d5df24f1e568764Bob Halleyesac
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho $ac_n "checking for size_t""... $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho "configure:1278: checking for size_t" >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews cat > conftest.$ac_ext <<EOF
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#line 1283 "configure"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#include "confdefs.h"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#include <sys/types.h>
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#if STDC_HEADERS
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#include <stdlib.h>
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#include <stddef.h>
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#endif
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews rm -rf conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_cv_type_size_t=yes
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff ac_cv_type_size_t=no
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsrm -f conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "$ac_t""$ac_cv_type_size_t" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif test $ac_cv_type_size_t = no; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews cat >> confdefs.h <<\EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#define size_t unsigned
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
fe47f41b13620bfafc4f8cf65d5df24f1e568764Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsecho "configure:1311: checking whether time.h and sys/time.h may both be included" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff cat > conftest.$ac_ext <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#line 1316 "configure"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#include "confdefs.h"
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews#include <sys/types.h>
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews#include <sys/time.h>
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews#include <time.h>
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsint main() {
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsstruct tm *tp;
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews; return 0; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrenceif { (eval echo configure:1325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews rm -rf conftest*
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews ac_cv_header_time=yes
f0ff273b530afa730025e1c5ad311950f7ff4328Mark Andrewselse
f0ff273b530afa730025e1c5ad311950f7ff4328Mark Andrews echo "configure: failed program was:" >&5
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews cat conftest.$ac_ext >&5
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews rm -rf conftest*
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff ac_cv_header_time=no
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencefi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencerm -f conftest*
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencefi
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsecho "$ac_t""$ac_cv_header_time" 1>&6
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceif test $ac_cv_header_time = yes; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence cat >> confdefs.h <<\EOF
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#define TIME_WITH_SYS_TIME 1
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark AndrewsEOF
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsfi
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews
7c0378745269fe49a05904935afc42b85528f53aDavid Lawrence
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsecho "configure:1347: checking for pthread_create in -lpthread" >&5
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewselse
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews ac_save_LIBS="$LIBS"
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark AndrewsLIBS="-lpthread $LIBS"
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewscat > conftest.$ac_ext <<EOF
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews#line 1355 "configure"
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews#include "confdefs.h"
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews/* We use char because int might match the return type of a gcc2
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews builtin and then its argument prototype would still apply. */
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewschar pthread_create();
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsint main() {
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewspthread_create()
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews; return 0; }
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark AndrewsEOF
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsif { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews rm -rf conftest*
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffelse
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews echo "configure: failed program was:" >&5
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews cat conftest.$ac_ext >&5
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews rm -rf conftest*
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsfi
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark Andrewsrm -f conftest*
7d62ddffbb4d1cc97b8d80b7ee4944554a57523eMark AndrewsLIBS="$ac_save_LIBS"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff echo "$ac_t""yes" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews cat >> confdefs.h <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#define $ac_tr_lib 1
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews LIBS="-lpthread $LIBS"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "$ac_t""no" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceecho "configure:1392: checking for __pthread_create in -lpthread" >&5
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrenceac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
bfb2a81b65579882a80855c279cedc45aebd62e8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_save_LIBS="$LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsLIBS="-lpthread $LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewscat > conftest.$ac_ext <<EOF
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#line 1400 "configure"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#include "confdefs.h"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews/* We use char because int might match the return type of a gcc2
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews builtin and then its argument prototype would still apply. */
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewschar __pthread_create();
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsint main() {
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews__pthread_create()
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews; return 0; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews rm -rf conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "configure: failed program was:" >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews cat conftest.$ac_ext >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews rm -rf conftest*
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsrm -f conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsLIBS="$ac_save_LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "$ac_t""yes" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews cat >> confdefs.h <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#define $ac_tr_lib 1
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael GraffEOF
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews LIBS="-lpthread $LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence echo "$ac_t""no" 1>&6
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "configure:1439: checking for __pthread_create_system in -lpthread" >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffelse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews ac_save_LIBS="$LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsLIBS="-lpthread $LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewscat > conftest.$ac_ext <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#line 1447 "configure"
26b0f58b6c4d65bc8b131debf40b8c376c2978bfBob Halley#include "confdefs.h"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews/* We use char because int might match the return type of a gcc2
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews builtin and then its argument prototype would still apply. */
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrencechar __pthread_create_system();
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsint main() {
3d5cad69ec20157912e95cf3b79316dfb0a314f3Mark Andrews__pthread_create_system()
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews; return 0; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffif { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews rm -rf conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence echo "configure: failed program was:" >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews cat conftest.$ac_ext >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff rm -rf conftest*
e4653123ecc6cdbfc0b9eda6e98e44af3b1f9a08Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsrm -f conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsLIBS="$ac_save_LIBS"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "$ac_t""yes" 1>&6
1c3191528684f3dd93ebb122298c2f8ebfc6d397Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
34b394b43e2207e8f8f3703f0402422121455638David Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence cat >> confdefs.h <<EOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews#define $ac_tr_lib 1
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffEOF
7c0378745269fe49a05904935afc42b85528f53aDavid Lawrence
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff LIBS="-lpthread $LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff echo "$ac_t""no" 1>&6
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafssonfi
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafssonfi
34b394b43e2207e8f8f3703f0402422121455638David Lawrence
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafssonecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffecho "configure:1490: checking for sigwait in -lpthread" >&5
7c0378745269fe49a05904935afc42b85528f53aDavid Lawrenceac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafssonelse
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas Gustafsson ac_save_LIBS="$LIBS"
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas GustafssonLIBS="-lpthread $LIBS"
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas Gustafssoncat > conftest.$ac_ext <<EOF
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas Gustafsson#line 1498 "configure"
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas Gustafsson#include "confdefs.h"
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
5466ce3f279d9fa83ce826bcdc9482bc591152aeAndreas Gustafsson/* We use char because int might match the return type of a gcc2
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews builtin and then its argument prototype would still apply. */
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewschar sigwait();
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceint main() {
035504dbd8ca5949e8380b860873b3385a4e61e5Mark Andrewssigwait()
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews; return 0; }
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsEOF
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsif { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews rm -rf conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewselse
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews echo "configure: failed program was:" >&5
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews cat conftest.$ac_ext >&5
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews rm -rf conftest*
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
035504dbd8ca5949e8380b860873b3385a4e61e5Mark Andrewsfi
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsrm -f conftest*
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark AndrewsLIBS="$ac_save_LIBS"
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsfi
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson echo "$ac_t""yes" 1>&6
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence cat >> confdefs.h <<\EOF
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson#define HAVE_SIGWAIT 1
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas GustafssonEOF
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafssonelse
5a219d878f0bd786e86da2c9b92999260dda3f8dAndreas Gustafsson echo "$ac_t""no" 1>&6
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsecho "configure:1531: checking for _Psigwait in -lpthread" >&5
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrewsac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
0e8cf9a887c70f96ac448b06c069d90b830215ccMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0c8649cea98afc061dd2938fd315df53b8fc35caAndreas Gustafssonelse
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews ac_save_LIBS="$LIBS"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David LawrenceLIBS="-lpthread $LIBS"
2192b4497348ccab94ca6f3f779cec399c72a8efMark Andrewscat > conftest.$ac_ext <<EOF
2192b4497348ccab94ca6f3f779cec399c72a8efMark Andrews#line 1539 "configure"
25870d4a37ab4bc8e675502b08335200167cc044Bob Halley#include "confdefs.h"
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
25870d4a37ab4bc8e675502b08335200167cc044Bob Halley/* We use char because int might match the return type of a gcc2
25870d4a37ab4bc8e675502b08335200167cc044Bob Halley builtin and then its argument prototype would still apply. */
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewschar _Psigwait();
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
035504dbd8ca5949e8380b860873b3385a4e61e5Mark Andrewsint main() {
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff_Psigwait()
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews; return 0; }
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffEOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewsif { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews rm -rf conftest*
c0d0a59d1b665423b8a0d1829d0f0da121cb3473Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewselse
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff echo "configure: failed program was:" >&5
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews cat conftest.$ac_ext >&5
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence rm -rf conftest*
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Grafffi
2192b4497348ccab94ca6f3f779cec399c72a8efMark Andrewsrm -f conftest*
2192b4497348ccab94ca6f3f779cec399c72a8efMark AndrewsLIBS="$ac_save_LIBS"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsfi
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews echo "$ac_t""yes" 1>&6
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews cat >> confdefs.h <<\EOF
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#define HAVE_SIGWAIT 1
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffEOF
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffelse
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews echo "$ac_t""no" 1>&6
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsfi
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsfi
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewscase "$host" in
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff *-sun-solaris*)
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews cat >> confdefs.h <<\EOF
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews#define _POSIX_PTHREAD_SEMANTICS 1
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffEOF
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews ;;
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewsesac
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrewscase "$host" in
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews *-bsdi3.1*)
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews cat >> confdefs.h <<\EOF
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews#define NEED_PTHREAD_INIT 1
44a966dff66061ac3f266c6b451a70733eb78e82Mark AndrewsEOF
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews ;;
44a966dff66061ac3f266c6b451a70733eb78e82Mark Andrews *-linux*)
904294c0c952227f7778fd0ba2ccea08c097b872Mark Andrews cat >> confdefs.h <<\EOF
904294c0c952227f7778fd0ba2ccea08c097b872Mark Andrews#define HAVE_LINUXTHREADS 1
44a966dff66061ac3f266c6b451a70733eb78e82Mark AndrewsEOF
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews ;;
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsesac
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrencecase "$host" in
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence mips-sgi-irix*)
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence ;;
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence *)
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewsecho "configure:1606: checking for socket in -lsocket" >&5
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrenceac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewselse
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrews ac_save_LIBS="$LIBS"
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark AndrewsLIBS="-lsocket $LIBS"
ffe74cc719aa0f10c38fbc1f2f3ea7db0960cb8fMark Andrewscat > conftest.$ac_ext <<EOF
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrews#line 1614 "configure"
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrews#include "confdefs.h"
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence/* We use char because int might match the return type of a gcc2
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence builtin and then its argument prototype would still apply. */
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrencechar socket();
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrenceint main() {
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrencesocket()
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrews; return 0; }
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark AndrewsEOF
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrewsif { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrews rm -rf conftest*
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
8a17d1e7cdba9fdcf71fb2f821a954a251204105Mark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "configure: failed program was:" >&5
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence cat conftest.$ac_ext >&5
47b26abe77184f9bedc68e36bdad03332cf67570David Lawrence rm -rf conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsrm -f conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsLIBS="$ac_save_LIBS"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""yes" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat >> confdefs.h <<EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#define $ac_tr_lib 1
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews LIBS="-lsocket $LIBS"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrewselse
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews echo "$ac_t""no" 1>&6
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrewsfi
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho "configure:1653: checking for inet_ntoa in -lnsl" >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews ac_save_LIBS="$LIBS"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsLIBS="-lnsl $LIBS"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewscat > conftest.$ac_ext <<EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#line 1661 "configure"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#include "confdefs.h"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* Override any gcc2 internal prototype to avoid an error. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* We use char because int might match the return type of a gcc2
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff builtin and then its argument prototype would still apply. */
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffchar inet_ntoa();
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceint main() {
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceinet_ntoa()
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence; return 0; }
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graffif { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews rm -rf conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "configure: failed program was:" >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat conftest.$ac_ext >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews rm -rf conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsrm -f conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsLIBS="$ac_save_LIBS"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""yes" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat >> confdefs.h <<EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#define $ac_tr_lib 1
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews LIBS="-lnsl $LIBS"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""no" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews ;;
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsesac
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho "configure:1703: checking for inet_ntop" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence cat > conftest.$ac_ext <<EOF
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#line 1708 "configure"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#include "confdefs.h"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* System header to define __stub macros and hopefully few prototypes,
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews which can conflict with char inet_ntop(); below. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#include <assert.h>
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* We use char because int might match the return type of a gcc2
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews builtin and then its argument prototype would still apply. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewschar inet_ntop();
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsint main() {
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* The GNU C library defines this for functions which it implements
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews to always fail with ENOSYS. Some functions are actually named
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews something starting with __ and the normal name is an alias. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrencechoke me
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#else
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffinet_ntop();
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#endif
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff; return 0; }
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence rm -rf conftest*
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence eval "ac_cv_func_inet_ntop=yes"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceelse
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence echo "configure: failed program was:" >&5
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence cat conftest.$ac_ext >&5
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence rm -rf conftest*
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence eval "ac_cv_func_inet_ntop=no"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencefi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencerm -f conftest*
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencefi
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceif eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""yes" 1>&6
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff :
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
df8c9ee4819c97089664ccc035eb2aa7569034fdDavid Lawrence echo "$ac_t""no" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.o"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat >> confdefs.h <<\EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#define NEED_INET_NTOP 1
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho "configure:1758: checking for inet_pton" >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat > conftest.$ac_ext <<EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#line 1763 "configure"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#include "confdefs.h"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence which can conflict with char inet_pton(); below. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#include <assert.h>
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* We use char because int might match the return type of a gcc2
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews builtin and then its argument prototype would still apply. */
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencechar inet_pton();
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceint main() {
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
df8c9ee4819c97089664ccc035eb2aa7569034fdDavid Lawrence/* The GNU C library defines this for functions which it implements
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews to always fail with ENOSYS. Some functions are actually named
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews something starting with __ and the normal name is an alias. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencechoke me
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#else
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceinet_pton();
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#endif
df8c9ee4819c97089664ccc035eb2aa7569034fdDavid Lawrence
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews; return 0; }
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence rm -rf conftest*
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence eval "ac_cv_func_inet_pton=yes"
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceelse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "configure: failed program was:" >&5
df8c9ee4819c97089664ccc035eb2aa7569034fdDavid Lawrence cat conftest.$ac_ext >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews rm -rf conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews eval "ac_cv_func_inet_pton=no"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsrm -f conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""yes" 1>&6
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence :
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrenceelse
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence echo "$ac_t""no" 1>&6
8abddcd3f24476b945419659e7cb73bcb970886bDavid LawrenceISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.o"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat >> confdefs.h <<\EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#define NEED_INET_PTON 1
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsecho "configure:1813: checking for inet_aton" >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat > conftest.$ac_ext <<EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#line 1818 "configure"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#include "confdefs.h"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* System header to define __stub macros and hopefully few prototypes,
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews which can conflict with char inet_aton(); below. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#include <assert.h>
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews/* We use char because int might match the return type of a gcc2
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff builtin and then its argument prototype would still apply. */
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewschar inet_aton();
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsint main() {
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
15330e4fa27c82ac04cc2ce234ec930e4b6b42d3Mark Andrews/* The GNU C library defines this for functions which it implements
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence to always fail with ENOSYS. Some functions are actually named
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence something starting with __ and the normal name is an alias. */
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencechoke me
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#else
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsinet_aton();
83ac7ce833930a5c6cb92ad9c04a58e775579e73Bob Halley#endif
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews; return 0; }
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsEOF
83ac7ce833930a5c6cb92ad9c04a58e775579e73Bob Halleyif { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews rm -rf conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews eval "ac_cv_func_inet_aton=yes"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffelse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "configure: failed program was:" >&5
83ac7ce833930a5c6cb92ad9c04a58e775579e73Bob Halley cat conftest.$ac_ext >&5
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews rm -rf conftest*
83ac7ce833930a5c6cb92ad9c04a58e775579e73Bob Halley eval "ac_cv_func_inet_aton=no"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsrm -f conftest*
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""yes" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews :
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews echo "$ac_t""no" 1>&6
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark AndrewsISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.o"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews cat >> confdefs.h <<\EOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews#define NEED_INET_ATON 1
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael GraffEOF
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsif test "X$GCC" = "Xyes"; then
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff case "$host" in
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews *-sun-solaris*)
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews LIBS="$LIBS -lthread"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews ;;
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews esac
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewselse
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews case "$host" in
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews *-dec-osf*)
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews CC="$CC -pthread"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ;;
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews *-sun-solaris*)
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews CC="$CC -mt"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ;;
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews *-hp-hpux*)
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews CC="$CC"
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews ;;
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews esac
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewsfi
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrews
3a4ec3da9fa14511cbc3660f75817cfacb3f4d1eMark Andrewscase "$host" in
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews *-sun-solaris*)
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews cat >> confdefs.h <<\EOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews#define NEED_AF_INET6 1
6d12fdf96621801e80f3f4c2a8a569fe48766a20David LawrenceEOF
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence ;;
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews *-hp-hpux*)
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews cat >> confdefs.h <<\EOF
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence#define NEED_AF_INET6 1
82d05588933a3c765aa8518fe455d6477d640b99Mark AndrewsEOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews ;;
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews *-dec-osf*)
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews ;;
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrewsesac
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrewsecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrewsecho "configure:1908: checking for sa_len in struct sockaddr" >&5
28059de4efa18062184a3fdbb0f607809fa55edaAndreas Gustafssoncat > conftest.$ac_ext <<EOF
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews#line 1910 "configure"
fd4810861c0c0ccb9aebde94e9d289442b2630dbMark Andrews#include "confdefs.h"
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews#include <sys/socket.h>
82d05588933a3c765aa8518fe455d6477d640b99Mark AndrewsEOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence egrep "sa_len[^a-z0-9_]" >/dev/null 2>&1; then
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence rm -rf conftest*
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence echo "$ac_t""yes" 1>&6
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews cat >> confdefs.h <<\EOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews#define HAVE_SA_LEN 1
82d05588933a3c765aa8518fe455d6477d640b99Mark AndrewsEOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewselse
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews rm -rf conftest*
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews echo "$ac_t""no" 1>&6
20b20b23948b90cb2f7d7f402da99d09f837efd0David Lawrencefi
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewsrm -f conftest*
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
20b20b23948b90cb2f7d7f402da99d09f837efd0David LawrenceBIND9_TOP_BUILDDIR=`pwd`
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark AndrewsBIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
20b20b23948b90cb2f7d7f402da99d09f837efd0David Lawrence
82d05588933a3c765aa8518fe455d6477d640b99Mark AndrewsBIND9_VERSION=$srcdir/version
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewstrap '' 1 2 15
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrewscat > confcache <<\EOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# This file is a shell script that caches the results of configure
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# tests run on this system so they can be shared between configure
20b20b23948b90cb2f7d7f402da99d09f837efd0David Lawrence# scripts and configure runs. It is not useful on other systems.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# If it contains results you don't want to keep, you may remove or edit it.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews#
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# By default, configure uses ./config.cache as the cache file,
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# creating it if it does not exist already. You can give configure
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# the --cache-file=FILE option to use a different cache file; that is
20b20b23948b90cb2f7d7f402da99d09f837efd0David Lawrence# what configure does when it calls configure scripts in
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# subdirectories, so they share the cache.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# Giving --cache-file=/dev/null disables caching, for debugging configure.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# config.status only pays attention to the cache file if you give it the
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# --recheck option to rerun configure.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews#
20b20b23948b90cb2f7d7f402da99d09f837efd0David LawrenceEOF
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# The following way of writing the cache mishandles newlines in values,
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# but we know of no workaround that is simple, portable, and efficient.
82d05588933a3c765aa8518fe455d6477d640b99Mark Andrews# So, don't put newlines in cache variables' values.
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson# Ultrix sh set writes to stderr and can't be redirected directly,
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley# and sets the high bit in the cache file unless we assign to the vars.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence(set) 2>&1 |
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley case `(ac_space=' '; set) 2>&1` in
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley *ac_space=\ *)
0513f89e68f82f9ec54e7af9c979a7c43babbe31Bob Halley # `set' does not quote correctly, so add quotes (double-quote substitution
ebd68da027cfa8da0fb536c3db11bb88292f41c7Andreas Gustafsson # turns \\\\ into \\, and sed turns \\ into \).
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence sed -n \
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff -e "s/'/'\\\\''/g" \
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff ;;
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff *)
ebd68da027cfa8da0fb536c3db11bb88292f41c7Andreas Gustafsson # `set' quotes correctly as required by POSIX, so do not add quotes.
ebd68da027cfa8da0fb536c3db11bb88292f41c7Andreas Gustafsson sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ;;
3bb3b7ac462a90c2b8b1fb783324d800e2ba748cMichael Graff esac >> confcache
3bb3b7ac462a90c2b8b1fb783324d800e2ba748cMichael Graffif cmp -s $cache_file confcache; then
3bb3b7ac462a90c2b8b1fb783324d800e2ba748cMichael Graff :
3bb3b7ac462a90c2b8b1fb783324d800e2ba748cMichael Graffelse
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff if test -w $cache_file; then
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff echo "updating cache $cache_file"
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff cat confcache > $cache_file
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence else
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff echo "not updating unwritable cache $cache_file"
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff fi
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Grafffi
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graffrm -f confcache
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Grafftrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencetest "x$prefix" = xNONE && prefix=$ac_default_prefix
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff# Let make expand exec_prefix.
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Grafftest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff# Any assignment to VPATH causes Sun make to only execute
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff# the first set of double-colon rules, so remove it if not needed.
3bb3b7ac462a90c2b8b1fb783324d800e2ba748cMichael Graff# If there is a colon in the path, we need to keep it.
3bb3b7ac462a90c2b8b1fb783324d800e2ba748cMichael Graffif test "x$srcdir" = x.; then
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Grafffi
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Grafftrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael GraffDEFS=-DHAVE_CONFIG_H
fa460c223a69449eaac67ddb6abafe74f5e1ff02Michael Graff
7ec579cd5d07228c0d6cece58b80694ad8d59de9Michael Graff# Without the "./", some shells look in PATH for config.status.
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence: ${CONFIG_STATUS=./config.status}
f8aae502686e2448c48f56697c212a50e2a1cbaeAndreas Gustafsson
b469f0321d2bcea3914c57d26fd43319e506c313Andreas Gustafssonecho creating $CONFIG_STATUS
b469f0321d2bcea3914c57d26fd43319e506c313Andreas Gustafssonrm -f $CONFIG_STATUS
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrencecat > $CONFIG_STATUS <<EOF
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff#! /bin/sh
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff# Generated automatically by configure.
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff# Run this file to recreate the current configuration.
b469f0321d2bcea3914c57d26fd43319e506c313Andreas Gustafsson# This directory was configured as follows,
b469f0321d2bcea3914c57d26fd43319e506c313Andreas Gustafsson# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
b469f0321d2bcea3914c57d26fd43319e506c313Andreas Gustafsson#
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence# $0 $ac_configure_args
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff#
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff# Compiler output produced by configure, useful for debugging
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff# configure, is in ./config.log if it exists.
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
b469f0321d2bcea3914c57d26fd43319e506c313Andreas Gustafssonfor ac_option
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafssondo
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson case "\$ac_option" in
8abddcd3f24476b945419659e7cb73bcb970886bDavid Lawrence -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson echo "$CONFIG_STATUS generated by autoconf version 2.12"
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson exit 0 ;;
014892d86d30b7eceb0003d51788f9b5cadfc1bfAndreas Gustafsson -help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
Makefile
make/Makefile
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
/@BIND9_VERSION@/r $BIND9_VERSION
s%@BIND9_VERSION@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
Makefile
make/Makefile
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1