mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
c848556f07
Unfix PR gdb/1626. * configure.in: Revert special case for osf5.*. * configure: Regenerate.
11561 lines
312 KiB
Bash
Executable File
11561 lines
312 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
# Generated automatically using autoconf version 2.13
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|
#
|
|
# This configure script is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy, distribute and modify it.
|
|
|
|
# Defaults:
|
|
ac_help=
|
|
ac_default_prefix=/usr/local
|
|
# Any additions from configure.in:
|
|
ac_help="$ac_help
|
|
--enable-maintainer-mode enable make rules and dependencies not useful
|
|
(and sometimes confusing) to the casual installer"
|
|
ac_help="$ac_help
|
|
--disable-nls do not use Native Language Support"
|
|
ac_help="$ac_help
|
|
--with-included-gettext use the GNU gettext library included here"
|
|
ac_help="$ac_help
|
|
--with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
|
|
ac_help="$ac_help
|
|
--disable-gdbcli disable command-line interface (CLI)"
|
|
ac_help="$ac_help
|
|
--disable-gdbmi disable machine-interface (MI)"
|
|
ac_help="$ac_help
|
|
--enable-tui enable full-screen terminal user interface (TUI)"
|
|
ac_help="$ac_help
|
|
--enable-gdbtk enable gdbtk graphical user interface (GUI)"
|
|
ac_help="$ac_help
|
|
--with-libunwind Use libunwind frame unwinding support"
|
|
ac_help="$ac_help
|
|
--enable-profiling enable profiling of GDB"
|
|
ac_help="$ac_help
|
|
--without-included-regex don't use included regex; this is the default
|
|
on systems with version 2 of the GNU C library
|
|
(use with caution on other system)"
|
|
ac_help="$ac_help
|
|
--with-sysroot[=DIR] Search for usr/lib et al within DIR."
|
|
ac_help="$ac_help
|
|
--enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|
ac_help="$ac_help
|
|
--enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
|
|
ac_help="$ac_help
|
|
--with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
|
|
ac_help="$ac_help
|
|
--with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
|
|
ac_help="$ac_help
|
|
--with-tclinclude=DIR Directory where tcl private headers are"
|
|
ac_help="$ac_help
|
|
--with-tkinclude=DIR Directory where tk private headers are"
|
|
ac_help="$ac_help
|
|
--with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
|
|
ac_help="$ac_help
|
|
--with-itkconfig Directory containing itk configuration (itkConfig.sh)"
|
|
ac_help="$ac_help
|
|
--with-x use the X Window System"
|
|
ac_help="$ac_help
|
|
--enable-sim Link gdb with simulator"
|
|
ac_help="$ac_help
|
|
--enable-multi-ice build the multi-ice-gdb-server"
|
|
ac_help="$ac_help
|
|
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
|
|
|
|
# Initialize some variables set by options.
|
|
# The variables have the same names as the options, with
|
|
# dashes changed to underlines.
|
|
build=NONE
|
|
cache_file=./config.cache
|
|
exec_prefix=NONE
|
|
host=NONE
|
|
no_create=
|
|
nonopt=NONE
|
|
no_recursion=
|
|
prefix=NONE
|
|
program_prefix=NONE
|
|
program_suffix=NONE
|
|
program_transform_name=s,x,x,
|
|
silent=
|
|
site=
|
|
sitefile=
|
|
srcdir=
|
|
target=NONE
|
|
verbose=
|
|
x_includes=NONE
|
|
x_libraries=NONE
|
|
bindir='${exec_prefix}/bin'
|
|
sbindir='${exec_prefix}/sbin'
|
|
libexecdir='${exec_prefix}/libexec'
|
|
datadir='${prefix}/share'
|
|
sysconfdir='${prefix}/etc'
|
|
sharedstatedir='${prefix}/com'
|
|
localstatedir='${prefix}/var'
|
|
libdir='${exec_prefix}/lib'
|
|
includedir='${prefix}/include'
|
|
oldincludedir='/usr/include'
|
|
infodir='${prefix}/info'
|
|
mandir='${prefix}/man'
|
|
|
|
# Initialize some other variables.
|
|
subdirs=
|
|
MFLAGS= MAKEFLAGS=
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
# Maximum number of lines to put in a shell here document.
|
|
ac_max_here_lines=12
|
|
|
|
ac_prev=
|
|
for ac_option
|
|
do
|
|
|
|
# If the previous option needs an argument, assign it.
|
|
if test -n "$ac_prev"; then
|
|
eval "$ac_prev=\$ac_option"
|
|
ac_prev=
|
|
continue
|
|
fi
|
|
|
|
case "$ac_option" in
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
*) ac_optarg= ;;
|
|
esac
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
case "$ac_option" in
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
ac_prev=bindir ;;
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
bindir="$ac_optarg" ;;
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
|
ac_prev=build ;;
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
build="$ac_optarg" ;;
|
|
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
ac_prev=cache_file ;;
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
cache_file="$ac_optarg" ;;
|
|
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
ac_prev=datadir ;;
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
| --da=*)
|
|
datadir="$ac_optarg" ;;
|
|
|
|
-disable-* | --disable-*)
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
fi
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
eval "enable_${ac_feature}=no" ;;
|
|
|
|
-enable-* | --enable-*)
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
fi
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
case "$ac_option" in
|
|
*=*) ;;
|
|
*) ac_optarg=yes ;;
|
|
esac
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
| --exec | --exe | --ex)
|
|
ac_prev=exec_prefix ;;
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
| --exec=* | --exe=* | --ex=*)
|
|
exec_prefix="$ac_optarg" ;;
|
|
|
|
-gas | --gas | --ga | --g)
|
|
# Obsolete; use --with-gas.
|
|
with_gas=yes ;;
|
|
|
|
-help | --help | --hel | --he)
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
cat << EOF
|
|
Usage: configure [options] [host]
|
|
Options: [defaults in brackets after descriptions]
|
|
Configuration:
|
|
--cache-file=FILE cache test results in FILE
|
|
--help print this message
|
|
--no-create do not create output files
|
|
--quiet, --silent do not print \`checking...' messages
|
|
--site-file=FILE use FILE as the site file
|
|
--version print the version of autoconf that created configure
|
|
Directory and file names:
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
[$ac_default_prefix]
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
[same as prefix]
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
|
[PREFIX/share]
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|
[PREFIX/com]
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
|
--program-transform-name=PROGRAM
|
|
run sed PROGRAM on installed program names
|
|
EOF
|
|
cat << EOF
|
|
Host type:
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
|
--host=HOST configure for HOST [guessed]
|
|
--target=TARGET configure for TARGET [TARGET=HOST]
|
|
Features and packages:
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
--x-includes=DIR X include files are in DIR
|
|
--x-libraries=DIR X library files are in DIR
|
|
EOF
|
|
if test -n "$ac_help"; then
|
|
echo "--enable and --with options recognized:$ac_help"
|
|
fi
|
|
exit 0 ;;
|
|
|
|
-host | --host | --hos | --ho)
|
|
ac_prev=host ;;
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
|
host="$ac_optarg" ;;
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
| --includ | --inclu | --incl | --inc)
|
|
ac_prev=includedir ;;
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
includedir="$ac_optarg" ;;
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
ac_prev=infodir ;;
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
infodir="$ac_optarg" ;;
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
ac_prev=libdir ;;
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
libdir="$ac_optarg" ;;
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
| --libexe | --libex | --libe)
|
|
ac_prev=libexecdir ;;
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
| --libexe=* | --libex=* | --libe=*)
|
|
libexecdir="$ac_optarg" ;;
|
|
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
| --localstate | --localstat | --localsta | --localst \
|
|
| --locals | --local | --loca | --loc | --lo)
|
|
ac_prev=localstatedir ;;
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|
localstatedir="$ac_optarg" ;;
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
ac_prev=mandir ;;
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
mandir="$ac_optarg" ;;
|
|
|
|
-nfp | --nfp | --nf)
|
|
# Obsolete; use --without-fp.
|
|
with_fp=no ;;
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
| --no-cr | --no-c)
|
|
no_create=yes ;;
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
no_recursion=yes ;;
|
|
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
| --oldin | --oldi | --old | --ol | --o)
|
|
ac_prev=oldincludedir ;;
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
oldincludedir="$ac_optarg" ;;
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
ac_prev=prefix ;;
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
prefix="$ac_optarg" ;;
|
|
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
| --program-pre | --program-pr | --program-p)
|
|
ac_prev=program_prefix ;;
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
program_prefix="$ac_optarg" ;;
|
|
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
| --program-suf | --program-su | --program-s)
|
|
ac_prev=program_suffix ;;
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
program_suffix="$ac_optarg" ;;
|
|
|
|
-program-transform-name | --program-transform-name \
|
|
| --program-transform-nam | --program-transform-na \
|
|
| --program-transform-n | --program-transform- \
|
|
| --program-transform | --program-transfor \
|
|
| --program-transfo | --program-transf \
|
|
| --program-trans | --program-tran \
|
|
| --progr-tra | --program-tr | --program-t)
|
|
ac_prev=program_transform_name ;;
|
|
-program-transform-name=* | --program-transform-name=* \
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
|
| --program-transform-n=* | --program-transform-=* \
|
|
| --program-transform=* | --program-transfor=* \
|
|
| --program-transfo=* | --program-transf=* \
|
|
| --program-trans=* | --program-tran=* \
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
|
program_transform_name="$ac_optarg" ;;
|
|
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
silent=yes ;;
|
|
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
ac_prev=sbindir ;;
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
| --sbi=* | --sb=*)
|
|
sbindir="$ac_optarg" ;;
|
|
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
|
| --sha | --sh)
|
|
ac_prev=sharedstatedir ;;
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
| --sha=* | --sh=*)
|
|
sharedstatedir="$ac_optarg" ;;
|
|
|
|
-site | --site | --sit)
|
|
ac_prev=site ;;
|
|
-site=* | --site=* | --sit=*)
|
|
site="$ac_optarg" ;;
|
|
|
|
-site-file | --site-file | --site-fil | --site-fi | --site-f)
|
|
ac_prev=sitefile ;;
|
|
-site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
|
|
sitefile="$ac_optarg" ;;
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
ac_prev=srcdir ;;
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
srcdir="$ac_optarg" ;;
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
ac_prev=sysconfdir ;;
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
sysconfdir="$ac_optarg" ;;
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
|
ac_prev=target ;;
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
target="$ac_optarg" ;;
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
verbose=yes ;;
|
|
|
|
-version | --version | --versio | --versi | --vers)
|
|
echo "configure generated by autoconf version 2.13"
|
|
exit 0 ;;
|
|
|
|
-with-* | --with-*)
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
fi
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
case "$ac_option" in
|
|
*=*) ;;
|
|
*) ac_optarg=yes ;;
|
|
esac
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
|
|
|
-without-* | --without-*)
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
fi
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
eval "with_${ac_package}=no" ;;
|
|
|
|
--x)
|
|
# Obsolete; use --with-x.
|
|
with_x=yes ;;
|
|
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
|
ac_prev=x_includes ;;
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
x_includes="$ac_optarg" ;;
|
|
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
ac_prev=x_libraries ;;
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
x_libraries="$ac_optarg" ;;
|
|
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
;;
|
|
|
|
*)
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|
fi
|
|
if test "x$nonopt" != xNONE; then
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|
fi
|
|
nonopt="$ac_option"
|
|
;;
|
|
|
|
esac
|
|
done
|
|
|
|
if test -n "$ac_prev"; then
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|
fi
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
# File descriptor usage:
|
|
# 0 standard input
|
|
# 1 file creation
|
|
# 2 errors and warnings
|
|
# 3 some systems may open it to /dev/tty
|
|
# 4 used on the Kubota Titan
|
|
# 6 checking for... messages and results
|
|
# 5 compiler messages saved in config.log
|
|
if test "$silent" = yes; then
|
|
exec 6>/dev/null
|
|
else
|
|
exec 6>&1
|
|
fi
|
|
exec 5>./config.log
|
|
|
|
echo "\
|
|
This file contains any messages produced by compilers while
|
|
running configure, to aid debugging if configure makes a mistake.
|
|
" 1>&5
|
|
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
# Also quote any args containing shell metacharacters.
|
|
ac_configure_args=
|
|
for ac_arg
|
|
do
|
|
case "$ac_arg" in
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
| --no-cr | --no-c) ;;
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
esac
|
|
done
|
|
|
|
# NLS nuisances.
|
|
# Only set these to C if already set. These must not be set unconditionally
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
# Non-C LC_CTYPE values break the ctype check.
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
rm -rf conftest* confdefs.h
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
echo > confdefs.h
|
|
|
|
# A filename unique to this package, relative to the directory that
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
|
ac_unique_file=main.c
|
|
|
|
# Find the source files, if location was not specified.
|
|
if test -z "$srcdir"; then
|
|
ac_srcdir_defaulted=yes
|
|
# Try the directory containing this script, then its parent.
|
|
ac_prog=$0
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
srcdir=$ac_confdir
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
srcdir=..
|
|
fi
|
|
else
|
|
ac_srcdir_defaulted=no
|
|
fi
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
else
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
|
|
# Prefer explicitly selected file to automatically selected ones.
|
|
if test -z "$sitefile"; then
|
|
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
|
|
else
|
|
CONFIG_SITE="$sitefile"
|
|
fi
|
|
for ac_site_file in $CONFIG_SITE; do
|
|
if test -r "$ac_site_file"; then
|
|
echo "loading site script $ac_site_file"
|
|
. "$ac_site_file"
|
|
fi
|
|
done
|
|
|
|
if test -r "$cache_file"; then
|
|
echo "loading cache $cache_file"
|
|
. $cache_file
|
|
else
|
|
echo "creating cache $cache_file"
|
|
> $cache_file
|
|
fi
|
|
|
|
ac_ext=c
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
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
|
|
|
|
|
|
|
|
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|
echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|
if test "${enable_maintainer_mode+set}" = set; then
|
|
enableval="$enable_maintainer_mode"
|
|
USE_MAINTAINER_MODE=$enableval
|
|
else
|
|
USE_MAINTAINER_MODE=no
|
|
fi
|
|
|
|
echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|
|
|
|
|
if test $USE_MAINTAINER_MODE = yes; then
|
|
MAINTAINER_MODE_TRUE=
|
|
MAINTAINER_MODE_FALSE='#'
|
|
else
|
|
MAINTAINER_MODE_TRUE='#'
|
|
MAINTAINER_MODE_FALSE=
|
|
fi
|
|
MAINT=$MAINTAINER_MODE_TRUE
|
|
|
|
|
|
|
|
# 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:615: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_CC="gcc"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test -z "$CC"; then
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
set dummy cc; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:645: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_prog_rejected=no
|
|
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"
|
|
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
|
|
if test $# -gt 0; then
|
|
# We chose a different compiler from the bogus one.
|
|
# However, it has the same basename, so the bogon will be chosen
|
|
# first if we set CC to just the basename; use the full file name.
|
|
shift
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
|
shift
|
|
ac_cv_prog_CC="$@"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
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:696: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_CC="cl"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
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
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
#line 739 "configure"
|
|
#include "confdefs.h"
|
|
|
|
main(){return(0);}
|
|
EOF
|
|
if { (eval echo configure:744: \"$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
|
|
else
|
|
ac_cv_prog_cc_cross=yes
|
|
fi
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
ac_cv_prog_cc_works=no
|
|
fi
|
|
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:770: 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:775: 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:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
ac_cv_prog_gcc=yes
|
|
else
|
|
ac_cv_prog_gcc=no
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
GCC=yes
|
|
else
|
|
GCC=
|
|
fi
|
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
CFLAGS=
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
echo "configure:803: 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
|
|
ac_cv_prog_cc_g=yes
|
|
else
|
|
ac_cv_prog_cc_g=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-g -O2"
|
|
else
|
|
CFLAGS="-g"
|
|
fi
|
|
else
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-O2"
|
|
else
|
|
CFLAGS=
|
|
fi
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _GNU_SOURCE 1
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
echo "configure:840: checking how to run the C preprocessor" >&5
|
|
# On Suns, sometimes $CPP names a directory.
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
CPP=
|
|
fi
|
|
if test -z "$CPP"; then
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
CPP="${CC-cc} -E"
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 855 "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:861: \"$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
|
|
:
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 872 "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:878: \"$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
|
|
:
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CPP="${CC-cc} -nologo -E"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 889 "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:895: \"$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
|
|
:
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CPP=/lib/cpp
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
rm -f conftest*
|
|
ac_cv_prog_CPP="$CPP"
|
|
fi
|
|
CPP="$ac_cv_prog_CPP"
|
|
else
|
|
ac_cv_prog_CPP="$CPP"
|
|
fi
|
|
echo "$ac_t""$CPP" 1>&6
|
|
|
|
echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
|
echo "configure:920: checking for AIX" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 922 "configure"
|
|
#include "confdefs.h"
|
|
#ifdef _AIX
|
|
yes
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "yes" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
#define _ALL_SOURCE 1
|
|
EOF
|
|
|
|
else
|
|
rm -rf conftest*
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|
echo "configure:944: checking for POSIXized ISC" >&5
|
|
if test -d /etc/conf/kconfig.d &&
|
|
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|
then
|
|
echo "$ac_t""yes" 1>&6
|
|
ISC=yes # If later tests want to check for ISC.
|
|
cat >> confdefs.h <<\EOF
|
|
#define _POSIX_SOURCE 1
|
|
EOF
|
|
|
|
if test "$GCC" = yes; then
|
|
CC="$CC -posix"
|
|
else
|
|
CC="$CC -Xp"
|
|
fi
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ISC=
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
|
echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
|
|
if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
am_cv_prog_cc_stdc=no
|
|
ac_save_CC="$CC"
|
|
# Don't try gcc -ansi; that turns off useful extensions and
|
|
# breaks some systems' header files.
|
|
# AIX -qlanglvl=ansi
|
|
# Ultrix and OSF/1 -std1
|
|
# HP-UX 10.20 and later -Ae
|
|
# HP-UX older versions -Aa -D_HPUX_SOURCE
|
|
# SVR4 -Xc -D__EXTENSIONS__
|
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
do
|
|
CC="$ac_save_CC $ac_arg"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 985 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
struct buf { int x; };
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
static char *e (p, i)
|
|
char **p;
|
|
int i;
|
|
{
|
|
return p[i];
|
|
}
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
{
|
|
char *s;
|
|
va_list v;
|
|
va_start (v,p);
|
|
s = g (p, va_arg (v,int));
|
|
va_end (v);
|
|
return s;
|
|
}
|
|
int test (int i, double x);
|
|
struct s1 {int (*f) (int a);};
|
|
struct s2 {int (*f) (double a);};
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
int argc;
|
|
char **argv;
|
|
|
|
int main() {
|
|
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
am_cv_prog_cc_stdc="$ac_arg"; break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
CC="$ac_save_CC"
|
|
|
|
fi
|
|
|
|
if test -z "$am_cv_prog_cc_stdc"; then
|
|
echo "$ac_t""none needed" 1>&6
|
|
else
|
|
echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
|
|
fi
|
|
case "x$am_cv_prog_cc_stdc" in
|
|
x|xno) ;;
|
|
*) CC="$CC $am_cv_prog_cc_stdc" ;;
|
|
esac
|
|
|
|
|
|
ac_aux_dir=
|
|
for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; 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
|
|
{ echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
|
|
fi
|
|
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.
|
|
|
|
|
|
# Do some error checking and defaulting for the host and target type.
|
|
# The inputs are:
|
|
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|
#
|
|
# The rules are:
|
|
# 1. You are not allowed to specify --host, --target, and nonopt at the
|
|
# same time.
|
|
# 2. Host defaults to nonopt.
|
|
# 3. If nonopt is not specified, then host defaults to the current host,
|
|
# as determined by config.guess.
|
|
# 4. Target and build default to nonopt.
|
|
# 5. If nonopt is not specified, then target and build default to host.
|
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
# will get canonicalized.
|
|
case $host---$target---$nonopt in
|
|
NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|
esac
|
|
|
|
|
|
# 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:1093: 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:1114: 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:1132: 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" &&
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
NONENONEs,x,x, &&
|
|
program_prefix=${target_alias}-
|
|
|
|
|
|
# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
|
|
# doesn't support cross-compilation, but the one from Autoconf 2.5x
|
|
# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
|
|
# deal with the lossage. Note that CY_GNU_GETTEXT currently calls
|
|
# AC_PROG_RANLIB. This can be removed when we switch to Autoconf
|
|
# 2.5x.
|
|
if test $host != $build; then
|
|
ac_tool_prefix=${host_alias}-
|
|
else
|
|
ac_tool_prefix=
|
|
fi
|
|
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:1170: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
if test -n "$RANLIB"; then
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# 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:1202: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_RANLIB="ranlib"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
fi
|
|
fi
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
if test -n "$RANLIB"; then
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
RANLIB=":"
|
|
fi
|
|
fi
|
|
|
|
|
|
ALL_LINGUAS=
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftestmake <<\EOF
|
|
all:
|
|
@echo 'ac_maketemp="${MAKE}"'
|
|
EOF
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
if test -n "$ac_maketemp"; then
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
|
else
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
|
fi
|
|
rm -f conftestmake
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
SET_MAKE=
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
|
fi
|
|
|
|
# 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:1266: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_RANLIB="ranlib"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
fi
|
|
fi
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
if test -n "$RANLIB"; then
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
echo "configure:1294: 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 1299 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:1307: \"$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*
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1324 "configure"
|
|
#include "confdefs.h"
|
|
#include <string.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1342 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1363 "configure"
|
|
#include "confdefs.h"
|
|
#include <ctype.h>
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
exit (0); }
|
|
|
|
EOF
|
|
if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
:
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
if test $ac_cv_header_stdc = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define STDC_HEADERS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
echo "configure:1398: checking for working const" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1403 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
/* Ultrix mips cc rejects this. */
|
|
typedef int charset[2]; const charset x;
|
|
/* SunOS 4.1.1 cc rejects this. */
|
|
char const *const *ccp;
|
|
char **p;
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
struct point {int x, y;};
|
|
static struct point const zero = {0,0};
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
|
It does not let you subtract one const X* pointer from another in an arm
|
|
of an if-expression whose if-part is not a constant expression */
|
|
const char *g = "string";
|
|
ccp = &g + (g ? g-g : 0);
|
|
/* HPUX 7.0 cc rejects these. */
|
|
++ccp;
|
|
p = (char**) ccp;
|
|
ccp = (char const *const *) p;
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
|
char *t;
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
|
*t++ = 0;
|
|
}
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
int x[] = {25, 17};
|
|
const int *foo = &x[0];
|
|
++foo;
|
|
}
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
typedef const int *iptr;
|
|
iptr p = 0;
|
|
++p;
|
|
}
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
struct s { int j; const int *ap[3]; };
|
|
struct s *b; b->j = 5;
|
|
}
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
const int foo = 10;
|
|
}
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_const=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_c_const=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
if test $ac_cv_c_const = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define const
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
echo "configure:1473: checking for inline" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_cv_c_inline=no
|
|
for ac_kw in inline __inline__ __inline; do
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1480 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
} $ac_kw foo() {
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_inline=$ac_kw; break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
case "$ac_cv_c_inline" in
|
|
inline | yes) ;;
|
|
no) cat >> confdefs.h <<\EOF
|
|
#define inline
|
|
EOF
|
|
;;
|
|
*) cat >> confdefs.h <<EOF
|
|
#define inline $ac_cv_c_inline
|
|
EOF
|
|
;;
|
|
esac
|
|
|
|
echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
echo "configure:1513: checking for off_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1518 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_off_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_off_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
if test $ac_cv_type_off_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define off_t long
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
echo "configure:1546: checking for size_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1551 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_size_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_size_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
if test $ac_cv_type_size_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define size_t unsigned
|
|
EOF
|
|
|
|
fi
|
|
|
|
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
# for constant arguments. Useless!
|
|
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|
echo "configure:1581: checking for working alloca.h" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1586 "configure"
|
|
#include "confdefs.h"
|
|
#include <alloca.h>
|
|
int main() {
|
|
char *p = alloca(2 * sizeof(int));
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_header_alloca_h=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_alloca_h=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
if test $ac_cv_header_alloca_h = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ALLOCA_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|
echo "configure:1614: checking for alloca" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1619 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef __GNUC__
|
|
# define alloca __builtin_alloca
|
|
#else
|
|
# ifdef _MSC_VER
|
|
# include <malloc.h>
|
|
# define alloca _alloca
|
|
# else
|
|
# if HAVE_ALLOCA_H
|
|
# include <alloca.h>
|
|
# else
|
|
# ifdef _AIX
|
|
#pragma alloca
|
|
# else
|
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
char *alloca ();
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
int main() {
|
|
char *p = (char *) alloca(1);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_func_alloca_works=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_func_alloca_works=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
if test $ac_cv_func_alloca_works = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ALLOCA 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $ac_cv_func_alloca_works = no; then
|
|
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
# that cause trouble. Some versions do not even contain alloca or
|
|
# contain a buggy version. If you still want to use their alloca,
|
|
# use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
ALLOCA=alloca.${ac_objext}
|
|
cat >> confdefs.h <<\EOF
|
|
#define C_ALLOCA 1
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|
echo "configure:1679: checking whether alloca needs Cray hooks" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1684 "configure"
|
|
#include "confdefs.h"
|
|
#if defined(CRAY) && ! defined(CRAY2)
|
|
webecray
|
|
#else
|
|
wenotbecray
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "webecray" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_os_cray=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_os_cray=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
if test $ac_cv_os_cray = yes; then
|
|
for ac_func in _getb67 GETB67 getb67; do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:1709: 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 1714 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1737: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define CRAY_STACKSEG_END $ac_func
|
|
EOF
|
|
|
|
break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
done
|
|
fi
|
|
|
|
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|
echo "configure:1764: checking stack direction for C alloca" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_c_stack_direction=0
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1772 "configure"
|
|
#include "confdefs.h"
|
|
find_stack_direction ()
|
|
{
|
|
static char *addr = 0;
|
|
auto char dummy;
|
|
if (addr == 0)
|
|
{
|
|
addr = &dummy;
|
|
return find_stack_direction ();
|
|
}
|
|
else
|
|
return (&dummy > addr) ? 1 : -1;
|
|
}
|
|
main ()
|
|
{
|
|
exit (find_stack_direction() < 0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_c_stack_direction=1
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_c_stack_direction=-1
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
EOF
|
|
|
|
fi
|
|
|
|
for ac_hdr in unistd.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:1816: 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 1821 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:1826: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in getpagesize
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:1855: 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 1860 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:1883: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
echo "configure:1908: checking for working mmap" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_func_mmap_fixed_mapped=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1916 "configure"
|
|
#include "confdefs.h"
|
|
|
|
/* Thanks to Mike Haertel and Jim Avera for this test.
|
|
Here is a matrix of mmap possibilities:
|
|
mmap private not fixed
|
|
mmap private fixed at somewhere currently unmapped
|
|
mmap private fixed at somewhere already mapped
|
|
mmap shared not fixed
|
|
mmap shared fixed at somewhere currently unmapped
|
|
mmap shared fixed at somewhere already mapped
|
|
For private mappings, we should verify that changes cannot be read()
|
|
back from the file, nor mmap's back from the file at a different
|
|
address. (There have been systems where private was not correctly
|
|
implemented like the infamous i386 svr4.0, and systems where the
|
|
VM page cache was not coherent with the filesystem buffer cache
|
|
like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|
For shared mappings, we should conversely verify that changes get
|
|
propogated back to all the places they're supposed to be.
|
|
|
|
Grep wants private fixed already mapped.
|
|
The main things grep needs to know about mmap are:
|
|
* does it exist and is it safe to write into the mmap'd area
|
|
* how to use it (BSD variants) */
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#include <sys/mman.h>
|
|
|
|
/* This mess was copied from the GNU getpagesize.h. */
|
|
#ifndef HAVE_GETPAGESIZE
|
|
# ifdef HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
# endif
|
|
|
|
/* Assume that all systems that can run configure have sys/param.h. */
|
|
# ifndef HAVE_SYS_PARAM_H
|
|
# define HAVE_SYS_PARAM_H 1
|
|
# endif
|
|
|
|
# ifdef _SC_PAGESIZE
|
|
# define getpagesize() sysconf(_SC_PAGESIZE)
|
|
# else /* no _SC_PAGESIZE */
|
|
# ifdef HAVE_SYS_PARAM_H
|
|
# include <sys/param.h>
|
|
# ifdef EXEC_PAGESIZE
|
|
# define getpagesize() EXEC_PAGESIZE
|
|
# else /* no EXEC_PAGESIZE */
|
|
# ifdef NBPG
|
|
# define getpagesize() NBPG * CLSIZE
|
|
# ifndef CLSIZE
|
|
# define CLSIZE 1
|
|
# endif /* no CLSIZE */
|
|
# else /* no NBPG */
|
|
# ifdef NBPC
|
|
# define getpagesize() NBPC
|
|
# else /* no NBPC */
|
|
# ifdef PAGESIZE
|
|
# define getpagesize() PAGESIZE
|
|
# endif /* PAGESIZE */
|
|
# endif /* no NBPC */
|
|
# endif /* no NBPG */
|
|
# endif /* no EXEC_PAGESIZE */
|
|
# else /* no HAVE_SYS_PARAM_H */
|
|
# define getpagesize() 8192 /* punt totally */
|
|
# endif /* no HAVE_SYS_PARAM_H */
|
|
# endif /* no _SC_PAGESIZE */
|
|
|
|
#endif /* no HAVE_GETPAGESIZE */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" { void *malloc(unsigned); }
|
|
#else
|
|
char *malloc();
|
|
#endif
|
|
|
|
int
|
|
main()
|
|
{
|
|
char *data, *data2, *data3;
|
|
int i, pagesize;
|
|
int fd;
|
|
|
|
pagesize = getpagesize();
|
|
|
|
/*
|
|
* First, make a file with some known garbage in it.
|
|
*/
|
|
data = malloc(pagesize);
|
|
if (!data)
|
|
exit(1);
|
|
for (i = 0; i < pagesize; ++i)
|
|
*(data + i) = rand();
|
|
umask(0);
|
|
fd = creat("conftestmmap", 0600);
|
|
if (fd < 0)
|
|
exit(1);
|
|
if (write(fd, data, pagesize) != pagesize)
|
|
exit(1);
|
|
close(fd);
|
|
|
|
/*
|
|
* Next, try to mmap the file at a fixed address which
|
|
* already has something else allocated at it. If we can,
|
|
* also make sure that we see the same garbage.
|
|
*/
|
|
fd = open("conftestmmap", O_RDWR);
|
|
if (fd < 0)
|
|
exit(1);
|
|
data2 = malloc(2 * pagesize);
|
|
if (!data2)
|
|
exit(1);
|
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|
exit(1);
|
|
for (i = 0; i < pagesize; ++i)
|
|
if (*(data + i) != *(data2 + i))
|
|
exit(1);
|
|
|
|
/*
|
|
* Finally, make sure that changes to the mapped area
|
|
* do not percolate back to the file as seen by read().
|
|
* (This is a bug on some variants of i386 svr4.0.)
|
|
*/
|
|
for (i = 0; i < pagesize; ++i)
|
|
*(data2 + i) = *(data2 + i) + 1;
|
|
data3 = malloc(pagesize);
|
|
if (!data3)
|
|
exit(1);
|
|
if (read(fd, data3, pagesize) != pagesize)
|
|
exit(1);
|
|
for (i = 0; i < pagesize; ++i)
|
|
if (*(data + i) != *(data3 + i))
|
|
exit(1);
|
|
close(fd);
|
|
unlink("conftestmmap");
|
|
exit(0);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_func_mmap_fixed_mapped=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_func_mmap_fixed_mapped=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|
if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MMAP 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|
unistd.h values.h sys/param.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:2084: 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 2089 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2094: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|
__argz_count __argz_stringify __argz_next
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:2124: 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 2129 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2152: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|
for ac_func in stpcpy
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:2181: 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 2186 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2209: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
fi
|
|
if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STPCPY 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_locale_h = yes; then
|
|
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|
echo "configure:2243: checking for LC_MESSAGES" >&5
|
|
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2248 "configure"
|
|
#include "confdefs.h"
|
|
#include <locale.h>
|
|
int main() {
|
|
return LC_MESSAGES
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
am_cv_val_LC_MESSAGES=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
am_cv_val_LC_MESSAGES=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|
if test $am_cv_val_LC_MESSAGES = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LC_MESSAGES 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|
echo "configure:2276: checking whether NLS is requested" >&5
|
|
# Check whether --enable-nls or --disable-nls was given.
|
|
if test "${enable_nls+set}" = set; then
|
|
enableval="$enable_nls"
|
|
USE_NLS=$enableval
|
|
else
|
|
USE_NLS=yes
|
|
fi
|
|
|
|
echo "$ac_t""$USE_NLS" 1>&6
|
|
|
|
|
|
USE_INCLUDED_LIBINTL=no
|
|
|
|
if test "$USE_NLS" = "yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define ENABLE_NLS 1
|
|
EOF
|
|
|
|
echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|
echo "configure:2296: checking whether included gettext is requested" >&5
|
|
# Check whether --with-included-gettext or --without-included-gettext was given.
|
|
if test "${with_included_gettext+set}" = set; then
|
|
withval="$with_included_gettext"
|
|
nls_cv_force_use_gnu_gettext=$withval
|
|
else
|
|
nls_cv_force_use_gnu_gettext=no
|
|
fi
|
|
|
|
echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|
|
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|
nls_cv_header_intl=
|
|
nls_cv_header_libgt=
|
|
CATOBJEXT=NONE
|
|
|
|
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|
echo "configure:2315: checking for libintl.h" >&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 2320 "configure"
|
|
#include "confdefs.h"
|
|
#include <libintl.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2325: \"$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
|
|
echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|
echo "configure:2342: checking for gettext in libc" >&5
|
|
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2347 "configure"
|
|
#include "confdefs.h"
|
|
#include <libintl.h>
|
|
int main() {
|
|
return (int) gettext ("")
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
gt_cv_func_gettext_libc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gt_cv_func_gettext_libc=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|
|
|
if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|
echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|
echo "configure:2370: checking for bindtextdomain in -lintl" >&5
|
|
ac_lib_var=`echo intl'_'bindtextdomain | 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="-lintl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2378 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char bindtextdomain();
|
|
|
|
int main() {
|
|
bindtextdomain()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2389: \"$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
|
|
echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|
echo "configure:2405: checking for gettext in libintl" >&5
|
|
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2410 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
return (int) gettext ("")
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
gt_cv_func_gettext_libintl=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gt_cv_func_gettext_libintl=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$gt_cv_func_gettext_libc" = "yes" \
|
|
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_GETTEXT 1
|
|
EOF
|
|
|
|
# Extract the first word of "msgfmt", so it can be a program name with args.
|
|
set dummy msgfmt; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2445: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$MSGFMT" in
|
|
/*)
|
|
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
for ac_dir in $PATH; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|
;;
|
|
esac
|
|
fi
|
|
MSGFMT="$ac_cv_path_MSGFMT"
|
|
if test -n "$MSGFMT"; then
|
|
echo "$ac_t""$MSGFMT" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
if test "$MSGFMT" != "no"; then
|
|
for ac_func in dcgettext
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:2479: 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 2484 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2507: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
# Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|
set dummy gmsgfmt; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2534: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$GMSGFMT" in
|
|
/*)
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|
;;
|
|
?:/*)
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|
;;
|
|
esac
|
|
fi
|
|
GMSGFMT="$ac_cv_path_GMSGFMT"
|
|
if test -n "$GMSGFMT"; then
|
|
echo "$ac_t""$GMSGFMT" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# Extract the first word of "xgettext", so it can be a program name with args.
|
|
set dummy xgettext; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2570: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$XGETTEXT" in
|
|
/*)
|
|
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
for ac_dir in $PATH; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|
;;
|
|
esac
|
|
fi
|
|
XGETTEXT="$ac_cv_path_XGETTEXT"
|
|
if test -n "$XGETTEXT"; then
|
|
echo "$ac_t""$XGETTEXT" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2602 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
extern int _nl_msg_cat_cntr;
|
|
return _nl_msg_cat_cntr
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
CATOBJEXT=.gmo
|
|
DATADIRNAME=share
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CATOBJEXT=.mo
|
|
DATADIRNAME=lib
|
|
fi
|
|
rm -f conftest*
|
|
INSTOBJEXT=.mo
|
|
fi
|
|
fi
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
if test "$CATOBJEXT" = "NONE"; then
|
|
nls_cv_use_gnu_gettext=yes
|
|
fi
|
|
fi
|
|
|
|
if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
INTLOBJS="\$(GETTOBJS)"
|
|
# Extract the first word of "msgfmt", so it can be a program name with args.
|
|
set dummy msgfmt; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2642: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$MSGFMT" in
|
|
/*)
|
|
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
for ac_dir in $PATH; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|
;;
|
|
esac
|
|
fi
|
|
MSGFMT="$ac_cv_path_MSGFMT"
|
|
if test -n "$MSGFMT"; then
|
|
echo "$ac_t""$MSGFMT" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|
set dummy gmsgfmt; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2676: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$GMSGFMT" in
|
|
/*)
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|
;;
|
|
?:/*)
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|
;;
|
|
esac
|
|
fi
|
|
GMSGFMT="$ac_cv_path_GMSGFMT"
|
|
if test -n "$GMSGFMT"; then
|
|
echo "$ac_t""$GMSGFMT" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# Extract the first word of "xgettext", so it can be a program name with args.
|
|
set dummy xgettext; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2712: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$XGETTEXT" in
|
|
/*)
|
|
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
for ac_dir in $PATH; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|
;;
|
|
esac
|
|
fi
|
|
XGETTEXT="$ac_cv_path_XGETTEXT"
|
|
if test -n "$XGETTEXT"; then
|
|
echo "$ac_t""$XGETTEXT" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
USE_INCLUDED_LIBINTL=yes
|
|
CATOBJEXT=.gmo
|
|
INSTOBJEXT=.mo
|
|
DATADIRNAME=share
|
|
INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|
INTLLIBS=$INTLDEPS
|
|
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|
nls_cv_header_intl=libintl.h
|
|
nls_cv_header_libgt=libgettext.h
|
|
fi
|
|
|
|
if test "$XGETTEXT" != ":"; then
|
|
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|
: ;
|
|
else
|
|
echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|
XGETTEXT=":"
|
|
fi
|
|
fi
|
|
|
|
# We need to process the po/ directory.
|
|
POSUB=po
|
|
else
|
|
DATADIRNAME=share
|
|
nls_cv_header_intl=libintl.h
|
|
nls_cv_header_libgt=libgettext.h
|
|
fi
|
|
|
|
# If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|
# because some of the sources are only built for this goal.
|
|
if test "$PACKAGE" = gettext; then
|
|
USE_NLS=yes
|
|
USE_INCLUDED_LIBINTL=yes
|
|
fi
|
|
|
|
for lang in $ALL_LINGUAS; do
|
|
GMOFILES="$GMOFILES $lang.gmo"
|
|
POFILES="$POFILES $lang.po"
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "x$CATOBJEXT" != "x"; then
|
|
if test "x$ALL_LINGUAS" = "x"; then
|
|
LINGUAS=
|
|
else
|
|
echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|
echo "configure:2802: checking for catalogs to be installed" >&5
|
|
NEW_LINGUAS=
|
|
for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|
case "$ALL_LINGUAS" in
|
|
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|
esac
|
|
done
|
|
LINGUAS=$NEW_LINGUAS
|
|
echo "$ac_t""$LINGUAS" 1>&6
|
|
fi
|
|
|
|
if test -n "$LINGUAS"; then
|
|
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|
fi
|
|
fi
|
|
|
|
if test $ac_cv_header_locale_h = yes; then
|
|
INCLUDE_LOCALE_H="#include <locale.h>"
|
|
else
|
|
INCLUDE_LOCALE_H="\
|
|
/* The system does not provide the header <locale.h>. Take care yourself. */"
|
|
fi
|
|
|
|
|
|
if test -f $srcdir/po2tbl.sed.in; then
|
|
if test "$CATOBJEXT" = ".cat"; then
|
|
ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|
echo "configure:2830: checking for linux/version.h" >&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 2835 "configure"
|
|
#include "confdefs.h"
|
|
#include <linux/version.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:2840: \"$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
|
|
msgformat=linux
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
msgformat=xopen
|
|
fi
|
|
|
|
|
|
sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|
fi
|
|
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|
$srcdir/po2tbl.sed.in > po2tbl.sed
|
|
fi
|
|
|
|
if test "$PACKAGE" = "gettext"; then
|
|
GT_NO="#NO#"
|
|
GT_YES=
|
|
else
|
|
GT_NO=
|
|
GT_YES="#YES#"
|
|
fi
|
|
|
|
|
|
|
|
MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|
|
|
|
|
l=
|
|
|
|
|
|
if test -f $srcdir/po/POTFILES.in; then
|
|
test -d po || mkdir po
|
|
if test "x$srcdir" != "x."; then
|
|
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
|
posrcprefix="$srcdir/"
|
|
else
|
|
posrcprefix="../$srcdir/"
|
|
fi
|
|
else
|
|
posrcprefix="../"
|
|
fi
|
|
rm -f po/POTFILES
|
|
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|
< $srcdir/po/POTFILES.in > po/POTFILES
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define PACKAGE "gdb"
|
|
EOF
|
|
|
|
|
|
debugdir=${libdir}/debug
|
|
|
|
# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
|
|
if test "${with_separate_debug_dir+set}" = set; then
|
|
withval="$with_separate_debug_dir"
|
|
debugdir="${withval}"
|
|
fi
|
|
|
|
|
|
|
|
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
ac_define_dir=`eval echo $debugdir`
|
|
ac_define_dir=`eval echo $ac_define_dir`
|
|
cat >> confdefs.h <<EOF
|
|
#define DEBUGDIR "$ac_define_dir"
|
|
EOF
|
|
|
|
|
|
#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
|
|
|
|
|
|
CONFIG_OBS=
|
|
CONFIG_DEPS=
|
|
CONFIG_SRCS=
|
|
ENABLE_CFLAGS=
|
|
CONFIG_ALL=
|
|
CONFIG_CLEAN=
|
|
CONFIG_INSTALL=
|
|
CONFIG_UNINSTALL=
|
|
|
|
subdirs="doc testsuite"
|
|
|
|
configdirs=
|
|
|
|
. $srcdir/configure.host
|
|
|
|
. $srcdir/configure.tgt
|
|
|
|
# Fetch the default architecture and default target vector from BFD.
|
|
targ=$target; . $srcdir/../bfd/config.bfd
|
|
|
|
# We only want the first architecture, so strip off the others if
|
|
# there is more than one.
|
|
targ_archs=`echo $targ_archs | sed 's/ .*//'`
|
|
|
|
if test "x$targ_archs" != x; then
|
|
cat >> confdefs.h <<EOF
|
|
#define DEFAULT_BFD_ARCH $targ_archs
|
|
EOF
|
|
|
|
fi
|
|
if test "x$targ_defvec" != x; then
|
|
cat >> confdefs.h <<EOF
|
|
#define DEFAULT_BFD_VEC $targ_defvec
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test "$program_transform_name" = s,x,x,; then
|
|
program_transform_name=
|
|
else
|
|
# Double any \ or $. echo might interpret backslashes.
|
|
cat <<\EOF_SED > conftestsed
|
|
s,\\,\\\\,g; s,\$,$$,g
|
|
EOF_SED
|
|
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|
rm -f conftestsed
|
|
fi
|
|
test "$program_prefix" != NONE &&
|
|
program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|
# Use a double $ so make ignores it.
|
|
test "$program_suffix" != NONE &&
|
|
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|
|
|
# sed with no file args requires a program.
|
|
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|
|
|
|
|
# The CLI cannot be disabled yet, but may be in the future.
|
|
|
|
# Enable CLI.
|
|
# Check whether --enable-gdbcli or --disable-gdbcli was given.
|
|
if test "${enable_gdbcli+set}" = set; then
|
|
enableval="$enable_gdbcli"
|
|
case $enableval in
|
|
yes)
|
|
;;
|
|
no)
|
|
{ echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
|
|
*)
|
|
{ echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
|
|
esac
|
|
else
|
|
enable_gdbcli=yes
|
|
fi
|
|
|
|
if test x"$enable_gdbcli" = xyes; then
|
|
if test -d $srcdir/cli; then
|
|
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
|
|
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
|
|
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
|
|
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
|
|
fi
|
|
fi
|
|
|
|
# Enable MI.
|
|
# Check whether --enable-gdbmi or --disable-gdbmi was given.
|
|
if test "${enable_gdbmi+set}" = set; then
|
|
enableval="$enable_gdbmi"
|
|
case $enableval in
|
|
yes | no)
|
|
;;
|
|
*)
|
|
{ echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
|
|
esac
|
|
else
|
|
enable_gdbmi=yes
|
|
fi
|
|
|
|
if test x"$enable_gdbmi" = xyes; then
|
|
if test -d $srcdir/mi; then
|
|
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
|
|
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
|
|
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
|
|
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
|
|
fi
|
|
fi
|
|
|
|
# Enable TUI.
|
|
# Check whether --enable-tui or --disable-tui was given.
|
|
if test "${enable_tui+set}" = set; then
|
|
enableval="$enable_tui"
|
|
case $enableval in
|
|
yes | no)
|
|
;;
|
|
*)
|
|
{ echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
|
|
esac
|
|
else
|
|
enable_tui=yes
|
|
fi
|
|
|
|
if test x"$enable_tui" = xyes; then
|
|
if test -d $srcdir/tui; then
|
|
if test "$ac_cv_search_initscr" != no -a "$ac_cv_search_wborder" != no; then
|
|
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
|
|
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
|
|
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
|
|
CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
|
|
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
|
|
CONFIG_ALL="${CONFIG_ALL} all-tui"
|
|
CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
|
|
CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
|
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# Enable gdbtk.
|
|
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
|
if test "${enable_gdbtk+set}" = set; then
|
|
enableval="$enable_gdbtk"
|
|
case $enableval in
|
|
yes | no)
|
|
;;
|
|
*)
|
|
{ echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
|
|
esac
|
|
else
|
|
if test -d $srcdir/gdbtk; then
|
|
enable_gdbtk=yes
|
|
else
|
|
enable_gdbtk=no
|
|
fi
|
|
fi
|
|
|
|
# We unconditionally disable gdbtk tests on selected platforms.
|
|
case $host_os in
|
|
go32* | windows*)
|
|
echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
|
|
enable_gdbtk=no ;;
|
|
esac
|
|
|
|
# Libunwind support.
|
|
# Check whether --with-libunwind or --without-libunwind was given.
|
|
if test "${with_libunwind+set}" = set; then
|
|
withval="$with_libunwind"
|
|
case "${withval}" in
|
|
yes) enable_libunwind=yes ;;
|
|
no) enable_libunwind=no ;;
|
|
*) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
|
|
esac
|
|
else
|
|
|
|
for ac_hdr in libunwind.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:3105: 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 3110 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3115: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in libunwind-ia64.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:3145: 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 3150 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3155: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
|
|
enable_libunwind=yes;
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
if test x"$enable_libunwind" = xyes; then
|
|
for ac_hdr in libunwind.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:3193: 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 3198 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3203: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in libunwind-ia64.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:3233: 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 3238 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3243: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LIBUNWIND 1
|
|
EOF
|
|
|
|
CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
|
|
CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
|
|
CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
|
|
fi
|
|
|
|
# Profiling support.
|
|
# Check whether --enable-profiling or --disable-profiling was given.
|
|
if test "${enable_profiling+set}" = set; then
|
|
enableval="$enable_profiling"
|
|
case $enableval in
|
|
yes | no)
|
|
;;
|
|
*)
|
|
{ echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
|
|
esac
|
|
else
|
|
enable_profiling=no
|
|
fi
|
|
|
|
|
|
for ac_func in monstartup _mcleanup
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:3296: 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 3301 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3324: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for _etext""... $ac_c" 1>&6
|
|
echo "configure:3349: checking for _etext" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3354 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
extern char _etext;
|
|
|
|
int main() {
|
|
free (&_etext);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_var__etext=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_var__etext=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_var__etext" 1>&6
|
|
if test $ac_cv_var__etext = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE__ETEXT 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$enable_profiling" = yes ; then
|
|
if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
|
|
{ echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
|
|
fi
|
|
PROFILE_CFLAGS=-pg
|
|
OLD_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS $PROFILE_CFLAGS"
|
|
|
|
echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
|
|
echo "configure:3391: checking whether $CC supports -pg" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3396 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
int x;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_cc_supports_pg=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_cc_supports_pg=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
|
|
|
|
if test $ac_cv_cc_supports_pg = no; then
|
|
{ echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
|
|
fi
|
|
|
|
CFLAGS="$OLD_CFLAGS"
|
|
fi
|
|
|
|
# --------------------- #
|
|
# Checks for programs. #
|
|
# --------------------- #
|
|
|
|
for ac_prog in mawk gawk nawk awk
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3433: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AWK"; then
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AWK="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
AWK="$ac_cv_prog_AWK"
|
|
if test -n "$AWK"; then
|
|
echo "$ac_t""$AWK" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$AWK" && break
|
|
done
|
|
|
|
# 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.
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
echo "configure:3474: checking for a BSD compatible install" >&5
|
|
if test -z "$INSTALL"; then
|
|
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
|
|
done
|
|
;;
|
|
esac
|
|
done
|
|
IFS="$ac_save_IFS"
|
|
|
|
fi
|
|
if test "${ac_cv_path_install+set}" = set; then
|
|
INSTALL="$ac_cv_path_install"
|
|
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.
|
|
INSTALL="$ac_install_sh"
|
|
fi
|
|
fi
|
|
echo "$ac_t""$INSTALL" 1>&6
|
|
|
|
# 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}'
|
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
echo "configure:3527: 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
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# 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:3550: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_RANLIB="ranlib"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
fi
|
|
fi
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
if test -n "$RANLIB"; then
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
for ac_prog in 'bison -y' byacc
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3582: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$YACC"; then
|
|
ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_YACC="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
YACC="$ac_cv_prog_YACC"
|
|
if test -n "$YACC"; then
|
|
echo "$ac_t""$YACC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$YACC" && break
|
|
done
|
|
test -n "$YACC" || YACC="yacc"
|
|
|
|
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3616: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AR"; then
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|
fi
|
|
fi
|
|
AR="$ac_cv_prog_AR"
|
|
if test -n "$AR"; then
|
|
echo "$ac_t""$AR" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3648: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$DLLTOOL"; then
|
|
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
|
|
fi
|
|
fi
|
|
DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
if test -n "$DLLTOOL"; then
|
|
echo "$ac_t""$DLLTOOL" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}windres; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3680: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$WINDRES"; then
|
|
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
|
|
fi
|
|
fi
|
|
WINDRES="$ac_cv_prog_WINDRES"
|
|
if test -n "$WINDRES"; then
|
|
echo "$ac_t""$WINDRES" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Needed for GNU/Hurd.
|
|
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}mig; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3714: checking for $ac_word" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$MIG"; then
|
|
ac_cv_prog_MIG="$MIG" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_MIG="${ac_tool_prefix}mig"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
|
|
fi
|
|
fi
|
|
MIG="$ac_cv_prog_MIG"
|
|
if test -n "$MIG"; then
|
|
echo "$ac_t""$MIG" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ---------------------- #
|
|
# Checks for libraries. #
|
|
# ---------------------- #
|
|
|
|
# We might need to link with -lm; most simulators need it.
|
|
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
|
echo "configure:3750: checking for main in -lm" >&5
|
|
ac_lib_var=`echo m'_'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="-lm $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3758 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3765: \"$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 m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lm $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
# We need to link with -lw to get `wctype' on Solaris before Solaris
|
|
# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
|
|
# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
|
|
# is known to have this problem). Therefore we avoid libw if we can.
|
|
echo $ac_n "checking for wctype""... $ac_c" 1>&6
|
|
echo "configure:3798: checking for wctype" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3803 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char wctype(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char wctype();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_wctype) || defined (__stub___wctype)
|
|
choke me
|
|
#else
|
|
wctype();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_wctype=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_wctype=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
|
|
echo "configure:3844: checking for wctype in -lw" >&5
|
|
ac_lib_var=`echo w'_'wctype | 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="-lw $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3852 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char wctype();
|
|
|
|
int main() {
|
|
wctype()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3863: \"$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 w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lw $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
|
|
|
|
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
|
|
echo "configure:3896: checking for library containing gethostbyname" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_func_search_save_LIBS="$LIBS"
|
|
ac_cv_search_gethostbyname="no"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3903 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char gethostbyname();
|
|
|
|
int main() {
|
|
gethostbyname()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_gethostbyname="none required"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
|
|
LIBS="-l$i $ac_func_search_save_LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3925 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char gethostbyname();
|
|
|
|
int main() {
|
|
gethostbyname()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_gethostbyname="-l$i"
|
|
break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
LIBS="$ac_func_search_save_LIBS"
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
|
|
if test "$ac_cv_search_gethostbyname" != "no"; then
|
|
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
|
|
|
|
else :
|
|
|
|
fi
|
|
|
|
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
|
|
|
|
echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
|
|
echo "configure:3960: checking for library containing socketpair" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_func_search_save_LIBS="$LIBS"
|
|
ac_cv_search_socketpair="no"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3967 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char socketpair();
|
|
|
|
int main() {
|
|
socketpair()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_socketpair="none required"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
test "$ac_cv_search_socketpair" = "no" && for i in socket; do
|
|
LIBS="-l$i $ac_func_search_save_LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3989 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char socketpair();
|
|
|
|
int main() {
|
|
socketpair()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_socketpair="-l$i"
|
|
break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
LIBS="$ac_func_search_save_LIBS"
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_search_socketpair" 1>&6
|
|
if test "$ac_cv_search_socketpair" != "no"; then
|
|
test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
|
|
|
|
else :
|
|
|
|
fi
|
|
|
|
# Since GDB uses Readline, we need termcap functionality, so we need
|
|
# to find a library that provides that. When GDB is configured with
|
|
# the TUI, we need full curses functionality.
|
|
|
|
case $host_os in
|
|
cygwin*)
|
|
if test -d $srcdir/libtermcap; then
|
|
LIBS="../libtermcap/libtermcap.a $LIBS"
|
|
ac_cv_search_tgetent="../libtermcap/libtermcap.a"
|
|
fi ;;
|
|
go32* | *djgpp*)
|
|
ac_cv_search_tgetent="none required"
|
|
;;
|
|
aix*)
|
|
# Readline prefers curses over termcap on AIX.
|
|
# ??? Why?
|
|
|
|
echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
|
|
echo "configure:4039: checking for library containing tgetent" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_func_search_save_LIBS="$LIBS"
|
|
ac_cv_search_tgetent="no"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4046 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char tgetent();
|
|
|
|
int main() {
|
|
tgetent()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_tgetent="none required"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
test "$ac_cv_search_tgetent" = "no" && for i in tinfo ncurses curses termcap; do
|
|
LIBS="-l$i $ac_func_search_save_LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4068 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char tgetent();
|
|
|
|
int main() {
|
|
tgetent()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_tgetent="-l$i"
|
|
break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
LIBS="$ac_func_search_save_LIBS"
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_search_tgetent" 1>&6
|
|
if test "$ac_cv_search_tgetent" != "no"; then
|
|
test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
|
|
|
|
else :
|
|
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
# Note: We used to check for libtermlib and libterminfo too, but
|
|
# Readline doesn't, so I think we're safe with leaving them out.
|
|
|
|
echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
|
|
echo "configure:4106: checking for library containing tgetent" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_func_search_save_LIBS="$LIBS"
|
|
ac_cv_search_tgetent="no"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4113 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char tgetent();
|
|
|
|
int main() {
|
|
tgetent()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_tgetent="none required"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
test "$ac_cv_search_tgetent" = "no" && for i in termcap tinfo ncurses Hcurses curses; do
|
|
LIBS="-l$i $ac_func_search_save_LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4135 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char tgetent();
|
|
|
|
int main() {
|
|
tgetent()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_tgetent="-l$i"
|
|
break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
LIBS="$ac_func_search_save_LIBS"
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_search_tgetent" 1>&6
|
|
if test "$ac_cv_search_tgetent" != "no"; then
|
|
test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
|
|
|
|
else :
|
|
|
|
fi
|
|
|
|
if test "$ac_cv_search_tgetent" = no; then
|
|
{ echo "configure: error: no termcap library found" 1>&2; exit 1; }
|
|
fi
|
|
|
|
# FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
|
|
# Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
|
|
# Makefile fragments. That's why we need to have `Hcurses' before
|
|
# `curses'. I don't see why we should use HP curses if a more
|
|
# standard curses is available, except that according to HP's
|
|
# documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
|
|
# HP-UX 10.10 and 10.20.
|
|
|
|
# FIXME: ncurses does not work on native alphaev68-dec-osf5.1,
|
|
# and probably other platforms. AC_SEARCH_LIBS finds the library
|
|
# in a place such as /usr/local/lib/libncurses.a, but does not
|
|
# do anything to look for the matching include files.
|
|
# -- chastain 2004-05-01
|
|
|
|
|
|
echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
|
|
echo "configure:4187: checking for library containing initscr" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_func_search_save_LIBS="$LIBS"
|
|
ac_cv_search_initscr="no"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4194 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char initscr();
|
|
|
|
int main() {
|
|
initscr()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_initscr="none required"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
test "$ac_cv_search_initscr" = "no" && for i in ncurses Hcurses curses pdcurses; do
|
|
LIBS="-l$i $ac_func_search_save_LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4216 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char initscr();
|
|
|
|
int main() {
|
|
initscr()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_initscr="-l$i"
|
|
break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
LIBS="$ac_func_search_save_LIBS"
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_search_initscr" 1>&6
|
|
if test "$ac_cv_search_initscr" != "no"; then
|
|
test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
|
|
|
|
else :
|
|
echo "configure: warning: no curses library found" 1>&2
|
|
fi
|
|
|
|
# Check whether the wborder function is provided by the curses
|
|
# library detected above. In certain implementations such as
|
|
# the HP/UX Hcurses for instance, this function is provided by an
|
|
# additional library. So if we did not find this function inside
|
|
# the curses library, try some alternate libraries we know might
|
|
# provide it.
|
|
|
|
echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
|
|
echo "configure:4256: checking for library containing wborder" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_func_search_save_LIBS="$LIBS"
|
|
ac_cv_search_wborder="no"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4263 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char wborder();
|
|
|
|
int main() {
|
|
wborder()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_wborder="none required"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
test "$ac_cv_search_wborder" = "no" && for i in cur_colr; do
|
|
LIBS="-l$i $ac_func_search_save_LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4285 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char wborder();
|
|
|
|
int main() {
|
|
wborder()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_search_wborder="-l$i"
|
|
break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
LIBS="$ac_func_search_save_LIBS"
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_search_wborder" 1>&6
|
|
if test "$ac_cv_search_wborder" != "no"; then
|
|
test "$ac_cv_search_wborder" = "none required" || LIBS="$ac_cv_search_wborder $LIBS"
|
|
|
|
else :
|
|
echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
|
|
fi
|
|
|
|
# ------------------------- #
|
|
# Checks for header files. #
|
|
# ------------------------- #
|
|
|
|
ac_header_dirent=no
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
|
echo "configure:4326: checking for $ac_hdr that defines DIR" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4331 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <$ac_hdr>
|
|
int main() {
|
|
DIR *dirp = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_dirent_$ac_safe=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_dirent_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
ac_header_dirent=$ac_hdr; break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|
if test $ac_header_dirent = dirent.h; then
|
|
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
|
echo "configure:4364: checking for opendir in -ldir" >&5
|
|
ac_lib_var=`echo dir'_'opendir | 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="-ldir $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4372 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char opendir();
|
|
|
|
int main() {
|
|
opendir()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4383: \"$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
|
|
LIBS="$LIBS -ldir"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
|
echo "configure:4405: checking for opendir in -lx" >&5
|
|
ac_lib_var=`echo x'_'opendir | 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="-lx $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4413 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char opendir();
|
|
|
|
int main() {
|
|
opendir()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4424: \"$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
|
|
LIBS="$LIBS -lx"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
|
|
echo "configure:4447: checking whether stat file-mode macros are broken" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4452 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
|
|
#if defined(S_ISBLK) && defined(S_IFDIR)
|
|
# if S_ISBLK (S_IFDIR)
|
|
You lose.
|
|
# endif
|
|
#endif
|
|
|
|
#if defined(S_ISBLK) && defined(S_IFCHR)
|
|
# if S_ISBLK (S_IFCHR)
|
|
You lose.
|
|
# endif
|
|
#endif
|
|
|
|
#if defined(S_ISLNK) && defined(S_IFREG)
|
|
# if S_ISLNK (S_IFREG)
|
|
You lose.
|
|
# endif
|
|
#endif
|
|
|
|
#if defined(S_ISSOCK) && defined(S_IFREG)
|
|
# if S_ISSOCK (S_IFREG)
|
|
You lose.
|
|
# endif
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "You lose" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_header_stat_broken=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stat_broken=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
|
|
if test $ac_cv_header_stat_broken = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define STAT_MACROS_BROKEN 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
echo "configure:4503: 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 4508 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4516: \"$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*
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4533 "configure"
|
|
#include "confdefs.h"
|
|
#include <string.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4551 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4572 "configure"
|
|
#include "confdefs.h"
|
|
#include <ctype.h>
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
exit (0); }
|
|
|
|
EOF
|
|
if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
:
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
if test $ac_cv_header_stdc = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define STDC_HEADERS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
for ac_hdr in link.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4610: 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 4615 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4620: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in machine/reg.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4650: 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 4655 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4660: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in nlist.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4690: 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 4695 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4700: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in poll.h sys/poll.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4730: 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 4735 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4740: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in proc_service.h thread_db.h gnu/libc-version.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4770: 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 4775 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4780: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in stddef.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4810: 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 4815 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4820: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in stdlib.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4850: 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 4855 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4860: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in stdint.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4890: 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 4895 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4900: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in string.h memory.h strings.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4930: 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 4935 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4940: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/fault.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4970: 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 4975 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4980: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/file.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5010: 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 5015 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5020: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/filio.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5050: 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 5055 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5060: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/ioctl.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5090: 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 5095 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5100: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/param.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5130: 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 5135 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5140: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/proc.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5170: 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 5175 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5180: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/procfs.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5210: 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 5215 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5220: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/ptrace.h ptrace.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5250: 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 5255 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5260: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/reg.h sys/debugreg.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5290: 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 5295 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5300: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/select.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5330: 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 5335 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5340: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/syscall.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5370: 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 5375 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5380: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/user.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5410: 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 5415 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5420: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in sys/wait.h wait.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5450: 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 5455 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5460: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in termios.h termio.h sgtty.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5490: 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 5495 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5500: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in unistd.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5530: 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 5535 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5540: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
# On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
|
|
# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
|
|
# think that we don't have <curses.h> if we're using GCC.
|
|
case $host_os in
|
|
solaris2.[78])
|
|
if test "$GCC" = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define _MSE_INT_H 1
|
|
EOF
|
|
|
|
fi ;;
|
|
esac
|
|
for ac_hdr in curses.h ncurses.h term.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5583: 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 5588 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5593: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
# FIXME: kettenis/20030102: In most cases we include these
|
|
# unconditionally, so what's the point in checking these?
|
|
for ac_hdr in ctype.h time.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5626: 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 5631 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5636: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
|
|
echo "configure:5664: checking for member st_blocks in struct stat" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5669 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
int main() {
|
|
struct stat st; (void) st.st_blocks;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_stat_with_st_blocks_member=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_stat_with_st_blocks_member=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
|
|
if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
|
|
EOF
|
|
|
|
fi
|
|
# ------------------------- #
|
|
# Checks for declarations. #
|
|
# ------------------------- #
|
|
|
|
for ac_func in getopt
|
|
do
|
|
ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
|
|
echo "configure:5704: checking whether $ac_func is declared" >&5
|
|
if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5709 "configure"
|
|
#include "confdefs.h"
|
|
#undef $ac_tr_decl
|
|
#define $ac_tr_decl 1
|
|
|
|
|
|
int main() {
|
|
#ifndef $ac_func
|
|
char *(*pfn) = (char *(*)) $ac_func ;
|
|
#endif
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
eval "gcc_cv_have_decl_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "gcc_cv_have_decl_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
|
|
#define $ac_tr_decl 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
|
|
#define $ac_tr_decl 0
|
|
EOF
|
|
|
|
fi
|
|
|
|
done
|
|
if test x = y ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DECL_GETOPT 1
|
|
EOF
|
|
fi
|
|
|
|
|
|
# ------------------ #
|
|
# Checks for types. #
|
|
# ------------------ #
|
|
|
|
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
echo "configure:5758: 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
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5763 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <signal.h>
|
|
#ifdef signal
|
|
#undef signal
|
|
#endif
|
|
#ifdef __cplusplus
|
|
extern "C" void (*signal (int, void (*)(int)))(int);
|
|
#else
|
|
void (*signal ()) ();
|
|
#endif
|
|
|
|
int main() {
|
|
int i;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_type_signal=void
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_type_signal=int
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
|
EOF
|
|
|
|
|
|
|
|
# ------------------------------------- #
|
|
# Checks for compiler characteristics. #
|
|
# ------------------------------------- #
|
|
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
echo "configure:5804: checking for working const" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5809 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
/* Ultrix mips cc rejects this. */
|
|
typedef int charset[2]; const charset x;
|
|
/* SunOS 4.1.1 cc rejects this. */
|
|
char const *const *ccp;
|
|
char **p;
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
struct point {int x, y;};
|
|
static struct point const zero = {0,0};
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
|
It does not let you subtract one const X* pointer from another in an arm
|
|
of an if-expression whose if-part is not a constant expression */
|
|
const char *g = "string";
|
|
ccp = &g + (g ? g-g : 0);
|
|
/* HPUX 7.0 cc rejects these. */
|
|
++ccp;
|
|
p = (char**) ccp;
|
|
ccp = (char const *const *) p;
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
|
char *t;
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
|
*t++ = 0;
|
|
}
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
int x[] = {25, 17};
|
|
const int *foo = &x[0];
|
|
++foo;
|
|
}
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
typedef const int *iptr;
|
|
iptr p = 0;
|
|
++p;
|
|
}
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
struct s { int j; const int *ap[3]; };
|
|
struct s *b; b->j = 5;
|
|
}
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
const int foo = 10;
|
|
}
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_const=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_c_const=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
if test $ac_cv_c_const = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define const
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
echo "configure:5879: checking for inline" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_cv_c_inline=no
|
|
for ac_kw in inline __inline__ __inline; do
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5886 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
} $ac_kw foo() {
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_inline=$ac_kw; break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
case "$ac_cv_c_inline" in
|
|
inline | yes) ;;
|
|
no) cat >> confdefs.h <<\EOF
|
|
#define inline
|
|
EOF
|
|
;;
|
|
*) cat >> confdefs.h <<EOF
|
|
#define inline $ac_cv_c_inline
|
|
EOF
|
|
;;
|
|
esac
|
|
|
|
|
|
# ------------------------------ #
|
|
# Checks for library functions. #
|
|
# ------------------------------ #
|
|
|
|
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
# for constant arguments. Useless!
|
|
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|
echo "configure:5926: checking for working alloca.h" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5931 "configure"
|
|
#include "confdefs.h"
|
|
#include <alloca.h>
|
|
int main() {
|
|
char *p = alloca(2 * sizeof(int));
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_header_alloca_h=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_alloca_h=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
if test $ac_cv_header_alloca_h = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ALLOCA_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|
echo "configure:5959: checking for alloca" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5964 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef __GNUC__
|
|
# define alloca __builtin_alloca
|
|
#else
|
|
# ifdef _MSC_VER
|
|
# include <malloc.h>
|
|
# define alloca _alloca
|
|
# else
|
|
# if HAVE_ALLOCA_H
|
|
# include <alloca.h>
|
|
# else
|
|
# ifdef _AIX
|
|
#pragma alloca
|
|
# else
|
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
char *alloca ();
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
int main() {
|
|
char *p = (char *) alloca(1);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ac_cv_func_alloca_works=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_func_alloca_works=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
if test $ac_cv_func_alloca_works = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ALLOCA 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $ac_cv_func_alloca_works = no; then
|
|
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
# that cause trouble. Some versions do not even contain alloca or
|
|
# contain a buggy version. If you still want to use their alloca,
|
|
# use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
ALLOCA=alloca.${ac_objext}
|
|
cat >> confdefs.h <<\EOF
|
|
#define C_ALLOCA 1
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|
echo "configure:6024: checking whether alloca needs Cray hooks" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6029 "configure"
|
|
#include "confdefs.h"
|
|
#if defined(CRAY) && ! defined(CRAY2)
|
|
webecray
|
|
#else
|
|
wenotbecray
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "webecray" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_os_cray=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_os_cray=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
if test $ac_cv_os_cray = yes; then
|
|
for ac_func in _getb67 GETB67 getb67; do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6054: 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 6059 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6082: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define CRAY_STACKSEG_END $ac_func
|
|
EOF
|
|
|
|
break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
done
|
|
fi
|
|
|
|
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|
echo "configure:6109: checking stack direction for C alloca" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_c_stack_direction=0
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6117 "configure"
|
|
#include "confdefs.h"
|
|
find_stack_direction ()
|
|
{
|
|
static char *addr = 0;
|
|
auto char dummy;
|
|
if (addr == 0)
|
|
{
|
|
addr = &dummy;
|
|
return find_stack_direction ();
|
|
}
|
|
else
|
|
return (&dummy > addr) ? 1 : -1;
|
|
}
|
|
main ()
|
|
{
|
|
exit (find_stack_direction() < 0);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_c_stack_direction=1
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_c_stack_direction=-1
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
EOF
|
|
|
|
fi
|
|
|
|
for ac_hdr in unistd.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:6161: 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 6166 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:6171: \"$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
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in getpagesize
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6200: 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 6205 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6228: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
echo "configure:6253: checking for working mmap" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_func_mmap_fixed_mapped=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6261 "configure"
|
|
#include "confdefs.h"
|
|
|
|
/* Thanks to Mike Haertel and Jim Avera for this test.
|
|
Here is a matrix of mmap possibilities:
|
|
mmap private not fixed
|
|
mmap private fixed at somewhere currently unmapped
|
|
mmap private fixed at somewhere already mapped
|
|
mmap shared not fixed
|
|
mmap shared fixed at somewhere currently unmapped
|
|
mmap shared fixed at somewhere already mapped
|
|
For private mappings, we should verify that changes cannot be read()
|
|
back from the file, nor mmap's back from the file at a different
|
|
address. (There have been systems where private was not correctly
|
|
implemented like the infamous i386 svr4.0, and systems where the
|
|
VM page cache was not coherent with the filesystem buffer cache
|
|
like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|
For shared mappings, we should conversely verify that changes get
|
|
propogated back to all the places they're supposed to be.
|
|
|
|
Grep wants private fixed already mapped.
|
|
The main things grep needs to know about mmap are:
|
|
* does it exist and is it safe to write into the mmap'd area
|
|
* how to use it (BSD variants) */
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
#include <sys/mman.h>
|
|
|
|
/* This mess was copied from the GNU getpagesize.h. */
|
|
#ifndef HAVE_GETPAGESIZE
|
|
# ifdef HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
# endif
|
|
|
|
/* Assume that all systems that can run configure have sys/param.h. */
|
|
# ifndef HAVE_SYS_PARAM_H
|
|
# define HAVE_SYS_PARAM_H 1
|
|
# endif
|
|
|
|
# ifdef _SC_PAGESIZE
|
|
# define getpagesize() sysconf(_SC_PAGESIZE)
|
|
# else /* no _SC_PAGESIZE */
|
|
# ifdef HAVE_SYS_PARAM_H
|
|
# include <sys/param.h>
|
|
# ifdef EXEC_PAGESIZE
|
|
# define getpagesize() EXEC_PAGESIZE
|
|
# else /* no EXEC_PAGESIZE */
|
|
# ifdef NBPG
|
|
# define getpagesize() NBPG * CLSIZE
|
|
# ifndef CLSIZE
|
|
# define CLSIZE 1
|
|
# endif /* no CLSIZE */
|
|
# else /* no NBPG */
|
|
# ifdef NBPC
|
|
# define getpagesize() NBPC
|
|
# else /* no NBPC */
|
|
# ifdef PAGESIZE
|
|
# define getpagesize() PAGESIZE
|
|
# endif /* PAGESIZE */
|
|
# endif /* no NBPC */
|
|
# endif /* no NBPG */
|
|
# endif /* no EXEC_PAGESIZE */
|
|
# else /* no HAVE_SYS_PARAM_H */
|
|
# define getpagesize() 8192 /* punt totally */
|
|
# endif /* no HAVE_SYS_PARAM_H */
|
|
# endif /* no _SC_PAGESIZE */
|
|
|
|
#endif /* no HAVE_GETPAGESIZE */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" { void *malloc(unsigned); }
|
|
#else
|
|
char *malloc();
|
|
#endif
|
|
|
|
int
|
|
main()
|
|
{
|
|
char *data, *data2, *data3;
|
|
int i, pagesize;
|
|
int fd;
|
|
|
|
pagesize = getpagesize();
|
|
|
|
/*
|
|
* First, make a file with some known garbage in it.
|
|
*/
|
|
data = malloc(pagesize);
|
|
if (!data)
|
|
exit(1);
|
|
for (i = 0; i < pagesize; ++i)
|
|
*(data + i) = rand();
|
|
umask(0);
|
|
fd = creat("conftestmmap", 0600);
|
|
if (fd < 0)
|
|
exit(1);
|
|
if (write(fd, data, pagesize) != pagesize)
|
|
exit(1);
|
|
close(fd);
|
|
|
|
/*
|
|
* Next, try to mmap the file at a fixed address which
|
|
* already has something else allocated at it. If we can,
|
|
* also make sure that we see the same garbage.
|
|
*/
|
|
fd = open("conftestmmap", O_RDWR);
|
|
if (fd < 0)
|
|
exit(1);
|
|
data2 = malloc(2 * pagesize);
|
|
if (!data2)
|
|
exit(1);
|
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|
exit(1);
|
|
for (i = 0; i < pagesize; ++i)
|
|
if (*(data + i) != *(data2 + i))
|
|
exit(1);
|
|
|
|
/*
|
|
* Finally, make sure that changes to the mapped area
|
|
* do not percolate back to the file as seen by read().
|
|
* (This is a bug on some variants of i386 svr4.0.)
|
|
*/
|
|
for (i = 0; i < pagesize; ++i)
|
|
*(data2 + i) = *(data2 + i) + 1;
|
|
data3 = malloc(pagesize);
|
|
if (!data3)
|
|
exit(1);
|
|
if (read(fd, data3, pagesize) != pagesize)
|
|
exit(1);
|
|
for (i = 0; i < pagesize; ++i)
|
|
if (*(data + i) != *(data3 + i))
|
|
exit(1);
|
|
close(fd);
|
|
unlink("conftestmmap");
|
|
exit(0);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_func_mmap_fixed_mapped=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_func_mmap_fixed_mapped=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|
if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MMAP 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
echo "configure:6424: checking for pid_t" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6429 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_pid_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_pid_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
if test $ac_cv_type_pid_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define pid_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
|
echo "configure:6458: checking for vfork.h" >&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 6463 "configure"
|
|
#include "confdefs.h"
|
|
#include <vfork.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:6468: \"$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
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_VFORK_H 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
|
echo "configure:6493: checking for working vfork" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
echo $ac_n "checking for vfork""... $ac_c" 1>&6
|
|
echo "configure:6499: checking for vfork" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6504 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char vfork(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char vfork();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_vfork) || defined (__stub___vfork)
|
|
choke me
|
|
#else
|
|
vfork();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_vfork=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_vfork=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6549 "configure"
|
|
#include "confdefs.h"
|
|
/* Thanks to Paul Eggert for this test. */
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
#ifdef HAVE_VFORK_H
|
|
#include <vfork.h>
|
|
#endif
|
|
/* On some sparc systems, changes by the child to local and incoming
|
|
argument registers are propagated back to the parent.
|
|
The compiler is told about this with #include <vfork.h>,
|
|
but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
Test for this by using a static variable whose address
|
|
is put into a register that is clobbered by the vfork. */
|
|
static
|
|
#ifdef __cplusplus
|
|
sparc_address_test (int arg)
|
|
#else
|
|
sparc_address_test (arg) int arg;
|
|
#endif
|
|
{
|
|
static pid_t child;
|
|
if (!child) {
|
|
child = vfork ();
|
|
if (child < 0) {
|
|
perror ("vfork");
|
|
_exit(2);
|
|
}
|
|
if (!child) {
|
|
arg = getpid();
|
|
write(-1, "", 0);
|
|
_exit (arg);
|
|
}
|
|
}
|
|
}
|
|
main() {
|
|
pid_t parent = getpid ();
|
|
pid_t child;
|
|
|
|
sparc_address_test ();
|
|
|
|
child = vfork ();
|
|
|
|
if (child == 0) {
|
|
/* Here is another test for sparc vfork register problems.
|
|
This test uses lots of local variables, at least
|
|
as many local variables as main has allocated so far
|
|
including compiler temporaries. 4 locals are enough for
|
|
gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
|
A buggy compiler should reuse the register of parent
|
|
for one of the local variables, since it will think that
|
|
parent can't possibly be used any more in this routine.
|
|
Assigning to the local variable will thus munge parent
|
|
in the parent process. */
|
|
pid_t
|
|
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
/* Convince the compiler that p..p7 are live; otherwise, it might
|
|
use the same hardware register for all 8 local variables. */
|
|
if (p != p1 || p != p2 || p != p3 || p != p4
|
|
|| p != p5 || p != p6 || p != p7)
|
|
_exit(1);
|
|
|
|
/* On some systems (e.g. IRIX 3.3),
|
|
vfork doesn't separate parent from child file descriptors.
|
|
If the child closes a descriptor before it execs or exits,
|
|
this munges the parent's descriptor as well.
|
|
Test for this by closing stdout in the child. */
|
|
_exit(close(fileno(stdout)) != 0);
|
|
} else {
|
|
int status;
|
|
struct stat st;
|
|
|
|
while (wait(&status) != child)
|
|
;
|
|
exit(
|
|
/* Was there some problem with vforking? */
|
|
child < 0
|
|
|
|
/* Did the child fail? (This shouldn't happen.) */
|
|
|| status
|
|
|
|
/* Did the vfork/compiler bug occur? */
|
|
|| parent != getpid()
|
|
|
|
/* Did the file descriptor bug occur? */
|
|
|| fstat(fileno(stdout), &st) != 0
|
|
);
|
|
}
|
|
}
|
|
EOF
|
|
if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_func_vfork_works=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_func_vfork_works=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
|
if test $ac_cv_func_vfork_works = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define vfork fork
|
|
EOF
|
|
|
|
fi
|
|
|
|
for ac_func in canonicalize_file_name realpath
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6669: 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 6674 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6697: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in poll
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6724: 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 6729 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6752: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in pread64
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6779: 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 6784 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6807: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in sbrk
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6834: 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 6839 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6862: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in setpgid setpgrp
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6889: 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 6894 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6917: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in sigaction sigprocmask sigsetmask
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6944: 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 6949 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6972: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in socketpair
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6999: 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 7004 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7027: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in syscall
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:7054: 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 7059 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
$ac_func();
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7082: \"$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
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test "$cross_compiling" = no; then
|
|
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
|
|
echo "configure:7109: checking whether setpgrp takes no argument" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
{ echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7117 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
/*
|
|
* If this system has a BSD-style setpgrp, which takes arguments, exit
|
|
* successfully.
|
|
*/
|
|
main()
|
|
{
|
|
if (setpgrp(1,1) == -1)
|
|
exit(0);
|
|
else
|
|
exit(1);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_func_setpgrp_void=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_func_setpgrp_void=yes
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
|
|
if test $ac_cv_func_setpgrp_void = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SETPGRP_VOID 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
else
|
|
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
|
|
echo "configure:7162: checking whether setpgrp takes no argument" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7167 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <unistd.h>
|
|
|
|
int main() {
|
|
|
|
if (setpgrp(1,1) == -1)
|
|
exit (0);
|
|
else
|
|
exit (1);
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_func_setpgrp_void=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_func_setpgrp_void=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
|
|
if test $ac_cv_func_setpgrp_void = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SETPGRP_VOID 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
|
|
# since sigsetjmp might only be defined as a macro.
|
|
echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
|
echo "configure:7205: checking for sigsetjmp" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7210 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <setjmp.h>
|
|
|
|
int main() {
|
|
sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_func_sigsetjmp=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_func_sigsetjmp=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
|
|
if test $gdb_cv_func_sigsetjmp = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SIGSETJMP 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# Assume we'll default to using the included libiberty regex.
|
|
gdb_use_included_regex=yes
|
|
|
|
# However, if the system regex is GNU regex, then default to *not*
|
|
# using the included regex.
|
|
echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
|
|
echo "configure:7245: checking for GNU regex" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7250 "configure"
|
|
#include "confdefs.h"
|
|
#include <gnu-versions.h>
|
|
int main() {
|
|
#define REGEX_INTERFACE_VERSION 1
|
|
#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
|
|
# error "Version mismatch"
|
|
#endif
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_gnu_regex=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_gnu_regex=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
|
|
if test $gdb_cv_have_gnu_regex = yes; then
|
|
gdb_use_included_regex=no
|
|
fi
|
|
|
|
# Check whether --with-included-regex or --without-included-regex was given.
|
|
if test "${with_included_regex+set}" = set; then
|
|
withval="$with_included_regex"
|
|
gdb_with_regex=$withval
|
|
else
|
|
gdb_with_regex=$gdb_use_included_regex
|
|
fi
|
|
|
|
if test "$gdb_with_regex" = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define USE_INCLUDED_REGEX 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if <machine/reg.h> degines `struct reg'.
|
|
echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
|
|
echo "configure:7294: checking for struct reg in machine/reg.h" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7299 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <machine/reg.h>
|
|
int main() {
|
|
struct reg r;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_struct_reg=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_struct_reg=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_struct_reg" 1>&6
|
|
if test $gdb_cv_struct_reg = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_REG 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
|
|
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
|
|
echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
|
|
echo "configure:7330: checking for r_fs in struct reg" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7335 "configure"
|
|
#include "confdefs.h"
|
|
#include <machine/reg.h>
|
|
int main() {
|
|
struct reg r; r.r_fs;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_struct_reg_r_fs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_struct_reg_r_fs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
|
|
if test $gdb_cv_struct_reg_r_fs = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_REG_R_FS 1
|
|
EOF
|
|
|
|
fi
|
|
echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
|
|
echo "configure:7362: checking for r_gs in struct reg" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7367 "configure"
|
|
#include "confdefs.h"
|
|
#include <machine/reg.h>
|
|
int main() {
|
|
struct reg r; r.r_gs;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_struct_reg_r_gs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_struct_reg_r_gs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
|
|
if test $gdb_cv_struct_reg_r_gs = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_REG_R_GS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
|
|
echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
|
|
echo "configure:7396: checking for PTRACE_GETREGS" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7401 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/ptrace.h>
|
|
int main() {
|
|
PTRACE_GETREGS;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_ptrace_getregs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_ptrace_getregs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
|
|
if test $gdb_cv_have_ptrace_getregs = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTRACE_GETREGS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
|
|
echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
|
|
echo "configure:7430: checking for PTRACE_GETFPXREGS" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7435 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/ptrace.h>
|
|
int main() {
|
|
PTRACE_GETFPXREGS;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_ptrace_getfpxregs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_ptrace_getfpxregs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
|
|
if test $gdb_cv_have_ptrace_getfpxregs = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTRACE_GETFPXREGS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
|
|
echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
|
|
echo "configure:7464: checking for PT_GETDBREGS" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7469 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/ptrace.h>
|
|
int main() {
|
|
PT_GETDBREGS;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_pt_getdbregs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_pt_getdbregs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
|
|
if test $gdb_cv_have_pt_getdbregs = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PT_GETDBREGS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
|
|
echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
|
|
echo "configure:7499: checking for PT_GETXMMREGS" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7504 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/ptrace.h>
|
|
int main() {
|
|
PT_GETXMMREGS;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_pt_getxmmregs=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_pt_getxmmregs=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
|
|
if test $gdb_cv_have_pt_getxmmregs = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PT_GETXMMREGS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# See if stdint.h provides the uintptr_t type.
|
|
# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
|
|
echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
|
|
echo "configure:7535: checking for uintptr_t in stdint.h" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7540 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdint.h>
|
|
int main() {
|
|
uintptr_t foo = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_uintptr_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_uintptr_t=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
|
|
if test $gdb_cv_have_uintptr_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_UINTPTR_T 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
|
echo "configure:7568: checking whether malloc must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7573 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) malloc
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_malloc=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_malloc=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
|
if test $bfd_cv_decl_needed_malloc = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_MALLOC 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
|
echo "configure:7615: checking whether realloc must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7620 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) realloc
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_realloc=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_realloc=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
|
if test $bfd_cv_decl_needed_realloc = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_REALLOC 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
|
echo "configure:7662: checking whether free must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7667 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) free
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_free=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_free=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
|
if test $bfd_cv_decl_needed_free = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_FREE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
|
|
echo "configure:7709: checking whether strerror must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7714 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) strerror
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_strerror=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_strerror=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
|
|
if test $bfd_cv_decl_needed_strerror = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_STRERROR 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
|
|
echo "configure:7756: checking whether strdup must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7761 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) strdup
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_strdup=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_strdup=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
|
|
if test $bfd_cv_decl_needed_strdup = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_STRDUP 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
|
echo "configure:7803: checking whether strstr must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7808 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) strstr
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_strstr=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_strstr=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
|
if test $bfd_cv_decl_needed_strstr = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_STRSTR 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
|
|
echo "configure:7850: checking whether canonicalize_file_name must be declared" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7855 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_STRING_H
|
|
#include <string.h>
|
|
#else
|
|
#ifdef HAVE_STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
#endif
|
|
#ifdef HAVE_STDLIB_H
|
|
#include <stdlib.h>
|
|
#endif
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
int main() {
|
|
char *(*pfn) = (char *(*)) canonicalize_file_name
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_canonicalize_file_name=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_decl_needed_canonicalize_file_name=yes
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
|
|
if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
# The following save_state_t checkery is only necessary for HPUX
|
|
# versions earlier than 10.20. When those fade from memory, this
|
|
# could be expunged. --jsm 1999-03-22
|
|
|
|
echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
|
|
echo "configure:7902: checking for HPUX save_state structure" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7904 "configure"
|
|
#include "confdefs.h"
|
|
#include <machine/save_state.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "save_state_t" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
gdb_cv_hpux_savestate=yes
|
|
else
|
|
rm -rf conftest*
|
|
gdb_cv_hpux_savestate=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7919 "configure"
|
|
#include "confdefs.h"
|
|
#include <machine/save_state.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "ss_wide" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
gdb_cv_hpux_sswide=yes
|
|
else
|
|
rm -rf conftest*
|
|
gdb_cv_hpux_sswide=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $gdb_cv_hpux_savestate = yes
|
|
then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_SAVE_STATE_T 1
|
|
EOF
|
|
|
|
fi
|
|
if test $gdb_cv_hpux_sswide = yes
|
|
then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_MEMBER_SS_WIDE 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
|
|
|
|
|
|
# If we are configured native on GNU/Linux, work around problems with
|
|
# sys/procfs.h
|
|
# Also detect which type of /proc is in use, such as for Unixware or Solaris.
|
|
|
|
if test "${target}" = "${host}"; then
|
|
case "${host}" in
|
|
i[3456]86-*-linux*)
|
|
cat >> confdefs.h <<\EOF
|
|
#define START_INFERIOR_TRAPS_EXPECTED 2
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define sys_quotactl 1
|
|
EOF
|
|
|
|
;;
|
|
ia64-*-aix*)
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEW_PROC_API 1
|
|
EOF
|
|
|
|
;;
|
|
*-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEW_PROC_API 1
|
|
EOF
|
|
|
|
;;
|
|
*-*-solaris2.[6789])
|
|
cat >> confdefs.h <<\EOF
|
|
#define NEW_PROC_API 1
|
|
EOF
|
|
|
|
;;
|
|
mips-sgi-irix5*)
|
|
# Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
|
|
cat >> confdefs.h <<\EOF
|
|
#define _KMEMUSER 1
|
|
EOF
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if test "$ac_cv_header_sys_procfs_h" = yes; then
|
|
echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:7996: checking for pstatus_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8001 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
pstatus_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pstatus_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PSTATUS_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
|
|
|
echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8032: checking for prrun_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8037 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
prrun_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prrun_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prrun_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PRRUN_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
|
|
|
|
echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8068: checking for gregset_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8073 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
gregset_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_gregset_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_gregset_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_GREGSET_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
|
|
|
|
echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8104: checking for fpregset_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8109 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
fpregset_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_fpregset_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_fpregset_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FPREGSET_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
|
|
|
|
echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8140: checking for prgregset_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8145 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
prgregset_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prgregset_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prgregset_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PRGREGSET_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
|
|
|
|
echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8176: checking for prfpregset_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8181 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
prfpregset_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prfpregset_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prfpregset_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PRFPREGSET_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
|
|
|
|
echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8212: checking for prgregset32_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8217 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
prgregset32_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prgregset32_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prgregset32_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PRGREGSET32_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
|
|
|
|
echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8248: checking for prfpregset32_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8253 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
prfpregset32_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prfpregset32_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PRFPREGSET32_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
|
|
|
|
echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8284: checking for lwpid_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8289 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
lwpid_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_lwpid_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_lwpid_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LWPID_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
|
|
|
|
echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8320: checking for psaddr_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8325 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
psaddr_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_psaddr_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_psaddr_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PSADDR_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
|
|
|
|
echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8356: checking for prsysent_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8361 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
prsysent_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prsysent_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_prsysent_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PRSYSENT_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
|
|
|
|
echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8392: checking for pr_sigset_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8397 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
pr_sigset_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pr_sigset_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PR_SIGSET_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
|
|
|
|
echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8428: checking for pr_sigaction64_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8433 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
pr_sigaction64_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PR_SIGACTION64_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
|
|
|
|
echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8464: checking for pr_siginfo64_t in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8469 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>
|
|
int main() {
|
|
pr_siginfo64_t avar
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PR_SIGINFO64_T 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
|
|
|
|
|
|
|
|
|
|
|
|
if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
|
|
echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
|
|
echo "configure:8505: checking whether prfpregset_t type is broken" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
gdb_cv_prfpregset_t_broken=yes
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8513 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/procfs.h>
|
|
int main ()
|
|
{
|
|
if (sizeof (prfpregset_t) == sizeof (void *))
|
|
return 1;
|
|
return 0;
|
|
}
|
|
EOF
|
|
if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
gdb_cv_prfpregset_t_broken=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
gdb_cv_prfpregset_t_broken=yes
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
|
|
if test $gdb_cv_prfpregset_t_broken = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define PRFPREGSET_T_BROKEN 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
|
|
echo "configure:8548: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8553 "configure"
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/procfs.h>
|
|
|
|
int main() {
|
|
|
|
int dummy;;
|
|
dummy = ioctl(0, PIOCSET, &dummy);
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_procfs_piocset=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_procfs_piocset=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
|
|
if test $gdb_cv_have_procfs_piocset = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PROCFS_PIOCSET 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
if test ${host} = ${target} ; then
|
|
|
|
echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
|
|
echo "configure:8590: checking for member l_addr in struct link_map" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8595 "configure"
|
|
#include "confdefs.h"
|
|
#include <link.h>
|
|
int main() {
|
|
struct link_map lm; (void) lm.l_addr;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_link_map_with_l_members=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_link_map_with_l_members=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
|
|
if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
|
|
echo "configure:8624: checking for member lm_addr in struct link_map" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8629 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <link.h>
|
|
int main() {
|
|
struct link_map lm; (void) lm.lm_addr;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_link_map_with_lm_members=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_link_map_with_lm_members=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
|
|
if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
|
|
echo "configure:8659: checking for member som_addr in struct so_map" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8664 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#ifdef HAVE_NLIST_H
|
|
#include <nlist.h>
|
|
#endif
|
|
#include <link.h>
|
|
int main() {
|
|
struct so_map lm; (void) lm.som_addr;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_so_map_with_som_members=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_so_map_with_som_members=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
|
|
if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
|
|
echo "configure:8697: checking for struct link_map32 in sys/link.h" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8702 "configure"
|
|
#include "confdefs.h"
|
|
#define _SYSCALL32
|
|
#include <sys/link.h>
|
|
int main() {
|
|
struct link_map32 l;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_link_map32=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_struct_link_map32=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
|
|
if test $gdb_cv_have_struct_link_map32 = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRUCT_LINK_MAP32 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _SYSCALL32 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
|
|
echo "configure:8737: checking for long long support in compiler" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8742 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
extern long long foo;
|
|
switch (foo & 2) { case 0: return 1; }
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_c_long_long=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_c_long_long=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_c_long_long" 1>&6
|
|
if test $gdb_cv_c_long_long = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define CC_HAS_LONG_LONG 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
|
|
echo "configure:8774: checking for long long support in printf" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
gdb_cv_printf_has_long_long=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8782 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main () {
|
|
char buf[32];
|
|
long long l = 0;
|
|
l = (l << 16) + 0x0123;
|
|
l = (l << 16) + 0x4567;
|
|
l = (l << 16) + 0x89ab;
|
|
l = (l << 16) + 0xcdef;
|
|
sprintf (buf, "0x%016llx", l);
|
|
return (strcmp ("0x0123456789abcdef", buf));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
gdb_cv_printf_has_long_long=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
gdb_cv_printf_has_long_long=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $gdb_cv_printf_has_long_long = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define PRINTF_HAS_LONG_LONG 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
|
|
|
|
|
|
echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
|
|
echo "configure:8820: checking for long double support in compiler" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8825 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
long double foo;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_long_double=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_c_long_double=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_long_double" 1>&6
|
|
if test $ac_cv_c_long_double = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LONG_DOUBLE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
|
|
echo "configure:8854: checking for long double support in printf" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
gdb_cv_printf_has_long_double=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8862 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main () {
|
|
char buf[16];
|
|
long double f = 3.141592653;
|
|
sprintf (buf, "%Lg", f);
|
|
return (strncmp ("3.14159", buf, 7));
|
|
}
|
|
EOF
|
|
if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
gdb_cv_printf_has_long_double=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
gdb_cv_printf_has_long_double=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $gdb_cv_printf_has_long_double = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define PRINTF_HAS_LONG_DOUBLE 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
|
|
|
|
|
|
echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
|
|
echo "configure:8896: checking for long double support in scanf" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
gdb_cv_scanf_has_long_double=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8904 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main () {
|
|
char *buf = "3.141592653";
|
|
long double f = 0;
|
|
sscanf (buf, "%Lg", &f);
|
|
return !(f > 3.14159 && f < 3.14160);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
gdb_cv_scanf_has_long_double=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
gdb_cv_scanf_has_long_double=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $gdb_cv_scanf_has_long_double = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SCANF_HAS_LONG_DOUBLE 1
|
|
EOF
|
|
|
|
fi
|
|
echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
|
|
|
|
case ${host_os} in
|
|
aix*)
|
|
echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
|
|
echo "configure:8939: checking for -bbigtoc option" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
SAVE_LDFLAGS=$LDFLAGS
|
|
|
|
case $GCC in
|
|
yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
|
|
*) gdb_cv_bigtoc=-bbigtoc ;;
|
|
esac
|
|
|
|
LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8953 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
int i;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
:
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_bigtoc=
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_bigtoc" 1>&6
|
|
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
if test ${build} = ${host} -a ${host} = ${target} ; then
|
|
case ${host_os} in
|
|
hpux*)
|
|
echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
|
|
echo "configure:8983: checking for HPUX/OSF thread support" >&5
|
|
if test -f /usr/include/dce/cma_config.h ; then
|
|
if test "$GCC" = "yes" ; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_HPUX_THREAD_SUPPORT 1
|
|
EOF
|
|
|
|
CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
|
|
CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
|
|
else
|
|
echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
|
|
fi
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
;;
|
|
solaris*)
|
|
# See if thread_db library is around for Solaris thread debugging.
|
|
# Note that we must explicitly test for version 1 of the library
|
|
# because version 0 (present on Solaris 2.4 or earlier) doesn't have
|
|
# the same API.
|
|
echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
|
|
echo "configure:9006: checking for Solaris thread debugging library" >&5
|
|
if test -f /usr/lib/libthread_db.so.1 ; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_THREAD_DB_LIB 1
|
|
EOF
|
|
|
|
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
|
|
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
echo "configure:9016: 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
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-ldl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9024 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char dlopen();
|
|
|
|
int main() {
|
|
dlopen()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9035: \"$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 dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-ldl $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test "$GCC" = "yes" ; then
|
|
# The GNU linker requires the -export-dynamic option to make
|
|
# all symbols visible in the dynamic symbol table.
|
|
hold_ldflags=$LDFLAGS
|
|
echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
|
|
echo "configure:9067: checking for the ld -export-dynamic flag" >&5
|
|
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9070 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
int i;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
found=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
found=no
|
|
fi
|
|
rm -f conftest*
|
|
LDFLAGS=$hold_ldflags
|
|
echo "$ac_t""$found" 1>&6
|
|
if test $found = yes; then
|
|
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
|
|
fi
|
|
fi
|
|
# Sun randomly tweaked the prototypes in <proc_service.h>
|
|
# at one point.
|
|
echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
|
|
echo "configure:9096: checking if <proc_service.h> is old" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9102 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <proc_service.h>
|
|
ps_err_e ps_pdwrite
|
|
(struct ps_prochandle*, psaddr_t, const void*, size_t);
|
|
|
|
int main() {
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_proc_service_is_old=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_proc_service_is_old=yes
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
|
|
if test $gdb_cv_proc_service_is_old = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define PROC_SERVICE_IS_OLD 1
|
|
EOF
|
|
|
|
fi
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
;;
|
|
aix*)
|
|
echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
|
|
echo "configure:9139: checking for AiX thread debugging library" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9144 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/pthdebug.h>
|
|
int main() {
|
|
#ifndef PTHDB_VERSION_3
|
|
#error
|
|
#endif
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_have_aix_thread_debug=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_have_aix_thread_debug=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
|
|
if test $gdb_cv_have_aix_thread_debug = yes; then
|
|
CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
|
|
CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
|
|
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
if test "x$ac_cv_header_thread_db_h" = "xyes"; then
|
|
echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
|
|
echo "configure:9178: checking whether <thread_db.h> has TD_NOTALLOC" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9183 "configure"
|
|
#include "confdefs.h"
|
|
#include <thread_db.h>
|
|
int main() {
|
|
int i = TD_NOTALLOC;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_thread_db_h_has_td_notalloc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_thread_db_h_has_td_notalloc=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
|
|
fi
|
|
if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define THREAD_DB_HAS_TD_NOTALLOC 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
|
|
echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
|
|
echo "configure:9215: checking whether <sys/syscall.h> has __NR_tkill" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9220 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/syscall.h>
|
|
int main() {
|
|
int i = __NR_tkill;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
gdb_cv_sys_syscall_h_has_tkill=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
gdb_cv_sys_syscall_h_has_tkill=no
|
|
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
|
|
fi
|
|
if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_TKILL_SYSCALL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
# Check whether --with-sysroot or --without-sysroot was given.
|
|
if test "${with_sysroot+set}" = set; then
|
|
withval="$with_sysroot"
|
|
|
|
case ${with_sysroot} in
|
|
yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
|
|
*) TARGET_SYSTEM_ROOT=$with_sysroot ;;
|
|
esac
|
|
|
|
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
|
|
|
|
if test "x$exec_prefix" = xNONE; then
|
|
if test "x$prefix" = xNONE; then
|
|
test_prefix=/usr/local
|
|
else
|
|
test_prefix=$prefix
|
|
fi
|
|
else
|
|
test_prefix=$exec_prefix
|
|
fi
|
|
case ${TARGET_SYSTEM_ROOT} in
|
|
"${test_prefix}"|"${test_prefix}/"*|\
|
|
'${exec_prefix}'|'${exec_prefix}/'*)
|
|
t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
|
|
TARGET_SYSTEM_ROOT_DEFINE="$t"
|
|
;;
|
|
esac
|
|
|
|
else
|
|
|
|
TARGET_SYSTEM_ROOT=
|
|
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# NOTE: Don't add -Wall or -Wunused, they both include
|
|
# -Wunused-parameter which reports bogus warnings.
|
|
# NOTE: If you add to this list, remember to update
|
|
# gdb/doc/gdbint.texinfo.
|
|
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
|
|
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
|
|
-Wunused-label -Wunused-function"
|
|
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
|
|
# -Wunused-function -Wunused-variable -Wunused-value
|
|
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
|
|
# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
|
|
# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
|
|
# -Woverloaded-virtual -Winline -Werror"
|
|
# Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|
if test "${enable_build_warnings+set}" = set; then
|
|
enableval="$enable_build_warnings"
|
|
case "${enableval}" in
|
|
yes) ;;
|
|
no) build_warnings="-w";;
|
|
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
build_warnings="${build_warnings} ${t}";;
|
|
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
build_warnings="${t} ${build_warnings}";;
|
|
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|
esac
|
|
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|
echo "Setting compiler warning flags = $build_warnings" 6>&1
|
|
fi
|
|
fi
|
|
# Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
|
|
if test "${enable_gdb_build_warnings+set}" = set; then
|
|
enableval="$enable_gdb_build_warnings"
|
|
case "${enableval}" in
|
|
yes) ;;
|
|
no) build_warnings="-w";;
|
|
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
build_warnings="${build_warnings} ${t}";;
|
|
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|
build_warnings="${t} ${build_warnings}";;
|
|
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|
esac
|
|
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|
echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
|
|
fi
|
|
fi
|
|
WARN_CFLAGS=""
|
|
WERROR_CFLAGS=""
|
|
if test "x${build_warnings}" != x -a "x$GCC" = xyes
|
|
then
|
|
echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
|
|
echo "configure:9339: checking compiler warning flags" >&5
|
|
# Separate out the -Werror flag as some files just cannot be
|
|
# compiled with it enabled.
|
|
for w in ${build_warnings}; do
|
|
case $w in
|
|
-Werr*) WERROR_CFLAGS=-Werror ;;
|
|
*) # Check that GCC accepts it
|
|
saved_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS $w"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9349 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
WARN_CFLAGS="${WARN_CFLAGS} $w"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
CFLAGS="$saved_CFLAGS"
|
|
esac
|
|
done
|
|
echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
# In the Cygwin environment, we need some additional flags.
|
|
echo $ac_n "checking for cygwin""... $ac_c" 1>&6
|
|
echo "configure:9374: checking for cygwin" >&5
|
|
if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9379 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
|
|
lose
|
|
#endif
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "lose" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
gdb_cv_os_cygwin=yes
|
|
else
|
|
rm -rf conftest*
|
|
gdb_cv_os_cygwin=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
|
|
|
|
|
|
SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
|
|
case ${host} in
|
|
*go32* ) SER_HARDWIRE=ser-go32.o ;;
|
|
*djgpp* ) SER_HARDWIRE=ser-go32.o ;;
|
|
esac
|
|
|
|
|
|
# libreadline needs libuser32.a in a cygwin environment
|
|
WIN32LIBS=
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
|
WIN32LIBS="-luser32"
|
|
case "${target}" in
|
|
*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
LIBGUI="../libgui/src/libgui.a"
|
|
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
|
|
|
|
|
|
|
|
WIN32LDAPP=
|
|
|
|
|
|
|
|
configdir="unix"
|
|
|
|
GDBTKLIBS=
|
|
if test "${enable_gdbtk}" = "yes"; then
|
|
|
|
# Gdbtk must have an absolute path to srcdir in order to run
|
|
# properly when not installed.
|
|
here=`pwd`
|
|
cd ${srcdir}
|
|
GDBTK_SRC_DIR=`pwd`
|
|
cd $here
|
|
|
|
|
|
#
|
|
# Ok, lets find the tcl configuration
|
|
# First, look for one uninstalled.
|
|
# the alternative search directory is invoked by --with-tclconfig
|
|
#
|
|
|
|
if test x"${no_tcl}" = x ; then
|
|
# we reset no_tcl in case something fails here
|
|
no_tcl=true
|
|
# Check whether --with-tclconfig or --without-tclconfig was given.
|
|
if test "${with_tclconfig+set}" = set; then
|
|
withval="$with_tclconfig"
|
|
with_tclconfig=${withval}
|
|
fi
|
|
|
|
echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
|
|
echo "configure:9457: checking for Tcl configuration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
|
|
# First check to see if --with-tclconfig was specified.
|
|
if test x"${with_tclconfig}" != x ; then
|
|
if test -f "${with_tclconfig}/tclConfig.sh" ; then
|
|
ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
|
|
else
|
|
{ echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
# then check for a private Tcl installation
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
|
for i in \
|
|
../tcl \
|
|
`ls -dr ../tcl[7-9]* 2>/dev/null` \
|
|
../../tcl \
|
|
`ls -dr ../../tcl[7-9]* 2>/dev/null` \
|
|
../../../tcl \
|
|
`ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
|
|
if test -f "$i/${configdir}/tclConfig.sh" ; then
|
|
ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few common install locations
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
|
if test -f "$i/tclConfig.sh" ; then
|
|
ac_cv_c_tclconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few other private locations
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
|
for i in \
|
|
${srcdir}/../tcl \
|
|
`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
|
|
if test -f "$i/${configdir}/tclConfig.sh" ; then
|
|
ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
|
TCLCONFIG="# no Tcl configs found"
|
|
echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
|
|
else
|
|
no_tcl=
|
|
TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
|
|
echo "$ac_t""found $TCLCONFIG" 1>&6
|
|
fi
|
|
fi
|
|
|
|
if test -z "${no_tcl}"; then
|
|
|
|
. $TCLCONFIG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Ok, lets find the tk configuration
|
|
# First, look for one uninstalled.
|
|
# the alternative search directory is invoked by --with-tkconfig
|
|
#
|
|
|
|
if test x"${no_tk}" = x ; then
|
|
# we reset no_tk in case something fails here
|
|
no_tk=true
|
|
# Check whether --with-tkconfig or --without-tkconfig was given.
|
|
if test "${with_tkconfig+set}" = set; then
|
|
withval="$with_tkconfig"
|
|
with_tkconfig=${withval}
|
|
fi
|
|
|
|
echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
|
|
echo "configure:9566: checking for Tk configuration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
|
|
# First check to see if --with-tkconfig was specified.
|
|
if test x"${with_tkconfig}" != x ; then
|
|
if test -f "${with_tkconfig}/tkConfig.sh" ; then
|
|
ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
|
|
else
|
|
{ echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
# then check for a private Tk library
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
|
for i in \
|
|
../tk \
|
|
`ls -dr ../tk[4-9]* 2>/dev/null` \
|
|
../../tk \
|
|
`ls -dr ../../tk[4-9]* 2>/dev/null` \
|
|
../../../tk \
|
|
`ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
|
|
if test -f "$i/${configdir}/tkConfig.sh" ; then
|
|
ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few common install locations
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
|
if test -f "$i/tkConfig.sh" ; then
|
|
ac_cv_c_tkconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few other private locations
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
|
for i in \
|
|
${srcdir}/../tk \
|
|
`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
|
|
if test -f "$i/${configdir}/tkConfig.sh" ; then
|
|
ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
|
TKCONFIG="# no Tk configs found"
|
|
echo "configure: warning: Can't find Tk configuration definitions" 1>&2
|
|
else
|
|
no_tk=
|
|
TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
|
|
echo "$ac_t""found $TKCONFIG" 1>&6
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# now look for Tcl library stuff
|
|
|
|
case "${host}" in
|
|
*-*-cygwin*)
|
|
tcldir=../tcl/win/
|
|
;;
|
|
*)
|
|
tcldir=../tcl/unix/
|
|
;;
|
|
esac
|
|
|
|
TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
|
|
|
|
# If $no_tk is nonempty, then we can't do Tk, and there is no
|
|
# point to doing Tcl.
|
|
if test -z "${no_tk}"; then
|
|
|
|
if test -f "$TKCONFIG" ; then
|
|
. $TKCONFIG
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Ok, lets find the tcl source trees so we can use the headers
|
|
# Warning: transition of version 9 to 10 will break this algorithm
|
|
# because 10 sorts before 9. We also look for just tcl. We have to
|
|
# be careful that we don't match stuff like tclX by accident.
|
|
# the alternative search directory is involked by --with-tclinclude
|
|
#
|
|
|
|
no_tcl=true
|
|
echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
|
|
echo "configure:9675: checking for Tcl private headers. dir=${configdir}" >&5
|
|
# Check whether --with-tclinclude or --without-tclinclude was given.
|
|
if test "${with_tclinclude+set}" = set; then
|
|
withval="$with_tclinclude"
|
|
with_tclinclude=${withval}
|
|
fi
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# first check to see if --with-tclinclude was specified
|
|
if test x"${with_tclinclude}" != x ; then
|
|
if test -f ${with_tclinclude}/tclInt.h ; then
|
|
ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
|
|
elif test -f ${with_tclinclude}/generic/tclInt.h ; then
|
|
ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
|
|
else
|
|
{ echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
# next check if it came with Tcl configuration file
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
|
if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
|
|
ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
|
|
fi
|
|
fi
|
|
|
|
# next check in private source directory
|
|
#
|
|
# since ls returns lowest version numbers first, reverse its output
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
|
for i in \
|
|
${srcdir}/../tcl \
|
|
`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
|
|
${srcdir}/../../tcl \
|
|
`ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
|
|
${srcdir}/../../../tcl \
|
|
`ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
|
|
if test -f $i/generic/tclInt.h ; then
|
|
ac_cv_c_tclh=`(cd $i/generic; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# finally check in a few common install locations
|
|
#
|
|
# since ls returns lowest version numbers first, reverse its output
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
|
for i in \
|
|
`ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
|
|
`ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
|
|
/usr/local/src/tcl \
|
|
/usr/local/lib/tcl \
|
|
${prefix}/include ; do
|
|
if test -f $i/generic/tclInt.h ; then
|
|
ac_cv_c_tclh=`(cd $i/generic; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# see if one is installed
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
|
ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
|
|
echo "configure:9741: checking for tclInt.h" >&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 9746 "configure"
|
|
#include "confdefs.h"
|
|
#include <tclInt.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:9751: \"$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_cv_c_tclh=installed
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ac_cv_c_tclh=""
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
|
TCLHDIR="# no Tcl private headers found"
|
|
{ echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
|
|
fi
|
|
if test x"${ac_cv_c_tclh}" != x ; then
|
|
no_tcl=""
|
|
if test x"${ac_cv_c_tclh}" = x"installed" ; then
|
|
echo "$ac_t""is installed" 1>&6
|
|
TCLHDIR=""
|
|
else
|
|
echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
|
|
# this hack is cause the TCLHDIR won't print if there is a "-I" in it.
|
|
TCLHDIR="-I${ac_cv_c_tclh}"
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
#
|
|
# Ok, lets find the tk source trees so we can use the headers
|
|
# If the directory (presumably symlink) named "tk" exists, use that one
|
|
# in preference to any others. Same logic is used when choosing library
|
|
# and again with Tcl. The search order is the best place to look first, then in
|
|
# decreasing significance. The loop breaks if the trigger file is found.
|
|
# Note the gross little conversion here of srcdir by cd'ing to the found
|
|
# directory. This converts the path from a relative to an absolute, so
|
|
# recursive cache variables for the path will work right. We check all
|
|
# the possible paths in one loop rather than many seperate loops to speed
|
|
# things up.
|
|
# the alternative search directory is involked by --with-tkinclude
|
|
#
|
|
no_tk=true
|
|
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
|
|
echo "configure:9811: checking for Tk private headers" >&5
|
|
# Check whether --with-tkinclude or --without-tkinclude was given.
|
|
if test "${with_tkinclude+set}" = set; then
|
|
withval="$with_tkinclude"
|
|
with_tkinclude=${withval}
|
|
fi
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# first check to see if --with-tkinclude was specified
|
|
if test x"${with_tkinclude}" != x ; then
|
|
if test -f ${with_tkinclude}/tk.h ; then
|
|
ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
|
|
elif test -f ${with_tkinclude}/generic/tk.h ; then
|
|
ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
|
|
else
|
|
{ echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
# next check if it came with Tk configuration file
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
|
if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
|
|
ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
|
|
fi
|
|
fi
|
|
|
|
# next check in private source directory
|
|
#
|
|
# since ls returns lowest version numbers first, reverse its output
|
|
if test x"${ac_cv_c_tkh}" = x ; then
|
|
for i in \
|
|
${srcdir}/../tk \
|
|
`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
|
|
${srcdir}/../../tk \
|
|
`ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
|
|
${srcdir}/../../../tk \
|
|
`ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
|
|
if test -f $i/generic/tk.h ; then
|
|
ac_cv_c_tkh=`(cd $i/generic; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# finally check in a few common install locations
|
|
#
|
|
# since ls returns lowest version numbers first, reverse its output
|
|
if test x"${ac_cv_c_tkh}" = x ; then
|
|
for i in \
|
|
`ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
|
|
`ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
|
|
/usr/local/src/tk \
|
|
/usr/local/lib/tk \
|
|
${prefix}/include ; do
|
|
if test -f $i/generic/tk.h ; then
|
|
ac_cv_c_tkh=`(cd $i/generic; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# see if one is installed
|
|
if test x"${ac_cv_c_tkh}" = x ; then
|
|
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
|
|
echo "configure:9877: checking for tk.h" >&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 9882 "configure"
|
|
#include "confdefs.h"
|
|
#include <tk.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:9887: \"$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_cv_c_tkh=installed
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ac_cv_c_tkh=""
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x"${ac_cv_c_tkh}" != x ; then
|
|
no_tk=""
|
|
if test x"${ac_cv_c_tkh}" = x"installed" ; then
|
|
echo "$ac_t""is installed" 1>&6
|
|
TKHDIR=""
|
|
else
|
|
echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
|
|
# this hack is cause the TKHDIR won't print if there is a "-I" in it.
|
|
TKHDIR="-I${ac_cv_c_tkh}"
|
|
fi
|
|
else
|
|
TKHDIR="# no Tk directory found"
|
|
echo "configure: warning: Can't find Tk private headers" 1>&2
|
|
no_tk=true
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
|
|
echo "configure:9933: checking for Itcl private headers. srcdir=${srcdir}" >&5
|
|
if test x"${ac_cv_c_itclh}" = x ; then
|
|
for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
|
|
if test -f $i/generic/itcl.h ; then
|
|
ac_cv_c_itclh=`(cd $i/generic; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
if test x"${ac_cv_c_itclh}" = x ; then
|
|
ITCLHDIR="# no Itcl private headers found"
|
|
{ echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
|
|
fi
|
|
if test x"${ac_cv_c_itclh}" != x ; then
|
|
ITCLHDIR="-I${ac_cv_c_itclh}"
|
|
fi
|
|
# should always be here
|
|
# ITCLLIB="../itcl/itcl/unix/libitcl.a"
|
|
|
|
#AC_SUBST(ITCLLIB)
|
|
|
|
|
|
echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
|
|
echo "configure:9956: checking for Itk private headers. srcdir=${srcdir}" >&5
|
|
if test x"${ac_cv_c_itkh}" = x ; then
|
|
for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
|
|
if test -f $i/generic/itk.h ; then
|
|
ac_cv_c_itkh=`(cd $i/generic; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
if test x"${ac_cv_c_itkh}" = x ; then
|
|
ITKHDIR="# no Itk private headers found"
|
|
{ echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
|
|
fi
|
|
if test x"${ac_cv_c_itkh}" != x ; then
|
|
ITKHDIR="-I${ac_cv_c_itkh}"
|
|
fi
|
|
# should always be here
|
|
# ITKLIB="../itcl/itk/unix/libitk.a"
|
|
|
|
#AC_SUBST(ITKLIB)
|
|
|
|
|
|
|
|
# now look for Tk library stuff
|
|
|
|
case "${host}" in
|
|
*-*-cygwin*)
|
|
tkdir=../tk/win/
|
|
;;
|
|
*)
|
|
tkdir=../tk/unix/
|
|
;;
|
|
esac
|
|
|
|
TK_DEPS="${tkdir}${TK_LIB_FILE}"
|
|
|
|
# now look for Itcl library stuff
|
|
|
|
|
|
#
|
|
# Ok, lets find the itcl configuration
|
|
# First, look for one uninstalled.
|
|
# the alternative search directory is invoked by --with-itclconfig
|
|
#
|
|
|
|
if test x"${no_itcl}" = x ; then
|
|
# we reset no_itcl in case something fails here
|
|
no_itcl=true
|
|
# Check whether --with-itclconfig or --without-itclconfig was given.
|
|
if test "${with_itclconfig+set}" = set; then
|
|
withval="$with_itclconfig"
|
|
with_itclconfig=${withval}
|
|
fi
|
|
|
|
echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
|
|
echo "configure:10011: checking for Itcl configuration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
|
|
# First check to see if --with-itclconfig was specified.
|
|
if test x"${with_itclconfig}" != x ; then
|
|
if test -f "${with_itclconfig}/itclConfig.sh" ; then
|
|
ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
|
|
else
|
|
{ echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
# then check for a private Itcl library
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
|
for i in \
|
|
../itcl/itcl \
|
|
`ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
|
|
../../itcl \
|
|
`ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
|
|
../../../itcl \
|
|
`ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
|
|
if test -f "$i/itclConfig.sh" ; then
|
|
ac_cv_c_itclconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few common install locations
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
|
if test -f "$i/itclConfig.sh" ; then
|
|
ac_cv_c_itclconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few other private locations
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
|
for i in \
|
|
${srcdir}/../itcl/itcl \
|
|
`ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
|
|
if test -f "$i/itclConfig.sh" ; then
|
|
ac_cv_c_itclconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
|
ITCLCONFIG="# no Itcl configs found"
|
|
echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
|
|
else
|
|
no_itcl=
|
|
ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
|
|
echo "$ac_t""found $ITCLCONFIG" 1>&6
|
|
fi
|
|
fi
|
|
|
|
if test -z "${no_itcl}"; then
|
|
|
|
if test -f "$ITCLCONFIG" ; then
|
|
. $ITCLCONFIG
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
|
|
ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
|
|
fi
|
|
|
|
|
|
# now look for Itk library stuff
|
|
|
|
#
|
|
# Ok, lets find the itk configuration
|
|
# First, look for one uninstalled.
|
|
# the alternative search directory is invoked by --with-itkconfig
|
|
#
|
|
|
|
if test x"${no_itk}" = x ; then
|
|
# we reset no_itk in case something fails here
|
|
no_itk=true
|
|
# Check whether --with-itkconfig or --without-itkconfig was given.
|
|
if test "${with_itkconfig+set}" = set; then
|
|
withval="$with_itkconfig"
|
|
with_itkconfig=${withval}
|
|
fi
|
|
|
|
echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
|
|
echo "configure:10114: checking for Itk configuration" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
|
|
# First check to see if --with-itkconfig was specified.
|
|
if test x"${with_itkconfig}" != x ; then
|
|
if test -f "${with_itkconfig}/itkConfig.sh" ; then
|
|
ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
|
|
else
|
|
{ echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
# then check for a private Itk library
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
|
for i in \
|
|
../itcl/itk \
|
|
`ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
|
|
../../itk \
|
|
`ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
|
|
../../../itk \
|
|
`ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
|
|
if test -f "$i/itkConfig.sh" ; then
|
|
ac_cv_c_itkconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few common install locations
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
|
if test -f "$i/itkConfig.sh" ; then
|
|
ac_cv_c_itkconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
# check in a few other private locations
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
|
for i in \
|
|
${srcdir}/../itcl/itk \
|
|
`ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
|
|
if test -f "$i/itkConfig.sh" ; then
|
|
ac_cv_c_itkconfig=`(cd $i; pwd)`
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
fi
|
|
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
|
ITKCONFIG="# no Itk configs found"
|
|
echo "configure: warning: Can't find Itk configuration definitions" 1>&2
|
|
else
|
|
no_itk=
|
|
ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
|
|
echo "$ac_t""found $ITKCONFIG" 1>&6
|
|
fi
|
|
fi
|
|
|
|
|
|
if test -z "${no_itcl}"; then
|
|
|
|
if test -f "$ITKCONFIG" ; then
|
|
. $ITKCONFIG
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ITKLIB="${ITK_BUILD_LIB_SPEC}"
|
|
ITK_DEPS="${ITK_LIB_FULL_PATH}"
|
|
fi
|
|
|
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
|
|
# Tcl/Tk 8.1 require -fwritable strings. I don't
|
|
# know whether 8.2 will or not, but I bet it will.
|
|
# I don't have to worry about 7.x since we don't support it.
|
|
GDBTK_CFLAGS=""
|
|
if test "$GCC" = "yes"; then
|
|
if test "$TCL_VERSION" != "8.0" ; then
|
|
GDBTK_CFLAGS="-fwritable-strings"
|
|
fi
|
|
fi
|
|
|
|
# Include some libraries that Tcl and Tk want.
|
|
TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
|
# Yes, the ordering seems wrong here. But it isn't.
|
|
# TK_LIBS is the list of libraries that need to be linked
|
|
# after Tcl/Tk. Note that this isn't put into LIBS. If it
|
|
# were in LIBS then any link tests after this point would
|
|
# try to include things like `$(LIBGUI)', which wouldn't work.
|
|
GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
|
|
|
|
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
|
|
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
|
|
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
|
|
CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
|
|
CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
|
|
CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
|
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
|
|
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
|
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
|
|
WIN32LDAPP="-Wl,--subsystem,console"
|
|
CONFIG_OBS="${CONFIG_OBS} gdbres.o"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
configdirs="${configdirs} gdbtk"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If we find X, set shell vars x_includes and x_libraries to the
|
|
# paths, otherwise set no_x=yes.
|
|
# Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
# --without-x overrides everything else, but does not touch the cache.
|
|
echo $ac_n "checking for X""... $ac_c" 1>&6
|
|
echo "configure:10256: checking for X" >&5
|
|
|
|
# Check whether --with-x or --without-x was given.
|
|
if test "${with_x+set}" = set; then
|
|
withval="$with_x"
|
|
:
|
|
fi
|
|
|
|
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
if test "x$with_x" = xno; then
|
|
# The user explicitly disabled X.
|
|
have_x=disabled
|
|
else
|
|
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
# Both variables are already set.
|
|
have_x=yes
|
|
else
|
|
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
# One or both of the vars are not set, and there is no cached value.
|
|
ac_x_includes=NO ac_x_libraries=NO
|
|
rm -fr conftestdir
|
|
if mkdir conftestdir; then
|
|
cd conftestdir
|
|
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
cat > Imakefile <<'EOF'
|
|
acfindx:
|
|
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
EOF
|
|
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
for ac_extension in a so sl; do
|
|
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
ac_im_usrlibdir=$ac_im_libdir; break
|
|
fi
|
|
done
|
|
# Screen out bogus values from the imake configuration. They are
|
|
# bogus both because they are the default anyway, and because
|
|
# using them would break gcc on systems where it needs fixed includes.
|
|
case "$ac_im_incroot" in
|
|
/usr/include) ;;
|
|
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
|
esac
|
|
case "$ac_im_usrlibdir" in
|
|
/usr/lib | /lib) ;;
|
|
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
|
esac
|
|
fi
|
|
cd ..
|
|
rm -fr conftestdir
|
|
fi
|
|
|
|
if test "$ac_x_includes" = NO; then
|
|
# Guess where to find include files, by looking for this one X11 .h file.
|
|
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
|
|
# First, try using that file with no special directory specified.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10318 "configure"
|
|
#include "confdefs.h"
|
|
#include <$x_direct_test_include>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:10323: \"$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*
|
|
# We can compile using X headers with no special include directory.
|
|
ac_x_includes=
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
# Look for the header file in a standard set of common directories.
|
|
# Check X11 before X11Rn because it is often a symlink to the current release.
|
|
for ac_dir in \
|
|
/usr/X11/include \
|
|
/usr/X11R6/include \
|
|
/usr/X11R5/include \
|
|
/usr/X11R4/include \
|
|
\
|
|
/usr/include/X11 \
|
|
/usr/include/X11R6 \
|
|
/usr/include/X11R5 \
|
|
/usr/include/X11R4 \
|
|
\
|
|
/usr/local/X11/include \
|
|
/usr/local/X11R6/include \
|
|
/usr/local/X11R5/include \
|
|
/usr/local/X11R4/include \
|
|
\
|
|
/usr/local/include/X11 \
|
|
/usr/local/include/X11R6 \
|
|
/usr/local/include/X11R5 \
|
|
/usr/local/include/X11R4 \
|
|
\
|
|
/usr/X386/include \
|
|
/usr/x386/include \
|
|
/usr/XFree86/include/X11 \
|
|
\
|
|
/usr/include \
|
|
/usr/local/include \
|
|
/usr/unsupported/include \
|
|
/usr/athena/include \
|
|
/usr/local/x11r5/include \
|
|
/usr/lpp/Xamples/include \
|
|
\
|
|
/usr/openwin/include \
|
|
/usr/openwin/share/include \
|
|
; \
|
|
do
|
|
if test -r "$ac_dir/$x_direct_test_include"; then
|
|
ac_x_includes=$ac_dir
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
rm -f conftest*
|
|
fi # $ac_x_includes = NO
|
|
|
|
if test "$ac_x_libraries" = NO; then
|
|
# Check for the libraries.
|
|
|
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
|
|
# See if we find them without any special options.
|
|
# Don't add to $LIBS permanently.
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-l$x_direct_test_library $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10392 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
${x_direct_test_function}()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
# We can link X programs with no special library path.
|
|
ac_x_libraries=
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
# First see if replacing the include by lib works.
|
|
# Check X11 before X11Rn because it is often a symlink to the current release.
|
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
/usr/X11/lib \
|
|
/usr/X11R6/lib \
|
|
/usr/X11R5/lib \
|
|
/usr/X11R4/lib \
|
|
\
|
|
/usr/lib/X11 \
|
|
/usr/lib/X11R6 \
|
|
/usr/lib/X11R5 \
|
|
/usr/lib/X11R4 \
|
|
\
|
|
/usr/local/X11/lib \
|
|
/usr/local/X11R6/lib \
|
|
/usr/local/X11R5/lib \
|
|
/usr/local/X11R4/lib \
|
|
\
|
|
/usr/local/lib/X11 \
|
|
/usr/local/lib/X11R6 \
|
|
/usr/local/lib/X11R5 \
|
|
/usr/local/lib/X11R4 \
|
|
\
|
|
/usr/X386/lib \
|
|
/usr/x386/lib \
|
|
/usr/XFree86/lib/X11 \
|
|
\
|
|
/usr/lib \
|
|
/usr/local/lib \
|
|
/usr/unsupported/lib \
|
|
/usr/athena/lib \
|
|
/usr/local/x11r5/lib \
|
|
/usr/lpp/Xamples/lib \
|
|
/lib/usr/lib/X11 \
|
|
\
|
|
/usr/openwin/lib \
|
|
/usr/openwin/share/lib \
|
|
; \
|
|
do
|
|
for ac_extension in a so sl; do
|
|
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
ac_x_libraries=$ac_dir
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
fi
|
|
rm -f conftest*
|
|
fi # $ac_x_libraries = NO
|
|
|
|
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
# Didn't find X anywhere. Cache the known absence of X.
|
|
ac_cv_have_x="have_x=no"
|
|
else
|
|
# Record where we found X for the cache.
|
|
ac_cv_have_x="have_x=yes \
|
|
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
fi
|
|
fi
|
|
fi
|
|
eval "$ac_cv_have_x"
|
|
fi # $with_x != no
|
|
|
|
if test "$have_x" != yes; then
|
|
echo "$ac_t""$have_x" 1>&6
|
|
no_x=yes
|
|
else
|
|
# If each of the values was on the command line, it overrides each guess.
|
|
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
# Update the cache value to reflect the command line values.
|
|
ac_cv_have_x="have_x=yes \
|
|
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
# Unlike the sim directory, whether a simulator is linked is controlled by
|
|
# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
|
|
# This code just checks for a few cases where we'd like to ignore those
|
|
# definitions, even when they're present in the '.mt' file. These cases
|
|
# are when --disable-sim is specified, or if the simulator directory is
|
|
# not part of the source tree.
|
|
#
|
|
# Check whether --enable-sim or --disable-sim was given.
|
|
if test "${enable_sim+set}" = set; then
|
|
enableval="$enable_sim"
|
|
echo "enable_sim = $enable_sim";
|
|
echo "enableval = ${enableval}";
|
|
case "${enableval}" in
|
|
yes) ignore_sim=false ;;
|
|
no) ignore_sim=true ;;
|
|
*) ignore_sim=false ;;
|
|
esac
|
|
else
|
|
ignore_sim=false
|
|
fi
|
|
|
|
|
|
if test ! -d "${srcdir}/../sim"; then
|
|
ignore_sim=true
|
|
fi
|
|
|
|
if test "${ignore_sim}" = "true"; then
|
|
IGNORE_SIM="SIM="
|
|
IGNORE_SIM_OBS="SIM_OBS="
|
|
else
|
|
IGNORE_SIM=""
|
|
IGNORE_SIM_OBS=""
|
|
cat >> confdefs.h <<\EOF
|
|
#define WITH_SIM 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# target_subdir is used by the testsuite to find the target libraries.
|
|
target_subdir=
|
|
if test "${host}" != "${target}"; then
|
|
target_subdir="${target_alias}/"
|
|
fi
|
|
|
|
|
|
frags=
|
|
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
|
|
if test ! -f ${host_makefile_frag}; then
|
|
# When building a native debuger the .mh file containing things
|
|
# like NATDEPFILES is needed. Cross debuggers don't need .mh
|
|
# since it no longer contains anything useful.
|
|
if test "${target}" = "${host}"; then
|
|
{ echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
|
|
else
|
|
host_makefile_frag=/dev/null
|
|
fi
|
|
fi
|
|
frags="$frags $host_makefile_frag"
|
|
|
|
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
|
|
if test ! -f ${target_makefile_frag}; then
|
|
{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
|
|
fi
|
|
frags="$frags $target_makefile_frag"
|
|
|
|
|
|
|
|
|
|
|
|
hostfile=`sed -n '
|
|
s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
' ${host_makefile_frag}`
|
|
|
|
targetfile=`sed -n '
|
|
s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
' ${target_makefile_frag}`
|
|
|
|
if test "${target}" = "${host}"; then
|
|
# We pick this up from the host configuration file (.mh) because we
|
|
# do not have a native configuration Makefile fragment.
|
|
nativefile=`sed -n '
|
|
s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
|
' ${host_makefile_frag}`
|
|
fi
|
|
|
|
|
|
if test x"${gdb_osabi}" != x ; then
|
|
cat >> confdefs.h <<EOF
|
|
#define GDB_OSABI_DEFAULT $gdb_osabi
|
|
EOF
|
|
|
|
fi
|
|
|
|
# Enable multi-ice-gdb-server.
|
|
# Check whether --enable-multi-ice or --disable-multi-ice was given.
|
|
if test "${enable_multi_ice+set}" = set; then
|
|
enableval="$enable_multi_ice"
|
|
case $enableval in
|
|
yes | no)
|
|
;;
|
|
*) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
|
|
esac
|
|
fi
|
|
|
|
if test "x$enable_multi_ice" = xyes; then
|
|
configdirs="$configdirs multi-ice"
|
|
fi
|
|
|
|
# We only build gdbserver automatically if host and target are the same.
|
|
if test "x$target" = "x$host"; then
|
|
echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
|
|
echo "configure:10611: checking whether gdbserver is supported on this host" >&5
|
|
if test "x$build_gdbserver" = xyes; then
|
|
configdirs="$configdirs gdbserver"
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
fi
|
|
|
|
subdirs="doc testsuite $configdirs"
|
|
|
|
|
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
|
|
# (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
|
|
# version.
|
|
|
|
files=
|
|
links=
|
|
|
|
rm -f xm.h
|
|
xm_h=""
|
|
if test "${hostfile}" != ""; then
|
|
xm_h=xm.h
|
|
GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
|
|
files="${files} ${GDB_XM_FILE}"
|
|
links="${links} xm.h"
|
|
cat >> confdefs.h <<EOF
|
|
#define GDB_XM_FILE ${GDB_XM_FILE}
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
rm -f tm.h
|
|
tm_h=""
|
|
if test "${targetfile}" != ""; then
|
|
tm_h=tm.h
|
|
GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
|
|
files="${files} ${GDB_TM_FILE}"
|
|
links="${links} tm.h"
|
|
cat >> confdefs.h <<EOF
|
|
#define GDB_TM_FILE ${GDB_TM_FILE}
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
rm -f nm.h
|
|
nm_h=""
|
|
if test "${nativefile}" != ""; then
|
|
nm_h=nm.h
|
|
GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
|
|
files="${files} ${GDB_NM_FILE}"
|
|
links="${links} nm.h"
|
|
cat >> confdefs.h <<EOF
|
|
#define GDB_NM_FILE ${GDB_NM_FILE}
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|
echo "configure:10675: checking for Cygwin environment" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10680 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
#ifndef __CYGWIN__
|
|
#define __CYGWIN__ __CYGWIN32__
|
|
#endif
|
|
return __CYGWIN__;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_cygwin=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_cygwin=no
|
|
fi
|
|
rm -f conftest*
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|
CYGWIN=
|
|
test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|
echo "configure:10708: checking for mingw32 environment" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10713 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
return __MINGW32__;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_mingw32=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_mingw32=no
|
|
fi
|
|
rm -f conftest*
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|
MINGW32=
|
|
test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|
|
|
|
|
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|
echo "configure:10739: checking for executable suffix" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
|
ac_cv_exeext=.exe
|
|
else
|
|
rm -f conftest*
|
|
echo 'int main () { return 0; }' > conftest.$ac_ext
|
|
ac_cv_exeext=
|
|
if { (eval echo configure:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|
for file in conftest.*; do
|
|
case $file in
|
|
*.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
|
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|
esac
|
|
done
|
|
else
|
|
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|
fi
|
|
rm -f conftest*
|
|
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|
fi
|
|
fi
|
|
|
|
EXEEXT=""
|
|
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|
echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|
ac_exeext=$EXEEXT
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
|
|
EOF
|
|
|
|
|
|
|
|
|
|
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
|
if test "${with_libiconv_prefix+set}" = set; then
|
|
withval="$with_libiconv_prefix"
|
|
|
|
for dir in `echo "$withval" | tr : ' '`; do
|
|
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
|
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for iconv""... $ac_c" 1>&6
|
|
echo "configure:10791: checking for iconv" >&5
|
|
if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
am_cv_func_iconv="no, consider installing GNU libiconv"
|
|
am_cv_lib_iconv=no
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10799 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <iconv.h>
|
|
int main() {
|
|
iconv_t cd = iconv_open("","");
|
|
iconv(cd,NULL,NULL,NULL,NULL);
|
|
iconv_close(cd);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
am_cv_func_iconv=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
if test "$am_cv_func_iconv" != yes; then
|
|
am_save_LIBS="$LIBS"
|
|
LIBS="$LIBS -liconv"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10821 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <iconv.h>
|
|
int main() {
|
|
iconv_t cd = iconv_open("","");
|
|
iconv(cd,NULL,NULL,NULL,NULL);
|
|
iconv_close(cd);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
am_cv_lib_iconv=yes
|
|
am_cv_func_iconv=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$am_save_LIBS"
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$am_cv_func_iconv" 1>&6
|
|
if test "$am_cv_func_iconv" = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ICONV 1
|
|
EOF
|
|
|
|
echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
|
|
echo "configure:10852: checking for iconv declaration" >&5
|
|
if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10858 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <iconv.h>
|
|
extern
|
|
#ifdef __cplusplus
|
|
"C"
|
|
#endif
|
|
#if defined(__STDC__) || defined(__cplusplus)
|
|
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
|
#else
|
|
size_t iconv();
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
am_cv_proto_iconv_arg1=""
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
am_cv_proto_iconv_arg1="const"
|
|
fi
|
|
rm -f conftest*
|
|
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
|
fi
|
|
|
|
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
|
echo "$ac_t""${ac_t:-
|
|
}$am_cv_proto_iconv" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define ICONV_CONST $am_cv_proto_iconv_arg1
|
|
EOF
|
|
|
|
fi
|
|
LIBICONV=
|
|
if test "$am_cv_lib_iconv" = yes; then
|
|
LIBICONV="-liconv"
|
|
fi
|
|
|
|
|
|
|
|
trap '' 1 2 15
|
|
cat > confcache <<\EOF
|
|
# This file is a shell script that caches the results of configure
|
|
# tests run on this system so they can be shared between configure
|
|
# scripts and configure runs. It is not useful on other systems.
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
|
#
|
|
# By default, configure uses ./config.cache as the cache file,
|
|
# creating it if it does not exist already. You can give configure
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
|
# what configure does when it calls configure scripts in
|
|
# subdirectories, so they share the cache.
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|
# config.status only pays attention to the cache file if you give it the
|
|
# --recheck option to rerun configure.
|
|
#
|
|
EOF
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
|
# So, don't put newlines in cache variables' values.
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
|
(set) 2>&1 |
|
|
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
|
|
if test -w $cache_file; then
|
|
echo "updating cache $cache_file"
|
|
cat confcache > $cache_file
|
|
else
|
|
echo "not updating unwritable cache $cache_file"
|
|
fi
|
|
fi
|
|
rm -f confcache
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
# Let make expand exec_prefix.
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
# Any assignment to VPATH causes Sun make to only execute
|
|
# the first set of double-colon rules, so remove it if not needed.
|
|
# If there is a colon in the path, we need to keep it.
|
|
if test "x$srcdir" = x.; then
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
fi
|
|
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
# Without the "./", some shells look in PATH for config.status.
|
|
: ${CONFIG_STATUS=./config.status}
|
|
|
|
echo creating $CONFIG_STATUS
|
|
rm -f $CONFIG_STATUS
|
|
cat > $CONFIG_STATUS <<EOF
|
|
#! /bin/sh
|
|
# Generated automatically by configure.
|
|
# Run this file to recreate the current configuration.
|
|
# This directory was configured as follows,
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
#
|
|
# $0 $ac_configure_args
|
|
#
|
|
# Compiler output produced by configure, useful for debugging
|
|
# configure, is in ./config.log if it exists.
|
|
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
for ac_option
|
|
do
|
|
case "\$ac_option" in
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
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
|
|
done
|
|
|
|
ac_given_srcdir=$srcdir
|
|
ac_given_INSTALL="$INSTALL"
|
|
|
|
trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
# Protect against being on the right side of a sed subst in config.status.
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
$ac_vpsub
|
|
$extrasub
|
|
s%@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%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|
s%@MAINT@%$MAINT%g
|
|
s%@CC@%$CC%g
|
|
s%@CPP@%$CPP%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%@RANLIB@%$RANLIB%g
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
|
s%@ALLOCA@%$ALLOCA%g
|
|
s%@USE_NLS@%$USE_NLS%g
|
|
s%@MSGFMT@%$MSGFMT%g
|
|
s%@GMSGFMT@%$GMSGFMT%g
|
|
s%@XGETTEXT@%$XGETTEXT%g
|
|
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|
s%@CATALOGS@%$CATALOGS%g
|
|
s%@CATOBJEXT@%$CATOBJEXT%g
|
|
s%@DATADIRNAME@%$DATADIRNAME%g
|
|
s%@GMOFILES@%$GMOFILES%g
|
|
s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|
s%@INTLDEPS@%$INTLDEPS%g
|
|
s%@INTLLIBS@%$INTLLIBS%g
|
|
s%@INTLOBJS@%$INTLOBJS%g
|
|
s%@POFILES@%$POFILES%g
|
|
s%@POSUB@%$POSUB%g
|
|
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|
s%@GT_NO@%$GT_NO%g
|
|
s%@GT_YES@%$GT_YES%g
|
|
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|
s%@l@%$l%g
|
|
s%@subdirs@%$subdirs%g
|
|
s%@AWK@%$AWK%g
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
s%@LN_S@%$LN_S%g
|
|
s%@YACC@%$YACC%g
|
|
s%@AR@%$AR%g
|
|
s%@DLLTOOL@%$DLLTOOL%g
|
|
s%@WINDRES@%$WINDRES%g
|
|
s%@MIG@%$MIG%g
|
|
s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
|
|
s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
|
|
s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
|
|
s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|
s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
|
|
s%@SER_HARDWIRE@%$SER_HARDWIRE%g
|
|
s%@WIN32LIBS@%$WIN32LIBS%g
|
|
s%@LIBGUI@%$LIBGUI%g
|
|
s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
|
|
s%@WIN32LDAPP@%$WIN32LDAPP%g
|
|
s%@TCL_VERSION@%$TCL_VERSION%g
|
|
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
|
|
s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
|
|
s%@TCL_CC@%$TCL_CC%g
|
|
s%@TCL_DEFS@%$TCL_DEFS%g
|
|
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
|
|
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
|
|
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
|
|
s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
|
|
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
|
|
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
|
|
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
|
|
s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
|
|
s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
|
|
s%@TCL_RANLIB@%$TCL_RANLIB%g
|
|
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
|
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
|
|
s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
|
|
s%@TK_VERSION@%$TK_VERSION%g
|
|
s%@TK_DEFS@%$TK_DEFS%g
|
|
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
|
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
|
|
s%@TK_XLIBSW@%$TK_XLIBSW%g
|
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
|
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
|
|
s%@TCLHDIR@%$TCLHDIR%g
|
|
s%@TKHDIR@%$TKHDIR%g
|
|
s%@ITCLHDIR@%$ITCLHDIR%g
|
|
s%@ITKHDIR@%$ITKHDIR%g
|
|
s%@ITCL_VERSION@%$ITCL_VERSION%g
|
|
s%@ITCL_DEFS@%$ITCL_DEFS%g
|
|
s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
|
|
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
|
|
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
|
|
s%@ITK_VERSION@%$ITK_VERSION%g
|
|
s%@ITK_DEFS@%$ITK_DEFS%g
|
|
s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
|
|
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
|
|
s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
|
|
s%@X_CFLAGS@%$X_CFLAGS%g
|
|
s%@X_LDFLAGS@%$X_LDFLAGS%g
|
|
s%@X_LIBS@%$X_LIBS%g
|
|
s%@TCL_DEPS@%$TCL_DEPS%g
|
|
s%@TK_DEPS@%$TK_DEPS%g
|
|
s%@ITCLLIB@%$ITCLLIB%g
|
|
s%@ITCL_DEPS@%$ITCL_DEPS%g
|
|
s%@ITKLIB@%$ITKLIB%g
|
|
s%@ITK_DEPS@%$ITK_DEPS%g
|
|
s%@GDBTKLIBS@%$GDBTKLIBS%g
|
|
s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
|
|
s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
|
|
s%@IGNORE_SIM@%$IGNORE_SIM%g
|
|
s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
|
|
s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
|
|
s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
|
|
s%@CONFIG_OBS@%$CONFIG_OBS%g
|
|
s%@CONFIG_DEPS@%$CONFIG_DEPS%g
|
|
s%@CONFIG_SRCS@%$CONFIG_SRCS%g
|
|
s%@CONFIG_ALL@%$CONFIG_ALL%g
|
|
s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
|
|
s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
|
|
s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
|
|
s%@target_subdir@%$target_subdir%g
|
|
/@host_makefile_frag@/r $host_makefile_frag
|
|
s%@host_makefile_frag@%%g
|
|
/@target_makefile_frag@/r $target_makefile_frag
|
|
s%@target_makefile_frag@%%g
|
|
s%@frags@%$frags%g
|
|
s%@xm_h@%$xm_h%g
|
|
s%@tm_h@%$tm_h%g
|
|
s%@nm_h@%$nm_h%g
|
|
s%@EXEEXT@%$EXEEXT%g
|
|
s%@LIBICONV@%$LIBICONV%g
|
|
|
|
CEOF
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
# Split the substitutions into bite-sized pieces for seds with
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
ac_file=1 # Number of current file.
|
|
ac_beg=1 # First line for current file.
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
ac_more_lines=:
|
|
ac_sed_cmds=""
|
|
while $ac_more_lines; do
|
|
if test $ac_beg -gt 1; then
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
else
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
fi
|
|
if test ! -s conftest.s$ac_file; then
|
|
ac_more_lines=false
|
|
rm -f conftest.s$ac_file
|
|
else
|
|
if test -z "$ac_sed_cmds"; then
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
else
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
fi
|
|
ac_file=`expr $ac_file + 1`
|
|
ac_beg=$ac_end
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
fi
|
|
done
|
|
if test -z "$ac_sed_cmds"; then
|
|
ac_sed_cmds=cat
|
|
fi
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
case "$ac_file" in
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
*) ac_file_in="${ac_file}.in" ;;
|
|
esac
|
|
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
# The file is in a subdirectory.
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
# A "../" for each directory in $ac_dir_suffix.
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
else
|
|
ac_dir_suffix= ac_dots=
|
|
fi
|
|
|
|
case "$ac_given_srcdir" in
|
|
.) srcdir=.
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
*) # Relative path.
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
esac
|
|
|
|
case "$ac_given_INSTALL" in
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
esac
|
|
|
|
echo creating "$ac_file"
|
|
rm -f "$ac_file"
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
case "$ac_file" in
|
|
*Makefile*) ac_comsub="1i\\
|
|
# $configure_input" ;;
|
|
*) ac_comsub= ;;
|
|
esac
|
|
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
sed -e "$ac_comsub
|
|
s%@configure_input@%$configure_input%g
|
|
s%@srcdir@%$srcdir%g
|
|
s%@top_srcdir@%$top_srcdir%g
|
|
s%@INSTALL@%$INSTALL%g
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
fi; done
|
|
rm -f conftest.s*
|
|
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
#
|
|
# ac_d sets the value in "#define NAME VALUE" lines.
|
|
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
ac_dC='\3'
|
|
ac_dD='%g'
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
ac_uB='\([ ]\)%\1#\2define\3'
|
|
ac_uC=' '
|
|
ac_uD='\4%g'
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
ac_eB='$%\1#\2define\3'
|
|
ac_eC=' '
|
|
ac_eD='%g'
|
|
|
|
if test "${CONFIG_HEADERS+set}" != set; then
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
CONFIG_HEADERS="config.h:config.in"
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
fi
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
case "$ac_file" in
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
*) ac_file_in="${ac_file}.in" ;;
|
|
esac
|
|
|
|
echo creating $ac_file
|
|
|
|
rm -f conftest.frag conftest.in conftest.out
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
cat $ac_file_inputs > conftest.in
|
|
|
|
EOF
|
|
|
|
# Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
# the proper values into config.h.in to produce config.h. And first:
|
|
# Protect against being on the right side of a sed subst in config.status.
|
|
# Protect against being in an unquoted here document in config.status.
|
|
rm -f conftest.vals
|
|
cat > conftest.hdr <<\EOF
|
|
s/[\\&%]/\\&/g
|
|
s%[\\$`]%\\&%g
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
s%ac_d%ac_u%gp
|
|
s%ac_u%ac_e%gp
|
|
EOF
|
|
sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
rm -f conftest.hdr
|
|
|
|
# This sed command replaces #undef with comments. This is necessary, for
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
# on some systems where configure will not decide to define it.
|
|
cat >> conftest.vals <<\EOF
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
EOF
|
|
|
|
# Break up conftest.vals because some shells have a limit on
|
|
# the size of here documents, and old seds have small limits too.
|
|
|
|
rm -f conftest.tail
|
|
while :
|
|
do
|
|
ac_lines=`grep -c . conftest.vals`
|
|
# grep -c gives empty output for an empty file on some AIX systems.
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
# Write a limited-size here document to conftest.frag.
|
|
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
echo 'CEOF
|
|
sed -f conftest.frag conftest.in > conftest.out
|
|
rm -f conftest.in
|
|
mv conftest.out conftest.in
|
|
' >> $CONFIG_STATUS
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
rm -f conftest.vals
|
|
mv conftest.tail conftest.vals
|
|
done
|
|
rm -f conftest.vals
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
rm -f conftest.frag conftest.h
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
cat conftest.in >> conftest.h
|
|
rm -f conftest.in
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
echo "$ac_file is unchanged"
|
|
rm -f conftest.h
|
|
else
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
# The file is in a subdirectory.
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
fi
|
|
rm -f $ac_file
|
|
mv conftest.h $ac_file
|
|
fi
|
|
fi; done
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
ac_sources="$files"
|
|
ac_dests="$links"
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
srcdir=$ac_given_srcdir
|
|
while test -n "$ac_sources"; do
|
|
set $ac_dests; ac_dest=$1; shift; ac_dests=$*
|
|
set $ac_sources; ac_source=$1; shift; ac_sources=$*
|
|
|
|
echo "linking $srcdir/$ac_source to $ac_dest"
|
|
|
|
if test ! -r $srcdir/$ac_source; then
|
|
{ echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
|
|
fi
|
|
rm -f $ac_dest
|
|
|
|
# Make relative symlinks.
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
|
|
if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
|
|
# The dest file is in a subdirectory.
|
|
test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
|
|
ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
|
|
# A "../" for each directory in $ac_dest_dir_suffix.
|
|
ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
else
|
|
ac_dest_dir_suffix= ac_dots=
|
|
fi
|
|
|
|
case "$srcdir" in
|
|
[/$]*) ac_rel_source="$srcdir/$ac_source" ;;
|
|
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
|
|
esac
|
|
|
|
# Make a symlink if possible; otherwise try a hard link.
|
|
if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
|
|
ln $srcdir/$ac_source $ac_dest; then :
|
|
else
|
|
{ echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
|
|
fi
|
|
done
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
gdb_host_cpu=$gdb_host_cpu
|
|
gdb_target_cpu=$gdb_target_cpu
|
|
nativefile=$nativefile
|
|
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
if test "${nativefile}" = ""; then
|
|
< Makefile \
|
|
sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
|
|
-e '/^NATDEPFILES[ ]*=/s/^/# /' \
|
|
| sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
|
|
> Makefile.tem
|
|
mv -f Makefile.tem Makefile
|
|
fi
|
|
|
|
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
|
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
|
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
|
|
mv -f Makefile.tmp Makefile
|
|
|
|
|
|
case x$CONFIG_HEADERS in
|
|
xconfig.h:config.in)
|
|
echo > stamp-h ;;
|
|
esac
|
|
|
|
exit 0
|
|
EOF
|
|
chmod +x $CONFIG_STATUS
|
|
rm -fr confdefs* $ac_clean_files
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
|
if test "$no_recursion" != yes; then
|
|
|
|
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
|
ac_sub_configure_args=
|
|
ac_prev=
|
|
for ac_arg in $ac_configure_args; do
|
|
if test -n "$ac_prev"; then
|
|
ac_prev=
|
|
continue
|
|
fi
|
|
case "$ac_arg" in
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
ac_prev=cache_file ;;
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
;;
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
ac_prev=srcdir ;;
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
;;
|
|
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
|
esac
|
|
done
|
|
|
|
for ac_config_dir in doc testsuite $configdirs; do
|
|
|
|
# Do not complain, so a configure script can configure whichever
|
|
# parts of a large source tree are present.
|
|
if test ! -d $srcdir/$ac_config_dir; then
|
|
continue
|
|
fi
|
|
|
|
echo configuring in $ac_config_dir
|
|
|
|
case "$srcdir" in
|
|
.) ;;
|
|
*)
|
|
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
|
else
|
|
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
ac_popdir=`pwd`
|
|
cd $ac_config_dir
|
|
|
|
# A "../" for each directory in /$ac_config_dir.
|
|
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
|
|
|
case "$srcdir" in
|
|
.) # No --srcdir option. We are building in place.
|
|
ac_sub_srcdir=$srcdir ;;
|
|
/*) # Absolute path.
|
|
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
|
*) # Relative path.
|
|
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
|
esac
|
|
|
|
# Check for guested configure; otherwise get Cygnus style configure.
|
|
if test -f $ac_sub_srcdir/configure; then
|
|
ac_sub_configure=$ac_sub_srcdir/configure
|
|
elif test -f $ac_sub_srcdir/configure.in; then
|
|
ac_sub_configure=$ac_configure
|
|
else
|
|
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
|
ac_sub_configure=
|
|
fi
|
|
|
|
# The recursion is here.
|
|
if test -n "$ac_sub_configure"; then
|
|
|
|
# Make the cache file name correct relative to the subdirectory.
|
|
case "$cache_file" in
|
|
/*) ac_sub_cache_file=$cache_file ;;
|
|
*) # Relative path.
|
|
ac_sub_cache_file="$ac_dots$cache_file" ;;
|
|
esac
|
|
case "$ac_given_INSTALL" in
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
esac
|
|
|
|
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
|
# The eval makes quoting arguments work.
|
|
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
|
then :
|
|
else
|
|
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
cd $ac_popdir
|
|
done
|
|
fi
|
|
|
|
|
|
exit 0
|