1998-02-09 19:06:40 +00:00
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
2002-01-09 14:17:48 +00:00
# Generated automatically using autoconf version 2.13
1998-02-09 19:06:40 +00:00
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
2001-03-01 11:03:39 +00:00
ac_help="$ac_help
--enable-procfs Use /proc filesystem (default)"
2000-06-29 03:51:06 +00:00
ac_help="$ac_help
2000-12-08 19:06:00 +00:00
--enable-pass-arguments Force user main call to NSProcessInfo initialize"
1999-07-22 14:17:27 +00:00
ac_help="$ac_help
2000-12-08 19:06:00 +00:00
--enable-fake-main Force redefine of user main function"
ac_help="$ac_help
--enable-libffi Enable use of libffi library"
ac_help="$ac_help
--enable-ffcall Enable use of ffcall library"
2000-10-28 21:58:48 +00:00
ac_help="$ac_help
2001-01-05 10:12:17 +00:00
--with-xml-prefix=PFX Prefix where libxml is installed (optional)"
2000-10-28 21:58:48 +00:00
ac_help="$ac_help
2001-01-05 10:12:17 +00:00
--disable-xmltest Do not try to compile and run a test XML program"
2001-06-11 15:38:22 +00:00
ac_help="$ac_help
2002-01-02 21:01:26 +00:00
--disable-openssl Disable support for openssl in URL classes"
2000-11-15 14:32:18 +00:00
ac_help="$ac_help
--with-openssl-include=PATH include path for openssl headers"
ac_help="$ac_help
--with-openssl-library=PATH library path for openssl libraries"
2000-11-18 08:54:32 +00:00
ac_help="$ac_help
--with-gmp-include=PATH include path for gmp headers"
ac_help="$ac_help
--with-gmp-library=PATH library path for gmp libraries"
2001-01-29 19:39:31 +00:00
ac_help="$ac_help
--with-libiconv-library=PATH library path for libiconv libraries"
1998-02-09 19:06:40 +00:00
# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
1999-07-12 04:21:05 +00:00
SHELL=${CONFIG_SHELL-/bin/sh}
1998-02-09 19:06:40 +00:00
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
ac_prev=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi
case "$ac_option" in
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) ac_optarg= ;;
esac
# Accept the important Cygnus configure options, so we can diagnose typos.
case "$ac_option" in
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir="$ac_optarg" ;;
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
eval "enable_${ac_feature}=no" ;;
-enable-* | --enable-*)
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "enable_${ac_feature}='$ac_optarg'" ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
exec_prefix="$ac_optarg" ;;
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
-help | --help | --hel | --he)
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print \`checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
EOF
cat << EOF
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
fi
exit 0 ;;
-host | --host | --hos | --ho)
ac_prev=host ;;
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir="$ac_optarg" ;;
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir="$ac_optarg" ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir="$ac_optarg" ;;
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir="$ac_optarg" ;;
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
localstatedir="$ac_optarg" ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
mandir="$ac_optarg" ;;
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c)
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
oldincludedir="$ac_optarg" ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
prefix="$ac_optarg" ;;
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
program_prefix="$ac_optarg" ;;
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
program_suffix="$ac_optarg" ;;
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
program_transform_name="$ac_optarg" ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
sbindir="$ac_optarg" ;;
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
sharedstatedir="$ac_optarg" ;;
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
site="$ac_optarg" ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir="$ac_optarg" ;;
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
sysconfdir="$ac_optarg" ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target="$ac_optarg" ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
2002-01-09 14:17:48 +00:00
echo "configure generated by autoconf version 2.13"
1998-02-09 19:06:40 +00:00
exit 0 ;;
-with-* | --with-*)
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "with_${ac_package}='$ac_optarg'" ;;
-without-* | --without-*)
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
eval "with_${ac_package}=no" ;;
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
x_includes="$ac_optarg" ;;
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries="$ac_optarg" ;;
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
*)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
if test "x$nonopt" != xNONE; then
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
fi
nonopt="$ac_option"
;;
esac
done
if test -n "$ac_prev"; then
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
exec 6>/dev/null
else
exec 6>&1
fi
exec 5>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
case "$ac_arg" in
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c) ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
esac
done
# NLS nuisances.
# Only set these to C if already set. These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
2000-06-16 11:07:49 +00:00
ac_unique_file=Source/NSArray.m
1998-02-09 19:06:40 +00:00
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then its parent.
ac_prog=$0
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
else
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
echo "loading cache $cache_file"
2002-01-09 14:17:48 +00:00
. $cache_file
1998-02-09 19:06:40 +00:00
else
echo "creating cache $cache_file"
> $cache_file
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1999-07-12 04:21:05 +00:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1998-02-09 19:06:40 +00:00
cross_compiling=$ac_cv_prog_cc_cross
1999-07-12 04:21:05 +00:00
ac_exeext=
ac_objext=o
1998-02-09 19:06:40 +00:00
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
# configure.in for GNU Objective-C library
# Process this file with autoconf to produce a configure script.
#
# Copyright (C) 1993,1994, 1995, 1996, 1997 Free Software Foundation, Inc.
#
# Written by: Andrew Kachites McCallum <mccallum@cs.rochester.edu>
# Dept. of Computer Science, U. of Rochester, Rochester, NY 14627
#
# This file is part of the GNU Objective-C library.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
1999-09-09 02:56:20 +00:00
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
1998-02-09 19:06:40 +00:00
2001-05-04 21:53:44 +00:00
if test -z "$GNUSTEP_SYSTEM_ROOT"; then
{
echo "ERROR: You must run the GNUstep initialization script before configuring the base library!" 1>&2;
exit 1;
}
fi
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2002-01-09 14:33:30 +00:00
# Use config.guess, config.sub and install-sh provided by gnustep-make
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
ac_aux_dir=
2002-01-09 14:17:48 +00:00
for ac_dir in $GNUSTEP_SYSTEM_ROOT/Makefiles $srcdir/$GNUSTEP_SYSTEM_ROOT/Makefiles; do
1998-02-09 19:06:40 +00:00
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f $ac_dir/install.sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
fi
done
if test -z "$ac_aux_dir"; then
2002-01-09 14:17:48 +00:00
{ echo "configure: error: can not find install-sh or install.sh in $GNUSTEP_SYSTEM_ROOT/Makefiles $srcdir/$GNUSTEP_SYSTEM_ROOT/Makefiles" 1>&2; exit 1; }
2002-01-03 11:55:39 +00:00
fi
2002-01-09 14:17:48 +00:00
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2002-01-03 11:55:39 +00:00
2002-01-09 14:17:48 +00:00
#--------------------------------------------------------------------
# Use a .h file with #define's, instead of -D command-line switches
#--------------------------------------------------------------------
2002-01-03 11:55:39 +00:00
1998-02-09 19:06:40 +00:00
2002-01-09 14:17:48 +00:00
#--------------------------------------------------------------------
# Determine the host, build, and target systems
#--------------------------------------------------------------------
1998-02-09 19:06:40 +00:00
# Do some error checking and defaulting for the host and target type.
# The inputs are:
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
# same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
# as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac
2002-01-09 14:17:48 +00:00
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:642: checking host system type" >&5
host_alias=$host
case "$host_alias" in
NONE)
case $nonopt in
NONE)
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
fi ;;
*) host_alias=$nonopt ;;
esac ;;
esac
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:663: checking target system type" >&5
target_alias=$target
case "$target_alias" in
NONE)
case $nonopt in
NONE) target_alias=$host_alias ;;
*) target_alias=$nonopt ;;
esac ;;
esac
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:681: checking build system type" >&5
build_alias=$build
case "$build_alias" in
NONE)
case $nonopt in
NONE) build_alias=$host_alias ;;
*) build_alias=$nonopt ;;
esac ;;
esac
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
1998-02-09 19:06:40 +00:00
test "$host_alias" != "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
#--------------------------------------------------------------------
# Find the compiler
#--------------------------------------------------------------------
2001-03-01 12:39:46 +00:00
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
1998-02-09 19:06:40 +00:00
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:710: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
1998-02-09 19:06:40 +00:00
else
1999-07-12 04:21:05 +00:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1998-02-09 19:06:40 +00:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
2001-03-01 12:39:46 +00:00
ac_cv_prog_CC="gcc"
1998-02-09 19:06:40 +00:00
break
fi
done
IFS="$ac_save_ifs"
fi
fi
2001-03-01 12:39:46 +00:00
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
1998-02-09 19:06:40 +00:00
else
echo "$ac_t""no" 1>&6
fi
2001-03-01 12:39:46 +00:00
if test -z "$CC"; then
1998-02-09 19:06:40 +00:00
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:740: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
1998-02-09 19:06:40 +00:00
else
1999-07-12 04:21:05 +00:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1998-02-09 19:06:40 +00:00
ac_prog_rejected=no
1999-07-12 04:21:05 +00:00
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1998-02-09 19:06:40 +00:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
2001-03-01 12:39:46 +00:00
ac_cv_prog_CC="cc"
1998-02-09 19:06:40 +00:00
break
fi
done
IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
2001-03-01 12:39:46 +00:00
set dummy $ac_cv_prog_CC
1998-02-09 19:06:40 +00:00
shift
if test $# -gt 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
2001-03-01 12:39:46 +00:00
# first if we set CC to just the basename; use the full file name.
1998-02-09 19:06:40 +00:00
shift
set dummy "$ac_dir/$ac_word" "$@"
shift
2001-03-01 12:39:46 +00:00
ac_cv_prog_CC="$@"
1998-02-09 19:06:40 +00:00
fi
fi
fi
fi
2001-03-01 12:39:46 +00:00
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
1998-02-09 19:06:40 +00:00
else
echo "$ac_t""no" 1>&6
fi
2001-03-01 12:39:46 +00:00
if test -z "$CC"; then
case "`uname -s`" in
2002-01-09 14:17:48 +00:00
*win32* | *WIN32*)
2001-03-01 12:39:46 +00:00
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:791: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2001-03-01 12:39:46 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="cl"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
;;
esac
fi
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1998-02-09 19:06:40 +00:00
fi
2002-01-09 14:17:48 +00:00
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1998-02-09 19:06:40 +00:00
2001-03-01 12:39:46 +00:00
ac_ext=c
1998-02-09 19:06:40 +00:00
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
2001-03-01 12:39:46 +00:00
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1998-02-09 19:06:40 +00:00
cross_compiling=$ac_cv_prog_cc_cross
1999-07-12 04:21:05 +00:00
cat > conftest.$ac_ext << EOF
2002-01-09 14:17:48 +00:00
#line 834 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
1999-07-12 04:21:05 +00:00
1998-02-09 19:06:40 +00:00
main(){return(0);}
EOF
2002-01-09 14:17:48 +00:00
if { (eval echo configure:839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-03-01 12:39:46 +00:00
ac_cv_prog_cc_works=yes
1998-02-09 19:06:40 +00:00
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
2001-03-01 12:39:46 +00:00
ac_cv_prog_cc_cross=no
1998-02-09 19:06:40 +00:00
else
2001-03-01 12:39:46 +00:00
ac_cv_prog_cc_cross=yes
1998-02-09 19:06:40 +00:00
fi
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
2001-03-01 12:39:46 +00:00
ac_cv_prog_cc_works=no
1998-02-09 19:06:40 +00:00
fi
rm -fr conftest*
1999-07-12 04:21:05 +00:00
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
1998-02-09 19:06:40 +00:00
2001-03-01 12:39:46 +00:00
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1998-02-09 19:06:40 +00:00
fi
2002-01-09 14:17:48 +00:00
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2001-03-01 12:39:46 +00:00
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
1998-02-09 19:06:40 +00:00
2001-03-01 12:39:46 +00:00
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:870: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2001-03-01 12:39:46 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
2002-01-09 14:17:48 +00:00
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2001-03-01 12:39:46 +00:00
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
fi
1998-02-09 19:06:40 +00:00
2001-03-01 12:39:46 +00:00
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
else
GCC=
fi
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:898: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2001-03-01 12:39:46 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
ac_cv_prog_cc_g=yes
else
ac_cv_prog_cc_g=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
1998-02-09 19:06:40 +00:00
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:930: checking how to run the C preprocessor" >&5
1998-02-09 19:06:40 +00:00
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 945 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-09 14:17:48 +00:00
{ (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 962 "configure"
1999-07-12 04:21:05 +00:00
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-09 14:17:48 +00:00
{ (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 979 "configure"
1999-01-26 11:32:02 +00:00
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-09 14:17:48 +00:00
{ (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
1999-07-12 04:21:05 +00:00
rm -f conftest*
fi
1998-02-09 19:06:40 +00:00
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
2000-06-27 21:11:01 +00:00
# Extract the first word of "whoami", so it can be a program name with args.
set dummy whoami; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1013: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
2000-06-27 21:11:01 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$WHOAMI" in
/*)
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH:/usr/ucb"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_WHOAMI="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
;;
esac
fi
WHOAMI="$ac_cv_path_WHOAMI"
if test -n "$WHOAMI"; then
echo "$ac_t""$WHOAMI" 1>&6
else
echo "$ac_t""no" 1>&6
fi
2001-03-13 20:34:50 +00:00
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1048: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2001-03-13 20:34:50 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 1053 "configure"
2001-03-13 20:34:50 +00:00
#include "confdefs.h"
int main() {
#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
2002-01-09 14:17:48 +00:00
if { (eval echo configure:1064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001-03-13 20:34:50 +00:00
rm -rf conftest*
ac_cv_cygwin=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_cygwin=no
fi
rm -f conftest*
2002-01-09 14:17:48 +00:00
rm -f conftest*
2001-03-13 20:34:50 +00:00
fi
echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1081: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2001-03-13 20:34:50 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 1086 "configure"
2001-03-13 20:34:50 +00:00
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
EOF
2002-01-09 14:17:48 +00:00
if { (eval echo configure:1093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001-03-13 20:34:50 +00:00
rm -rf conftest*
ac_cv_mingw32=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_mingw32=no
fi
rm -f conftest*
2002-01-09 14:17:48 +00:00
rm -f conftest*
2001-03-13 20:34:50 +00:00
fi
echo "$ac_t""$ac_cv_mingw32" 1>&6
MINGW32=
test "$ac_cv_mingw32" = yes && MINGW32=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1112: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2001-03-13 20:34:50 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
2002-01-09 14:17:48 +00:00
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2001-03-13 20:34:50 +00:00
ac_cv_exeext=.exe
else
rm -f conftest*
echo 'int main () { return 0; }' > conftest.$ac_ext
ac_cv_exeext=
2002-01-09 14:17:48 +00:00
if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2001-03-13 20:34:50 +00:00
for file in conftest.*; do
case $file in
2002-01-09 14:17:48 +00:00
*.c | *.o | *.obj) ;;
2001-03-13 20:34:50 +00:00
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
esac
done
else
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
fi
rm -f conftest*
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
fi
fi
EXEEXT=""
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT
2000-10-28 21:58:48 +00:00
#--------------------------------------------------------------------
# specific target_os options
#--------------------------------------------------------------------
case "$target_os" in
freebsd*) CPPFLAGS="$CPPFLAGS -I/usr/local/include"
LIBS="$LIBS -L/usr/local/lib";;
2001-09-05 21:31:42 +00:00
2000-10-28 21:58:48 +00:00
esac
2001-04-26 03:56:37 +00:00
#----------------------------------------------------------------
# Find out if nested functions work on this machine
#----------------------------------------------------------------
echo $ac_n "checking whether nested functions work""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1156: checking whether nested functions work" >&5
2001-04-26 03:56:37 +00:00
if test "$cross_compiling" = yes; then
1998-02-09 19:06:40 +00:00
gcc_nested=1
else
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 1161 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.nested.c"
EOF
2002-01-09 14:17:48 +00:00
if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1998-02-09 19:06:40 +00:00
then
gcc_nested=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
gcc_nested=0
fi
rm -fr conftest*
fi
2001-04-26 03:56:37 +00:00
if test $gcc_nested = 0; then
echo "$ac_t""no" 1>&6
2001-09-05 21:31:42 +00:00
cat >> confdefs.h <<\EOF
#define BROKEN_NESTED_FUNCTIONS 1
EOF
2001-04-26 03:56:37 +00:00
echo
echo "The GCC 'nested functions' feature does not seem to be working on"
echo "this machine. "
echo "Read the bug-report instructions in the GCC texinfo manual"
echo "and submit a bug report."
echo "The program this configure script used to test nested functions"
echo "can be found in the file 'config/config.nested.c'"
1998-02-09 19:06:40 +00:00
else
2001-04-26 03:56:37 +00:00
echo "$ac_t""yes" 1>&6
1998-02-09 19:06:40 +00:00
fi
2001-04-26 03:56:37 +00:00
#--------------------------------------------------------------------
# Set Apple/Darwin/OSX/NeXT information for other tests
#--------------------------------------------------------------------
OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
echo $ac_n "checking the Objective-C runtime""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1199: checking the Objective-C runtime" >&5
2001-04-26 03:56:37 +00:00
if test "$OBJC_RUNTIME_LIB" = "nx"; then
echo "$ac_t""NeXT" 1>&6
2001-05-25 15:59:06 +00:00
LIBOBJC='-lobjc'
2001-04-26 03:56:37 +00:00
CPPFLAGS="$CPPFLAGS -fnext-runtime -DNeXT_RUNTIME"
1998-02-09 19:06:40 +00:00
else
2001-04-26 03:56:37 +00:00
echo "$ac_t""GNU" 1>&6
LIBOBJC='-lobjc'
CPPFLAGS="$CPPFLAGS -fgnu-runtime"
1998-02-09 19:06:40 +00:00
fi
2000-06-22 03:15:27 +00:00
#--------------------------------------------------------------------
2001-01-18 19:47:40 +00:00
# Miscellaneous flags
2000-06-22 03:15:27 +00:00
#--------------------------------------------------------------------
2001-01-18 19:47:40 +00:00
# Set location of GNUstep dirs for later use
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Headers
if test "$GNUSTEP_FLATTENED" = yes; then
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries
else
clean_target_os=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_os.sh $target_os`
clean_target_cpu=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_cpu.sh $target_cpu`
obj_dir=$clean_target_cpu/$clean_target_os
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries/$obj_dir
2000-06-22 03:15:27 +00:00
fi
2001-01-30 14:18:19 +00:00
#
# The following one is so that headers of custom libraries into
# $GNUSTEP_HDIR are used before the standard ones
#
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR"
2001-10-17 20:42:33 +00:00
LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR"
2001-01-30 14:18:19 +00:00
2001-01-18 19:47:40 +00:00
#--------------------------------------------------------------------
# Check if Objective-C is installed
#--------------------------------------------------------------------
1999-09-24 22:24:08 +00:00
for ac_hdr in objc/objc.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-09 14:17:48 +00:00
echo "configure:1238: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999-09-24 22:24:08 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-09 14:17:48 +00:00
#line 1243 "configure"
1999-09-24 22:24:08 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-09 14:17:48 +00:00
{ (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-24 22:24:08 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_header_objc_objc_h = no; then
echo "Could not find Objective-C headers"
echo "Check to make sure you have a full installation of the GCC"
echo "compiler that includes the Objective-C headers and libraries"
{ echo "configure: error: Could not find Objective-C headers" 1>&2; exit 1; }
fi
2002-01-25 20:26:37 +00:00
#--------------------------------------------------------------------
# Check for strange network stuff used by gdomap
#--------------------------------------------------------------------
echo $ac_n "checking for gdomap network details""... $ac_c" 1>&6
echo "configure:1285: checking for gdomap network details" >&5
echo $ac_n "checking for variable length socket addresses""... $ac_c" 1>&6
echo "configure:1287: checking for variable length socket addresses" >&5
cat > conftest.$ac_ext <<EOF
#line 1289 "configure"
#include "confdefs.h"
#include <net/if.h>
int main() {
struct ifreq s; s.ifr_addr.sa_len = 0;
; return 0; }
EOF
if { (eval echo configure:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
sa_len=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
sa_len=0
fi
rm -f conftest*
if test $sa_len = 1; then
echo "$ac_t""found" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SA_LEN 1
EOF
else
echo "$ac_t""not found" 1>&6
fi
#
#
echo $ac_n "checking for objc threading flags""... $ac_c" 1>&6
echo "configure:1320: checking for objc threading flags" >&5
1999-09-09 02:56:20 +00:00
#--------------------------------------------------------------------
2001-01-19 11:51:30 +00:00
# Check for thread flags for libobjc.
1999-09-09 02:56:20 +00:00
#--------------------------------------------------------------------
2001-01-19 11:51:30 +00:00
#
echo $ac_n "checking for objc threading flags""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1326: checking for objc threading flags" >&5
2001-01-19 11:51:30 +00:00
#
# Get them from gnustep-make which contains the real code to get them
#
objc_threaded=`grep objc_threaded: $GNUSTEP_SYSTEM_ROOT/Makefiles/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
#
echo "$ac_t""$objc_threaded" 1>&6
1999-09-09 02:56:20 +00:00
1999-01-05 16:55:29 +00:00
#--------------------------------------------------------------------
1999-01-27 12:49:49 +00:00
# Byte order information needed for foundation headers.
1999-01-05 16:55:29 +00:00
#--------------------------------------------------------------------
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1338: checking whether byte ordering is bigendian" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1345 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-05 16:55:29 +00:00
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1360 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-05 16:55:29 +00:00
rm -rf conftest*
ac_cv_c_bigendian=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_bigendian=no
fi
rm -f conftest*
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1391 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_c_bigendian=no
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
fi
if test $ac_cv_c_bigendian = yes; then
GS_WORDS_BIGENDIAN=1
else
GS_WORDS_BIGENDIAN=0
fi
1999-01-27 12:49:49 +00:00
#--------------------------------------------------------------------
# Type size information needed for foundation headers.
#--------------------------------------------------------------------
1999-01-28 12:15:51 +00:00
echo $ac_n "checking size of void*""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1438: checking size of void*" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
1999-01-28 12:15:51 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1446 "configure"
1999-01-28 12:15:51 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-28 12:15:51 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(void*));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-28 12:15:51 +00:00
then
ac_cv_sizeof_voidp=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_voidp=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
EOF
1999-01-05 16:55:29 +00:00
GS_SINT8="signed char"
GS_UINT8="unsigned char"
echo $ac_n "checking size of short""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1484: checking size of short" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1492 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-05 16:55:29 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(short));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_sizeof_short=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_short=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
EOF
1999-01-26 11:32:02 +00:00
1999-01-05 16:55:29 +00:00
echo $ac_n "checking size of int""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1526: checking size of int" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1534 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-05 16:55:29 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(int));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_sizeof_int=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_int=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_INT $ac_cv_sizeof_int
EOF
1999-01-26 11:32:02 +00:00
1999-01-05 16:55:29 +00:00
echo $ac_n "checking size of long""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1568: checking size of long" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1576 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-05 16:55:29 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(long));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_sizeof_long=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_long=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG $ac_cv_sizeof_long
EOF
1999-01-26 11:32:02 +00:00
1999-01-05 16:55:29 +00:00
echo $ac_n "checking size of long long""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1610: checking size of long long" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1618 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-05 16:55:29 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(long long));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_sizeof_long_long=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_long_long=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
EOF
1999-01-26 11:32:02 +00:00
1999-01-05 16:55:29 +00:00
echo $ac_n "checking size of float""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1652: checking size of float" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1660 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-05 16:55:29 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(float));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_sizeof_float=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_float=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
EOF
1999-01-26 11:32:02 +00:00
1999-01-05 16:55:29 +00:00
echo $ac_n "checking size of double""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1694: checking size of double" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1999-01-05 16:55:29 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1702 "configure"
1999-01-05 16:55:29 +00:00
#include "confdefs.h"
#include <stdio.h>
2002-01-25 20:26:37 +00:00
#include <sys/types.h>
1999-01-05 16:55:29 +00:00
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(double));
exit(0);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-05 16:55:29 +00:00
then
ac_cv_sizeof_double=`cat conftestval`
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_sizeof_double=0
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
EOF
1999-01-26 11:32:02 +00:00
2000-08-07 22:00:31 +00:00
1999-01-28 12:15:51 +00:00
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_int; then
GS_ADDR="unsigned int"
else
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long; then
GS_ADDR="unsigned long"
else
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
GS_ADDR="unsigned long long"
else
echo "Unable to find integer of same size as void* - abort configuration"
exit
fi
fi
fi
1999-01-05 16:55:29 +00:00
if test $ac_cv_sizeof_short = 2; then
GS_SINT16="signed short"
GS_UINT16="unsigned short"
else
if test $ac_cv_sizeof_int = 2; then
GS_SINT16="signed int"
GS_UINT16="unsigned int"
else
echo "Unable to determine type for 16-bit integer - abort configuration"
exit
fi
fi
if test $ac_cv_sizeof_int = 4; then
GS_SINT32="signed int"
GS_UINT32="unsigned int"
else
if test $ac_cv_sizeof_long = 4; then
GS_SINT32="signed long"
GS_UINT32="unsigned long"
else
if test $ac_cv_sizeof_short = 4; then
GS_SINT32="signed short"
GS_UINT32="unsigned short"
else
echo "Unable to determine type for 32-bit integer - abort configuration"
exit
fi
fi
fi
1999-01-27 12:49:49 +00:00
GS_HAVE_I64=1
if test $ac_cv_sizeof_int = 8; then
GS_SINT64="signed int"
GS_UINT64="unsigned int"
1999-01-05 16:55:29 +00:00
else
if test $ac_cv_sizeof_long = 8; then
GS_SINT64="signed long"
GS_UINT64="unsigned long"
else
1999-01-27 12:49:49 +00:00
if test $ac_cv_sizeof_long_long = 8; then
GS_SINT64="signed long long"
GS_UINT64="unsigned long long"
else
# 64-bit ints not supported - but we need a dummy type for byte-swapping
# of 64-bit values arriving from another system.
GS_SINT64="struct { gsu8 a8; }"
GS_SINT64="struct { gsu8 a9; }"
GS_HAVE_I64=0
fi
1999-01-05 16:55:29 +00:00
fi
fi
1999-01-27 12:49:49 +00:00
GS_HAVE_I128=1
if test $ac_cv_sizeof_long = 16; then
GS_SINT128="signed long"
GS_UINT128="unsigned long"
else
if test $ac_cv_sizeof_long_long = 16; then
GS_SINT128="signed long long"
GS_UINT128="unsigned long long"
else
# 128-bit ints not supported - but we need a dummy type for byte-swapping
# of 128-bit values arriving from another system.
GS_SINT128="struct { gsu8 a16; }"
1999-01-28 12:05:23 +00:00
GS_UINT128="struct { gsu8 a16; }"
1999-01-27 12:49:49 +00:00
GS_HAVE_I128=0
fi
fi
1999-01-05 16:55:29 +00:00
if test $ac_cv_sizeof_float = 4; then
GS_FLT32="float"
else
1999-01-27 12:49:49 +00:00
echo "Unable to determine type for 32-bit float - abort configuration"
exit
1999-01-05 16:55:29 +00:00
fi
if test $ac_cv_sizeof_double = 8; then
GS_FLT64="double"
else
1999-01-27 12:49:49 +00:00
echo "Unable to determine type for 64-bit float - abort configuration"
exit
1999-01-05 16:55:29 +00:00
fi
1999-01-26 16:24:40 +00:00
#--------------------------------------------------------------------
# Type-size information for encoding into archives using NSArchiver etc.
#--------------------------------------------------------------------
1999-01-27 12:49:49 +00:00
if test $ac_cv_sizeof_short = 2; then
_GSC_S_SHT=_GSC_I16
1999-01-26 16:24:40 +00:00
else
1999-01-27 12:49:49 +00:00
_GSC_S_SHT=_GSC_I32
1999-01-26 16:24:40 +00:00
fi
1999-01-27 12:49:49 +00:00
if test $ac_cv_sizeof_int = 2; then
_GSC_S_INT=_GSC_I16
1999-01-26 16:24:40 +00:00
else
1999-01-27 12:49:49 +00:00
if test $ac_cv_sizeof_int = 4; then
_GSC_S_INT=_GSC_I32
1999-01-26 16:24:40 +00:00
else
if test $ac_cv_sizeof_int = 8; then
1999-01-27 12:49:49 +00:00
_GSC_S_INT=_GSC_I64
1999-01-26 16:24:40 +00:00
else
if test $ac_cv_sizeof_int = 16; then
1999-01-27 12:49:49 +00:00
_GSC_S_INT=_GSC_I128
1999-01-26 16:24:40 +00:00
fi
fi
fi
fi
if test $ac_cv_sizeof_long = 4; then
1999-01-27 12:49:49 +00:00
_GSC_S_LNG=_GSC_I32
1999-01-26 16:24:40 +00:00
else
if test $ac_cv_sizeof_long = 8; then
1999-01-28 10:49:16 +00:00
_GSC_S_LNG=_GSC_I64
1999-01-26 16:24:40 +00:00
else
if test $ac_cv_sizeof_long = 16; then
1999-01-27 12:49:49 +00:00
_GSC_S_LNG=_GSC_I128
1999-01-26 16:24:40 +00:00
fi
fi
fi
if test $ac_cv_sizeof_long_long = 4; then
1999-01-27 12:49:49 +00:00
_GSC_S_LNG_LNG=_GSC_I32
1999-01-26 16:24:40 +00:00
else
if test $ac_cv_sizeof_long_long = 8; then
1999-01-27 12:49:49 +00:00
_GSC_S_LNG_LNG=_GSC_I64
1999-01-26 16:24:40 +00:00
else
if test $ac_cv_sizeof_long_long = 16; then
1999-01-27 12:49:49 +00:00
_GSC_S_LNG_LNG=_GSC_I128
1999-01-26 16:24:40 +00:00
fi
fi
fi
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Setup dynamic linking
#--------------------------------------------------------------------
1998-12-03 15:43:18 +00:00
#--------------------------------------------------------------------
# Guess if we are using a object file format that supports automatic
# loading of constructor functions.
#
# If this system supports autoloading of constructors, that means that gcc
# doesn't have to do it for us via collect2. This routine tests for this
# in a very roundabout way by compiling a program with a constructor and
# testing the file, via nm, for certain symbols that collect2 includes to
# handle loading of constructors.
#
# Makes the following substitutions:
# Defines CON_AUTOLOAD (whether constructor functions are autoloaded)
#--------------------------------------------------------------------
echo $ac_n "checking loading of constructor functions""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1918: checking loading of constructor functions" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'objc_cv_con_autoload'+set}'`\" = set"; then
1998-12-03 15:43:18 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.constructor.c <<EOF
void cons_functions() __attribute__ ((constructor));
void cons_functions() {}
int main()
{
return 0;
}
EOF
2001-03-13 20:34:50 +00:00
${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.constructor.$ac_ext $LIBS 1>&5
2001-06-07 17:42:58 +00:00
case "$target_os" in
cygwin*) objc_cv_con_autoload=yes;;
*) if test -n "`nm conftest${ac_exeext} | grep global_ctors`"; then
objc_cv_con_autoload=yes
else
objc_cv_con_autoload=no
fi ;;
esac
1998-12-03 15:43:18 +00:00
fi
if test $objc_cv_con_autoload = yes; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define CON_AUTOLOAD 1
EOF
else
echo "$ac_t""no" 1>&6
fi
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Guess the type of dynamic linker for the system
#
# Makes the following substitutions:
# DYNAMIC_LINKER - cooresponds to the interface that is included
# in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
#--------------------------------------------------------------------
DYNAMIC_LINKER=null
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1962: checking for dlfcn.h" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 1967 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <dlfcn.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
DYNAMIC_LINKER=simple
else
echo "$ac_t""no" 1>&6
fi
if test $DYNAMIC_LINKER = null; then
ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dl.h""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:1996: checking for dl.h" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2001 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <dl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
DYNAMIC_LINKER=hpux
else
echo "$ac_t""no" 1>&6
fi
fi
if test $DYNAMIC_LINKER = null; then
1998-10-06 20:06:01 +00:00
ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for windows.h""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2031: checking for windows.h" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2036 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
1998-10-06 20:06:01 +00:00
#include <windows.h>
1998-02-09 19:06:40 +00:00
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
1998-10-06 20:06:01 +00:00
DYNAMIC_LINKER=win32
1998-02-09 19:06:40 +00:00
else
echo "$ac_t""no" 1>&6
fi
fi
1998-10-06 20:06:01 +00:00
if test $DYNAMIC_LINKER = null; then
ac_safe=`echo "dld/defs.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dld/defs.h""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2066: checking for dld/defs.h" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1998-10-06 20:06:01 +00:00
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2071 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
1998-10-06 20:06:01 +00:00
#include <dld/defs.h>
1998-02-09 19:06:40 +00:00
EOF
1998-10-06 20:06:01 +00:00
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-10-06 20:06:01 +00:00
if test -z "$ac_err"; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
1998-10-06 20:06:01 +00:00
eval "ac_cv_header_$ac_safe=yes"
1998-02-09 19:06:40 +00:00
else
1998-10-06 20:06:01 +00:00
echo "$ac_err" >&5
1998-02-09 19:06:40 +00:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1998-10-06 20:06:01 +00:00
eval "ac_cv_header_$ac_safe=no"
1998-02-09 19:06:40 +00:00
fi
rm -f conftest*
fi
1998-10-06 20:06:01 +00:00
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1998-02-09 19:06:40 +00:00
echo "$ac_t""yes" 1>&6
1998-10-06 20:06:01 +00:00
DYNAMIC_LINKER=dld
1998-02-09 19:06:40 +00:00
else
echo "$ac_t""no" 1>&6
fi
fi
2000-10-28 21:58:48 +00:00
if test $DYNAMIC_LINKER = simple; then
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2101 "configure"
2000-10-28 21:58:48 +00:00
#include "confdefs.h"
#include <dlfcn.h>
int main() {
dladdr(0,0);
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000-10-28 21:58:48 +00:00
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define HAVE_DLADDR 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
fi
1998-02-09 19:06:40 +00:00
2001-07-19 11:45:15 +00:00
#--------------------------------------------------------------------
# Check whether Objective-C /really/ works
#--------------------------------------------------------------------
echo $ac_n "checking whether objc really works""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2127: checking whether objc really works" >&5
1999-09-09 02:56:20 +00:00
saved_LIBS="$LIBS"
saved_CPPFLAGS="$CPPFLAGS"
2001-05-03 17:35:47 +00:00
LIBS="$LIBS $LIBOBJC"
1999-09-09 02:56:20 +00:00
CPPFLAGS="$CPPFLAGS -x objective-c"
2001-01-19 11:51:30 +00:00
if test x"$objc_threaded" != x""; then
LIBS="$LIBS $objc_threaded"
1999-09-09 02:56:20 +00:00
fi
LIBS="$LIBS $extra_LIBS"
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'objc_works'+set}'`\" = set"; then
2001-07-19 11:45:15 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
objc_works=yes
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2143 "configure"
2001-07-19 11:45:15 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.objc.m"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001-07-19 11:45:15 +00:00
then
objc_works=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
objc_works=no
fi
rm -fr conftest*
fi
fi
if test $objc_works = yes; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
echo "I don't seem to be able to use your Objective-C compiler to produce"
echo "working binaries! Please check your Objective-C compiler installation."
echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
echo "can be found by the dynamic linker - usually that requires you to play"
echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
echo "Please refer to your compiler installation instructions for more help."
{ echo "configure: error: The Objective-C compiler doesn't work or is not installed properly." 1>&2; exit 1; }
fi
2001-09-19 17:25:19 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2001-07-19 11:45:15 +00:00
#---------------------------------------------------------------------
# Guess if we are using a compiler which allows us to change the class
# to be used for constant strings by using the -fconstant-string-class
# option. If that is the case, we change it to NSConstantString.
#---------------------------------------------------------------------
2001-06-06 15:35:37 +00:00
CPPFLAGS="$CPPFLAGS -fconstant-string-class=NSConstantString"
2001-06-22 17:47:36 +00:00
echo $ac_n "checking if the compiler supports -fconstant-string-class""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2184: checking if the compiler supports -fconstant-string-class" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'objc_compiler_supports_constant_string_class'+set}'`\" = set"; then
2001-06-06 15:35:37 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
objc_compiler_supports_constant_string_class=no
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2192 "configure"
2001-06-06 15:35:37 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.constant-string-class.m"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001-06-06 15:35:37 +00:00
then
objc_compiler_supports_constant_string_class=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
objc_compiler_supports_constant_string_class=no
fi
rm -fr conftest*
fi
fi
if test $objc_compiler_supports_constant_string_class = yes; then
NX_CONST_STRING_CPPFLAGS="-fconstant-string-class=NSConstantString"
NX_CONST_STRING_CLASS=NSConstantString
echo "$ac_t""yes" 1>&6
else
NX_CONST_STRING_CPPFLAGS=""
NX_CONST_STRING_CLASS=NXConstantString
echo "$ac_t""no" 1>&6
fi
CPPFLAGS="$saved_CPPFLAGS"
# Don't revert LIBS, need it for the next test
#---------------------------------------------------------------------
# Guess if we are using a compiler which has the (GNU extension) +load
# method which is executed before main.
# Defines HAVE_LOAD_METHOD if +load methods are called before main.
# Needed by NSProcessInfo.m
#---------------------------------------------------------------------
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -x objective-c"
1999-07-22 14:17:27 +00:00
echo $ac_n "checking if +load method is executed before main""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2236: checking if +load method is executed before main" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'objc_load_method_worked'+set}'`\" = set"; then
1999-07-22 14:17:27 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-09-09 02:56:20 +00:00
if test "$cross_compiling" = yes; then
objc_load_method_worked=no
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2244 "configure"
1999-09-09 02:56:20 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.loadtest.m"
1999-07-22 14:17:27 +00:00
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-09-09 02:56:20 +00:00
then
objc_load_method_worked=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
objc_load_method_worked=no
1999-07-22 14:17:27 +00:00
fi
1999-09-09 02:56:20 +00:00
rm -fr conftest*
fi
1999-07-22 14:17:27 +00:00
fi
if test $objc_load_method_worked = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_LOAD_METHOD 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-09-09 02:56:20 +00:00
CPPFLAGS="$saved_CPPFLAGS"
# Don't revert LIBS, need it for the next test
#--------------------------------------------------------------------
# This function needed by NSLock.m for conditioned wait
2000-06-22 03:15:27 +00:00
# get_uninstalled_dtable used by behavior.m and objc-load.m
2001-03-10 21:36:03 +00:00
# Thread functions used by NSThread
1999-09-09 02:56:20 +00:00
#--------------------------------------------------------------------
2001-03-10 21:36:03 +00:00
for ac_func in objc_condition_timedwait objc_thread_add
1999-09-09 02:56:20 +00:00
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2284: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1999-09-09 02:56:20 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2289 "configure"
1999-09-09 02:56:20 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1999-09-09 02:56:20 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-09-09 02:56:20 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2000-06-22 03:15:27 +00:00
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2338 "configure"
2000-06-22 03:15:27 +00:00
#include "confdefs.h"
#include <objc/objc-api.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1
EOF
fi
rm -f conftest*
1999-09-09 02:56:20 +00:00
LIBS="$saved_LIBS"
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Generic settings needed by NSZone.m
#--------------------------------------------------------------------
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2359: checking for ANSI C header files" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2364 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2389 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "memchr" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2407 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2428 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1998-02-09 19:06:40 +00:00
then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2463: checking for size_t" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2468 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999-07-12 04:21:05 +00:00
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
2002-01-09 14:17:48 +00:00
ac_cv_type_size_t=yes
1998-02-09 19:06:40 +00:00
else
rm -rf conftest*
2002-01-09 14:17:48 +00:00
ac_cv_type_size_t=no
1998-02-09 19:06:40 +00:00
fi
rm -f conftest*
fi
2002-01-09 14:17:48 +00:00
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
1998-02-09 19:06:40 +00:00
#define size_t unsigned
EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2496: checking for inline" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2503 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
int main() {
2002-01-25 20:26:37 +00:00
} $ac_kw foo() {
1998-02-09 19:06:40 +00:00
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
no) cat >> confdefs.h <<\EOF
#define inline
EOF
;;
*) cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
;;
esac
#--------------------------------------------------------------------
# Following header checks needed for bzero in Storage.m and other places
#--------------------------------------------------------------------
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2540: checking for ANSI C header files" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2545 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2570 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "memchr" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2588 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2609 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1998-02-09 19:06:40 +00:00
then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
for ac_hdr in string.h memory.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2647: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2652 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#--------------------------------------------------------------------
2001-10-06 18:12:53 +00:00
# Following header check needed NSConnection.h
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2001-10-06 18:12:53 +00:00
for ac_hdr in float.h
1998-02-09 19:06:40 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2691: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2696 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#--------------------------------------------------------------------
# Header files and functions for files and filesystems
#--------------------------------------------------------------------
1998-12-03 16:49:25 +00:00
for ac_hdr in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
1998-02-09 19:06:40 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2735: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2740 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2000-10-30 05:03:28 +00:00
for ac_hdr in sys/mount.h sys/types.h windows.h locale.h langinfo.h
1999-04-27 15:06:14 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2775: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999-04-27 15:06:14 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2780 "configure"
1999-04-27 15:06:14 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-04-27 15:06:14 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2000-09-25 03:10:55 +00:00
saved_LIBS="$LIBS"
2001-05-03 17:35:47 +00:00
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2813: checking for main in -lm" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001-05-03 17:35:47 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2821 "configure"
2001-05-03 17:35:47 +00:00
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-05-03 17:35:47 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lm $LIBS"
else
echo "$ac_t""no" 1>&6
fi
2001-04-02 09:59:30 +00:00
for ac_func in statvfs symlink readlink geteuid getlogin getpwnam getpwuid rint
1998-02-09 19:06:40 +00:00
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2858: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2863 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2000-09-25 03:10:55 +00:00
LIBS="$saved_LIBS"
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# These two headers (functions) needed by Time.m
#--------------------------------------------------------------------
2000-06-06 16:50:52 +00:00
for ac_hdr in sys/time.h sys/rusage.h ucbinclude/sys/resource.h
1998-02-09 19:06:40 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2920: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2925 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#--------------------------------------------------------------------
2000-11-15 14:32:18 +00:00
# These headers/functions needed by GSTcpPort.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2000-06-13 14:51:31 +00:00
for ac_hdr in sys/socket.h netinet/in.h
1998-02-26 17:55:42 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:2964: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 2969 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
1998-02-26 17:55:42 +00:00
#include <$ac_hdr>
1998-02-09 19:06:40 +00:00
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:2974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998-02-09 19:06:40 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
1998-02-26 17:55:42 +00:00
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
1998-02-09 19:06:40 +00:00
else
echo "$ac_t""no" 1>&6
fi
1998-02-26 17:55:42 +00:00
done
1998-02-09 19:06:40 +00:00
1999-03-09 05:55:19 +00:00
#--------------------------------------------------------------------
# These headers/functions needed by NSLog.m
#--------------------------------------------------------------------
for ac_hdr in syslog.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3008: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999-03-09 05:55:19 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3013 "configure"
1999-03-09 05:55:19 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-07-12 04:21:05 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-03-09 05:55:19 +00:00
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_func in syslog
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3047: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1999-03-09 05:55:19 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3052 "configure"
1999-03-09 05:55:19 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1999-03-09 05:55:19 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-03-09 05:55:19 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2001-07-10 03:23:39 +00:00
#--------------------------------------------------------------------
# Check for pthread.h (only when building on Darwin machines)
#--------------------------------------------------------------------
for ac_hdr in pthread.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3107: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2001-07-10 03:23:39 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3112 "configure"
2001-07-10 03:23:39 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:3117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001-07-10 03:23:39 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2001-09-11 21:42:08 +00:00
HAVE_PTHREAD_H=no
if test $ac_cv_header_pthread_h = yes ; then
HAVE_PTHREAD_H=yes
fi
2001-07-10 03:23:39 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# This function needed by StdioStream.m
#--------------------------------------------------------------------
2000-03-23 18:49:34 +00:00
for ac_func in vsprintf vasprintf
1998-02-09 19:06:40 +00:00
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3155: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3160 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_func_vsprintf = yes ; then
if test "$cross_compiling" = yes; then
VSPRINTF_RETURNS_LENGTH=1
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3212 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.vsprintf.c"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1998-02-09 19:06:40 +00:00
then
VSPRINTF_RETURNS_LENGTH=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
VSPRINTF_RETURNS_LENGTH=0
fi
rm -fr conftest*
fi
cat >> confdefs.h <<EOF
#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
EOF
2000-03-23 18:49:34 +00:00
fi
if test $ac_cv_func_vasprintf = yes ; then
if test "$cross_compiling" = yes; then
VASPRINTF_RETURNS_LENGTH=1
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3238 "configure"
2000-03-23 18:49:34 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.vasprintf.c"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2000-03-23 18:49:34 +00:00
then
VASPRINTF_RETURNS_LENGTH=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
VASPRINTF_RETURNS_LENGTH=0
fi
rm -fr conftest*
fi
cat >> confdefs.h <<EOF
#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
EOF
1998-02-09 19:06:40 +00:00
fi
#--------------------------------------------------------------------
2000-06-13 14:51:31 +00:00
# This function needed by NSFileManager.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
for ac_func in getcwd
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3266: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3271 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3323: checking for $ac_hdr that defines DIR" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3328 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
int main() {
DIR *dirp = 0;
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
ac_header_dirent=$ac_hdr; break
else
echo "$ac_t""no" 1>&6
fi
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3361: checking for opendir in -ldir" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3369 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendir();
int main() {
opendir()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -ldir"
else
echo "$ac_t""no" 1>&6
fi
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3402: checking for opendir in -lx" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3410 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendir();
int main() {
opendir()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lx"
else
echo "$ac_t""no" 1>&6
fi
fi
2000-06-13 14:51:31 +00:00
#--------------------------------------------------------------------
# This function needed by gdomap.c
#--------------------------------------------------------------------
for ac_hdr in getopt.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3451: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000-06-13 14:51:31 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3456 "configure"
2000-06-13 14:51:31 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:3461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000-06-13 14:51:31 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# This function needed by NSPage.m
#--------------------------------------------------------------------
for ac_func in valloc
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3494: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3499 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#--------------------------------------------------------------------
# This function needed by Time.m
#--------------------------------------------------------------------
for ac_func in times
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3553: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3558 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#--------------------------------------------------------------------
# These functions needed by NSData.m
#--------------------------------------------------------------------
1999-03-09 05:55:19 +00:00
for ac_func in mkstemp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3612: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1999-03-09 05:55:19 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3617 "configure"
1999-03-09 05:55:19 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1999-03-09 05:55:19 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-03-09 05:55:19 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1998-02-09 19:06:40 +00:00
for ac_func in shmctl
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3667: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3672 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_func in mmap
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3722: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1999-02-01 14:00:17 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3727 "configure"
1999-02-01 14:00:17 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1999-02-01 14:00:17 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-02-01 14:00:17 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2001-10-24 16:34:00 +00:00
# These used by UnixFileHandle.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
for ac_func in inet_aton
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3781: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3786 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2001-10-24 16:34:00 +00:00
HAVE_ZLIB=0
for ac_hdr in zlib.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3838: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2001-10-24 16:34:00 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3843 "configure"
2001-10-24 16:34:00 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:3848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001-10-24 16:34:00 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_header_zlib_h = yes; then
2001-10-26 17:57:58 +00:00
echo $ac_n "checking for gzseek in -lz""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3876: checking for gzseek in -lz" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo z'_'gzseek | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001-10-24 16:34:00 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lz $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3884 "configure"
2001-10-24 16:34:00 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
2001-10-26 17:57:58 +00:00
char gzseek();
2001-10-24 16:34:00 +00:00
int main() {
2001-10-26 17:57:58 +00:00
gzseek()
2001-10-24 16:34:00 +00:00
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-10-24 16:34:00 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
zlib_ok=yes
else
echo "$ac_t""no" 1>&6
zlib_ok=no
fi
if test "$zlib_ok" = yes; then
base_libs="$LIBS"
LIBS="$LIBS -lz"
HAVE_ZLIB=1
fi
fi
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
1999-01-05 16:55:29 +00:00
# These functions needed by NSTask.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
1999-01-05 18:17:38 +00:00
for ac_func in killpg setpgrp setpgid
1998-02-09 19:06:40 +00:00
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3930: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3935 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
1999-01-05 18:17:38 +00:00
1998-02-09 19:06:40 +00:00
else
echo "$ac_t""no" 1>&6
fi
done
1999-06-26 05:28:11 +00:00
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:3983: checking whether setpgrp takes no argument" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
1999-06-26 05:28:11 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
{ echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 3991 "configure"
1999-06-26 05:28:11 +00:00
#include "confdefs.h"
1999-07-12 04:21:05 +00:00
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
1999-06-26 05:28:11 +00:00
/*
* If this system has a BSD-style setpgrp, which takes arguments, exit
* successfully.
*/
main()
{
if (setpgrp(1,1) == -1)
exit(0);
else
exit(1);
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-06-26 05:28:11 +00:00
then
ac_cv_func_setpgrp_void=no
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_func_setpgrp_void=yes
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
if test $ac_cv_func_setpgrp_void = yes; then
cat >> confdefs.h <<\EOF
#define SETPGRP_VOID 1
EOF
fi
1998-02-09 19:06:40 +00:00
2001-02-05 09:28:19 +00:00
HAVE_PTS_STREAM_MODULES=0
case "${target}" in
*-sysv-*)
HAVE_PTS_STREAM_MODULES=1
;;
esac
cat >> confdefs.h <<EOF
#define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES
EOF
2002-01-02 21:01:26 +00:00
for ac_hdr in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/param.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h
2001-02-05 09:28:19 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4051: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2001-02-05 09:28:19 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4056 "configure"
2001-02-05 09:28:19 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:4061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001-02-05 09:28:19 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
1998-05-29 15:25:41 +00:00
# This function needed by NSThread.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
1998-05-29 15:25:41 +00:00
for ac_func in usleep
1998-02-09 19:06:40 +00:00
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4094: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-02-09 19:06:40 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4099 "configure"
1998-02-09 19:06:40 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-02-09 19:06:40 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-02-09 19:06:40 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1998-05-29 15:25:41 +00:00
#--------------------------------------------------------------------
1999-07-22 14:17:27 +00:00
# This function needed by NSDebug.m and NSProcessInfo.m
1998-05-29 15:25:41 +00:00
#--------------------------------------------------------------------
for ac_func in strerror
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4153: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1998-05-29 15:25:41 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4158 "configure"
1998-05-29 15:25:41 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1998-05-29 15:25:41 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-05-29 15:25:41 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2001-02-02 06:14:42 +00:00
#--------------------------------------------------------------------
# This type needed by GSFormat
#--------------------------------------------------------------------
2001-10-26 17:57:58 +00:00
echo $ac_n "checking whether stdint.h or inttypes.h defines uintmax_t""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4210: checking whether stdint.h or inttypes.h defines uintmax_t" >&5
2001-02-02 06:14:42 +00:00
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4212 "configure"
2001-02-02 06:14:42 +00:00
#include "confdefs.h"
2001-10-26 17:57:58 +00:00
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_SYS_INTTYPES_H
#include <sys/inttypes.h>
#endif
2001-02-02 06:14:42 +00:00
int main() {
2001-02-14 00:02:18 +00:00
int i = sizeof(uintmax_t);
2001-02-02 06:14:42 +00:00
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001-02-02 06:14:42 +00:00
rm -rf conftest*
2001-02-14 00:02:18 +00:00
uintmax_t=1
2001-02-02 06:14:42 +00:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
2001-02-14 00:02:18 +00:00
uintmax_t=0
2001-02-02 06:14:42 +00:00
fi
rm -f conftest*
if test $uintmax_t = 1; then
echo "$ac_t""found" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_UINTMAX_T 1
EOF
else
echo "$ac_t""not found" 1>&6
fi
2001-05-23 14:32:56 +00:00
echo $ac_n "checking whether precompiler handles LONG_LONG_MAX""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4245: checking whether precompiler handles LONG_LONG_MAX" >&5
2001-05-23 14:32:56 +00:00
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4247 "configure"
2001-05-23 14:32:56 +00:00
#include "confdefs.h"
2001-10-26 17:57:58 +00:00
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
2001-05-23 14:32:56 +00:00
#include <limits.h>
#if defined(LONG_LONG_MAX)
2001-10-26 19:33:48 +00:00
#if LONG_MAX == LONG_LONG_MAX
#error long max equals long long max
2001-05-23 14:32:56 +00:00
#endif
2001-10-26 19:33:48 +00:00
#else
#error long long max not defined
2001-05-23 14:32:56 +00:00
#endif
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:4263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001-05-23 14:32:56 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
llmax=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
llmax=no
fi
rm -f conftest*
if test $llmax = yes; then
2001-05-23 21:46:39 +00:00
echo "$ac_t""yes" 1>&6
2001-05-23 14:32:56 +00:00
cat >> confdefs.h <<\EOF
#define HANDLE_LONG_LONG_MAX 1
EOF
else
echo "$ac_t""no" 1>&6
fi
2001-10-26 02:16:26 +00:00
#
# Solaris and *BSD use LLONG_MAX instead
#
2001-10-26 17:57:58 +00:00
echo $ac_n "checking whether we have LLONG_MAX""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4290: checking whether we have LLONG_MAX" >&5
2001-10-26 02:16:26 +00:00
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4293 "configure"
2001-10-26 02:16:26 +00:00
#include "confdefs.h"
#include <limits.h>
#if defined(LLONG_MAX)
2001-10-26 20:02:01 +00:00
#if LONG_MAX == LLONG_MAX
2001-10-26 19:33:48 +00:00
#error long max equals long long max
2001-10-26 02:16:26 +00:00
#endif
2001-10-26 19:33:48 +00:00
#else
#error llong max not defined
2001-10-26 02:16:26 +00:00
#endif
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:4306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001-10-26 02:16:26 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
llmax=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
llmax=no
fi
rm -f conftest*
if test $llmax = yes; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HANDLE_LLONG_MAX 1
EOF
else
echo "$ac_t""no" 1>&6
fi
2001-02-09 06:58:38 +00:00
for ac_hdr in wchar.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4333: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2001-02-09 06:58:38 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4338 "configure"
2001-02-09 06:58:38 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001-02-09 06:58:38 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1998-05-29 15:25:41 +00:00
#--------------------------------------------------------------------
# This function needed by NSString for handling of %@ printf directive.
#--------------------------------------------------------------------
1999-02-05 06:10:49 +00:00
echo $ac_n "checking for register_printf_function""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4374: checking for register_printf_function" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_register_printf_function'+set}'`\" = set"; then
1998-05-29 15:25:41 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4379 "configure"
1998-05-29 15:25:41 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
1999-02-05 06:10:49 +00:00
which can conflict with char register_printf_function(); below. */
1998-05-29 15:25:41 +00:00
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
1999-02-05 06:10:49 +00:00
char register_printf_function();
1998-05-29 15:25:41 +00:00
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
1999-02-05 06:10:49 +00:00
#if defined (__stub_register_printf_function) || defined (__stub___register_printf_function)
1998-05-29 15:25:41 +00:00
choke me
#else
2002-01-09 14:17:48 +00:00
register_printf_function();
1998-05-29 15:25:41 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998-05-29 15:25:41 +00:00
rm -rf conftest*
1999-02-05 06:10:49 +00:00
eval "ac_cv_func_register_printf_function=yes"
1998-05-29 15:25:41 +00:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-02-05 06:10:49 +00:00
eval "ac_cv_func_register_printf_function=no"
1998-05-29 15:25:41 +00:00
fi
rm -f conftest*
fi
1999-02-05 06:10:49 +00:00
if eval "test \"`echo '$ac_cv_func_'register_printf_function`\" = yes"; then
1998-05-29 15:25:41 +00:00
echo "$ac_t""yes" 1>&6
1999-02-05 06:10:49 +00:00
register_printf=1
1998-05-29 15:25:41 +00:00
else
echo "$ac_t""no" 1>&6
1999-02-05 06:10:49 +00:00
register_printf=0
1998-05-29 15:25:41 +00:00
fi
1999-02-05 06:10:49 +00:00
if test $register_printf = 1; then
if test "$cross_compiling" = yes; then
working_register_printf=1
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4427 "configure"
1999-02-05 06:10:49 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.printf.c"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-02-05 06:10:49 +00:00
then
working_register_printf=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
working_register_printf=0
fi
rm -fr conftest*
fi
if test $working_register_printf = 1; then
cat >> confdefs.h <<\EOF
#define HAVE_REGISTER_PRINTF_FUNCTION 1
EOF
fi
fi
1998-05-29 15:25:41 +00:00
1999-07-12 04:21:05 +00:00
#--------------------------------------------------------------------
# This function needed by NSString.
#--------------------------------------------------------------------
for ac_func in realpath
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4457: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1999-07-12 04:21:05 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4462 "configure"
1999-07-12 04:21:05 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
1999-07-12 04:21:05 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-07-12 04:21:05 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1999-07-22 14:17:27 +00:00
#--------------------------------------------------------------------
# Check if the C Library defines extern char *program_invocation_name
# Used in critical cases by NSProcessInfo.m
#--------------------------------------------------------------------
echo $ac_n "checking program_invocation_name in C Library""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4515: checking program_invocation_name in C Library" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'program_invocation_name_worked'+set}'`\" = set"; then
1999-07-22 14:17:27 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
program_invocation_name_worked=no
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4523 "configure"
1999-07-22 14:17:27 +00:00
#include "confdefs.h"
#include <string.h>
int
main (int argc, char *argv[])
{
extern char *program_invocation_name;
return (strcmp (program_invocation_name, argv[0]));
}
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-07-22 14:17:27 +00:00
then
program_invocation_name_worked=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
program_invocation_name_worked=no
fi
rm -fr conftest*
fi
fi
if test $program_invocation_name_worked = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_PROGRAM_INVOCATION_NAME 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
#--------------------------------------------------------------------
2001-03-01 11:03:39 +00:00
# Defines HAVE_PROCFS if the kernel supports the /proc filesystem.
1999-07-22 14:17:27 +00:00
# Needed by NSProcessInfo.m
#--------------------------------------------------------------------
2001-10-26 02:37:52 +00:00
# Check whether --enable-procfs or --disable-procfs was given.
if test "${enable_procfs+set}" = set; then
enableval="$enable_procfs"
2001-03-01 11:03:39 +00:00
enable_procfs="$enableval"
else
if test "$cross_compiling" = yes; then enable_procfs=cross; else enable_procfs=yes; fi;
fi
1999-07-22 14:17:27 +00:00
2001-03-01 11:03:39 +00:00
echo $ac_n "checking kernel support for /proc filesystem""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4573: checking kernel support for /proc filesystem" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sys_procfs'+set}'`\" = set"; then
2001-03-01 11:03:39 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
1999-07-22 14:17:27 +00:00
else
2001-03-01 11:03:39 +00:00
if test "$enable_procfs" = yes; then
2001-03-01 12:39:46 +00:00
# Suggested change for the following line was
# if test -d /proc/0; then
# but it doesn't work on my linux - /proc/0 does not exist, but /proc
# works fine
2001-10-26 02:37:52 +00:00
if (grep proc /etc/fstab >/dev/null 2>/dev/null); then
2001-03-01 11:03:39 +00:00
ac_cv_sys_procfs=yes
2001-03-01 12:39:46 +00:00
# Solaris has proc, but for some reason the dir is not readable
# elif (grep proc /etc/vfstab >/dev/null 2>/dev/null); then
# ac_cv_sys_procfs=yes
2001-03-01 11:03:39 +00:00
else
ac_cv_sys_procfs=no
fi
elif test "$enable_procfs" = cross; then
echo "configure: warning: Pass --enable-procfs argument to enable use of /proc filesystem." 1>&2
2001-10-26 02:37:52 +00:00
else
ac_cv_sys_procfs=no
2001-03-01 11:03:39 +00:00
fi
1999-07-22 14:17:27 +00:00
fi
2001-03-01 11:03:39 +00:00
echo "$ac_t""$ac_cv_sys_procfs" 1>&6
if test $ac_cv_sys_procfs = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_PROCFS 1
EOF
2000-04-18 21:34:59 +00:00
fi
2001-03-01 11:03:39 +00:00
echo $ac_n "checking link to exe of process in /proc""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4610: checking link to exe of process in /proc" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_sys_procfs_exe_link'+set}'`\" = set"; then
2001-03-01 11:03:39 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$ac_cv_sys_procfs" = yes; then
# Linux 2.2.x and up
if test -L /proc/self/exe; then
ac_cv_sys_procfs_exe_link=/proc/self/exe
# FreeBSD 4.x and up
elif test -L /proc/curproc/file; then
ac_cv_sys_procfs_exe_link=/proc/curproc/file
else
ac_cv_sys_procfs_exe_link=no
fi
2001-10-26 02:37:52 +00:00
else
ac_cv_sys_procfs_exe_link=no
2001-03-01 11:03:39 +00:00
fi
2000-04-18 21:34:59 +00:00
fi
2001-03-01 11:03:39 +00:00
echo "$ac_t""$ac_cv_sys_procfs_exe_link" 1>&6
if test "$ac_cv_sys_procfs_exe_link" != no; then
cat >> confdefs.h <<EOF
#define PROCFS_EXE_LINK "$ac_cv_sys_procfs_exe_link"
EOF
fi
2001-04-21 05:55:16 +00:00
#--------------------------------------------------------------------
# Check if /proc/$$/cmdline terminates the last argument with a nul
#--------------------------------------------------------------------
echo $ac_n "checking /proc/$$/cmdline terminated by nul""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4643: checking /proc/$$/cmdline terminated by nul" >&5
2001-04-21 05:55:16 +00:00
if test "$cross_compiling" = yes; then
CMDLINE_TERMINATED=0
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4648 "configure"
2001-04-21 05:55:16 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.proccmd.c"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001-04-21 05:55:16 +00:00
then
CMDLINE_TERMINATED=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
CMDLINE_TERMINATED=0
fi
rm -fr conftest*
fi
cat >> confdefs.h <<EOF
#define CMDLINE_TERMINATED $CMDLINE_TERMINATED
EOF
if test $CMDLINE_TERMINATED = 1; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
2000-05-03 03:14:14 +00:00
#--------------------------------------------------------------------
# Check if short and int values need to be word aligned
#--------------------------------------------------------------------
2000-06-06 16:50:52 +00:00
echo $ac_n "checking short/int needs to be word aligned""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4678: checking short/int needs to be word aligned" >&5
2000-05-03 03:14:14 +00:00
if test "$cross_compiling" = yes; then
NEED_WORD_ALIGNMENT=1
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4683 "configure"
2000-05-03 03:14:14 +00:00
#include "confdefs.h"
#include "$srcdir/config/config.align.c"
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2000-05-03 03:14:14 +00:00
then
NEED_WORD_ALIGNMENT=0
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
NEED_WORD_ALIGNMENT=1
fi
rm -fr conftest*
fi
cat >> confdefs.h <<EOF
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
EOF
if test $NEED_WORD_ALIGNMENT = 1; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-07-22 14:17:27 +00:00
#--------------------------------------------------------------------
1999-09-09 02:56:20 +00:00
# Include redefinition of main () only if needed.
# On some systems - force redefinition to be used as the /proc stuff
2000-06-29 03:51:06 +00:00
# doesn't work. Allow NSProcessInfo initialization method also.
1999-07-22 14:17:27 +00:00
#--------------------------------------------------------------------
2000-06-29 03:51:06 +00:00
echo $ac_n "checking "use of pass-through arguments"""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4715: checking "use of pass-through arguments"" >&5
2000-06-29 03:51:06 +00:00
# Check whether --enable-pass-arguments or --disable-pass-arguments was given.
if test "${enable_pass_arguments+set}" = set; then
enableval="$enable_pass_arguments"
:
else
enable_pass_arguments=no
fi
case "$target_os" in
2000-06-30 22:42:48 +00:00
cygwin*) enable_pass_arguments=yes;;
2000-06-29 03:51:06 +00:00
esac
if test "$enable_pass_arguments" = "yes"; then
GS_PASS_ARGUMENTS=1
else
GS_PASS_ARGUMENTS=0
fi
echo "$ac_t""$enable_pass_arguments" 1>&6
echo $ac_n "checking "use of fake-main definition"""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4737: checking "use of fake-main definition"" >&5
1999-07-22 14:17:27 +00:00
# Check whether --enable-fake-main or --disable-fake-main was given.
if test "${enable_fake_main+set}" = set; then
enableval="$enable_fake_main"
:
else
enable_fake_main=no
fi
1999-09-09 02:56:20 +00:00
2000-06-29 03:51:06 +00:00
if test "$enable_pass_arguments" = "no"; then
case "$target_os" in
2001-04-14 08:45:49 +00:00
freebsd2*) enable_fake_main=yes;;
freebsd*) ;;
2000-06-29 03:51:06 +00:00
netbsd*) enable_fake_main=yes;;
openbsd*) enable_fake_main=yes;;
*sysv*) enable_fake_main=yes;;
esac
fi
1999-09-09 02:56:20 +00:00
2000-06-29 03:51:06 +00:00
GS_FAKE_MAIN=0
1999-07-22 14:17:27 +00:00
if test "$enable_fake_main" = "yes"; then
GS_FAKE_MAIN=1
2000-06-29 03:51:06 +00:00
elif test "$enable_pass_arguments" = "no"; then
2001-03-01 12:39:46 +00:00
if test "$objc_load_method_worked" = yes -a "$ac_cv_sys_procfs" = yes; then
1999-07-22 14:17:27 +00:00
GS_FAKE_MAIN=0
else
GS_FAKE_MAIN=1
2000-06-29 03:51:06 +00:00
enable_fake_main=yes
1999-07-22 14:17:27 +00:00
fi
fi
2000-09-15 22:06:01 +00:00
case "$target_os" in
mingw*) enable_fake_main=no; GS_FAKE_MAIN=0;;
esac
1999-07-22 14:17:27 +00:00
2000-06-29 03:51:06 +00:00
echo "$ac_t""$enable_fake_main" 1>&6
1999-07-22 14:17:27 +00:00
2000-12-08 19:06:00 +00:00
#--------------------------------------------------------------------
# Check for FFI interface libraries for invocations
2001-01-09 03:53:02 +00:00
# We enable ffcall by default now.
2000-12-08 19:06:00 +00:00
#--------------------------------------------------------------------
# Check whether --enable-libffi or --disable-libffi was given.
if test "${enable_libffi+set}" = set; then
enableval="$enable_libffi"
:
else
enable_libffi=no
fi
# Check whether --enable-ffcall or --disable-ffcall was given.
if test "${enable_ffcall+set}" = set; then
enableval="$enable_ffcall"
:
else
2001-01-09 03:53:02 +00:00
enable_ffcall=yes
2000-12-08 19:06:00 +00:00
fi
ac_safe=`echo "ffi.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for ffi.h""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4797: checking for ffi.h" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000-12-08 19:06:00 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4802 "configure"
2000-12-08 19:06:00 +00:00
#include "confdefs.h"
#include <ffi.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:4807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000-12-08 19:06:00 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
enable_libffi=no
fi
2001-01-03 17:09:40 +00:00
echo $ac_n "checking "for forwarding callback in runtime"""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4831: checking "for forwarding callback in runtime"" >&5
2000-12-08 19:06:00 +00:00
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4833 "configure"
2000-12-08 19:06:00 +00:00
#include "confdefs.h"
2001-01-03 17:09:40 +00:00
#include <objc/objc-api.h>
2000-12-08 19:06:00 +00:00
EOF
2001-01-03 17:09:40 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "__objc_msg_forward" >/dev/null 2>&1; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
2000-12-08 19:06:00 +00:00
else
rm -rf conftest*
2001-01-03 17:09:40 +00:00
echo "$ac_t""no" 1>&6; enable_ffcall=no
2000-12-08 19:06:00 +00:00
fi
rm -f conftest*
2001-01-03 17:09:40 +00:00
2000-12-08 19:06:00 +00:00
for ac_hdr in callback.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4851: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000-12-08 19:06:00 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 4856 "configure"
2000-12-08 19:06:00 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:4861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000-12-08 19:06:00 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
enable_ffcall=no
fi
done
echo $ac_n "checking "FFI library usage"""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4890: checking "FFI library usage"" >&5
2000-12-08 19:06:00 +00:00
WITH_FFI=none
if test $enable_libffi = yes; then
cat >> confdefs.h <<\EOF
#define USE_LIBFFI 1
EOF
WITH_FFI=libffi
2001-01-29 19:39:31 +00:00
LIBS="$LIBS -lffi"
2000-12-08 19:06:00 +00:00
echo "$ac_t""libffi" 1>&6
elif test $enable_ffcall = yes; then
cat >> confdefs.h <<\EOF
#define USE_FFCALL 1
EOF
WITH_FFI=ffcall
2001-01-29 19:39:31 +00:00
LIBS="$LIBS -lcallback -lavcall"
2000-12-08 19:06:00 +00:00
echo "$ac_t""ffcall" 1>&6
else
echo "$ac_t""none" 1>&6
2001-01-09 03:53:02 +00:00
echo "configure: warning: No ffcall interface library found" 1>&2
echo
echo "GNUstep requires the ffcall library to do invocations and DO"
2001-01-29 19:39:31 +00:00
echo "Make sure this library is installed (see installation instructions)"
2001-01-09 03:53:02 +00:00
echo "Otherwise DO will not be compatible with other systems"
2000-12-08 19:06:00 +00:00
fi
2000-06-20 13:17:22 +00:00
#--------------------------------------------------------------------
2001-01-05 10:12:17 +00:00
# Check recent libxml for Properytlists, GSXML, GSDoc etc.
2000-06-20 13:17:22 +00:00
#--------------------------------------------------------------------
2001-01-05 10:12:17 +00:00
2001-01-31 19:02:09 +00:00
# Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
# of the success of the macro.
saved_LIBS="$LIBS"
saved_CFLAGS="$CFLAGS"
2001-01-05 10:12:17 +00:00
# Check whether --with-xml-prefix or --without-xml-prefix was given.
if test "${with_xml_prefix+set}" = set; then
withval="$with_xml_prefix"
xml_config_prefix="$withval"
2000-10-28 21:58:48 +00:00
else
2001-01-05 10:12:17 +00:00
xml_config_prefix=""
2000-10-28 21:58:48 +00:00
fi
2001-01-05 10:12:17 +00:00
# Check whether --enable-xmltest or --disable-xmltest was given.
if test "${enable_xmltest+set}" = set; then
enableval="$enable_xmltest"
:
2000-10-28 21:58:48 +00:00
else
2001-01-05 10:12:17 +00:00
enable_xmltest=yes
2000-10-28 21:58:48 +00:00
fi
2001-01-05 10:12:17 +00:00
if test x$xml_config_prefix != x ; then
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
if test x${XML_CONFIG+set} != xset ; then
XML_CONFIG=$xml_config_prefix/bin/xml-config
fi
fi
2000-10-28 21:58:48 +00:00
2001-04-17 04:10:03 +00:00
# Extract the first word of "xml2-config", so it can be a program name with args.
set dummy xml2-config; ac_word=$2
2001-01-05 10:12:17 +00:00
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4955: checking for $ac_word" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
2001-04-17 04:10:03 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$XML2_CONFIG" in
/*)
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
;;
esac
fi
XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
if test -n "$XML2_CONFIG"; then
echo "$ac_t""$XML2_CONFIG" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test "$XML2_CONFIG" = "no" ; then
# Extract the first word of "xml-config", so it can be a program name with args.
set dummy xml-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:4992: checking for $ac_word" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
2001-01-05 10:12:17 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
2000-06-20 13:17:22 +00:00
else
2001-01-05 10:12:17 +00:00
case "$XML_CONFIG" in
/*)
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
;;
esac
2000-06-20 13:17:22 +00:00
fi
2001-01-05 10:12:17 +00:00
XML_CONFIG="$ac_cv_path_XML_CONFIG"
if test -n "$XML_CONFIG"; then
echo "$ac_t""$XML_CONFIG" 1>&6
2000-06-20 13:17:22 +00:00
else
2001-01-05 10:12:17 +00:00
echo "$ac_t""no" 1>&6
2000-12-26 23:03:42 +00:00
fi
2001-01-05 10:12:17 +00:00
2001-04-17 04:10:03 +00:00
else
XML_CONFIG=$XML2_CONFIG
fi
2001-01-05 10:12:17 +00:00
min_xml_version=2.2.3
echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5030: checking for libxml - version >= $min_xml_version" >&5
2001-01-05 10:12:17 +00:00
no_xml=""
if test "$XML_CONFIG" = "no" ; then
no_xml=yes
else
XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
if test "x$enable_xmltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$XML_LIBS $LIBS"
rm -f conf.xmltest
if test "$cross_compiling" = yes; then
echo $ac_n "cross compiling; assumed OK... $ac_c"
2000-06-20 13:17:22 +00:00
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5053 "configure"
2000-06-20 13:17:22 +00:00
#include "confdefs.h"
2001-01-05 10:12:17 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <xmlversion.h>
#include <parser.h>
int
main()
{
int xml_major_version, xml_minor_version, xml_micro_version;
int major, minor, micro;
char *tmp_version;
system("touch conf.xmltest");
tmp_version = xmlStrdup("$min_xml_version");
if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
if((xml_major_version != $xml_config_major_version) ||
(xml_minor_version != $xml_config_minor_version) ||
(xml_micro_version != $xml_config_micro_version))
{
printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** was found! If xml-config was correct, then it is best\n");
printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
else
{
if ((xml_major_version > major) ||
((xml_major_version == major) && (xml_minor_version > minor)) ||
((xml_major_version == major) && (xml_minor_version == minor) &&
(xml_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the xml-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
printf("*** correct copy of xml-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
2000-06-20 13:17:22 +00:00
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001-01-05 10:12:17 +00:00
then
:
2000-06-20 13:17:22 +00:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
2001-01-05 10:12:17 +00:00
rm -fr conftest*
no_xml=yes
2000-06-20 13:17:22 +00:00
fi
2001-01-05 10:12:17 +00:00
rm -fr conftest*
2000-06-20 13:17:22 +00:00
fi
2001-01-05 10:12:17 +00:00
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_xml" = x ; then
echo "$ac_t""yes" 1>&6
enable_libxml=yes
else
echo "$ac_t""no" 1>&6
if test "$XML_CONFIG" = "no" ; then
echo "*** The xml-config script installed by libxml could not be found"
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the XML_CONFIG environment variable to the"
echo "*** full path to xml-config."
else
if test -f conf.xmltest ; then
:
else
echo "*** Could not run libxml test program, checking why..."
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$LIBS $XML_LIBS"
fi
fi
XML_CFLAGS=""
XML_LIBS=""
enable_libxml=no
fi
rm -f conf.xmltest
if test $enable_libxml = yes; then
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
LIBS="$LIBS $XML_LIBS"
HAVE_LIBXML=1
cat >> confdefs.h <<\EOF
#define HAVE_LIBXML 1
EOF
else
HAVE_LIBXML=0
2001-01-31 19:02:09 +00:00
# Restore the CFLAGS and LIBS because AM_PATH_XML messes them
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
2000-10-28 21:58:48 +00:00
fi
2001-01-05 10:12:17 +00:00
2000-11-15 14:32:18 +00:00
#--------------------------------------------------------------------
2000-11-18 08:54:32 +00:00
# Check OpenSSL for HTTPS support.
2000-11-15 14:32:18 +00:00
#--------------------------------------------------------------------
2001-06-11 15:38:22 +00:00
# Check whether --enable-openssl or --disable-openssl was given.
if test "${enable_openssl+set}" = set; then
enableval="$enable_openssl"
:
else
2001-12-04 14:59:09 +00:00
enable_openssl=yes
2001-06-11 15:38:22 +00:00
fi
2000-11-15 14:32:18 +00:00
# Check whether --with-openssl-include or --without-openssl-include was given.
if test "${with_openssl_include+set}" = set; then
withval="$with_openssl_include"
openssl_incdir="$withval"
else
openssl_incdir="no"
fi
# Check whether --with-openssl-library or --without-openssl-library was given.
if test "${with_openssl_library+set}" = set; then
withval="$with_openssl_library"
openssl_libdir="$withval"
else
openssl_libdir="no"
fi
2001-09-19 17:25:19 +00:00
cppflags_temp="$CPPFLAGS"
2000-11-15 14:32:18 +00:00
libs_temp=$LIBS
if test "$openssl_incdir" != "no"; then
CPPFLAGS="$CPPFLAGS -I$openssl_incdir"
2001-12-04 14:59:09 +00:00
SSLFLAGS="-I$openssl_incdir"
else
SSLFLAGS=
2000-11-15 14:32:18 +00:00
fi
2001-12-04 14:59:09 +00:00
2000-11-15 14:32:18 +00:00
if test "$openssl_libdir" != "no"; then
LIBS="$LIBS -L$openssl_libdir"
2001-12-04 14:59:09 +00:00
SSLLIBS="-L$openssl_libdir"
else
SSLLIBS=
2000-11-15 14:32:18 +00:00
fi
2001-06-11 15:38:22 +00:00
if test $enable_openssl = yes; then
for ac_hdr in openssl/ssl.h
2000-11-15 14:32:18 +00:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5240: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000-11-15 14:32:18 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5245 "configure"
2000-11-15 14:32:18 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:5250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000-11-15 14:32:18 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2001-06-11 15:38:22 +00:00
if test $ac_cv_header_openssl_ssl_h = no; then
echo "Could not find openssl headers"
echo "Check to make sure you have a recent version of openssl installed"
2001-12-04 14:59:09 +00:00
echo "The SSL bundle will not be built"
2001-06-11 15:38:22 +00:00
echo "configure: warning: Could not find openssl headers" 1>&2
2001-12-04 14:59:09 +00:00
echo "configure: warning: The SSL bundle will not be built" 1>&2
2001-06-11 15:38:22 +00:00
ssl_ok=no
else
echo $ac_n "checking for CRYPTO_malloc in -lcrypto""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5285: checking for CRYPTO_malloc in -lcrypto" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo crypto'_'CRYPTO_malloc | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000-11-15 14:32:18 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lcrypto $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5293 "configure"
2000-11-15 14:32:18 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char CRYPTO_malloc();
int main() {
CRYPTO_malloc()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000-11-15 14:32:18 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ssl_ok=yes
else
echo "$ac_t""no" 1>&6
ssl_ok=no
fi
2001-06-11 15:38:22 +00:00
if test "$ssl_ok" = yes; then
base_libs="$LIBS"
LIBS="$LIBS -lcrypto"
echo $ac_n "checking for ssl2_clear in -lssl""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5329: checking for ssl2_clear in -lssl" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo ssl'_'ssl2_clear | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000-11-15 14:32:18 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lssl $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5337 "configure"
2000-11-15 14:32:18 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char ssl2_clear();
int main() {
ssl2_clear()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000-11-15 14:32:18 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ssl_ok=yes
else
echo "$ac_t""no" 1>&6
ssl_ok=no
fi
2001-06-11 15:38:22 +00:00
if test "$ssl_ok" = yes; then
2001-11-08 19:36:24 +00:00
echo "found openssl"
2001-06-11 15:38:22 +00:00
LIBS="$base_libs -lssl -lcrypto"
2001-12-04 14:59:09 +00:00
SSLLIBS="$SSLLIBS -lssl -lcrypto"
2001-11-08 19:36:24 +00:00
else
2001-12-04 14:59:09 +00:00
SSLLIBS="$SSLLIBS -lcrypto"
2001-11-08 19:36:24 +00:00
echo "Could not find openssl crypto library"
echo "Check to make sure you have a recent version of openssl installed"
2001-12-04 14:59:09 +00:00
echo "The SSL bundle will not be built"
echo "configure: warning: Could not find openssl libraries" 1>&2
echo "configure: warning: The SSL bundle will not be built" 1>&2
2001-06-11 15:38:22 +00:00
fi
2001-10-26 02:16:26 +00:00
echo $ac_n "checking for des_setkey in -lcipher""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5383: checking for des_setkey in -lcipher" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo cipher'_'des_setkey | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001-10-26 02:16:26 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lcipher $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5391 "configure"
2001-10-26 02:16:26 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char des_setkey();
int main() {
des_setkey()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-10-26 02:16:26 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cipher_ok=yes
else
echo "$ac_t""no" 1>&6
cipher_ok=no
fi
if test "$cipher_ok" = yes; then
2001-11-08 19:36:24 +00:00
echo "found cipher"
2001-10-26 02:16:26 +00:00
LIBS="$LIBS -lcipher"
2001-12-04 14:59:09 +00:00
SSLLIBS="$SSLLIBS -lcipher"
2001-10-26 02:16:26 +00:00
fi
2001-11-08 19:36:24 +00:00
else
echo "Could not find openssl library"
echo "Check to make sure you have a recent version of openssl installed"
2001-12-04 14:59:09 +00:00
echo "The SSL bundle will not be built"
echo "configure: warning: Could not find openssl libraries" 1>&2
echo "configure: warning: The SSL bundle will not be built" 1>&2
2000-11-15 14:32:18 +00:00
fi
fi
2001-12-04 14:59:09 +00:00
else
echo "The use of openssl was disabled"
echo "The SSL bundle will not be built"
echo "configure: warning: The use of openssl was disabled" 1>&2
echo "configure: warning: The SSL bundle will not be built" 1>&2
2000-11-15 14:32:18 +00:00
fi
2001-12-04 14:59:09 +00:00
HAVE_OPENSSL=$ssl_ok
2000-11-15 14:32:18 +00:00
2001-12-04 14:59:09 +00:00
CPPFLAGS="$cppflags_temp";
LIBS="$libs_temp";
2000-11-15 14:32:18 +00:00
2000-11-18 08:54:32 +00:00
#--------------------------------------------------------------------
# Check GMP for NSDecimal
#--------------------------------------------------------------------
# Check whether --with-gmp-include or --without-gmp-include was given.
if test "${with_gmp_include+set}" = set; then
withval="$with_gmp_include"
gmp_incdir="$withval"
else
gmp_incdir="no"
fi
# Check whether --with-gmp-library or --without-gmp-library was given.
if test "${with_gmp_library+set}" = set; then
withval="$with_gmp_library"
gmp_libdir="$withval"
else
gmp_libdir="no"
fi
2001-09-19 17:25:19 +00:00
cppflags_temp="$CPPFLAGS"
2000-11-18 08:54:32 +00:00
libs_temp=$LIBS
if test "$gmp_incdir" != "no"; then
CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
fi
if test "$gmp_libdir" != "no"; then
LIBS="$LIBS -L$gmp_libdir"
fi
HAVE_GMP=0
for ac_hdr in gmp.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5486: checking for $ac_hdr" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000-11-18 08:54:32 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5491 "configure"
2000-11-18 08:54:32 +00:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002-01-25 20:26:37 +00:00
{ (eval echo configure:5496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000-11-18 08:54:32 +00:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
2001-06-11 15:38:22 +00:00
if test $ac_cv_header_gmp_h = yes; then
2000-11-18 08:54:32 +00:00
echo $ac_n "checking for mpf_abs in -lgmp""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5524: checking for mpf_abs in -lgmp" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo gmp'_'mpf_abs | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000-11-18 08:54:32 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lgmp $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5532 "configure"
2000-11-18 08:54:32 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mpf_abs();
int main() {
mpf_abs()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-01-25 17:38:07 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gmp_ok=yes
else
echo "$ac_t""no" 1>&6
gmp_ok=no
fi
if test "$gmp_ok" = no; then
echo $ac_n "checking for __gmpf_abs in -lgmp""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5566: checking for __gmpf_abs in -lgmp" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo gmp'_'__gmpf_abs | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001-01-25 17:38:07 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lgmp $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5574 "configure"
2001-01-25 17:38:07 +00:00
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __gmpf_abs();
int main() {
__gmpf_abs()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000-11-18 08:54:32 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
gmp_ok=yes
else
echo "$ac_t""no" 1>&6
gmp_ok=no
fi
2001-01-25 17:38:07 +00:00
fi
2000-11-18 08:54:32 +00:00
if test "$gmp_ok" = yes; then
base_libs="$LIBS"
LIBS="$LIBS -lgmp"
HAVE_GMP=1
fi
fi
if test "$HAVE_GMP" = "0"; then
CPPFLAGS="$cppflags_temp";
LIBS="$libs_temp";
fi
2001-01-29 19:39:31 +00:00
#--------------------------------------------------------------------
# Check for iconv support (for Unicode conversion).
#--------------------------------------------------------------------
# Check in the glibc library
for ac_func in iconv
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5627: checking for $ac_func" >&5
2002-01-09 14:17:48 +00:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2001-01-29 19:39:31 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5632 "configure"
2001-01-29 19:39:31 +00:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2002-01-09 14:17:48 +00:00
$ac_func();
2001-01-29 19:39:31 +00:00
#endif
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-01-29 19:39:31 +00:00
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_func_iconv = no; then
# Check if we have a libiconv library
# Check whether --with-libiconv-library or --without-libiconv-library was given.
if test "${with_libiconv_library+set}" = set; then
withval="$with_libiconv_library"
libiconv_libdir="$withval"
else
libiconv_libdir="no"
fi
2001-09-19 17:25:19 +00:00
cppflags_temp="$CPPFLAGS"
2001-01-29 19:39:31 +00:00
if test "$libiconv_libdir" != "no"; then
2001-09-15 03:37:40 +00:00
CPPFLAGS="$CPPFLAGS -L$libiconv_libdir"
2001-01-29 19:39:31 +00:00
fi
2001-05-23 21:46:39 +00:00
# BSDs install this lib as libgiconv
echo $ac_n "checking for main in -lgiconv""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5697: checking for main in -lgiconv" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo giconv'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001-05-23 21:46:39 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lgiconv $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5705 "configure"
2001-05-23 21:46:39 +00:00
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-05-23 21:46:39 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo giconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lgiconv $LIBS"
else
echo "$ac_t""no" 1>&6
fi
2001-09-21 16:13:11 +00:00
if test x"$ac_cv_lib_giconv_main" = xyes; then
2001-09-15 03:37:40 +00:00
cat >> confdefs.h <<\EOF
2001-09-19 17:25:19 +00:00
#define HAVE_ICONV 1
2001-09-15 03:37:40 +00:00
EOF
cat >> confdefs.h <<\EOF
#define HAVE_GICONV_H 1
EOF
2001-05-23 21:46:39 +00:00
else
echo $ac_n "checking for main in -liconv""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5750: checking for main in -liconv" >&5
2002-01-09 14:17:48 +00:00
ac_lib_var=`echo iconv'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2001-01-29 19:39:31 +00:00
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-liconv $LIBS"
cat > conftest.$ac_ext <<EOF
2002-01-25 20:26:37 +00:00
#line 5758 "configure"
2001-01-29 19:39:31 +00:00
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
2002-01-25 20:26:37 +00:00
if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2001-01-29 19:39:31 +00:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-liconv $LIBS"
else
echo "$ac_t""no" 1>&6
fi
2001-09-21 16:13:11 +00:00
if test x"$ac_cv_lib_iconv_main" = xyes; then
2001-09-15 03:37:40 +00:00
cat >> confdefs.h <<\EOF
2001-09-19 17:25:19 +00:00
#define HAVE_ICONV 1
2001-09-15 03:37:40 +00:00
EOF
2001-05-23 21:46:39 +00:00
fi
2001-01-29 19:39:31 +00:00
fi
2001-09-25 15:04:07 +00:00
CPPFLAGS="$cppflags_temp"
2001-01-29 19:39:31 +00:00
fi
2000-11-18 08:54:32 +00:00
1999-07-22 14:17:27 +00:00
1998-02-09 19:06:40 +00:00
1999-01-28 19:37:16 +00:00
subdirs="Source/mframe"
1999-01-02 18:29:44 +00:00
2000-09-13 14:19:43 +00:00
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------
2001-06-09 00:35:15 +00:00
echo $ac_n "checking for the version of gnustep-base we are compiling""... $ac_c" 1>&6
2002-01-25 20:26:37 +00:00
echo "configure:5811: checking for the version of gnustep-base we are compiling" >&5
2000-09-13 14:19:43 +00:00
if test -f "Version"; then
2001-02-27 02:58:57 +00:00
. ./Version
2000-09-13 14:19:43 +00:00
fi
2001-06-09 00:35:15 +00:00
echo "$ac_t""$VERSION" 1>&6
2000-09-13 14:19:43 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Write the Makefiles
#--------------------------------------------------------------------
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
1999-07-12 04:21:05 +00:00
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1998-02-09 19:06:40 +00:00
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2002-01-09 14:17:48 +00:00
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1998-02-09 19:06:40 +00:00
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
2001-01-29 19:39:31 +00:00
trap 'rm -fr `echo "config.mak base.make Headers/gnustep/base/GSConfig.h
2000-09-13 14:19:43 +00:00
Headers/gnustep/base/preface.h Headers/gnustep/base/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1998-02-09 19:06:40 +00:00
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
1999-07-12 04:21:05 +00:00
s%@SHELL@%$SHELL%g
1998-02-09 19:06:40 +00:00
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
1999-07-12 04:21:05 +00:00
s%@FFLAGS@%$FFLAGS%g
1998-02-09 19:06:40 +00:00
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
2001-03-01 12:39:46 +00:00
s%@CC@%$CC%g
1998-02-09 19:06:40 +00:00
s%@CPP@%$CPP%g
2000-06-27 21:11:01 +00:00
s%@WHOAMI@%$WHOAMI%g
2001-03-13 20:34:50 +00:00
s%@EXEEXT@%$EXEEXT%g
1999-01-05 16:55:29 +00:00
s%@GS_WORDS_BIGENDIAN@%$GS_WORDS_BIGENDIAN%g
s%@GS_SINT8@%$GS_SINT8%g
s%@GS_UINT8@%$GS_UINT8%g
1999-01-26 11:32:02 +00:00
s%@ac_cv_sizeof_short@%$ac_cv_sizeof_short%g
s%@ac_cv_sizeof_int@%$ac_cv_sizeof_int%g
s%@ac_cv_sizeof_long@%$ac_cv_sizeof_long%g
s%@ac_cv_sizeof_long_long@%$ac_cv_sizeof_long_long%g
s%@ac_cv_sizeof_float@%$ac_cv_sizeof_float%g
s%@ac_cv_sizeof_double@%$ac_cv_sizeof_double%g
2000-08-07 22:00:31 +00:00
s%@ac_cv_sizeof_voidp@%$ac_cv_sizeof_voidp%g
1999-01-28 12:15:51 +00:00
s%@GS_ADDR@%$GS_ADDR%g
1999-01-05 16:55:29 +00:00
s%@GS_SINT16@%$GS_SINT16%g
s%@GS_UINT16@%$GS_UINT16%g
s%@GS_SINT32@%$GS_SINT32%g
s%@GS_UINT32@%$GS_UINT32%g
s%@GS_SINT64@%$GS_SINT64%g
s%@GS_UINT64@%$GS_UINT64%g
1999-01-27 12:49:49 +00:00
s%@GS_HAVE_I64@%$GS_HAVE_I64%g
s%@GS_SINT128@%$GS_SINT128%g
s%@GS_UINT128@%$GS_UINT128%g
s%@GS_HAVE_I128@%$GS_HAVE_I128%g
1999-01-05 16:55:29 +00:00
s%@GS_FLT32@%$GS_FLT32%g
s%@GS_FLT64@%$GS_FLT64%g
1999-01-26 16:24:40 +00:00
s%@_GSC_S_SHT@%$_GSC_S_SHT%g
s%@_GSC_S_INT@%$_GSC_S_INT%g
s%@_GSC_S_LNG@%$_GSC_S_LNG%g
s%@_GSC_S_LNG_LNG@%$_GSC_S_LNG_LNG%g
1998-02-09 19:06:40 +00:00
s%@DYNAMIC_LINKER@%$DYNAMIC_LINKER%g
2001-06-06 15:35:37 +00:00
s%@NX_CONST_STRING_CPPFLAGS@%$NX_CONST_STRING_CPPFLAGS%g
s%@NX_CONST_STRING_CLASS@%$NX_CONST_STRING_CLASS%g
2001-09-11 21:42:08 +00:00
s%@HAVE_PTHREAD_H@%$HAVE_PTHREAD_H%g
2001-10-24 16:34:00 +00:00
s%@HAVE_ZLIB@%$HAVE_ZLIB%g
2001-02-05 09:28:19 +00:00
s%@HAVE_PTS_STREAM_MODULES@%$HAVE_PTS_STREAM_MODULES%g
2000-06-29 03:51:06 +00:00
s%@GS_PASS_ARGUMENTS@%$GS_PASS_ARGUMENTS%g
1999-07-22 14:17:27 +00:00
s%@GS_FAKE_MAIN@%$GS_FAKE_MAIN%g
2000-12-08 19:06:00 +00:00
s%@WITH_FFI@%$WITH_FFI%g
2001-04-17 04:10:03 +00:00
s%@XML2_CONFIG@%$XML2_CONFIG%g
2001-01-05 10:12:17 +00:00
s%@XML_CONFIG@%$XML_CONFIG%g
s%@XML_CFLAGS@%$XML_CFLAGS%g
s%@XML_LIBS@%$XML_LIBS%g
2000-06-20 13:17:22 +00:00
s%@HAVE_LIBXML@%$HAVE_LIBXML%g
2001-12-04 14:59:09 +00:00
s%@HAVE_OPENSSL@%$HAVE_OPENSSL%g
s%@SSLFLAGS@%$SSLFLAGS%g
s%@SSLLIBS@%$SSLLIBS%g
2000-11-18 08:54:32 +00:00
s%@HAVE_GMP@%$HAVE_GMP%g
2001-01-29 19:39:31 +00:00
s%@SYSTEM_DEFS@%$SYSTEM_DEFS%g
1999-01-02 18:29:44 +00:00
s%@subdirs@%$subdirs%g
2000-09-13 14:19:43 +00:00
s%@VERSION@%$VERSION%g
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
s%@MINOR_VERSION@%$MINOR_VERSION%g
s%@SUBMINOR_VERSION@%$SUBMINOR_VERSION%g
s%@GCC_VERSION@%$GCC_VERSION%g
1998-02-09 19:06:40 +00:00
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
2001-01-29 19:39:31 +00:00
CONFIG_FILES=\${CONFIG_FILES-"config.mak base.make Headers/gnustep/base/GSConfig.h
2000-09-13 14:19:43 +00:00
Headers/gnustep/base/preface.h"}
1998-02-09 19:06:40 +00:00
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
1999-07-09 02:18:50 +00:00
CONFIG_HEADERS="Headers/gnustep/base/config.h"
1998-02-09 19:06:40 +00:00
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
2002-01-09 14:17:48 +00:00
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1998-02-09 19:06:40 +00:00
1999-01-02 18:29:44 +00:00
if test "$no_recursion" != yes; then
# Remove --cache-file and --srcdir arguments so they do not pile up.
ac_sub_configure_args=
ac_prev=
for ac_arg in $ac_configure_args; do
if test -n "$ac_prev"; then
ac_prev=
continue
fi
case "$ac_arg" in
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
;;
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
esac
done
1999-01-28 19:37:16 +00:00
for ac_config_dir in Source/mframe; do
1999-01-02 18:29:44 +00:00
# Do not complain, so a configure script can configure whichever
# parts of a large source tree are present.
if test ! -d $srcdir/$ac_config_dir; then
continue
fi
echo configuring in $ac_config_dir
case "$srcdir" in
.) ;;
*)
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
else
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
fi
;;
esac
ac_popdir=`pwd`
cd $ac_config_dir
# A "../" for each directory in /$ac_config_dir.
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
/*) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
esac
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_sub_srcdir/configure; then
2002-01-09 14:17:48 +00:00
ac_sub_configure=$ac_sub_srcdir/configure
1999-01-02 18:29:44 +00:00
elif test -f $ac_sub_srcdir/configure.in; then
ac_sub_configure=$ac_configure
else
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
ac_sub_configure=
fi
# The recursion is here.
if test -n "$ac_sub_configure"; then
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
/*) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
2002-01-09 14:17:48 +00:00
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1999-01-02 18:29:44 +00:00
# The eval makes quoting arguments work.
2002-01-09 14:17:48 +00:00
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1999-01-02 18:29:44 +00:00
then :
else
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
fi
fi
cd $ac_popdir
done
fi
1998-02-09 19:06:40 +00:00