2001-04-09 20:54:03 +01:00
|
|
|
#! /bin/sh
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
2003-07-21 20:13:30 +01:00
|
|
|
# Generated automatically using autoconf version 2.13
|
|
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# This configure script is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy, distribute and modify it.
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Defaults:
|
|
|
|
ac_help=
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_default_prefix=/usr/local
|
2003-07-21 20:13:30 +01:00
|
|
|
# Any additions from configure.in:
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-rational-trees support infinite rational trees "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-coroutining support co-routining, attributed variables and constraints"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-wam-profile support low level profiling of abstract machine "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-depth-limit support depth-bound computation "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-or-parallelism support or-parallelism as: env-copy,sba,a-cow "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-low-level-tracer support support for procedure-call tracing "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-tabling support tabling as: batched,local "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-threads support system threads "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-max-performance try using the best flags for specific architecture "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-debug-yap enable C-debugging for YAP "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-cygwin use cygwin library in WIN32 "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-dynamic-loading compile Yap as a DLL "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-use-malloc use malloc to allocate memory "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-condor allow Yap to be used from condor "
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-april compile Yap to support April ILP system"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-dlcompat use dlcompat library for dynamic loading on Mac OS X"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-gmp[=DIR] use GNU Multiple Precision in DIR"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-readline[=DIR] use GNU Readline Library in DIR"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-mpi[=DIR] use MPI library in DIR"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-mpe[=DIR] use MPE library in DIR"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-heap-space[=space] default heap size in Kbytes"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-stack-space[=space] default stack size in Kbytes"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-trail-space[=space] default trail size in Kbytes"
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# Initialize some variables set by options.
|
|
|
|
# The variables have the same names as the options, with
|
|
|
|
# dashes changed to underlines.
|
2003-07-21 20:13:30 +01:00
|
|
|
build=NONE
|
|
|
|
cache_file=./config.cache
|
2001-04-09 20:54:03 +01:00
|
|
|
exec_prefix=NONE
|
2003-07-21 20:13:30 +01:00
|
|
|
host=NONE
|
2001-04-09 20:54:03 +01:00
|
|
|
no_create=
|
2003-07-21 20:13:30 +01:00
|
|
|
nonopt=NONE
|
2001-04-09 20:54:03 +01:00
|
|
|
no_recursion=
|
|
|
|
prefix=NONE
|
|
|
|
program_prefix=NONE
|
|
|
|
program_suffix=NONE
|
|
|
|
program_transform_name=s,x,x,
|
|
|
|
silent=
|
|
|
|
site=
|
|
|
|
srcdir=
|
2003-07-21 20:13:30 +01:00
|
|
|
target=NONE
|
2001-04-09 20:54:03 +01:00
|
|
|
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'
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Initialize some other variables.
|
|
|
|
subdirs=
|
|
|
|
MFLAGS= MAKEFLAGS=
|
|
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
|
# Maximum number of lines to put in a shell here document.
|
|
|
|
ac_max_here_lines=12
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_prev=
|
|
|
|
for ac_option
|
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# If the previous option needs an argument, assign it.
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
eval "$ac_prev=\$ac_option"
|
|
|
|
ac_prev=
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
case "$ac_option" in
|
|
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
*) ac_optarg= ;;
|
|
|
|
esac
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
case "$ac_option" in
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
|
|
ac_prev=bindir ;;
|
|
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
bindir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_prev=build ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
build="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
cache_file="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
|
|
ac_prev=datadir ;;
|
|
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
|
|
| --da=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
datadir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-disable-* | --disable-*)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2003-07-21 20:13:30 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-enable-* | --enable-*)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
|
|
|
*=*) ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
2003-07-21 20:13:30 +01:00
|
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
exec_prefix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-gas | --gas | --ga | --g)
|
|
|
|
# Obsolete; use --with-gas.
|
|
|
|
with_gas=yes ;;
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
-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 ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-host | --host | --hos | --ho)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_prev=host ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
host="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
|
|
| --includ | --inclu | --incl | --inc)
|
|
|
|
ac_prev=includedir ;;
|
|
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
includedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
|
|
ac_prev=infodir ;;
|
|
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
infodir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
|
|
ac_prev=libdir ;;
|
|
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
libdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
|
|
| --libexe | --libex | --libe)
|
|
|
|
ac_prev=libexecdir ;;
|
|
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
|
|
| --libexe=* | --libex=* | --libe=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
libexecdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
localstatedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
|
|
ac_prev=mandir ;;
|
|
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
mandir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-nfp | --nfp | --nf)
|
|
|
|
# Obsolete; use --without-fp.
|
|
|
|
with_fp=no ;;
|
|
|
|
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
2003-07-21 20:13:30 +01:00
|
|
|
| --no-cr | --no-c)
|
2001-04-09 20:54:03 +01:00
|
|
|
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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
oldincludedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
|
|
ac_prev=prefix ;;
|
|
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
prefix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
program_prefix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
program_suffix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
program_transform_name="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
sbindir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
sharedstatedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-site | --site | --sit)
|
|
|
|
ac_prev=site ;;
|
|
|
|
-site=* | --site=* | --sit=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
site="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
|
|
ac_prev=srcdir ;;
|
|
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
srcdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
|
|
ac_prev=sysconfdir ;;
|
|
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
sysconfdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_prev=target ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
target="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
|
|
verbose=yes ;;
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
-version | --version | --versio | --versi | --vers)
|
|
|
|
echo "configure generated by autoconf version 2.13"
|
|
|
|
exit 0 ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-with-* | --with-*)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
2003-07-21 20:13:30 +01:00
|
|
|
case "$ac_option" in
|
|
|
|
*=*) ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
2003-07-21 20:13:30 +01:00
|
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-without-* | --without-*)
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2003-07-21 20:13:30 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
--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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
x_includes="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2003-07-21 20:13:30 +01:00
|
|
|
x_libraries="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2003-07-21 20:13:30 +01:00
|
|
|
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"
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -n "$ac_prev"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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.
|
|
|
|
ac_unique_file=console/yap.c
|
2001-04-09 20:54:03 +01: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.
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_prog=$0
|
|
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
2001-04-09 20:54:03 +01:00
|
|
|
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
|
2003-07-21 20:13:30 +01:00
|
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# 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
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "loading site script $ac_site_file"
|
2001-04-09 20:54:03 +01:00
|
|
|
. "$ac_site_file"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -r "$cache_file"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "loading cache $cache_file"
|
|
|
|
. $cache_file
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "creating cache $cache_file"
|
|
|
|
> $cache_file
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
ac_ext=c
|
2003-07-21 20:13:30 +01:00
|
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2003-07-21 20:13:30 +01: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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
ac_exeext=
|
|
|
|
ac_objext=o
|
|
|
|
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
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-05-20 20:11:59 +01:00
|
|
|
|
2002-10-24 04:32:04 +01:00
|
|
|
|
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
mycflags="$CFLAGS"
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
|
|
set dummy gcc; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:578: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-05-23 13:45:08 +01:00
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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="gcc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
CC="$ac_cv_prog_CC"
|
2002-09-02 18:33:00 +01:00
|
|
|
if test -n "$CC"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$CC" 1>&6
|
2002-09-02 18:33:00 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
|
|
|
|
2002-10-24 04:32:04 +01:00
|
|
|
if test -z "$CC"; then
|
|
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
2002-09-02 18:33:00 +01:00
|
|
|
set dummy cc; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:608: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-02 18:33:00 +01:00
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
2002-09-02 18:33:00 +01:00
|
|
|
ac_prog_rejected=no
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
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
|
|
|
|
ac_cv_prog_CC="cc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $ac_prog_rejected = yes; then
|
|
|
|
# We found a bogon in the path, so make sure we never use it.
|
|
|
|
set dummy $ac_cv_prog_CC
|
|
|
|
shift
|
2003-07-21 20:13:30 +01:00
|
|
|
if test $# -gt 0; then
|
2001-04-09 20:54:03 +01:00
|
|
|
# We chose a different compiler from the bogus one.
|
|
|
|
# However, it has the same basename, so the bogon will be chosen
|
|
|
|
# first if we set CC to just the basename; use the full file name.
|
|
|
|
shift
|
2003-07-21 20:13:30 +01:00
|
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
|
|
|
shift
|
|
|
|
ac_cv_prog_CC="$@"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
CC="$ac_cv_prog_CC"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$CC"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$CC" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -z "$CC"; then
|
|
|
|
case "`uname -s`" in
|
|
|
|
*win32* | *WIN32*)
|
|
|
|
# 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
|
|
|
|
echo "configure:659: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
CC="$ac_cv_prog_CC"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$CC"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$CC" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
;;
|
|
|
|
esac
|
2002-09-24 21:06:22 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01: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
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
|
|
|
#line 702 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
main(){return(0);}
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
ac_cv_prog_cc_works=yes
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
ac_cv_prog_cc_cross=no
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_prog_cc_cross=yes
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cc_works=no
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
|
|
|
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
|
|
|
|
|
|
|
|
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; }
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
|
|
echo "configure:738: checking whether we are using GNU C" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
ac_cv_prog_gcc=yes
|
2002-10-22 04:45:24 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
fi
|
|
|
|
fi
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
GCC=yes
|
|
|
|
else
|
|
|
|
GCC=
|
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
|
|
echo "configure:766: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
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
|
2001-06-29 20:30:25 +01:00
|
|
|
ac_cv_prog_cc_g=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_prog_cc_g=no
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
|
|
|
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
if test "$ac_test_CFLAGS" = set; then
|
2003-07-21 20:13:30 +01:00
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
2001-06-29 20:30:25 +01:00
|
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
|
|
if test "$GCC" = yes; then
|
2001-06-11 16:12:07 +01:00
|
|
|
CFLAGS="-g -O2"
|
|
|
|
else
|
|
|
|
CFLAGS="-g"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CFLAGS=
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-rational-trees or --disable-rational-trees was given.
|
|
|
|
if test "${enable_rational_trees+set}" = set; then
|
|
|
|
enableval="$enable_rational_trees"
|
|
|
|
rationaltrees="$enableval" ; rationaltrees=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-coroutining or --disable-coroutining was given.
|
|
|
|
if test "${enable_coroutining+set}" = set; then
|
|
|
|
enableval="$enable_coroutining"
|
|
|
|
rationaltrees="$enableval";coroutining="$enableval"
|
2001-06-11 16:12:07 +01:00
|
|
|
else
|
2001-07-05 17:14:15 +01:00
|
|
|
coroutining=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-wam-profile or --disable-wam-profile was given.
|
|
|
|
if test "${enable_wam_profile+set}" = set; then
|
|
|
|
enableval="$enable_wam_profile"
|
|
|
|
wamprofile="$enableval"
|
|
|
|
else
|
|
|
|
wamprofile=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-depth-limit or --disable-depth-limit was given.
|
|
|
|
if test "${enable_depth_limit+set}" = set; then
|
|
|
|
enableval="$enable_depth_limit"
|
|
|
|
depthlimit="$enableval"
|
|
|
|
else
|
|
|
|
depthlimit=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-or-parallelism or --disable-or-parallelism was given.
|
|
|
|
if test "${enable_or_parallelism+set}" = set; then
|
|
|
|
enableval="$enable_or_parallelism"
|
|
|
|
orparallelism="$enableval"
|
|
|
|
else
|
|
|
|
orparallelism=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-low-level-tracer or --disable-low-level-tracer was given.
|
|
|
|
if test "${enable_low_level_tracer+set}" = set; then
|
|
|
|
enableval="$enable_low_level_tracer"
|
|
|
|
lowleveltracer="$enableval"
|
|
|
|
else
|
|
|
|
lowleveltracer=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-tabling or --disable-tabling was given.
|
|
|
|
if test "${enable_tabling+set}" = set; then
|
|
|
|
enableval="$enable_tabling"
|
|
|
|
tabling="$enableval"
|
|
|
|
else
|
|
|
|
tabling=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-10-21 23:14:29 +01:00
|
|
|
# Check whether --enable-threads or --disable-threads was given.
|
|
|
|
if test "${enable_threads+set}" = set; then
|
|
|
|
enableval="$enable_threads"
|
|
|
|
threads="$enableval"
|
|
|
|
else
|
|
|
|
threads=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-max-performance or --disable-max-performance was given.
|
|
|
|
if test "${enable_max_performance+set}" = set; then
|
|
|
|
enableval="$enable_max_performance"
|
|
|
|
maxperformance="$enableval"
|
|
|
|
else
|
|
|
|
maxperformance=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-debug-yap or --disable-debug-yap was given.
|
|
|
|
if test "${enable_debug_yap+set}" = set; then
|
|
|
|
enableval="$enable_debug_yap"
|
|
|
|
debugyap="$enableval"
|
|
|
|
else
|
|
|
|
debugyap=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-03-07 05:13:21 +00:00
|
|
|
# Check whether --enable-cygwin or --disable-cygwin was given.
|
|
|
|
if test "${enable_cygwin+set}" = set; then
|
|
|
|
enableval="$enable_cygwin"
|
|
|
|
cygwin="$enableval"
|
|
|
|
else
|
|
|
|
cygwin=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-05-14 19:24:34 +01:00
|
|
|
# Check whether --enable-dynamic_loading or --disable-dynamic_loading was given.
|
|
|
|
if test "${enable_dynamic_loading+set}" = set; then
|
|
|
|
enableval="$enable_dynamic_loading"
|
|
|
|
dynamic_loading="$enableval"
|
|
|
|
else
|
|
|
|
dynamic_loading=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-05-19 20:04:33 +01:00
|
|
|
# Check whether --enable-use_malloc or --disable-use_malloc was given.
|
|
|
|
if test "${enable_use_malloc+set}" = set; then
|
|
|
|
enableval="$enable_use_malloc"
|
|
|
|
use_malloc="$enableval"
|
|
|
|
else
|
|
|
|
use_malloc=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
# Check whether --enable-condor or --disable-condor was given.
|
|
|
|
if test "${enable_condor+set}" = set; then
|
|
|
|
enableval="$enable_condor"
|
|
|
|
use_condor="$enableval"
|
|
|
|
else
|
|
|
|
use_condor=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-25 05:29:01 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2002-09-25 05:29:01 +01:00
|
|
|
# Check whether --enable-april or --disable-april was given.
|
|
|
|
if test "${enable_april+set}" = set; then
|
|
|
|
enableval="$enable_april"
|
|
|
|
use_april="$enableval"
|
|
|
|
else
|
|
|
|
use_april=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-09-25 05:29:01 +01:00
|
|
|
|
2002-10-20 19:43:11 +01:00
|
|
|
# Check whether --enable-dlcompat or --disable-dlcompat was given.
|
|
|
|
if test "${enable_dlcompat+set}" = set; then
|
|
|
|
enableval="$enable_dlcompat"
|
|
|
|
use_dlcompat="$enableval"
|
|
|
|
else
|
|
|
|
use_dlcompat=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --with-gmp or --without-gmp was given.
|
|
|
|
if test "${with_gmp+set}" = set; then
|
|
|
|
withval="$with_gmp"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2001-07-05 17:14:15 +01:00
|
|
|
yap_cv_gmp=yes
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2001-07-05 17:14:15 +01:00
|
|
|
yap_cv_gmp=no
|
|
|
|
else
|
|
|
|
yap_cv_gmp=$with_gmp
|
|
|
|
LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include"
|
|
|
|
fi
|
2002-01-15 17:55:50 +00:00
|
|
|
else
|
|
|
|
yap_cv_gmp=yes
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --with-readline or --without-readline was given.
|
|
|
|
if test "${with_readline+set}" = set; then
|
|
|
|
withval="$with_readline"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2001-07-05 17:14:15 +01:00
|
|
|
yap_cv_readline=yes
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2001-07-05 17:14:15 +01:00
|
|
|
yap_cv_readline=no
|
|
|
|
else
|
|
|
|
yap_cv_readline=$with_readline
|
|
|
|
LDFLAGS="$LDFLAGS -L${yap_cv_readline}/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_readline}/include"
|
|
|
|
fi
|
2002-01-15 17:55:50 +00:00
|
|
|
else
|
|
|
|
yap_cv_readline=yes
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-02-22 14:31:45 +00:00
|
|
|
# Check whether --with-mpi or --without-mpi was given.
|
|
|
|
if test "${with_mpi+set}" = set; then
|
|
|
|
withval="$with_mpi"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2002-02-22 14:31:45 +00:00
|
|
|
yap_cv_mpi=yes
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2002-02-22 14:31:45 +00:00
|
|
|
yap_cv_mpi=no
|
2002-02-12 21:42:53 +00:00
|
|
|
else
|
2002-02-22 14:31:45 +00:00
|
|
|
yap_cv_mpi=$with_mpi
|
|
|
|
LDFLAGS="$LDFLAGS -L${yap_cv_mpi}/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_mpi}/include"
|
2002-02-12 21:42:53 +00:00
|
|
|
fi
|
|
|
|
else
|
2002-03-12 04:09:14 +00:00
|
|
|
yap_cv_mpi=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-02-22 14:31:45 +00:00
|
|
|
# Check whether --with-mpe or --without-mpe was given.
|
|
|
|
if test "${with_mpe+set}" = set; then
|
|
|
|
withval="$with_mpe"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2002-02-22 14:31:45 +00:00
|
|
|
yap_cv_mpe=yes
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2002-02-22 14:31:45 +00:00
|
|
|
yap_cv_mpe=no
|
|
|
|
else
|
|
|
|
yap_cv_mpe=$with_mpe
|
|
|
|
LDFLAGS="$LDFLAGS -L${yap_cv_mpe}/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_mpe}/include"
|
|
|
|
fi
|
|
|
|
else
|
2002-03-12 04:09:14 +00:00
|
|
|
yap_cv_mpe=no
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-01-15 17:55:50 +00:00
|
|
|
# Check whether --with-heap-space or --without-heap-space was given.
|
|
|
|
if test "${with_heap_space+set}" = set; then
|
|
|
|
withval="$with_heap_space"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2002-01-15 17:55:50 +00:00
|
|
|
yap_cv_heap_space=0
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2002-01-15 17:55:50 +00:00
|
|
|
yap_cv_heap_space=0
|
|
|
|
else
|
|
|
|
yap_cv_heap_space=$withval
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
yap_cv_heap_space=0
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-01-15 17:55:50 +00:00
|
|
|
# Check whether --with-stack-space or --without-stack-space was given.
|
|
|
|
if test "${with_stack_space+set}" = set; then
|
|
|
|
withval="$with_stack_space"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2002-01-15 17:55:50 +00:00
|
|
|
yap_cv_stack_space=0
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2002-01-15 17:55:50 +00:00
|
|
|
yap_cv_stack_space=0
|
|
|
|
else
|
|
|
|
yap_cv_stack_space=$withval
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
yap_cv_stack_space=0
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-01-15 17:55:50 +00:00
|
|
|
# Check whether --with-trail-space or --without-trail-space was given.
|
|
|
|
if test "${with_trail_space+set}" = set; then
|
|
|
|
withval="$with_trail_space"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$withval" = yes; then
|
2002-01-15 17:55:50 +00:00
|
|
|
yap_cv_trail_space=0
|
2002-08-19 00:18:18 +01:00
|
|
|
elif test "$withval" = no; then
|
2002-01-15 17:55:50 +00:00
|
|
|
yap_cv_trail_space=0
|
|
|
|
else
|
|
|
|
yap_cv_trail_space=$withval
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
yap_cv_trail_space=0
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
|
2002-10-21 23:14:29 +01:00
|
|
|
|
|
|
|
if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes
|
2002-01-15 17:55:50 +00:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-01-23 02:44:55 +00:00
|
|
|
#define MinHeapSpace (400*SIZEOF_INT_P)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#define MinStackSpace (300*SIZEOF_INT_P)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#define MinTrailSpace ( 48*SIZEOF_INT_P)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#define MinHeapSpace (200*SIZEOF_INT_P)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#define MinStackSpace (200*SIZEOF_INT_P)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#define MinTrailSpace ( 32*SIZEOF_INT_P)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
eval "cat >> confdefs.h <<\EOF
|
2002-02-12 21:42:53 +00:00
|
|
|
#define DefHeapSpace ($yap_cv_heap_space)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
"
|
2003-07-21 20:13:30 +01:00
|
|
|
eval "cat >> confdefs.h <<\EOF
|
2002-02-12 21:42:53 +00:00
|
|
|
#define DefStackSpace ($yap_cv_stack_space)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
"
|
2003-07-21 20:13:30 +01:00
|
|
|
eval "cat >> confdefs.h <<\EOF
|
2002-02-12 21:42:53 +00:00
|
|
|
#define DefTrailSpace ($yap_cv_trail_space)
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
"
|
|
|
|
|
2001-06-11 21:20:36 +01:00
|
|
|
ac_aux_dir=
|
|
|
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
|
|
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
|
2003-07-21 20:13:30 +01:00
|
|
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01: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.
|
2001-07-05 17:14:15 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01: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.
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
|
|
# will get canonicalized.
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
# 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:1132: 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:1153: 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:1171: 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
|
|
|
|
|
|
|
|
test "$host_alias" != "$target_alias" &&
|
2001-07-05 17:14:15 +01:00
|
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
|
|
NONENONEs,x,x, &&
|
|
|
|
program_prefix=${target_alias}-
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
2002-02-11 20:22:15 +00:00
|
|
|
#define HOST_ALIAS "${host}"
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$use_condor" = yes
|
2002-08-19 00:18:18 +01:00
|
|
|
then
|
|
|
|
use_malloc="yes"
|
|
|
|
CC="condor_compile $CC"
|
2002-10-10 06:58:49 +01:00
|
|
|
yap_cv_readline="no"
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
|
|
|
if test -z "${mycflags}"
|
|
|
|
then
|
|
|
|
if test "$debugyap" = "yes"
|
|
|
|
then
|
|
|
|
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|
|
|
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|
|
|
else
|
|
|
|
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|
|
|
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
2001-08-11 00:07:00 +01:00
|
|
|
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
2001-07-05 17:14:15 +01:00
|
|
|
case "$target_cpu" in
|
|
|
|
i*86*)
|
|
|
|
CFLAGS="-DBP_FREE $CFLAGS"
|
|
|
|
;;
|
|
|
|
sparc*)
|
|
|
|
case "$target_os" in
|
2001-11-18 21:00:57 +00:00
|
|
|
*solaris2-9*)
|
2001-07-05 17:14:15 +01:00
|
|
|
CFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$tcpu"; then
|
|
|
|
target_cpu=$tcpu
|
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
if test "$maxperformance" = "yes"
|
|
|
|
then
|
|
|
|
case "$target_cpu" in
|
2003-07-21 20:13:30 +01:00
|
|
|
athlon)
|
|
|
|
CFLAGS="-march=athlon $CFLAGS"
|
|
|
|
;;
|
2001-07-05 17:14:15 +01:00
|
|
|
i686*)
|
2003-07-21 20:13:30 +01:00
|
|
|
CFLAGS="-march=i686 $CFLAGS"
|
2001-07-05 17:14:15 +01:00
|
|
|
;;
|
|
|
|
i586*)
|
2003-07-21 20:13:30 +01:00
|
|
|
CFLAGS="-march=i586 $CFLAGS"
|
2001-07-05 17:14:15 +01:00
|
|
|
;;
|
|
|
|
i486*)
|
|
|
|
CFLAGS="-march=i486 $CFLAGS"
|
|
|
|
;;
|
|
|
|
i386*)
|
|
|
|
CFLAGS="-march=i386 $CFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$CC" = "sslittle-na-sstrix-gcc"
|
|
|
|
then
|
|
|
|
RANLIB="sslittle-na-sstrix-ranlib"
|
|
|
|
AR="sslittle-na-sstrix-ar"
|
|
|
|
CROSS_SIMULATOR="sim-fast"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test -z "${mycflags}"
|
|
|
|
then
|
|
|
|
case "$target_cpu" in
|
|
|
|
i?86*)
|
|
|
|
if test "$CC" = "lcc"
|
2002-12-10 19:09:50 +00:00
|
|
|
then
|
|
|
|
CFLAGS="-A -A"
|
|
|
|
elif test "$CC" = "cl"
|
|
|
|
then
|
|
|
|
CFLAGS="/nologo"
|
|
|
|
CPP="/nologo /E"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
hppa*)
|
|
|
|
if test "$CC" = "cc" -o $CC = c89
|
|
|
|
then
|
|
|
|
if test "$debugyap" = "yes"
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
CFLAGS="-Ae -g -O"
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
CFLAGS="-Ae +O3 +Onolimit"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
C_INTERF_FLAGS="$CFLAGS"
|
|
|
|
C_PARSER_FLAGS="$CFLAGS"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
|
|
echo "configure:1293: checking whether ln -s works" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
rm -f conftestdata
|
|
|
|
if ln -s X conftestdata 2>/dev/null
|
|
|
|
then
|
|
|
|
rm -f conftestdata
|
|
|
|
ac_cv_prog_LN_S="ln -s"
|
|
|
|
else
|
|
|
|
ac_cv_prog_LN_S=ln
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
LN_S="$ac_cv_prog_LN_S"
|
|
|
|
if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
2002-10-23 18:10:33 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# Find a good install program. We prefer a C program (faster),
|
|
|
|
# so one script is as good as another. But avoid the broken or
|
|
|
|
# incompatible versions:
|
|
|
|
# SysV /etc/install, /usr/sbin/install
|
|
|
|
# SunOS /usr/etc/install
|
|
|
|
# IRIX /sbin/install
|
|
|
|
# AIX /bin/install
|
|
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
|
|
echo "configure:1325: checking for a BSD compatible install" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -z "$INSTALL"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
|
|
|
for ac_dir in $PATH; do
|
|
|
|
# Account for people who put trailing slashes in PATH elements.
|
|
|
|
case "$ac_dir/" in
|
|
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
|
|
*)
|
|
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
|
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
|
|
|
# by default.
|
|
|
|
for ac_prog in ginstall scoinst install; do
|
|
|
|
if test -f $ac_dir/$ac_prog; then
|
|
|
|
if test $ac_prog = install &&
|
|
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
|
|
# AIX install. It has an incompatible calling convention.
|
|
|
|
:
|
|
|
|
else
|
|
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
|
|
break 2
|
|
|
|
fi
|
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
done
|
2003-07-21 20:13:30 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
IFS="$ac_save_IFS"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
if test "${ac_cv_path_install+set}" = set; then
|
2003-07-21 20:13:30 +01:00
|
|
|
INSTALL="$ac_cv_path_install"
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
# As a last resort, use the slow shell script. We don't cache a
|
|
|
|
# path for INSTALL within a source directory, because that will
|
|
|
|
# break other packages using the cache if that directory is
|
|
|
|
# removed, or if the path is relative.
|
2003-07-21 20:13:30 +01:00
|
|
|
INSTALL="$ac_install_sh"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$INSTALL" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
|
|
# It thinks the first close brace ends the variable substitution.
|
|
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
|
set dummy ranlib; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1380: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$RANLIB"; then
|
|
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_RANLIB="ranlib"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$RANLIB"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$RANLIB" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test $host != $build; then
|
|
|
|
ac_tool_prefix=${host_alias}-
|
2002-09-02 18:33:00 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_tool_prefix=
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Extract the first word of "${ac_tool_prefix}indent", so it can be a program name with args.
|
2002-09-02 18:33:00 +01:00
|
|
|
set dummy ${ac_tool_prefix}indent; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1416: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
|
|
|
if test -n "$INDENT"; then
|
|
|
|
ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_INDENT="${ac_tool_prefix}indent"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
INDENT="$ac_cv_prog_INDENT"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test -n "$INDENT"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$INDENT" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2002-09-02 18:33:00 +01:00
|
|
|
if test -z "$ac_cv_prog_INDENT"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -n "$ac_tool_prefix"; then
|
2002-09-02 18:33:00 +01:00
|
|
|
# Extract the first word of "indent", so it can be a program name with args.
|
|
|
|
set dummy indent; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1448: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -n "$INDENT"; then
|
|
|
|
ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_INDENT="indent"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_INDENT" && ac_cv_prog_INDENT=":"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
INDENT="$ac_cv_prog_INDENT"
|
|
|
|
if test -n "$INDENT"; then
|
|
|
|
echo "$ac_t""$INDENT" 1>&6
|
2002-08-07 22:55:27 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
2002-09-02 18:33:00 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
INDENT=":"
|
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
2001-07-05 17:14:15 +01:00
|
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1483: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -n "$AR"; then
|
|
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_AR="${ac_tool_prefix}ar"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
AR="$ac_cv_prog_AR"
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -n "$AR"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$AR" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -z "$ac_cv_prog_AR"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -n "$ac_tool_prefix"; then
|
2001-07-05 17:14:15 +01:00
|
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
|
|
|
set dummy ar; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1515: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -n "$AR"; then
|
|
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_AR="ar"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
AR="$ac_cv_prog_AR"
|
|
|
|
if test -n "$AR"; then
|
|
|
|
echo "$ac_t""$AR" 1>&6
|
2002-02-12 21:42:53 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
|
2002-02-12 21:42:53 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
AR=":"
|
|
|
|
fi
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Extract the first word of "${ac_tool_prefix}mpicc", so it can be a program name with args.
|
2002-02-22 14:31:45 +00:00
|
|
|
set dummy ${ac_tool_prefix}mpicc; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1550: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_MPI_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
|
|
|
if test -n "$MPI_CC"; then
|
|
|
|
ac_cv_prog_MPI_CC="$MPI_CC" # Let the user override the test.
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_MPI_CC="${ac_tool_prefix}mpicc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
MPI_CC="$ac_cv_prog_MPI_CC"
|
2002-02-22 14:31:45 +00:00
|
|
|
if test -n "$MPI_CC"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$MPI_CC" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2002-02-22 14:31:45 +00:00
|
|
|
if test -z "$ac_cv_prog_MPI_CC"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -n "$ac_tool_prefix"; then
|
2002-02-22 14:31:45 +00:00
|
|
|
# Extract the first word of "mpicc", so it can be a program name with args.
|
|
|
|
set dummy mpicc; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1582: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_MPI_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -n "$MPI_CC"; then
|
|
|
|
ac_cv_prog_MPI_CC="$MPI_CC" # Let the user override the test.
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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_MPI_CC="mpicc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_MPI_CC" && ac_cv_prog_MPI_CC=":"
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
MPI_CC="$ac_cv_prog_MPI_CC"
|
|
|
|
if test -n "$MPI_CC"; then
|
|
|
|
echo "$ac_t""$MPI_CC" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-02-12 21:42:53 +00:00
|
|
|
fi
|
2002-02-22 14:31:45 +00:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
MPI_CC=":"
|
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Extract the first word of "install-info", so it can be a program name with args.
|
|
|
|
set dummy install-info; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1617: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
case "$INSTALL_INFO" in
|
|
|
|
/*)
|
2001-07-05 17:14:15 +01:00
|
|
|
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
|
|
|
|
;;
|
2003-07-21 20:13:30 +01:00
|
|
|
?:/*)
|
|
|
|
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
|
|
|
|
;;
|
2001-07-05 17:14:15 +01:00
|
|
|
*)
|
2003-07-21 20:13:30 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH:/sbin:/usr/sbin:/usr/etc:/usr/local/sbin"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-07-05 17:14:15 +01:00
|
|
|
test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="true"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -n "$INSTALL_INFO"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$INSTALL_INFO" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2002-02-22 14:31:45 +00:00
|
|
|
# Extract the first word of "sh", so it can be a program name with args.
|
|
|
|
set dummy sh; ac_word=$2
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
echo "configure:1653: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
case "$SHELL" in
|
|
|
|
/*)
|
2002-02-22 14:31:45 +00:00
|
|
|
ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
|
|
|
|
;;
|
2003-07-21 20:13:30 +01:00
|
|
|
?:/*)
|
|
|
|
ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
|
|
|
|
;;
|
2002-02-22 14:31:45 +00:00
|
|
|
*)
|
2003-07-21 20:13:30 +01:00
|
|
|
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_SHELL="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2002-02-22 14:31:45 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
SHELL="$ac_cv_path_SHELL"
|
2002-02-22 14:31:45 +00:00
|
|
|
if test -n "$SHELL"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$SHELL" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
2002-02-12 21:42:53 +00:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-11-12 04:36:59 +00:00
|
|
|
|
2002-03-17 06:11:29 +00:00
|
|
|
if test "$target_os" = "cygwin"
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2002-11-20 05:29:43 +00:00
|
|
|
INSTALL_COMMAND=install_win32
|
2002-03-17 06:11:29 +00:00
|
|
|
if test "$cygwin" = "no"
|
|
|
|
then
|
|
|
|
CC="gcc -mno-cygwin"
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for main in -lwsock32""... $ac_c" 1>&6
|
|
|
|
echo "configure:1697: checking for main in -lwsock32" >&5
|
|
|
|
ac_lib_var=`echo wsock32'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lwsock32 $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1705 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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 wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
LIBS="-lwsock32 $LIBS"
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2002-11-13 15:29:44 +00:00
|
|
|
yap_cv_readline=no
|
2002-10-23 18:10:33 +01:00
|
|
|
if test "$prefix" = "NONE"
|
|
|
|
then
|
|
|
|
prefix="c:/Program\\ Files/Yap"
|
|
|
|
fi
|
2002-03-17 06:11:29 +00:00
|
|
|
else
|
2002-11-20 05:29:43 +00:00
|
|
|
LIBS="-lcygwin"
|
2002-11-20 14:36:19 +00:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
elif test "$target_os" = "mingw32"
|
2002-09-17 00:01:59 +01:00
|
|
|
then
|
2002-11-13 15:29:44 +00:00
|
|
|
yap_cv_readline=no
|
2002-09-17 00:01:59 +01:00
|
|
|
INSTALL_COMMAND=install_win32
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for main in -lwsock32""... $ac_c" 1>&6
|
|
|
|
echo "configure:1752: checking for main in -lwsock32" >&5
|
|
|
|
ac_lib_var=`echo wsock32'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-17 00:01:59 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-09-17 00:01:59 +01:00
|
|
|
LIBS="-lwsock32 $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1760 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-09-17 00:01:59 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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 wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2002-09-17 00:01:59 +01:00
|
|
|
|
|
|
|
LIBS="-lwsock32 $LIBS"
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2002-09-17 00:01:59 +01:00
|
|
|
fi
|
|
|
|
|
2002-10-23 18:10:33 +01:00
|
|
|
if test "$prefix" = "NONE"
|
|
|
|
then
|
|
|
|
prefix="c:/Program\\ Files/Yap"
|
|
|
|
fi
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-04-09 20:54:03 +01:00
|
|
|
INSTALL_COMMAND="install_unix"
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
|
|
|
echo "configure:1801: checking for sin in -lm" >&5
|
|
|
|
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lm $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1809 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char sin();
|
2002-10-23 18:10:33 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
sin()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-25 05:29:01 +01:00
|
|
|
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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"
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
|
|
|
|
echo "configure:1848: checking for socket in -lsocket" >&5
|
|
|
|
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lsocket $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1856 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char socket();
|
2002-10-23 18:10:33 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
socket()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-25 05:29:01 +01:00
|
|
|
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lsocket $LIBS"
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for getsockname in -lxnet""... $ac_c" 1>&6
|
|
|
|
echo "configure:1895: checking for getsockname in -lxnet" >&5
|
|
|
|
ac_lib_var=`echo xnet'_'getsockname | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-06-13 19:24:04 +01:00
|
|
|
LIBS="-lxnet $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1903 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-06-13 19:24:04 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char getsockname();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
getsockname()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2001-06-22 18:53:36 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
LIBS="-lxnet $LIBS"
|
2002-08-09 14:08:55 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
|
|
|
echo "configure:1942: checking for main in -lnsl" >&5
|
|
|
|
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-08-19 00:18:18 +01:00
|
|
|
LIBS="-lnsl $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1950 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-08-09 14:08:55 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
have_nsl=yes
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_nsl=no
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
if test "$yap_cv_readline" != "no"
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
|
|
|
echo "configure:1984: checking for tgetent in -ltermcap" >&5
|
|
|
|
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-ltermcap $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 1992 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char tgetent();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
tgetent()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2002-10-23 18:10:33 +01:00
|
|
|
|
|
|
|
LIBS="-ltermcap $LIBS"
|
2002-09-25 05:29:01 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
|
|
|
|
echo "configure:2031: checking for main in -lncurses" >&5
|
|
|
|
ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lncurses $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2039 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
2001-07-11 08:10:17 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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 ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
LIBS="-lncurses $LIBS"
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
|
|
echo "configure:2074: checking for readline in -lreadline" >&5
|
|
|
|
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lreadline $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2082 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char readline();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
readline()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
LIBS="-lreadline $LIBS"
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
if test "$yap_cv_gmp" != "no"
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
|
|
|
|
echo "configure:2124: checking for main in -lgmp" >&5
|
|
|
|
ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lgmp $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2132 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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 gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
2002-02-22 14:31:45 +00:00
|
|
|
|
|
|
|
LIBS="-lgmp $LIBS"
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2002-02-12 21:42:53 +00:00
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
2002-02-12 21:42:53 +00:00
|
|
|
|
2002-03-07 11:00:57 +00:00
|
|
|
MPI_OBJS=
|
2002-02-22 14:31:45 +00:00
|
|
|
if test "$yap_cv_mpi" != "no"
|
|
|
|
then
|
|
|
|
OLD_CC=${CC}
|
|
|
|
CC=${MPI_CC}
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for MPI_Init in -lmpi""... $ac_c" 1>&6
|
|
|
|
echo "configure:2174: checking for MPI_Init in -lmpi" >&5
|
|
|
|
ac_lib_var=`echo mpi'_'MPI_Init | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-02-22 14:31:45 +00:00
|
|
|
LIBS="-lmpi $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2182 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-02-22 14:31:45 +00:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char MPI_Init();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
MPI_Init()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
#define HAVE_LIBMPI 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-10-21 23:14:29 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-10-21 23:14:29 +01:00
|
|
|
#define HAVE_LIBMPI 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-10-21 23:14:29 +01:00
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2002-02-22 14:31:45 +00:00
|
|
|
|
|
|
|
if test "$ac_cv_lib_mpi_MPI_Init" = yes
|
|
|
|
then
|
2002-02-26 18:58:35 +00:00
|
|
|
#YAPMPILIB=YapMPI.a
|
|
|
|
MPI_OBJS=mpi.o
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for MPI_Init in -lmpich""... $ac_c" 1>&6
|
|
|
|
echo "configure:2226: checking for MPI_Init in -lmpich" >&5
|
|
|
|
ac_lib_var=`echo mpich'_'MPI_Init | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-02-12 21:42:53 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-02-12 21:42:53 +00:00
|
|
|
LIBS="-lmpich $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2234 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-02-12 21:42:53 +00:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char MPI_Init();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
MPI_Init()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-02-22 14:31:45 +00:00
|
|
|
#define HAVE_LIBMPICH 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-02-22 14:31:45 +00:00
|
|
|
|
2002-02-26 15:33:16 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-02-26 15:33:16 +00:00
|
|
|
#define HAVE_LIBMPICH 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-02-22 14:31:45 +00:00
|
|
|
|
2002-01-16 20:18:28 +00:00
|
|
|
fi
|
|
|
|
|
2002-03-07 11:00:57 +00:00
|
|
|
if test "$ac_cv_lib_mpich_MPI_Init" = yes
|
2002-02-22 14:31:45 +00:00
|
|
|
then
|
2002-02-26 18:58:35 +00:00
|
|
|
#YAPMPILIB=YapMPI.a
|
|
|
|
MPI_OBJS=mpi.o
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2002-02-26 18:58:35 +00:00
|
|
|
#YAPMPILIB=
|
2002-03-07 11:00:57 +00:00
|
|
|
MPI_CC=${CC}
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC=${OLD_CC}
|
2002-03-12 04:09:14 +00:00
|
|
|
else
|
|
|
|
MPI_CC=${CC}
|
2002-01-16 20:18:28 +00:00
|
|
|
fi
|
2002-02-12 21:42:53 +00:00
|
|
|
|
2002-03-07 11:00:57 +00:00
|
|
|
MPI_LIBS=
|
2002-06-13 19:24:04 +01:00
|
|
|
if test "$yap_cv_mpi" != "no" -a "$yap_cv_mpe" != "no"
|
2002-02-22 14:31:45 +00:00
|
|
|
then
|
|
|
|
OLD_CC=${CC}
|
|
|
|
CC=${MPI_CC}
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for MPE_Init_log in -lmpe""... $ac_c" 1>&6
|
|
|
|
echo "configure:2292: checking for MPE_Init_log in -lmpe" >&5
|
|
|
|
ac_lib_var=`echo mpe'_'MPE_Init_log | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-02-22 14:31:45 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-02-22 14:31:45 +00:00
|
|
|
LIBS="-lmpe $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2300 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-02-22 14:31:45 +00:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char MPE_Init_log();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
MPE_Init_log()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-09-02 18:33:00 +01:00
|
|
|
#define HAVE_LIBMPE 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-08-19 00:18:18 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-09-02 18:33:00 +01:00
|
|
|
#define HAVE_LIBMPE 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2002-02-22 14:31:45 +00:00
|
|
|
fi
|
|
|
|
|
2002-02-26 18:58:35 +00:00
|
|
|
if test "$ac_cv_lib_mpe_MPE_Init_log" = yes
|
|
|
|
then
|
|
|
|
MPI_LIBS="-lmpe"
|
|
|
|
MPI_OBJS="$MPI_OBJS mpe.o"
|
|
|
|
fi
|
2002-02-22 14:31:45 +00:00
|
|
|
CC=${OLD_CC}
|
2002-01-16 20:18:28 +00:00
|
|
|
fi
|
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
|
|
echo "configure:2351: checking how to run the C preprocessor" >&5
|
2002-02-12 21:42:53 +00:00
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
CPP=
|
2002-01-16 20:18:28 +00:00
|
|
|
fi
|
2002-02-12 21:42:53 +00:00
|
|
|
if test -z "$CPP"; then
|
2003-07-21 20:13:30 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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"
|
2002-10-24 04:32:04 +01:00
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
2003-07-21 20:13:30 +01:00
|
|
|
# not just through cpp.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2366 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
2002-09-24 21:06:22 +01:00
|
|
|
:
|
2002-09-02 18:33:00 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
|
|
|
#line 2383 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
2002-08-19 00:18:18 +01:00
|
|
|
:
|
2002-01-16 20:18:28 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
|
|
|
#line 2400 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
2002-10-24 04:32:04 +01:00
|
|
|
:
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP=/lib/cpp
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2002-10-23 18:10:33 +01:00
|
|
|
rm -f conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2002-09-24 21:06:22 +01:00
|
|
|
rm -f conftest*
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_prog_CPP="$CPP"
|
2002-09-24 21:06:22 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
CPP="$ac_cv_prog_CPP"
|
2002-01-16 20:18:28 +00:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_prog_CPP="$CPP"
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$CPP" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$cross_compiling" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS=
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
|
|
|
|
echo "configure:2436: checking for restartable system calls" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 16:38:17 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2444 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-08-09 14:08:55 +01:00
|
|
|
/* Exit 0 (true) if wait returns something other than -1,
|
|
|
|
i.e. the pid of the child, which means that wait was restarted
|
|
|
|
after getting the signal. */
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <signal.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
ucatch (isig) { }
|
|
|
|
main () {
|
2002-08-09 14:08:55 +01:00
|
|
|
int i = fork (), status;
|
2003-07-21 20:13:30 +01:00
|
|
|
if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
|
2002-08-09 14:08:55 +01:00
|
|
|
signal (SIGINT, ucatch);
|
2003-07-21 20:13:30 +01:00
|
|
|
status = wait(&i);
|
|
|
|
if (status == -1) wait(&i);
|
2002-08-09 14:08:55 +01:00
|
|
|
exit (status == -1);
|
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
2002-08-09 14:08:55 +01:00
|
|
|
ac_cv_sys_restartable_syscalls=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sys_restartable_syscalls=no
|
2002-08-09 14:08:55 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-08-09 14:08:55 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2002-08-09 14:08:55 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
|
|
|
|
if test $ac_cv_sys_restartable_syscalls = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-08-09 14:08:55 +01:00
|
|
|
#define HAVE_RESTARTABLE_SYSCALLS 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-06-19 22:46:56 +01:00
|
|
|
|
2002-08-09 14:08:55 +01:00
|
|
|
fi
|
2002-06-19 22:46:56 +01:00
|
|
|
|
2002-08-09 14:08:55 +01:00
|
|
|
fi
|
2002-06-19 22:46:56 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-11-13 15:29:44 +00:00
|
|
|
EXEC_SUFFIX=""
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-06-19 22:46:56 +01:00
|
|
|
INSTALL_DLLS="#"
|
|
|
|
SHLIB_LD="@#"
|
|
|
|
DO_SECOND_LD="#"
|
|
|
|
M4="m4"
|
2002-11-13 15:29:44 +00:00
|
|
|
MERGE_DLL_OBJS="#"
|
2002-06-19 22:46:56 +01:00
|
|
|
|
|
|
|
if test "$dynamic_loading" = "yes"
|
2003-07-21 20:13:30 +01:00
|
|
|
then
|
2002-06-19 22:46:56 +01:00
|
|
|
YAP_EXTRAS="$SHLIB_CFLAGS $YAP_EXTRAS"
|
|
|
|
YAPLIB=libYap"$SHLIB_SUFFIX"
|
|
|
|
else
|
|
|
|
YAPLIB="libYap.a"
|
|
|
|
fi
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
case "$target_os" in
|
2002-06-19 22:46:56 +01:00
|
|
|
*linux*)
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$use_condor" = "no"
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
|
|
echo "configure:2518: checking for dlopen in -ldl" >&5
|
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-08-19 00:18:18 +01:00
|
|
|
LIBS="-ldl $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2526 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-08-19 00:18:18 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char dlopen();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
dlopen()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
have_dl=yes
|
|
|
|
|
2002-10-23 18:10:33 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_dl=no
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$have_dl" = "yes"
|
|
|
|
then
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
SHLIB_LD="ld -shared"
|
|
|
|
DO_SECOND_LD=""
|
|
|
|
LIBS="$LIBS -ldl"
|
|
|
|
case "$host_cpu" in
|
|
|
|
alpha*)
|
|
|
|
LDFLAGS="-export-dynamic $LDFLAGS"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
if test "$CC" != "lcc"
|
|
|
|
then
|
|
|
|
LDFLAGS="-rdynamic $LDFLAGS"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if test "$CC" = gcc
|
|
|
|
then
|
|
|
|
SHLIB_CFLAGS="-shared -fPIC"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$have_nsl" = yes
|
|
|
|
then
|
|
|
|
LIBS="$LIBS -lnsl"
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
*sunos4*)
|
|
|
|
M4="/usr/5bin/m4"
|
|
|
|
LDFLAGS="$LDFLAGS -N"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$have_nsl" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
|
|
|
LIBS="$LIBS -lnsl"
|
|
|
|
fi
|
|
|
|
SHLIB_SUFFIX=".o"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
;;
|
|
|
|
*hpux*)
|
|
|
|
#do not use the first memory quadrant
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define FORCE_SECOND_QUADRANT 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
M4="/usr/bin/m4"
|
2002-08-19 00:18:18 +01:00
|
|
|
if test ${use_condor} = no
|
|
|
|
then
|
|
|
|
SHLIB_INTERFACE="load_shl.o"
|
|
|
|
if test "$CC" = cc -o "$CC" = c89
|
|
|
|
then
|
|
|
|
#this tells ld to export all non-static symbols,
|
|
|
|
#otherwise no external predicates.
|
|
|
|
SHLIB_LD="ld -b -E ${LDFLAGS}"
|
|
|
|
DO_SECOND_LD=""
|
|
|
|
SHLIB_SUFFIX=".sl"
|
|
|
|
SHLIB_CFLAGS="+z"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
# If the xnet library was found, turn on X/Open networking
|
|
|
|
if test "$ac_cv_lib_xnet_getsockname" = yes
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-06-13 19:24:04 +01:00
|
|
|
#define _XOPEN_SOURCE 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-06-13 19:24:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-06-13 19:24:04 +01:00
|
|
|
#define _XOPEN_SOURCE_EXTENDED 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-06-13 19:24:04 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
INSTALL_DLLS="#"
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2002-10-10 06:58:49 +01:00
|
|
|
#do not use realloc() from HP-UX 10.20 together with MPI
|
|
|
|
if test ${target_os} = hpux10.20
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-10-10 06:58:49 +01:00
|
|
|
#define MPI_AVOID_REALLOC 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-10-10 06:58:49 +01:00
|
|
|
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
*aix*)
|
|
|
|
# To actually use dlls in AIX I'd need to build YAP as a DLL first.
|
|
|
|
# I won't bother for now.
|
|
|
|
#
|
|
|
|
# SHLIB_SUFFIX=".a"
|
|
|
|
#SHLIB_LD="\$(srcdir)/../../ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
|
|
|
|
#INSTALL_DLLS=""
|
|
|
|
;;
|
|
|
|
*osf*)
|
2002-08-19 00:18:18 +01:00
|
|
|
if ${use_condor} = no
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
|
|
echo "configure:2654: checking for dlopen in -ldl" >&5
|
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-08-19 00:18:18 +01:00
|
|
|
LIBS="-ldl $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2662 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-08-19 00:18:18 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char dlopen();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
dlopen()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
have_dl=yes
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_dl=no
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
SHLIB_LD="ld -shared -expect_unresolved '*'"
|
|
|
|
DO_SECOND_LD=""
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
*irix6*)
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_SUFFIX=".so"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_LD="ld -n32 -shared -rdata_shared"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
;;
|
2002-05-14 19:24:34 +01:00
|
|
|
*darwin*)
|
2002-10-20 19:43:11 +01:00
|
|
|
if test ${use_dlcompat} = yes
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
|
|
echo "configure:2711: checking for dlopen in -ldl" >&5
|
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-10-20 19:43:11 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-10-20 19:43:11 +01:00
|
|
|
LIBS="-ldl $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2719 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-10-20 19:43:11 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char dlopen();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
dlopen()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
have_dl=yes
|
|
|
|
|
2002-10-20 19:43:11 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_dl=no
|
2002-10-20 19:43:11 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test ${have_dl} = yes
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
LIBS="$LIBS -ldl"
|
2002-10-20 19:43:11 +01:00
|
|
|
fi
|
|
|
|
fi
|
2002-05-14 19:24:34 +01:00
|
|
|
SHLIB_CFLAGS="-fno-common"
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
DO_SECOND_LD=""
|
|
|
|
SHLIB_LD="cc -bundle -flat_namespace -undefined suppress"
|
|
|
|
INSTALL_DLLS=""
|
2002-08-09 14:08:55 +01:00
|
|
|
CC="cc -no-cpp-precomp"
|
2002-05-14 19:24:34 +01:00
|
|
|
;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*netbsd*|*freebsd*)
|
|
|
|
if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
#an a.out system
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_SUFFIX=".o"
|
|
|
|
else
|
|
|
|
#an elf system
|
|
|
|
LDFLAGS="-Wl,--export-dynamic $LDFLAGS"
|
|
|
|
SHLIB_CFLAGS="-fPIC"
|
|
|
|
SHLIB_LD="ld -Bshareable -x"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
fi
|
|
|
|
;;
|
2002-11-13 15:29:44 +00:00
|
|
|
*cyg*|*mingw*)
|
2002-09-17 00:01:59 +01:00
|
|
|
# gcc on cygwin seems to have trouble with longjmp
|
|
|
|
# and -fomit-frame-point -DBP_FREE
|
2002-11-12 04:36:59 +00:00
|
|
|
YAPLIB="libWYap.a"
|
|
|
|
SHLIB_CFLAGS=""
|
2002-11-13 15:29:44 +00:00
|
|
|
SHLIB_LD="gcc -shared ../../yap.dll"
|
2002-11-12 04:36:59 +00:00
|
|
|
SHLIB_SUFFIX=".dll"
|
2002-09-17 00:01:59 +01:00
|
|
|
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
2002-11-12 04:36:59 +00:00
|
|
|
EXEC_SUFFIX=".exe"
|
|
|
|
INSTALL_DLLS=""
|
2002-11-13 15:29:44 +00:00
|
|
|
DO_SECOND_LD=""
|
|
|
|
MERGE_DLL_OBJS=""
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
*)
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
|
|
echo "configure:2795: checking for dlopen in -ldl" >&5
|
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2002-08-19 00:18:18 +01:00
|
|
|
LIBS="-ldl $LIBS"
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2803 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-08-19 00:18:18 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char dlopen();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
dlopen()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
have_dl=yes
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_dl=no
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$have_dl" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
|
|
|
SHLIB_SUFFIX=".o"
|
|
|
|
LIBS="$LIBS -ldl"
|
2001-11-18 21:00:57 +00:00
|
|
|
INSTALL_DLLS=""
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$CC" = gcc
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
|
|
|
SHLIB_CFLAGS="-fPIC"
|
|
|
|
fi
|
|
|
|
fi
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$have_nsl" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
|
|
|
LIBS="$LIBS -lnsl"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$coroutining" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DCOROUTINING=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$rationaltrees" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DRATIONAL_TREES=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$debugyap" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DDEBUG=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$wamprofile" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DANALYST=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$depthlimit" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DDEPTH_LIMIT=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2002-09-25 05:29:01 +01:00
|
|
|
if test "$use_april" = "yes"
|
2003-07-21 20:13:30 +01:00
|
|
|
then
|
2002-09-25 05:29:01 +01:00
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DDEPTH_LIMIT=1 -DAPRIL"
|
2002-10-10 06:58:49 +01:00
|
|
|
LDFLAGS="$LDFLAGS -L."
|
2002-09-25 05:29:01 +01:00
|
|
|
LIBS="$LIBS -lApril"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$lowleveltracer" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DLOW_LEVEL_TRACER=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2002-10-21 23:14:29 +01:00
|
|
|
if test "$threads" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DTHREADS=1"
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
case "$orparallelism" in
|
|
|
|
sba)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DSBA=1"
|
|
|
|
;;
|
|
|
|
a-cow)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DACOW=1"
|
|
|
|
;;
|
|
|
|
yes|env-copy)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DENV_COPY=1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$tabling" in
|
|
|
|
local)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DTABLING_LOCAL_SCHEDULING=1"
|
|
|
|
;;
|
|
|
|
yes|batched)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DTABLING_BATCHED_SCHEDULING=1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
|
|
echo "configure:2917: checking for ANSI C header files" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2922 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <float.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_header_stdc=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2947 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <string.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2003-07-21 20:13:30 +01:00
|
|
|
egrep "memchr" >/dev/null 2>&1; then
|
2001-04-09 20:54:03 +01:00
|
|
|
:
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
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.
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2965 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <stdlib.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2003-07-21 20:13:30 +01:00
|
|
|
egrep "free" >/dev/null 2>&1; then
|
2001-04-09 20:54:03 +01:00
|
|
|
:
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
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.
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-04-09 20:54:03 +01:00
|
|
|
:
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 2986 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <ctype.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
2002-10-24 04:32:04 +01:00
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
|
|
|
if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
:
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_header_stdc=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define STDC_HEADERS 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
|
|
echo "configure:3021: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3026 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#ifndef WEXITSTATUS
|
2003-07-21 20:13:30 +01:00
|
|
|
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
#ifndef WIFEXITED
|
2003-07-21 20:13:30 +01:00
|
|
|
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
int s;
|
|
|
|
wait (&s);
|
|
|
|
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_header_sys_wait_h=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_sys_wait_h=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
|
|
if test $ac_cv_header_sys_wait_h = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SYS_WAIT_H 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in arpa/inet.h ctype.h direct.h dirent.h dlfcn.h
|
2002-05-14 19:24:34 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3066: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3071 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-01-16 20:18:28 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in errno.h fcntl.h
|
2002-01-16 20:18:28 +00:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3106: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3111 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2002-10-21 23:14:29 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in fenv.h fpu_control.h ieeefp.h io.h limits.h
|
2002-10-21 23:14:29 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3146: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3151 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2002-10-21 23:14:29 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in malloc.h math.h memory.h
|
2002-10-21 23:14:29 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3186: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3191 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in netdb.h netinet/in.h regex.h
|
2002-09-25 05:29:01 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3226: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3231 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2002-10-23 18:10:33 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in siginfo.h signal.h stdarg.h string.h stropts.h
|
2002-10-23 18:10:33 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3266: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3271 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2002-09-02 18:33:00 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in sys/conf.h sys/file.h
|
2002-09-02 18:33:00 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3306: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3311 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in sys/mman.h sys/param.h sys/resource.h sys/select.h
|
2002-10-22 04:45:24 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3346: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3351 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in sys/shm.h sys/socket.h sys/stat.h
|
2002-10-24 04:32:04 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3386: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3391 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in sys/time.h sys/times.h sys/types.h
|
2002-10-24 04:32:04 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3426: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3431 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
2002-10-22 04:45:24 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
done
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in sys/ucontext.h sys/un.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3466: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3471 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2002-10-22 04:45:24 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in time.h unistd.h winsock.h winsock2.h
|
2002-10-22 04:45:24 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3506: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3511 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
|
|
|
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in mach-o/dyld.h
|
2002-10-24 04:32:04 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3546: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3551 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2002-09-25 05:29:01 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
if test "$yap_cv_gmp" != "no"
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in gmp.h
|
2002-09-25 05:29:01 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3588: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3593 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-25 05:29:01 +01:00
|
|
|
fi
|
2001-06-22 18:53:36 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2002-09-24 15:20:56 +01:00
|
|
|
if test "$yap_cv_readline" != "no"
|
2002-05-14 19:24:34 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in readline/readline.h
|
2002-05-14 19:24:34 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3631: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3636 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-06-13 19:24:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-06-13 19:24:04 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2002-09-24 15:20:56 +01:00
|
|
|
if test "$yap_cv_mpi" != "no"
|
2002-06-13 19:24:04 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in mpi.h
|
2002-06-13 19:24:04 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3674: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3679 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-05-14 19:24:34 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
2002-05-23 13:45:08 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2002-09-24 15:20:56 +01:00
|
|
|
if test "$yap_cv_mpe" != "no"
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_hdr in mpe.h
|
2002-09-24 15:20:56 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
|
|
echo "configure:3717: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3722 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
{ (eval echo configure:3727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2002-09-24 16:38:17 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-09-24 16:38:17 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-24 21:06:22 +01:00
|
|
|
fi
|
2002-09-24 15:20:56 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
|
|
echo "configure:3756: checking for inline" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
ac_cv_c_inline=no
|
|
|
|
for ac_kw in inline __inline__ __inline; do
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3763 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
|
|
|
} $ac_kw foo() {
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_c_inline=$ac_kw; break
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
|
|
case "$ac_cv_c_inline" in
|
2001-04-09 20:54:03 +01:00
|
|
|
inline | yes) ;;
|
2003-07-21 20:13:30 +01:00
|
|
|
no) cat >> confdefs.h <<\EOF
|
|
|
|
#define inline
|
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
2003-07-21 20:13:30 +01:00
|
|
|
*) cat >> confdefs.h <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define inline $ac_cv_c_inline
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-05-23 13:44:18 +01:00
|
|
|
;;
|
|
|
|
esac
|
2002-05-14 19:24:34 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|
|
|
echo "configure:3796: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3801 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-05-23 13:45:08 +01:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <time.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
2002-05-23 13:45:08 +01:00
|
|
|
struct tm *tp; tp->tm_sec;
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2002-08-07 22:55:27 +01:00
|
|
|
ac_cv_struct_tm=time.h
|
2002-06-19 22:46:56 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_struct_tm=sys/time.h
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-10-22 04:45:24 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
|
|
if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2002-10-23 18:10:33 +01:00
|
|
|
#define TM_IN_SYS_TIME 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-10-23 18:10:33 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of int *""... $ac_c" 1>&6
|
|
|
|
echo "configure:3830: checking size of int *" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-10-22 04:45:24 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_sizeof_int_p=4
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3838 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-10-22 04:45:24 +01:00
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
main()
|
2002-10-22 04:45:24 +01:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(int *));
|
|
|
|
exit(0);
|
2002-10-24 04:32:04 +01:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_int_p=`cat conftestval`
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
ac_cv_sizeof_int_p=0
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_INT_P $ac_cv_sizeof_int_p
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of short int""... $ac_c" 1>&6
|
|
|
|
echo "configure:3869: checking size of short int" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_sizeof_short_int=2
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3877 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-10-24 04:32:04 +01:00
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
main()
|
2002-10-24 04:32:04 +01:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(short int));
|
|
|
|
exit(0);
|
2002-10-24 04:32:04 +01:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_short_int=`cat conftestval`
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
ac_cv_sizeof_short_int=0
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|
|
|
echo "configure:3908: checking size of int" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_sizeof_int=4
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3916 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-10-24 04:32:04 +01:00
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
main()
|
2002-10-24 04:32:04 +01:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(int));
|
|
|
|
exit(0);
|
2002-10-24 04:32:04 +01:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_int=`cat conftestval`
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
ac_cv_sizeof_int=0
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_INT $ac_cv_sizeof_int
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of long int""... $ac_c" 1>&6
|
|
|
|
echo "configure:3947: checking size of long int" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-10-24 04:32:04 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_sizeof_long_int=4
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3955 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-10-24 04:32:04 +01:00
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
main()
|
2002-10-24 04:32:04 +01:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(long int));
|
|
|
|
exit(0);
|
2002-09-02 18:33:00 +01:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_long_int=`cat conftestval`
|
2002-09-02 18:33:00 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
ac_cv_sizeof_long_int=0
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
|
|
|
|
EOF
|
2002-10-23 18:10:33 +01:00
|
|
|
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of long long int""... $ac_c" 1>&6
|
|
|
|
echo "configure:3986: checking size of long long int" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-02 18:33:00 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
ac_cv_sizeof_long_long_int=8
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 3994 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2002-10-24 04:32:04 +01:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(long long int));
|
|
|
|
exit(0);
|
2002-10-24 04:32:04 +01:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_long_long_int=`cat conftestval`
|
2002-08-09 14:08:55 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_long_long_int=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2002-10-21 23:14:29 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of float""... $ac_c" 1>&6
|
|
|
|
echo "configure:4025: checking size of float" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-09 14:08:55 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_sizeof_float=4
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4033 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-09-24 21:06:22 +01:00
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
main()
|
2002-08-09 14:08:55 +01:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(float));
|
|
|
|
exit(0);
|
2002-08-09 14:08:55 +01:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_float=`cat conftestval`
|
2002-08-09 14:08:55 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2002-10-24 04:32:04 +01:00
|
|
|
ac_cv_sizeof_float=0
|
2002-10-21 23:14:29 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_FLOAT $ac_cv_sizeof_float
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2002-10-23 18:10:33 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking size of double""... $ac_c" 1>&6
|
|
|
|
echo "configure:4064: checking size of double" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2002-01-16 20:18:28 +00:00
|
|
|
if test "$cross_compiling" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cv_sizeof_double=8
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4072 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-09-24 21:06:22 +01:00
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
main()
|
2002-01-16 20:18:28 +00:00
|
|
|
{
|
2003-07-21 20:13:30 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(double));
|
|
|
|
exit(0);
|
2002-01-16 20:18:28 +00:00
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
|
|
|
ac_cv_sizeof_double=`cat conftestval`
|
2002-08-09 14:08:55 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2002-08-09 14:08:55 +01:00
|
|
|
ac_cv_sizeof_double=0
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2002-08-09 14:08:55 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for type of malloc""... $ac_c" 1>&6
|
|
|
|
echo "configure:4104: checking for type of malloc" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_cv_malloct'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_malloct=void
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4113 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
char *malloc(size_t);
|
|
|
|
int main() {
|
|
|
|
void *p=malloc(1);
|
|
|
|
return 0;
|
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_malloct=char
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_malloct=void
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_cv_malloct *" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$yap_cv_malloct" = void
|
2003-07-21 20:13:30 +01:00
|
|
|
then cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define MALLOC_T void *
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
else cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define MALLOC_T char *
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for gcc inline""... $ac_c" 1>&6
|
|
|
|
echo "configure:4151: checking for gcc inline" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_cv_gcc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_gcc=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4160 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#undef inline
|
|
|
|
inline int f(int x) {return x+1;}
|
|
|
|
int main() { return 0;}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_gcc=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_gcc=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_cv_gcc" 1>&6
|
|
|
|
if test "$yap_cv_gcc" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
|
|
|
M4GENHDRS=m4/gcc_genhdrs.m4
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_GCC 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
M4GENHDRS=m4/cc_genhdrs.m4
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_GCC 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for gcc threaded code""... $ac_c" 1>&6
|
|
|
|
echo "configure:4201: checking for gcc threaded code" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_cv_threaded_code'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_threaded_code=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4210 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
int main() {
|
|
|
|
void *t = &&l2;
|
|
|
|
l1: goto *t;
|
|
|
|
l2: return 0;
|
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_threaded_code=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_threaded_code=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_cv_threaded_code" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$yap_cv_threaded_code" = yes && test "$yap_cv_gcc" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define USE_THREADED_CODE 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
M4GENABSMI=gen_gcc.m4
|
2003-07-21 20:13:30 +01:00
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define USE_THREADED_CODE 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
M4GENABSMI=gen_ansi.m4
|
|
|
|
fi
|
|
|
|
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for IEEE floats""... $ac_c" 1>&6
|
|
|
|
echo "configure:4253: checking for IEEE floats" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_cv_ffieee'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-24 21:06:22 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_ffieee=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4262 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
int main() {
|
|
|
|
union { float f; int i} a;
|
|
|
|
a.f = 1;
|
|
|
|
if (a.i==0x3f800000) return 0;
|
|
|
|
return 1;
|
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_ffieee=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_ffieee=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_cv_ffieee" 1>&6
|
|
|
|
if test "$yap_cv_ffieee" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define FFIEEE 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define FFIEEE 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
|
|
|
echo "configure:4301: checking for sigsetjmp" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_sigsetjmp'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4307 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <setjmp.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
sigjmp_buf RestartEnv;
|
|
|
|
|
|
|
|
siglongjmp (RestartEnv, 1);
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_sigsetjmp=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_sigsetjmp=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_sigsetjmp" 1>&6
|
|
|
|
if test "$yap_sigsetjmp" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSETJMP 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSETJMP 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for sigsegv""... $ac_c" 1>&6
|
|
|
|
echo "configure:4345: checking for sigsegv" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_sigsegv'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4351 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
printf("Signal value is %d\n", SIGSEGV);
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_sigsegv=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_sigsegv=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_sigsegv" 1>&6
|
|
|
|
if test "$yap_sigsegv" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSEGV 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSEGV 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for sigprof""... $ac_c" 1>&6
|
|
|
|
echo "configure:4388: checking for sigprof" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_sigprof'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2003-05-20 20:11:59 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4394 "configure"
|
|
|
|
#include "confdefs.h"
|
2003-05-20 20:11:59 +01:00
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
int main() {
|
2003-05-20 20:11:59 +01:00
|
|
|
printf("Signal value is %d\n", SIGPROF);
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2003-05-20 20:11:59 +01:00
|
|
|
yap_sigprof=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_sigprof=no
|
2003-05-20 20:11:59 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2003-05-20 20:11:59 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_sigprof" 1>&6
|
|
|
|
if test "$yap_sigsegv" = yes
|
2003-05-20 20:11:59 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2003-05-20 20:11:59 +01:00
|
|
|
#define HAVE_SIGPROF 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2003-05-20 20:11:59 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2003-05-20 20:11:59 +01:00
|
|
|
#define HAVE_SIGPROF 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2003-05-20 20:11:59 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for siginfo""... $ac_c" 1>&6
|
|
|
|
echo "configure:4431: checking for siginfo" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_siginfo'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-05-28 17:23:53 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4437 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-05-28 17:23:53 +01:00
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
int main() {
|
2002-05-28 17:23:53 +01:00
|
|
|
printf("SIGINFO value is %d\n", SA_SIGINFO);
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2002-05-28 17:23:53 +01:00
|
|
|
yap_siginfo=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_siginfo=no
|
2002-05-28 17:23:53 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2002-05-28 17:23:53 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_siginfo" 1>&6
|
|
|
|
if test "$yap_siginfo" = yes
|
2002-05-28 17:23:53 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-05-28 17:23:53 +01:00
|
|
|
#define HAVE_SIGINFO 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-05-28 17:23:53 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-05-28 17:23:53 +01:00
|
|
|
#define HAVE_SIGINFO 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-05-28 17:23:53 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking union wait""... $ac_c" 1>&6
|
|
|
|
echo "configure:4474: checking union wait" >&5
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4476 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <sys/wait.h>
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
union wait x;
|
|
|
|
wait(&x); /* make sure we can compile wait */
|
|
|
|
WIFEXITED(x); /* Generates compiler error if WIFEXITED
|
|
|
|
* uses an int. */
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
union_wait_ok=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
union_wait_ok=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
|
|
|
echo "$ac_t""$union_wait_ok" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$union_wait_ok" = no; then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define NO_UNION_WAIT 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking environ""... $ac_c" 1>&6
|
|
|
|
echo "configure:4508: checking environ" >&5
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4510 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
extern char **environ;
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
environ_ok=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
environ_ok=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
|
|
|
echo "$ac_t""$environ_ok" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$environ_ok" = yes; then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_ENVIRON 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
|
|
echo "configure:4538: checking return type of signal handlers" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4543 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#ifdef signal
|
2003-07-21 20:13:30 +01:00
|
|
|
#undef signal
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" void (*signal (int, void (*)(int)))(int);
|
|
|
|
#else
|
|
|
|
void (*signal ()) ();
|
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
int i;
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_type_signal=void
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_type_signal=int
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2002-10-23 18:10:33 +01:00
|
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
for ac_func in acosh asinh atanh chdir dlopen dup2
|
2001-06-22 18:53:36 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4581: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4586 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-06-22 18:53:36 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-06-22 18:53:36 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
/* 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. */
|
2002-10-22 04:45:24 +01:00
|
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
2002-10-24 04:32:04 +01:00
|
|
|
choke me
|
|
|
|
#else
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2002-10-24 04:32:04 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-05-14 19:24:34 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-05-14 19:24:34 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-09-17 00:01:59 +01:00
|
|
|
for ac_func in fesettrapenable finite getcwd getenv
|
2001-06-22 18:53:36 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4636: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4641 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-06-22 18:53:36 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-06-22 18:53:36 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-06-22 18:53:36 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-06-22 18:53:36 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for ac_func in gethostbyname gethostid gethostname
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4691: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4696 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in gethrtime getpwnam getrusage gettimeofday getwd
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4746: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4751 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-06-29 20:30:25 +01:00
|
|
|
#endif
|
2001-06-11 21:20:36 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in isatty isnan kill labs link localtime lstat
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4801: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4806 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2001-08-08 22:17:27 +01:00
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
for ac_func in memcpy memmove mkstemp mktemp opendir
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4856: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4861 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2002-01-16 20:18:28 +00:00
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
for ac_func in putenv rand random readlink regexec
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4911: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4916 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2002-08-09 14:08:55 +01:00
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-09-24 15:06:06 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-09-24 15:06:06 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-10-23 18:10:33 +01:00
|
|
|
for ac_func in rename rint rl_set_prompt sbrk select
|
2001-09-24 15:06:06 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4966: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4971 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-08-19 00:18:18 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2002-08-19 00:18:18 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2002-08-19 00:18:18 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for ac_func in setbuf setlinebuf sigaction siggetmask siginterrupt
|
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5021: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5026 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-09-24 15:06:06 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-09-24 15:06:06 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-09-24 15:06:06 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-09-24 15:06:06 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-09-17 00:01:59 +01:00
|
|
|
for ac_func in signal sigprocmask socket stat
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5076: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5081 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-24 16:38:17 +01:00
|
|
|
fi
|
|
|
|
done
|
2002-09-02 18:33:00 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
for ac_func in strchr strerror strncat strncpy strtod
|
2001-04-27 17:02:43 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5131: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5136 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-27 17:02:43 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-04-27 17:02:43 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-04-27 17:02:43 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-04-27 17:02:43 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-06-19 22:46:56 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-08-07 22:55:27 +01:00
|
|
|
fi
|
|
|
|
done
|
2002-06-19 22:46:56 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
for ac_func in time times tmpnam usleep vsnprintf
|
2001-05-21 21:00:05 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5186: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5191 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-05-21 21:00:05 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2001-05-21 21:00:05 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-05-21 21:00:05 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2001-05-21 21:00:05 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2001-05-21 21:00:05 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-05-21 21:00:05 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for regexec""... $ac_c" 1>&6
|
|
|
|
echo "configure:5240: checking for regexec" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_regexec'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5245 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-05-21 21:00:05 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char regexec(); below. */
|
|
|
|
#include <assert.h>
|
2001-05-21 21:00:05 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char regexec();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2001-05-21 21:00:05 +01:00
|
|
|
/* 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. */
|
2002-08-19 00:18:18 +01:00
|
|
|
#if defined (__stub_regexec) || defined (__stub___regexec)
|
2001-05-21 21:00:05 +01:00
|
|
|
choke me
|
|
|
|
#else
|
2003-07-21 20:13:30 +01:00
|
|
|
regexec();
|
2001-05-21 21:00:05 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_regexec=yes"
|
2002-10-23 18:10:33 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_regexec=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2002-09-25 05:29:01 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_func_'regexec`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
NO_BUILTIN_REGEXP="#"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
NO_BUILTIN_REGEXP=""
|
|
|
|
fi
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2002-09-24 16:38:17 +01:00
|
|
|
for ac_func in NSLinkModule
|
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5292: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5297 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-09-24 15:20:56 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2002-09-24 15:20:56 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2002-09-24 15:20:56 +01:00
|
|
|
/* 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. */
|
2002-10-24 04:32:04 +01:00
|
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
|
choke me
|
|
|
|
#else
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2002-10-24 04:32:04 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-09-24 15:20:56 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-24 16:38:17 +01:00
|
|
|
fi
|
|
|
|
done
|
2002-09-24 15:20:56 +01:00
|
|
|
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
if test "$use_condor" = "no"
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_func in alarm mmap popen shmat sleep system ttyname waitpid
|
2002-08-19 00:18:18 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5350: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5355 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-03-17 06:11:29 +00:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2002-03-17 06:11:29 +00:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2002-09-17 00:01:59 +01:00
|
|
|
/* 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
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2002-09-17 00:01:59 +01:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-09-17 00:01:59 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-09-17 00:01:59 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$target_os" != "mingw32"
|
2002-09-17 00:01:59 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
for ac_func in fetestexcept snprintf
|
2002-09-17 00:01:59 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:5409: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5414 "configure"
|
|
|
|
#include "confdefs.h"
|
2002-09-17 00:01:59 +01:00
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2003-07-21 20:13:30 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
2002-09-17 00:01:59 +01:00
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2003-07-21 20:13:30 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
2002-03-17 06:11:29 +00:00
|
|
|
/* 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. */
|
2002-08-19 00:18:18 +01:00
|
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
2002-03-17 06:11:29 +00:00
|
|
|
choke me
|
|
|
|
#else
|
2003-07-21 20:13:30 +01:00
|
|
|
$ac_func();
|
2002-03-17 06:11:29 +00:00
|
|
|
#endif
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
2002-03-17 06:11:29 +00:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-08-19 00:18:18 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2002-08-09 14:08:55 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking for mpz_xor""... $ac_c" 1>&6
|
|
|
|
echo "configure:5464: checking for mpz_xor" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_mpz_xor'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-08-19 00:18:18 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5470 "configure"
|
|
|
|
#include "confdefs.h"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <gmp.h>
|
|
|
|
void check(mpz_t rop,mpz_t op1,mpz_t op2) {
|
|
|
|
mpz_xor(rop,op1,op2);
|
|
|
|
}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_mpz_xor=yes
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_mpz_xor=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""$yap_mpz_xor" 1>&6
|
|
|
|
if test "$yap_mpz_xor" = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_MPZ_XOR 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_MPZ_XOR 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
echo $ac_n "checking if fflush(NULL) clobbers input pipes""... $ac_c" 1>&6
|
|
|
|
echo "configure:5508: checking if fflush(NULL) clobbers input pipes" >&5
|
|
|
|
if eval "test \"`echo '$''{'yap_cv_broken_fflush_null'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
else
|
|
|
|
cat >conftest.$ac_ext <<EOF
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
char *buf;
|
|
|
|
int i;
|
|
|
|
char *bp;
|
|
|
|
bp = buf = malloc(1024);
|
|
|
|
while (1) {
|
|
|
|
while ((i = getc(stdin)) != -1
|
|
|
|
&& (*bp++ = i) != '\n'
|
|
|
|
&& (bp - buf < 1024) )
|
|
|
|
/* DO NOTHING */ ;
|
|
|
|
*bp = '\0';
|
|
|
|
fprintf(stdout, "%s", buf);
|
|
|
|
fflush(NULL);
|
|
|
|
if( i == EOF ) return 0;
|
|
|
|
bp = buf;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
2003-07-21 20:13:30 +01:00
|
|
|
{ (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
|
2001-07-11 08:10:17 +01:00
|
|
|
if test "$?" = 0
|
|
|
|
then
|
|
|
|
cat conftest.$ac_ext | ./conftest$ac_exeext > conftest.out
|
2003-07-21 20:13:30 +01:00
|
|
|
{ ac_try='cmp conftest.$ac_ext conftest.out'; { (eval echo configure:5538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
|
2001-07-11 08:10:17 +01:00
|
|
|
if test "$?" = 0
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
yap_cv_broken_fflush_null=no
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""yes" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
yap_cv_broken_fflush_null=yes
|
|
|
|
fi
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "$ac_t""failed" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
yap_cv_broken_fflush_null=failed
|
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f conftest.$ac_ext conftest.$ac_objext conftest$ac_exeext conftest.out
|
2001-07-11 08:10:17 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
echo "$ac_t""$yap_cv_broken_fflush_null" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
if test "$yap_cv_broken_fflush_null" = no
|
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-07-11 08:10:17 +01:00
|
|
|
#define BROKEN_FFLUSH_NULL 0
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-07-11 08:10:17 +01:00
|
|
|
|
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-07-11 08:10:17 +01:00
|
|
|
#define BROKEN_FFLUSH_NULL 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-07-11 08:10:17 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
if test "$use_malloc" = yes
|
2002-05-19 20:04:33 +01:00
|
|
|
then
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2002-05-19 20:04:33 +01:00
|
|
|
#define USE_MALLOC 1
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2002-05-19 20:04:33 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2002-05-23 13:44:18 +01:00
|
|
|
mkdir -p library/mpi
|
|
|
|
mkdir -p library/random
|
2001-04-09 20:54:03 +01:00
|
|
|
mkdir -p library/regex
|
2001-05-21 21:00:05 +01:00
|
|
|
mkdir -p library/system
|
2002-12-13 22:09:54 +00:00
|
|
|
mkdir -p library/Tries
|
2002-05-23 13:44:18 +01:00
|
|
|
mkdir -p library/yap2swi
|
2001-06-06 20:10:51 +01:00
|
|
|
mkdir -p CHR
|
|
|
|
mkdir -p CLPQR
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
trap '' 1 2 15
|
|
|
|
cat > confcache <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
# This file is a shell script that caches the results of configure
|
|
|
|
# tests run on this system so they can be shared between configure
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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.
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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.
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
# 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.
|
2003-07-21 20:13:30 +01:00
|
|
|
(set) 2>&1 |
|
|
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|
|
|
*ac_space=\ *)
|
|
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
|
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
|
|
|
sed -n \
|
|
|
|
-e "s/'/'\\\\''/g" \
|
|
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|
|
|
;;
|
|
|
|
esac >> confcache
|
|
|
|
if cmp -s $cache_file confcache; then
|
|
|
|
:
|
|
|
|
else
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -w $cache_file; then
|
2003-07-21 20:13:30 +01:00
|
|
|
echo "updating cache $cache_file"
|
|
|
|
cat confcache > $cache_file
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
echo "not updating unwritable cache $cache_file"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f confcache
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
|
# Let make expand exec_prefix.
|
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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.
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "x$srcdir" = x.; then
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
2003-05-20 20:11:59 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
DEFS=-DHAVE_CONFIG_H
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Without the "./", some shells look in PATH for config.status.
|
2002-10-24 04:32:04 +01:00
|
|
|
: ${CONFIG_STATUS=./config.status}
|
2003-07-21 20:13:30 +01:00
|
|
|
|
|
|
|
echo creating $CONFIG_STATUS
|
|
|
|
rm -f $CONFIG_STATUS
|
|
|
|
cat > $CONFIG_STATUS <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
# Generated automatically by configure.
|
2001-04-09 20:54:03 +01:00
|
|
|
# Run this file to recreate the current configuration.
|
2003-07-21 20:13:30 +01:00
|
|
|
# This directory was configured as follows,
|
|
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
|
#
|
|
|
|
# $0 $ac_configure_args
|
|
|
|
#
|
2001-04-09 20:54:03 +01:00
|
|
|
# Compiler output produced by configure, useful for debugging
|
2003-07-21 20:13:30 +01:00
|
|
|
# configure, is in ./config.log if it exists.
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
|
|
for ac_option
|
2003-05-20 20:11:59 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
case "\$ac_option" in
|
|
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|
|
|
exit 0 ;;
|
|
|
|
-help | --help | --hel | --he | --h)
|
|
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
|
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
|
|
|
esac
|
2003-05-20 20:11:59 +01:00
|
|
|
done
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_given_srcdir=$srcdir
|
|
|
|
ac_given_INSTALL="$INSTALL"
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
trap 'rm -fr `echo "Makefile library/regex/Makefile library/system/Makefile library/random/Makefile library/yap2swi/Makefile library/mpi/Makefile .depend library/Makefile CHR/Makefile CLPQR/Makefile library/Tries/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Protect against being on the right side of a sed subst in config.status.
|
|
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
|
|
$ac_vpsub
|
|
|
|
$extrasub
|
|
|
|
s%@SHELL@%$SHELL%g
|
|
|
|
s%@CFLAGS@%$CFLAGS%g
|
|
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
|
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
|
|
|
s%@FFLAGS@%$FFLAGS%g
|
|
|
|
s%@DEFS@%$DEFS%g
|
|
|
|
s%@LDFLAGS@%$LDFLAGS%g
|
|
|
|
s%@LIBS@%$LIBS%g
|
|
|
|
s%@exec_prefix@%$exec_prefix%g
|
|
|
|
s%@prefix@%$prefix%g
|
|
|
|
s%@program_transform_name@%$program_transform_name%g
|
|
|
|
s%@bindir@%$bindir%g
|
|
|
|
s%@sbindir@%$sbindir%g
|
|
|
|
s%@libexecdir@%$libexecdir%g
|
|
|
|
s%@datadir@%$datadir%g
|
|
|
|
s%@sysconfdir@%$sysconfdir%g
|
|
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
|
|
|
s%@localstatedir@%$localstatedir%g
|
|
|
|
s%@libdir@%$libdir%g
|
|
|
|
s%@includedir@%$includedir%g
|
|
|
|
s%@oldincludedir@%$oldincludedir%g
|
|
|
|
s%@infodir@%$infodir%g
|
|
|
|
s%@mandir@%$mandir%g
|
|
|
|
s%@CC@%$CC%g
|
|
|
|
s%@GCC@%$GCC%g
|
|
|
|
s%@C_INTERF_FLAGS@%$C_INTERF_FLAGS%g
|
|
|
|
s%@C_PARSER_FLAGS@%$C_PARSER_FLAGS%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
|
|
|
|
s%@LN_S@%$LN_S%g
|
|
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
|
|
s%@RANLIB@%$RANLIB%g
|
|
|
|
s%@INDENT@%$INDENT%g
|
|
|
|
s%@AR@%$AR%g
|
|
|
|
s%@MPI_CC@%$MPI_CC%g
|
|
|
|
s%@INSTALL_INFO@%$INSTALL_INFO%g
|
|
|
|
s%@INSTALL_COMMAND@%$INSTALL_COMMAND%g
|
|
|
|
s%@CROSS_SIMULATOR@%$CROSS_SIMULATOR%g
|
|
|
|
s%@YAPMPILIB@%$YAPMPILIB%g
|
|
|
|
s%@MPI_OBJS@%$MPI_OBJS%g
|
|
|
|
s%@MPI_LIBS@%$MPI_LIBS%g
|
|
|
|
s%@CPP@%$CPP%g
|
|
|
|
s%@INSTALL_DLLS@%$INSTALL_DLLS%g
|
|
|
|
s%@MERGE_DLL_OBJS@%$MERGE_DLL_OBJS%g
|
|
|
|
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
|
|
|
|
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
|
|
|
|
s%@EXEC_SUFFIX@%$EXEC_SUFFIX%g
|
|
|
|
s%@DO_SECOND_LD@%$DO_SECOND_LD%g
|
|
|
|
s%@SHLIB_LD@%$SHLIB_LD%g
|
|
|
|
s%@YAPLIB@%$YAPLIB%g
|
|
|
|
s%@YAP_EXTRAS@%$YAP_EXTRAS%g
|
|
|
|
s%@NO_BUILTIN_REGEXP@%$NO_BUILTIN_REGEXP%g
|
|
|
|
s%@M4@%$M4%g
|
|
|
|
s%@M4GENHDRS@%$M4GENHDRS%g
|
|
|
|
s%@M4GENABSMI@%$M4GENABSMI%g
|
2003-05-20 20:11:59 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
CEOF
|
|
|
|
EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-21 23:14:29 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
if test ! -s conftest.s$ac_file; then
|
|
|
|
ac_more_lines=false
|
|
|
|
rm -f conftest.s$ac_file
|
2002-10-23 18:10:33 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
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`
|
2002-10-23 18:10:33 +01:00
|
|
|
fi
|
2002-10-24 04:32:04 +01:00
|
|
|
done
|
2003-07-21 20:13:30 +01:00
|
|
|
if test -z "$ac_sed_cmds"; then
|
|
|
|
ac_sed_cmds=cat
|
2003-05-20 20:11:59 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
2003-05-20 20:11:59 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile library/regex/Makefile library/system/Makefile library/random/Makefile library/yap2swi/Makefile library/mpi/Makefile .depend library/Makefile CHR/Makefile CLPQR/Makefile library/Tries/Makefile"}
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
|
case "$ac_file" in
|
|
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
|
*) ac_file_in="${ac_file}.in" ;;
|
2002-10-21 23:14:29 +01:00
|
|
|
esac
|
2003-05-20 20:11:59 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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=
|
2002-10-24 04:32:04 +01:00
|
|
|
fi
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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" ;;
|
2002-10-24 04:32:04 +01:00
|
|
|
*) # Relative path.
|
2003-07-21 20:13:30 +01:00
|
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
2002-10-23 18:10:33 +01:00
|
|
|
esac
|
2002-10-22 04:45:24 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
case "$ac_given_INSTALL" in
|
|
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
|
|
esac
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2002-10-24 04:32:04 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
|
sed -e "$ac_comsub
|
|
|
|
s%@configure_input@%$configure_input%g
|
|
|
|
s%@srcdir@%$srcdir%g
|
|
|
|
s%@top_srcdir@%$top_srcdir%g
|
|
|
|
s%@INSTALL@%$INSTALL%g
|
|
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
|
|
fi; done
|
|
|
|
rm -f conftest.s*
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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.
|
2003-07-21 20:13:30 +01:00
|
|
|
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'
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_uC=' '
|
2003-07-21 20:13:30 +01:00
|
|
|
ac_uD='\4%g'
|
|
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
|
ac_eB='$%\1#\2define\3'
|
|
|
|
ac_eC=' '
|
|
|
|
ac_eD='%g'
|
|
|
|
|
|
|
|
if test "${CONFIG_HEADERS+set}" != set; then
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
CONFIG_HEADERS="config.h"
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
fi
|
|
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
2001-04-09 20:54:03 +01:00
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
2003-07-21 20:13:30 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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.
|
2003-07-21 20:13:30 +01:00
|
|
|
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.
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
rm -f conftest.tail
|
2003-07-21 20:13:30 +01:00
|
|
|
while :
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
echo 'CEOF
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
done
|
2003-07-21 20:13:30 +01:00
|
|
|
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
|
2003-05-20 20:11:59 +01:00
|
|
|
else
|
2003-07-21 20:13:30 +01:00
|
|
|
# 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"
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -f $ac_file
|
|
|
|
mv conftest.h $ac_file
|
2002-09-02 18:33:00 +01:00
|
|
|
fi
|
2003-07-21 20:13:30 +01:00
|
|
|
fi; done
|
|
|
|
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2003-07-21 20:13:30 +01:00
|
|
|
exit 0
|
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
chmod +x $CONFIG_STATUS
|
2003-07-21 20:13:30 +01:00
|
|
|
rm -fr confdefs* $ac_clean_files
|
|
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
2002-09-24 21:06:22 +01:00
|
|
|
|
2002-08-19 00:18:18 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
make depend
|
|
|
|
|