5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#! /bin/sh
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Guess values for system-dependent variables and create Makefiles.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Generated automatically using autoconf version 2.13
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This configure script is free software; the Free Software Foundation
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# gives unlimited permission to copy, distribute and modify it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Defaults:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_default_prefix=/usr/local
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Any additions from configure.in:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-debug enable debug codes [default=no]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-mdnkit-compat enable mDNkit compatibility mode [default=no]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-extra-ace enable additional ACE converters. [default=no]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-utf8=NAME codeset name for UTF-8 encoding [UTF-8]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-liteonly compile and install lite library only [default=no]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-runidn compile and install runidn [default=no]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-libiconv=IPREFIX GNU libiconv are installed in IPREFIX [PREFIX]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-iconv-include=DIR iconv include files are in DIR []"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-iconv=LIB special library for iconv []"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-iconv-sofile=PATH shared library file for libiconv []"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-shared[=PKGS] build shared libraries [default=yes]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-static[=PKGS] build static libraries [default=yes]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_help="$ac_help
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --disable-libtool-lock avoid locking (might break parallel builds)"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Initialize some variables set by options.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The variables have the same names as the options, with
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# dashes changed to underlines.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbuild=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscache_file=./config.cache
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsexec_prefix=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshost=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno_create=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsnonopt=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno_recursion=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsprefix=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsprogram_prefix=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsprogram_suffix=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsprogram_transform_name=s,x,x,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssilent=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssite=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssrcdir=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstarget=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsverbose=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsx_includes=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsx_libraries=NONE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbindir='${exec_prefix}/bin'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssbindir='${exec_prefix}/sbin'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslibexecdir='${exec_prefix}/libexec'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdatadir='${prefix}/share'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssysconfdir='${prefix}/etc'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssharedstatedir='${prefix}/com'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslocalstatedir='${prefix}/var'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslibdir='${exec_prefix}/lib'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsincludedir='${prefix}/include'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsoldincludedir='/usr/include'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsinfodir='${prefix}/info'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsmandir='${prefix}/man'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Initialize some other variables.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssubdirs=
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsMFLAGS= MAKEFLAGS=
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSHELL=${CONFIG_SHELL-/bin/sh}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Maximum number of lines to put in a shell here document.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_max_here_lines=12
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_prev=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_option
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # If the previous option needs an argument, assign it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$ac_prev"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "$ac_prev=\$ac_option"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews continue
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_option" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_optarg= ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Accept the important Cygnus configure options, so we can diagnose typos.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_option" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -bindir | --bindir | --bindi | --bind | --bin | --bi)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=bindir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews bindir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -build | --build | --buil | --bui | --bu)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=build ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews build="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -cache-file | --cache-file | --cache-fil | --cache-fi \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=cache_file ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cache_file="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=datadir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --da=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews datadir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -disable-* | --disable-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Reject names that are not valid shell variable names.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_feature=`echo $ac_feature| sed 's/-/_/g'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "enable_${ac_feature}=no" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -enable-* | --enable-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Reject names that are not valid shell variable names.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_feature=`echo $ac_feature| sed 's/-/_/g'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_option" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *=*) ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_optarg=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "enable_${ac_feature}='$ac_optarg'" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --exec | --exe | --ex)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=exec_prefix ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --exec=* | --exe=* | --ex=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exec_prefix="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -gas | --gas | --ga | --g)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Obsolete; use --with-gas.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews with_gas=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -help | --help | --hel | --he)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Omit some internal or obsolete options to make the list less imposing.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # This message is too long to be a string in the A/UX 3.1 sh.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat << EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsUsage: configure [options] [host]
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsOptions: [defaults in brackets after descriptions]
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsConfiguration:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --cache-file=FILE cache test results in FILE
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --help print this message
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --no-create do not create output files
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --quiet, --silent do not print \`checking...' messages
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --version print the version of autoconf that created configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDirectory and file names:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --prefix=PREFIX install architecture-independent files in PREFIX
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [$ac_default_prefix]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [same as prefix]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --bindir=DIR user executables in DIR [EPREFIX/bin]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --datadir=DIR read-only architecture-independent data in DIR
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [PREFIX/share]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --sharedstatedir=DIR modifiable architecture-independent data in DIR
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [PREFIX/com]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --libdir=DIR object code libraries in DIR [EPREFIX/lib]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --includedir=DIR C header files in DIR [PREFIX/include]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --infodir=DIR info documentation in DIR [PREFIX/info]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --mandir=DIR man documentation in DIR [PREFIX/man]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --srcdir=DIR find the sources in DIR [configure dir or ..]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --program-prefix=PREFIX prepend PREFIX to installed program names
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --program-suffix=SUFFIX append SUFFIX to installed program names
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --program-transform-name=PROGRAM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews run sed PROGRAM on installed program names
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat << EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsHost type:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --build=BUILD configure for building on BUILD [BUILD=HOST]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --host=HOST configure for HOST [guessed]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --target=TARGET configure for TARGET [TARGET=HOST]
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsFeatures and packages:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --x-includes=DIR X include files are in DIR
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --x-libraries=DIR X library files are in DIR
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$ac_help"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "--enable and --with options recognized:$ac_help"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -host | --host | --hos | --ho)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=host ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -host=* | --host=* | --hos=* | --ho=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews host="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -includedir | --includedir | --includedi | --included | --include \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --includ | --inclu | --incl | --inc)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=includedir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --includ=* | --inclu=* | --incl=* | --inc=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews includedir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -infodir | --infodir | --infodi | --infod | --info | --inf)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=infodir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews infodir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -libdir | --libdir | --libdi | --libd)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=libdir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -libdir=* | --libdir=* | --libdi=* | --libd=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews libdir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --libexe | --libex | --libe)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=libexecdir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --libexe=* | --libex=* | --libe=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews libexecdir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -localstatedir | --localstatedir | --localstatedi | --localstated \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --localstate | --localstat | --localsta | --localst \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --locals | --local | --loca | --loc | --lo)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=localstatedir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --localstate=* | --localstat=* | --localsta=* | --localst=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews localstatedir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=mandir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mandir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -nfp | --nfp | --nf)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Obsolete; use --without-fp.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews with_fp=no ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --no-cr | --no-c)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews no_create=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews no_recursion=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --oldin | --oldi | --old | --ol | --o)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=oldincludedir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews oldincludedir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=prefix ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews prefix="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -program-prefix | --program-prefix | --program-prefi | --program-pref \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-pre | --program-pr | --program-p)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=program_prefix ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -program-prefix=* | --program-prefix=* | --program-prefi=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews program_prefix="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -program-suffix | --program-suffix | --program-suffi | --program-suff \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-suf | --program-su | --program-s)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=program_suffix ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -program-suffix=* | --program-suffix=* | --program-suffi=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews program_suffix="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -program-transform-name | --program-transform-name \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transform-nam | --program-transform-na \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transform-n | --program-transform- \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transform | --program-transfor \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transfo | --program-transf \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-trans | --program-tran \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --progr-tra | --program-tr | --program-t)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=program_transform_name ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -program-transform-name=* | --program-transform-name=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transform-nam=* | --program-transform-na=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transform-n=* | --program-transform-=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transform=* | --program-transfor=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-transfo=* | --program-transf=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --program-trans=* | --program-tran=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --progr-tra=* | --program-tr=* | --program-t=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews program_transform_name="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -silent | --silent | --silen | --sile | --sil)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews silent=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=sbindir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sbi=* | --sb=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sbindir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sharedstatedir | --sharedstatedir | --sharedstatedi \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sharedst | --shareds | --shared | --share | --shar \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sha | --sh)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=sharedstatedir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --sha=* | --sh=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sharedstatedir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -site | --site | --sit)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=site ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -site=* | --site=* | --sit=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews site="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=srcdir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews srcdir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --syscon | --sysco | --sysc | --sys | --sy)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=sysconfdir ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sysconfdir="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -target | --target | --targe | --targ | --tar | --ta | --t)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=target ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews target="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -v | -verbose | --verbose | --verbos | --verbo | --verb)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews verbose=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -version | --version | --versio | --versi | --vers)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure generated by autoconf version 2.13"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -with-* | --with-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Reject names that are not valid shell variable names.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_option" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *=*) ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_optarg=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "with_${ac_package}='$ac_optarg'" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -without-* | --without-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_package=`echo $ac_option|sed -e 's/-*without-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Reject names that are not valid shell variable names.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "with_${ac_package}=no" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --x)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Obsolete; use --with-x.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews with_x=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --x-incl | --x-inc | --x-in | --x-i)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=x_includes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews x_includes="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -x-libraries | --x-libraries | --x-librarie | --x-librari \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prev=x_libraries ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews x_libraries="$ac_optarg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: warning: $ac_option: invalid host type" 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "x$nonopt" != xNONE; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nonopt="$ac_option"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$ac_prev"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# File descriptor usage:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 0 standard input
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 1 file creation
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 2 errors and warnings
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 3 some systems may open it to /dev/tty
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 4 used on the Kubota Titan
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 6 checking for... messages and results
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# 5 compiler messages saved in config.log
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$silent" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exec 6>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exec 6>&1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsexec 5>./config.log
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "\
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsThis file contains any messages produced by compilers while
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrunning configure, to aid debugging if configure makes a mistake.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews" 1>&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Strip out --no-create and --no-recursion so they do not pile up.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Also quote any args containing shell metacharacters.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_configure_args=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_arg
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_arg" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --no-cr | --no-c) ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_configure_args="$ac_configure_args $ac_arg" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# NLS nuisances.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Only set these to C if already set. These must not be set unconditionally
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# because not all systems understand e.g. LANG=C (notably SCO).
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Non-C LC_CTYPE values break the ctype check.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${LANG+set}" = set; then LANG=C; export LANG; fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# confdefs.h avoids OS command line length limits that DEFS can exceed.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -rf conftest* confdefs.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# AIX cpp loses on an empty file, so make sure it contains at least a newline.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho > confdefs.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# A filename unique to this package, relative to the directory that
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# configure is in, which we can look for to find out if srcdir is correct.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_unique_file=include/idn/converter.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Find the source files, if location was not specified.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$srcdir"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_srcdir_defaulted=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Try the directory containing this script, then its parent.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog=$0
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews srcdir=$ac_confdir
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test ! -r $srcdir/$ac_unique_file; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews srcdir=..
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_srcdir_defaulted=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test ! -r $srcdir/$ac_unique_file; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_srcdir_defaulted" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Prefer explicitly selected file to automatically selected ones.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$CONFIG_SITE"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "x$prefix" != xNONE; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_site_file in $CONFIG_SITE; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -r "$ac_site_file"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "loading site script $ac_site_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews . "$ac_site_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -r "$cache_file"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "loading cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews . $cache_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "creating cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews > $cache_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_ext=c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_cpp='$CPP $CPPFLAGS'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscross_compiling=$ac_cv_prog_cc_cross
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_exeext=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_objext=o
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_n= ac_c='
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews' ac_t=' '
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_n=-n ac_c= ac_t=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_n= ac_c='\c' ac_t=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_aux_dir=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/install-sh; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_aux_dir=$ac_dir
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_install_sh="$ac_aux_dir/install-sh -c"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews elif test -f $ac_dir/install.sh; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_aux_dir=$ac_dir
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_install_sh="$ac_aux_dir/install.sh -c"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_aux_dir"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_config_guess=$ac_aux_dir/config.guess
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_config_sub=$ac_aux_dir/config.sub
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Make sure we can run config.sub.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking host system type""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:582: checking host system type" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshost_alias=$host
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$host_alias" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsNONE)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $nonopt in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews NONE)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) host_alias=$nonopt ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewshost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$host" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdebug=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-debug or --disable-debug was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_debug+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_debug"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews debug=$enableval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$debug" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="$CFLAGS -DDEBUG"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsmdnkit_compat=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCOMPAT_TRUE="#"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCOMPAT_FALSE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-mdnkit-compat or --disable-mdnkit-compat was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_mdnkit_compat+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_mdnkit_compat"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mdnkit_compat=$enableval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$mdnkit_compat" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews COMPAT_TRUE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews COMPAT_FALSE="#"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define ENABLE_MDNKIT_COMPAT 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: You must specify yes or no to --enable-runidn option." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsextraace=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-extra-ace or --disable-extra-ace was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_extra_ace+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_extra_ace"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews extraace=$enableval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$extraace" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define IDN_EXTRA_ACE 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: You must specify yes or no to --enable-extra-ace option." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsUTF8_NAME=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --with-utf8 or --without-utf8 was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${with_utf8+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews withval="$with_utf8"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews UTF8_NAME=$withval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$UTF8_NAME" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews UTF8_NAME=UTF-8
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: You must specify NAME to --with-utf8 option." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define IDN_UTF8_ENCODING_NAME "$UTF8_NAME"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsliteonly=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLITEONLY_TRUE="#"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLITEONLY_FALSE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-liteonly or --disable-liteonly was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_liteonly+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_liteonly"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews liteonly=$enableval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$liteonly" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$install_runidn" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set value \"yes\" to --enable-runidn and --enable-liteonly simultaneously, because runidn requires iconv support of generic libidnkit." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LITEONLY_TRUE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LITEONLY_FALSE="#"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: You must specify yes or no to --enable-liteonly option." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsinstall_runidn=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsRUNIDN_TRUE="#"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsRUNIDN_FALSE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-runidn or --disable-runidn was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_runidn+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_runidn"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews install_runidn=$enableval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$install_runidn" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set value \"yes\" to --enable-runidn and --enable-liteonly simultaneously, because runidn requires iconv support of generic libidnkit." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews RUNIDN_TRUE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews RUNIDN_FALSE="#"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: You must specify yes or no to --enable-runidn option." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsICONVINC=
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsICONVLIB=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslibiconv=unspec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --with-libiconv or --without-libiconv was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${with_libiconv+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews withval="$with_libiconv"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews libiconv=$withval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$libiconv" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsunspec)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVINC=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVLIB=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test X$prefix = XNONE ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews libiconv=$ac_default_prefix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews libiconv=$prefix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVINC="-I$libiconv/include"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVINC="-I$libiconv/include"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsiconv_include=unspec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --with-iconv-include or --without-iconv-include was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${with_iconv_include+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews withval="$with_iconv_include"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_include=$withval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$iconv_include" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsunspec)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVINC=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: warning: You must supply DIR to --with-iconv-include option.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews Ignored." 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVINC=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVINC="-I$iconv_include"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "X$ICONVINC" != X ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_include="`echo X$ICONVINC | sed -e 's/^X-I//'`"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test ! -f "$iconv_include/iconv.h" ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: iconv.h doesn't exist in $iconv_include" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsiconv=unspec
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --with-iconv or --without-iconv was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${with_iconv+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews withval="$with_iconv"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv=$withval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$iconv" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsunspec)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVLIB=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: warning: You must supply LIB to --with-iconv option.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -liconv is assumed." 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVLIB=-liconv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVLIB=$iconv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --with-iconv-sofile or --without-iconv-sofile was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${with_iconv_sofile+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews withval="$with_iconv_sofile"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_file=$withval
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_file=guess
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsICONVSOFILE=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$iconv_file" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: You must supply PATH to --with-iconv-sofile option." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsguess)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" != yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ICONVLIB" = ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking pathname of iconv shared library""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:870: checking pathname of iconv shared library" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ic_libdir=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ic_libname=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$host" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-hpux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SO=sl
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SO=so
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for arg in $ICONVLIB; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$arg" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -L*) ic_libdir="$ic_libdir `echo $arg | sed s/-L//`" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -l*) ic_libname=`echo $arg | sed s/-l//` ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /*.$SO*) ICONVSOFILE=$arg ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ICONVSOFILE" = ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ic_libname" = ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""unknown" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: warning: use --with-iconv-sofile for specifying iconv shared library file" 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ic_libdir" = ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Standard (and semi-standard) library directories
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ic_libdir="/lib /usr/lib /usr/local/lib"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for dir in $ic_libdir; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=`ls -r $dir/lib$ic_libname.$SO* 2>/dev/null | head -1`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ICONVSOFILE" != ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ICONVSOFILE" != ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$ICONVSOFILE" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""unknown" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: warning: use --with-iconv-sofile for specifying iconv shared library file" 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$liteonly" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ICONVSOFILE=$iconv_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsPRELOAD_VAR="LD_PRELOAD"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsPRELOAD_SEP=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsPRELOAD_LAST=""
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$host" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-solaris*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews PRELOAD_SEP=" "
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-linux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews PRELOAD_SEP=" "
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-osf*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews PRELOAD_VAR="_RLD_LIST"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews PRELOAD_LAST=":DEFAULT"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-netbsd*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -x /usr/bin/file -a -x /usr/bin/grep ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "`/usr/bin/file /usr/bin/grep`" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *ELF*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews PRELOAD_SEP=" "
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Extract the first word of "gcc", so it can be a program name with args.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsset dummy gcc; ac_word=$2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:959: checking for $ac_word" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dummy="$PATH"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $ac_dummy; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/$ac_word; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="gcc"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCC="$ac_cv_prog_CC"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$CC" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Extract the first word of "cc", so it can be a program name with args.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsset dummy cc; ac_word=$2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:989: checking for $ac_word" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog_rejected=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dummy="$PATH"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $ac_dummy; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/$ac_word; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog_rejected=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews continue
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="cc"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_prog_rejected = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # We found a bogon in the path, so make sure we never use it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews set dummy $ac_cv_prog_CC
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shift
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test $# -gt 0; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # We chose a different compiler from the bogus one.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # However, it has the same basename, so the bogon will be chosen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # first if we set CC to just the basename; use the full file name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shift
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews set dummy "$ac_dir/$ac_word" "$@"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shift
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="$@"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCC="$ac_cv_prog_CC"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$CC" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -z "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "`uname -s`" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *win32* | *WIN32*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Extract the first word of "cl", so it can be a program name with args.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsset dummy cl; ac_word=$2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1040: checking for $ac_word" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dummy="$PATH"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $ac_dummy; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/$ac_word; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CC="cl"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCC="$ac_cv_prog_CC"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$CC"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$CC" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1072: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_ext=c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_cpp='$CPP $CPPFLAGS'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscross_compiling=$ac_cv_prog_cc_cross
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.$ac_ext << EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1083 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsmain(){return(0);}
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_cc_works=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # If we can't run a trivial program, we are probably using a cross compiler.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if (./conftest; exit) 2>/dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_cc_cross=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_cc_cross=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_cc_works=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_ext=c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_cpp='$CPP $CPPFLAGS'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscross_compiling=$ac_cv_prog_cc_cross
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_prog_cc_works = no; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscross_compiling=$ac_cv_prog_cc_cross
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1119: checking whether we are using GNU C" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.c <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#ifdef __GNUC__
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews yes;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_gcc=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_gcc=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_prog_gcc" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_prog_gcc = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews GCC=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews GCC=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_test_CFLAGS="${CFLAGS+set}"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_save_CFLAGS="$CFLAGS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCFLAGS=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1147: checking whether ${CC-cc} accepts -g" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo 'void f(){}' > conftest.c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_cc_g=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_cc_g=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$ac_test_CFLAGS" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="$ac_save_CFLAGS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselif test $ac_cv_prog_cc_g = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$GCC" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="-g -O2"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="-g"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$GCC" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="-O2"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Find a good install program. We prefer a C program (faster),
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# so one script is as good as another. But avoid the broken or
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# incompatible versions:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# SysV /etc/install, /usr/sbin/install
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# SunOS /usr/etc/install
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# IRIX /sbin/install
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# AIX /bin/install
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# ./install, which can be erroneously created by make from ./install.sh.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1190: checking for a BSD compatible install" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$INSTALL"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $PATH; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Account for people who put trailing slashes in PATH elements.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_dir/" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # OSF1 and SCO ODT 3.0 have their own names for install.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Don't use installbsd from OSF since it installs stuff as root
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # by default.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_prog in ginstall scoinst install; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/$ac_prog; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test $ac_prog = install &&
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # AIX install. It has an incompatible calling convention.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_install="$ac_dir/$ac_prog -c"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break 2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_IFS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "${ac_cv_path_install+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews INSTALL="$ac_cv_path_install"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # As a last resort, use the slow shell script. We don't cache a
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # path for INSTALL within a source directory, because that will
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # break other packages using the cache if that directory is
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # removed, or if the path is relative.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews INSTALL="$ac_install_sh"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$INSTALL" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# It thinks the first close brace ends the variable substitution.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-shared or --disable-shared was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_shared+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_shared"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews p=${PACKAGE-default}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$enableval" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes) enable_shared=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno) enable_shared=no ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_shared=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Look at the argument we got. We use all the common list separators.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for pkg in $enableval; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "X$pkg" = "X$p"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_shared=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_shared=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-static or --disable-static was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_static+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_static"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews p=${PACKAGE-default}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$enableval" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes) enable_static=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno) enable_static=no ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_static=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Look at the argument we got. We use all the common list separators.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for pkg in $enableval; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "X$pkg" = "X$p"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_static=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_static=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-fast-install or --disable-fast-install was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_fast_install+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_fast_install"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews p=${PACKAGE-default}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$enableval" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsyes) enable_fast_install=yes ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsno) enable_fast_install=no ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_fast_install=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Look at the argument we got. We use all the common list separators.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for pkg in $enableval; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "X$pkg" = "X$p"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_fast_install=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enable_fast_install=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking build system type""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1312: checking build system type" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbuild_alias=$build
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$build_alias" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsNONE)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case $nonopt in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews NONE) build_alias=$host_alias ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) build_alias=$nonopt ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$build" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Extract the first word of "ranlib", so it can be a program name with args.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsset dummy ranlib; ac_word=$2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1332: checking for $ac_word" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$RANLIB"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dummy="$PATH"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $ac_dummy; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/$ac_word; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_RANLIB="ranlib"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsRANLIB="$ac_cv_prog_RANLIB"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$RANLIB"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$RANLIB" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --with-gnu-ld or --without-gnu-ld was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${with_gnu_ld+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews withval="$with_gnu_ld"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test "$withval" = no || with_gnu_ld=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews with_gnu_ld=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_prog=ld
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$ac_cv_prog_gcc" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Check if gcc -print-prog-name=ld gives a path.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1371: checking for ld used by GCC" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog=`($CC -print-prog-name=ld) 2>&5`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_prog" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Accept absolute paths.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [\\/]* | [A-Za-z]:[\\/]*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews re_direlt='/[^/][^/]*/\.\./'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Canonicalize the path of ld
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$LD" && LD="$ac_prog"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews "")
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # If it fails, then pretend we aren't using GCC.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_prog=ld
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # If it is relative, then search for the first ld in PATH.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews with_gnu_ld=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselif test "$with_gnu_ld" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1395: checking for GNU ld" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1398: checking for non-GNU ld" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -z "$LD"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $PATH; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_LD="$ac_dir/$ac_prog"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Check to see if the program is GNU ld. I'd rather use --version,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # but apparently some GNU ld's only accept -v.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Break only if it was the GNU/non-GNU ld that we prefer.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test "$with_gnu_ld" != no && break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test "$with_gnu_ld" != yes && break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_LD="$LD" # Let the user override the test with a path.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLD="$ac_cv_path_LD"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$LD"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$LD" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1433: checking if the linker ($LD) is GNU ld" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_gnu_ld=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_gnu_ld=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1449: checking for BSD-compatible nm" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -n "$NM"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Let the user override the test.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_NM="$NM"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Check to see if the nm accepts a BSD-compat flag.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # nm: unknown option "B" ignored
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_NM="$ac_dir/nm -B"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_NM="$ac_dir/nm -p"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews continue # so that we can try to find one that supports BSD flags
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsNM="$ac_cv_path_NM"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$NM" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1485: checking whether ln -s works" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftestdata
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif ln -s X conftestdata 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftestdata
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_LN_S="ln -s"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_LN_S=ln
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLN_S="$ac_cv_prog_LN_S"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$ac_cv_prog_LN_S" = "ln -s"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$target" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsNONE) lt_target="$host" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*) lt_target="$target" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check for any special flags to pass to ltconfig.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslibtool_flags="--cache-file=$cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${enable_libtool_lock+set}" = set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews enableval="$enable_libtool_lock"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Some flags need to be propagated to the compiler or linker for good
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# libtool support.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$lt_target" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-*-irix6*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Find out which ABI we are using.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo '#line 1534 "configure"' > conftest.$ac_ext
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if { (eval echo configure:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "`/usr/bin/file conftest.o`" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *32-bit*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LD="${LD-ld} -32"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *N32*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LD="${LD-ld} -n32"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *64-bit*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LD="${LD-ld} -64"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-*-sco3.2v5*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SAVE_CFLAGS="$CFLAGS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="$CFLAGS -belf"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1556: checking whether the C compiler needs -belf" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1561 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lt_cv_cc_needs_belf=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lt_cv_cc_needs_belf=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CFLAGS="$SAVE_CFLAGS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Save cache, so that ltconfig can load it
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > confcache <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is a shell script that caches the results of configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# tests run on this system so they can be shared between configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# scripts and configure runs. It is not useful on other systems.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# If it contains results you don't want to keep, you may remove or edit it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# By default, configure uses ./config.cache as the cache file,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# creating it if it does not exist already. You can give configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the --cache-file=FILE option to use a different cache file; that is
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# what configure does when it calls configure scripts in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# subdirectories, so they share the cache.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Giving --cache-file=/dev/null disables caching, for debugging configure.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# config.status only pays attention to the cache file if you give it the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# --recheck option to rerun configure.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The following way of writing the cache mishandles newlines in values,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# but we know of no workaround that is simple, portable, and efficient.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# So, don't put newlines in cache variables' values.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Ultrix sh set writes to stderr and can't be redirected directly,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# and sets the high bit in the cache file unless we assign to the vars.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews(set) 2>&1 |
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case `(ac_space=' '; set | grep ac_space) 2>&1` in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *ac_space=\ *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # `set' does not quote correctly, so add quotes (double-quote substitution
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # turns \\\\ into \\, and sed turns \\ into \).
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed -n \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -e "s/'/'\\\\''/g" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # `set' quotes correctly as required by POSIX, so do not add quotes.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac >> confcache
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif cmp -s $cache_file confcache; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -w $cache_file; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "updating cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat confcache > $cache_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "not updating unwritable cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f confcache
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Actually configure libtool. ac_aux_dir is where install-sh is found.
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Reload cache, that may have been modified by ltconfig
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -r "$cache_file"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "loading cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews . $cache_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "creating cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews > $cache_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This can be used to rebuild libtool when needed
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Always use our own libtool.
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBTOOL='$(SHELL) $(top_builddir)/libtool'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Redirect the config.log output again, so that the ltconfig log is not
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# clobbered by the next message.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsexec 5>>./config.log
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_prog in perl
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Extract the first word of "$ac_prog", so it can be a program name with args.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsset dummy $ac_prog; ac_word=$2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1675: checking for $ac_word" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$PERL" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ?:/*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dummy="$PATH"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_dir in $ac_dummy; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test -z "$ac_dir" && ac_dir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $ac_dir/$ac_word; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_path_PERL="$ac_dir/$ac_word"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews IFS="$ac_save_ifs"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsPERL="$ac_cv_path_PERL"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$PERL"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$PERL" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest -n "$PERL" && break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest -n "$PERL" || PERL="perl"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1713: checking how to run the C preprocessor" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# On Suns, sometimes $CPP names a directory.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -n "$CPP" && test -d "$CPP"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPP=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$CPP"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # This must be in double quotes, not single quotes, because CPP may get
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # substituted into the Makefile and "${CC-cc}" will confuse make.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPP="${CC-cc} -E"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # On the NeXT, cc -E runs the code through the compiler's parser,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # not just through cpp.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1728 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSyntax Error
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPP="${CC-cc} -E -traditional-cpp"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1745 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSyntax Error
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPP="${CC-cc} -nologo -E"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1762 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSyntax Error
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPP=/lib/cpp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CPP="$CPP"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPP="$ac_cv_prog_CPP"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_prog_CPP="$CPP"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$CPP" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_hdr in unistd.h locale.h langinfo.h pwd.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1796: checking for $ac_hdr" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1801 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <$ac_hdr>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_header_$ac_safe=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_header_$ac_safe=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_hdr 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$install_runidn" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_hdr in dlfcn.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1837: checking for $ac_hdr" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1842 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <$ac_hdr>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_header_$ac_safe=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_header_$ac_safe=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_hdr 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssaved_CPPFLAGS=$CPPFLAGS
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCPPFLAGS="$CPPFLAGS $ICONVINC"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$liteonly" != yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for iconv.h""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1880: checking for iconv.h" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1885 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <iconv.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_header_$ac_safe=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_header_$ac_safe=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ echo "configure: error: iconv.h doesn't exist" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCPPFLAGS=$saved_CPPFLAGS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1916: checking for uid_t in sys/types.h" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1921 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews egrep "uid_t" >/dev/null 2>&1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_uid_t=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_uid_t=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_type_uid_t" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_type_uid_t = no; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define uid_t int
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define gid_t int
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:1950: checking for ANSI C header files" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1955 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stdlib.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stdarg.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <string.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <float.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{ (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_err"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_header_stdc=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_err" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_header_stdc=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_header_stdc = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1980 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <string.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews egrep "memchr" >/dev/null 2>&1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_header_stdc=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_header_stdc = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 1998 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stdlib.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews egrep "free" >/dev/null 2>&1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_header_stdc=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_header_stdc = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2019 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <ctype.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main () { int i; for (i = 0; i < 256; i++)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsexit (0); }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_header_stdc=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_header_stdc" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_header_stdc = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define STDC_HEADERS 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for BOOL""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2054: checking for BOOL" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_type_BOOL'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2059 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if STDC_HEADERS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stdlib.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews egrep "(^|[^a-zA-Z_0-9])BOOL[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_BOOL=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_BOOL=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_type_BOOL" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test $ac_cv_type_BOOL = no; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define BOOL int
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$install_runidn" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2089: checking for socket in -lsocket" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_save_LIBS="$LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS="-lsocket $LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2097 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar socket();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssocket()
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS="$ac_save_LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_lib 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS="-lsocket $LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2136: checking for inet_addr in -lnsl" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_save_LIBS="$LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS="-lnsl $LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2144 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar inet_addr();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsinet_addr()
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS="$ac_save_LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_lib 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS="-lnsl $LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2183: checking for dlopen in -ldl" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_save_LIBS="$LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS="-ldl $LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2191 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar dlopen();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdlopen()
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsLIBS="$ac_save_LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS="-ldl $LIBS"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBDL="-ldl"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define HAVE_LIBDL 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_func in vsnprintf setvbuf setlocale nl_langinfo memmove bcopy setenv \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews unsetenv
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2236: checking for $ac_func" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2241 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews which can conflict with char $ac_func(); below. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar $ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* The GNU C library defines this for functions which it implements
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews to always fail with ENOSYS. Some functions are actually named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews something starting with __ and the normal name is an alias. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschoke me
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_func 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$install_runidn" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_func in gethostbyname gethostbyname2 gethostbyaddr
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2292: checking for $ac_func" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2297 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews which can conflict with char $ac_func(); below. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar $ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* The GNU C library defines this for functions which it implements
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews to always fail with ENOSYS. Some functions are actually named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews something starting with __ and the normal name is an alias. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschoke me
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_func 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_func in gethostbyname_r gethostbyname2_r gethostbyaddr_r
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2347: checking for $ac_func" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2352 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews which can conflict with char $ac_func(); below. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar $ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* The GNU C library defines this for functions which it implements
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews to always fail with ENOSYS. Some functions are actually named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews something starting with __ and the normal name is an alias. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschoke me
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_func 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews find_gethost_r=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_func in getipnodebyname getipnodebyaddr freehostent
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2402: checking for $ac_func" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2407 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews which can conflict with char $ac_func(); below. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar $ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* The GNU C library defines this for functions which it implements
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews to always fail with ENOSYS. Some functions are actually named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews something starting with __ and the normal name is an alias. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschoke me
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_func 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_func in getaddrinfo freeaddrinfo getnameinfo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2457: checking for $ac_func" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2462 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews which can conflict with char $ac_func(); below. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar $ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* The GNU C library defines this for functions which it implements
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews to always fail with ENOSYS. Some functions are actually named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews something starting with __ and the normal name is an alias. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschoke me
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_func 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for ac_func in dlopen dlsym
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2512: checking for $ac_func" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2517 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews which can conflict with char $ac_func(); below. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <assert.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* We use char because int might match the return type of a gcc2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews builtin and then its argument prototype would still apply. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschar $ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/* The GNU C library defines this for functions which it implements
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews to always fail with ENOSYS. Some functions are actually named
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews something starting with __ and the normal name is an alias. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschoke me
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_func();
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#endif
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=yes"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews eval "ac_cv_func_$ac_func=no"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""yes" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $ac_tr_func 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$install_runidn" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking flavor of gethostbyaddr""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2568: checking flavor of gethostbyaddr" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_flavor_gethostbyaddr'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2577 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)gethostbyaddr(NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=glibc2_2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2607 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews struct hostent *gethostbyaddr(const char *addr, size_t len, int type) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)gethostbyaddr(NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=glibc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2637 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews struct hostent *gethostbyaddr(const char *addr, int len, int type) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)gethostbyaddr(NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=traditional
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_cv_func_gethostbyaddr" = no ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethostbyaddr=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_flavor_gethostbyaddr" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_cv_flavor_gethostbyaddr" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews glibc2_2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_ghba_addr_t='const void *'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_ghba_addrlen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews glibc)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_ghba_addr_t='const char *'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_ghba_addrlen_t='size_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews traditional | none)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_ghba_addr_t='const char *'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_ghba_addrlen_t='int'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: can't build runidn, since parameter type list of gethostbyaddr() is unknown to configure." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GHBA_ADDR_T $ac_cv_type_ghba_addr_t
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GHBA_ADDRLEN_T $ac_cv_type_ghba_addrlen_t
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking flavor of getnameinfo""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2697: checking flavor of getnameinfo" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_flavor_getnameinfo'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2706 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews socklen_t hostlen, char *serv, socklen_t servlen,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews unsigned int flags) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=glibc2_2_2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2738 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews socklen_t hostlen, char *serv, socklen_t servlen,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int flags) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=rfc2553bis_03
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2770 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews size_t hostlen, char *serv, size_t servlen, int flags) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=rfc2553
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2801 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews size_t hostlen, char *serv, size_t servlen, int flags) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return NULL;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=rfc2133
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_cv_func_getnameinfo" = no ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_getnameinfo=none
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_flavor_getnameinfo" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_cv_flavor_getnameinfo" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews glibc2_2_2)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_salen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_hostlen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_servlen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_flags_t='unsigned int'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rfc2553bis_03)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_salen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_hostlen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_servlen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_flags_t='int'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rfc2553)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_salen_t='socklen_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_hostlen_t='size_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_servlen_t='size_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_flags_t='int'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rfc2133 | none)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_salen_t='size_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_hostlen_t='size_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_servlen_t='size_t'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_type_gni_flags_t='int'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: can't build runidn, since parameter type list of getnameinfo() is unknown to configure." 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GNI_SALEN_T $ac_cv_type_gni_salen_t
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GNI_HOSTLEN_T $ac_cv_type_gni_hostlen_t
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GNI_SERVLEN_T $ac_cv_type_gni_servlen_t
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GNI_FLAGS_T $ac_cv_type_gni_flags_t
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$find_gethost_r" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking flavor of gethostbyname_r""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2883: checking flavor of gethostbyname_r" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif eval "test \"`echo '$''{'ac_cv_flavor_gethost_r'+set}'`\" = set"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethost_r=sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 2891 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <sys/types.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <sys/socket.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <netdb.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include <stdio.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main()
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews{
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int err = 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews struct hostent hebuf, *hp;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews char buf[10];
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /* Try resolving a invalid name using glibc flavor. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews (void)gethostbyname_r("@#!", &hebuf, buf, sizeof(buf), &hp, &err);
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if (err != 0)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 0; /* glibc flavor */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 1; /* Sun flavor */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethost_r=glibc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_cv_flavor_gethost_r=sun
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "$ac_t""$ac_cv_flavor_gethost_r" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_cv_flavor_gethost_r" = "glibc"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define GETHOST_R_GLIBC_FLAVOR 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for libc shared object""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2938: checking for libc shared object" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsshobj_name=libc
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsshobj_path=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$host" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-hpux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SOEXT=sl
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SOEXT=so
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor shobj_libdir in /lib /usr/lib; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $shobj_libdir/$shobj_name.$SOEXT; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_path=$shobj_libdir/$shobj_name.$SOEXT
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_path=`ls -r $shobj_libdir/$shobj_name.$SOEXT* 2>/dev/null | head -1`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$shobj_path" != "" -a -f "$shobj_path"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_path=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$shobj_path" != ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$shobj_path" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_pathsymbol=SOPATH_`echo $shobj_name | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $shobj_pathsymbol "$shobj_path"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$shobj_path" = ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$install_runidn" = yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho $ac_n "checking for libnsl shared object""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:2977: checking for libnsl shared object" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsshobj_name=libnsl
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsshobj_path=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscase "$host" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*-hpux*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SOEXT=sl
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews SOEXT=so
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsesac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor shobj_libdir in /lib /usr/lib; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -f $shobj_libdir/$shobj_name.$SOEXT; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_path=$shobj_libdir/$shobj_name.$SOEXT
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_path=`ls -r $shobj_libdir/$shobj_name.$SOEXT* 2>/dev/null | head -1`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$shobj_path" != "" -a -f "$shobj_path"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_path=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$shobj_path" != ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$shobj_path" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shobj_pathsymbol=SOPATH_`echo $shobj_name | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat >> confdefs.h <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#define $shobj_pathsymbol "$shobj_path"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews break
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$shobj_path" = ""; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""no" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$liteonly" != yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for iconv""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:3017: checking for iconv" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews saved_CPPFLAGS=$CPPFLAGS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews saved_LIBS=$LIBS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPPFLAGS="$CPPFLAGS $ICONVINC"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS="$LIBS $ICONVLIB"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 3023 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <iconv.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsint main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_t i;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i = iconv_open("ISO-8859-1", "UTF-8");
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews; return 0; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_try_link=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -rf conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews iconv_try_link=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS=$saved_LIBS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPPFLAGS=$saved_CPPFLAGS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$iconv_try_link" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$iconv_try_link" = no ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews { echo "configure: error: iconv function not available" 1>&2; exit 1; }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "$liteonly" != yes ; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo $ac_n "checking for codeset name $UTF8_NAME""... $ac_c" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho "configure:3055: checking for codeset name $UTF8_NAME" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews saved_CPPFLAGS=$CPPFLAGS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews saved_LIBS=$LIBS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPPFLAGS="$CPPFLAGS $ICONVINC"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS="$LIBS $ICONVLIB"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$cross_compiling" = yes; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews utf8_name_valid=unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat > conftest.$ac_ext <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#line 3064 "configure"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#include "confdefs.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stddef.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <stdlib.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #include <iconv.h>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #define UTF8_NAME "$UTF8_NAME"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews #define ICONV_FAIL ((iconv_t)(-1))
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /* Check if the codeset name UTF8_NAME is valid by performing iconv_open(). */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int main() {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews int i;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /* list of codeset names likely to exist */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews static char *codeset[] = {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews "ASCII", "ISO-8859-1", "ISO8859-1", "iso8859_1", "8859-1",
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews "Shift_JIS", "SJIS", "sjis", NULL,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews };
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /* First try null conversion. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if (iconv_open(UTF8_NAME, UTF8_NAME) != ICONV_FAIL) return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /* Unfortunately, above check fails on certain systems, such as Solaris. */
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews for (i = 0; codeset[i] != NULL; i++) {
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if (iconv_open(UTF8_NAME, codeset[i]) != ICONV_FAIL) return 0;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews return 1;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews }
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsthen
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews utf8_name_valid=yes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "configure: failed program was:" >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.$ac_ext >&5
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews utf8_name_valid=no
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr conftest*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews LIBS=$saved_LIBS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CPPFLAGS=$saved_CPPFLAGS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_t""$utf8_name_valid" 1>&6
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstrap '' 1 2 15
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > confcache <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is a shell script that caches the results of configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# tests run on this system so they can be shared between configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# scripts and configure runs. It is not useful on other systems.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# If it contains results you don't want to keep, you may remove or edit it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# By default, configure uses ./config.cache as the cache file,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# creating it if it does not exist already. You can give configure
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the --cache-file=FILE option to use a different cache file; that is
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# what configure does when it calls configure scripts in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# subdirectories, so they share the cache.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Giving --cache-file=/dev/null disables caching, for debugging configure.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# config.status only pays attention to the cache file if you give it the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# --recheck option to rerun configure.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The following way of writing the cache mishandles newlines in values,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# but we know of no workaround that is simple, portable, and efficient.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# So, don't put newlines in cache variables' values.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Ultrix sh set writes to stderr and can't be redirected directly,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# and sets the high bit in the cache file unless we assign to the vars.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews(set) 2>&1 |
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case `(ac_space=' '; set | grep ac_space) 2>&1` in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *ac_space=\ *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # `set' does not quote correctly, so add quotes (double-quote substitution
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # turns \\\\ into \\, and sed turns \\ into \).
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed -n \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -e "s/'/'\\\\''/g" \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # `set' quotes correctly as required by POSIX, so do not add quotes.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac >> confcache
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif cmp -s $cache_file confcache; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewselse
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -w $cache_file; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "updating cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat confcache > $cache_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "not updating unwritable cache $cache_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f confcache
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "x$prefix" = xNONE && prefix=$ac_default_prefix
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Let make expand exec_prefix.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Any assignment to VPATH causes Sun make to only execute
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the first set of double-colon rules, so remove it if not needed.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# If there is a colon in the path, we need to keep it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "x$srcdir" = x.; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsDEFS=-DHAVE_CONFIG_H
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Without the "./", some shells look in PATH for config.status.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews: ${CONFIG_STATUS=./config.status}
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsecho creating $CONFIG_STATUS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f $CONFIG_STATUS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > $CONFIG_STATUS <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#! /bin/sh
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Generated automatically by configure.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Run this file to recreate the current configuration.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This directory was configured as follows,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# $0 $ac_configure_args
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Compiler output produced by configure, useful for debugging
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# configure, is in ./config.log if it exists.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_option
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "\$ac_option" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$CONFIG_STATUS generated by autoconf version 2.13"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -help | --help | --hel | --he | --h)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "\$ac_cs_usage"; exit 0 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) echo "\$ac_cs_usage"; exit 1 ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_given_srcdir=$srcdir
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_given_INSTALL="$INSTALL"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstrap 'rm -fr `echo "Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/idn/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/mdn/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lib/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews man/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/idnconv/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/runidn/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/runidn/runidn
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews map/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lib/tests/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Protect against being on the right side of a sed subst in config.status.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$ac_vpsub
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews$extrasub
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@SHELL@%$SHELL%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@CFLAGS@%$CFLAGS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@CPPFLAGS@%$CPPFLAGS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@CXXFLAGS@%$CXXFLAGS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@FFLAGS@%$FFLAGS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@DEFS@%$DEFS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LDFLAGS@%$LDFLAGS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LIBS@%$LIBS%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@exec_prefix@%$exec_prefix%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@prefix@%$prefix%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@program_transform_name@%$program_transform_name%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@bindir@%$bindir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@sbindir@%$sbindir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@libexecdir@%$libexecdir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@datadir@%$datadir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@sysconfdir@%$sysconfdir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@sharedstatedir@%$sharedstatedir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@localstatedir@%$localstatedir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@libdir@%$libdir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@includedir@%$includedir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@oldincludedir@%$oldincludedir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@infodir@%$infodir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@mandir@%$mandir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@host@%$host%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@host_alias@%$host_alias%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@host_cpu@%$host_cpu%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@host_vendor@%$host_vendor%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@host_os@%$host_os%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@COMPAT_TRUE@%$COMPAT_TRUE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@COMPAT_FALSE@%$COMPAT_FALSE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@UTF8_NAME@%$UTF8_NAME%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LITEONLY_TRUE@%$LITEONLY_TRUE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LITEONLY_FALSE@%$LITEONLY_FALSE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@RUNIDN_TRUE@%$RUNIDN_TRUE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@RUNIDN_FALSE@%$RUNIDN_FALSE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@ICONVINC@%$ICONVINC%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@ICONVLIB@%$ICONVLIB%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@ICONVSOFILE@%$ICONVSOFILE%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@PRELOAD_VAR@%$PRELOAD_VAR%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@PRELOAD_SEP@%$PRELOAD_SEP%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@PRELOAD_LAST@%$PRELOAD_LAST%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@CC@%$CC%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@INSTALL_DATA@%$INSTALL_DATA%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@build@%$build%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@build_alias@%$build_alias%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@build_cpu@%$build_cpu%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@build_vendor@%$build_vendor%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@build_os@%$build_os%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@RANLIB@%$RANLIB%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LN_S@%$LN_S%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LIBTOOL@%$LIBTOOL%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@PERL@%$PERL%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@CPP@%$CPP%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@LIBDL@%$LIBDL%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Split the substitutions into bite-sized pieces for seds with
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# small command number limits, like on Digital OSF/1 and HP-UX.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_file=1 # Number of current file.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_beg=1 # First line for current file.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_end=$ac_max_sed_cmds # Line after last line for current file.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_more_lines=:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_sed_cmds=""
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewswhile $ac_more_lines; do
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test $ac_beg -gt 1; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test ! -s conftest.s$ac_file; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_more_lines=false
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.s$ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -z "$ac_sed_cmds"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_sed_cmds="sed -f conftest.s$ac_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_file=`expr $ac_file + 1`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_beg=$ac_end
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_end=`expr $ac_end + $ac_max_sed_cmds`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test -z "$ac_sed_cmds"; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_sed_cmds=cat
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCONFIG_FILES=\${CONFIG_FILES-"Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/idn/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews include/mdn/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lib/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews man/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/idnconv/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/runidn/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews tools/runidn/runidn
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews map/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lib/tests/Makefile
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews"}
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_file" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_file_in="${ac_file}.in" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Remove last slash and all that follows it. Not all systems have dirname.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # The file is in a subdirectory.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test ! -d "$ac_dir" && mkdir "$ac_dir"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # A "../" for each directory in $ac_dir_suffix.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dir_suffix= ac_dots=
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_given_srcdir" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews .) srcdir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -z "$ac_dots"; then top_srcdir=.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) # Relative path.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews top_srcdir="$ac_dots$ac_given_srcdir" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_given_INSTALL" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews [/$]*) INSTALL="$ac_given_INSTALL" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo creating "$ac_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f "$ac_file"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_file" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *Makefile*) ac_comsub="1i\\
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# $configure_input" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_comsub= ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed -e "$ac_comsub
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@configure_input@%$configure_input%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@srcdir@%$srcdir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@top_srcdir@%$top_srcdir%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%@INSTALL@%$INSTALL%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi; done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest.s*
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# NAME is the cpp macro being defined and VALUE is the value it is being given.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews#
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# ac_d sets the value in "#define NAME VALUE" lines.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_dC='\3'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_dD='%g'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_uB='\([ ]\)%\1#\2define\3'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_uC=' '
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_uD='\4%g'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_eB='$%\1#\2define\3'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_eC=' '
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsac_eD='%g'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsif test "${CONFIG_HEADERS+set}" != set; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews CONFIG_HEADERS="include/config.h"
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews case "$ac_file" in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *) ac_file_in="${ac_file}.in" ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews esac
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo creating $ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.frag conftest.in conftest.out
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat $ac_file_inputs > conftest.in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Transform confdefs.h into a sed script conftest.vals that substitutes
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the proper values into config.h.in to produce config.h. And first:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Protect against being on the right side of a sed subst in config.status.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Protect against being in an unquoted here document in config.status.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest.vals
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat > conftest.hdr <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss/[\\&%]/\\&/g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%[\\$`]%\\&%g
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%ac_d%ac_u%gp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%ac_u%ac_e%gp
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewssed -n -f conftest.hdr confdefs.h > conftest.vals
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest.hdr
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This sed command replaces #undef with comments. This is necessary, for
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# example, in the case of _POSIX_SOURCE, which is predefined and required
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# on some systems where configure will not decide to define it.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> conftest.vals <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewss%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Break up conftest.vals because some shells have a limit on
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the size of here documents, and old seds have small limits too.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest.tail
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewswhile :
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdo
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_lines=`grep -c . conftest.vals`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # grep -c gives empty output for an empty file on some AIX systems.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Write a limited-size here document to conftest.frag.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo 'CEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed -f conftest.frag conftest.in > conftest.out
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mv conftest.out conftest.in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews' >> $CONFIG_STATUS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.vals
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mv conftest.tail conftest.vals
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsdone
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -f conftest.vals
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.frag conftest.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews cat conftest.in >> conftest.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if cmp -s $ac_file conftest.h 2>/dev/null; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$ac_file is unchanged"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f conftest.h
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews else
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Remove last slash and all that follows it. Not all systems have dirname.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # The file is in a subdirectory.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews test ! -d "$ac_dir" && mkdir "$ac_dir"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews rm -f $ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews mv conftest.h $ac_file
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews fi
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfi; done
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewscat >> $CONFIG_STATUS <<\EOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsexit 0
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsEOF
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewschmod +x $CONFIG_STATUS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsrm -fr confdefs* $ac_clean_files
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewstest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews