From 697c3c7f8041deb0f55b60ece032e58633e0fb83 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 29 Dec 2003 19:03:32 +0000 Subject: [PATCH] Rework of autoconfiscation infrastructure * autoconf/config.{guess,sub}: Update to GNU version 2003-10-07. * autoconf/ltmain.sh: Update to GNU version 1.4.3. * autoconf/autoconf: Remove (from now on we assume autoconf is installed properly on the sytem). * autoconf/autoconf.m4: Likewise. * autoconf/autoconf.m4f: Likewise. * autoconf/acgeneral.m4: Likewise. * autoconf/acspecific.m4: Likewise. * autoconf/aclocal.m4: Regenerate. * autoconf/acinclude.m4: Remove (while moving the macros...) * m4/gmp.m4: New file (...to here). * Makefile.devel: Update to new scheme. * configure.ac: Likewise. * include/cln/GV_integer.h: Assume template specializations work. * include/cln/GV_modinteger.h: Likewise. * include/cln/config.h.in: Likewise, and drop HAVE_BOOL. * src/base/cl_base_config.h.in: Drop support for obsolete ftime(3). * src/base/random/cl_random_from.cc: Likewise. * src/timing/cl_base_config.h.in: Likewise. * src/timing/cl_t_current.cc: Likewise. --- ChangeLog | 24 + FILES | 3 +- Makefile.devel | 28 +- NEWS | 18 + autoconf/acgeneral.m4 | 2651 --------- autoconf/aclocal.m4 | 2632 +++++---- autoconf/acspecific.m4 | 2867 --------- autoconf/autoconf | 790 --- autoconf/autoconf.m4 | 27 - autoconf/autoconf.m4f | 8823 ---------------------------- autoconf/config.guess | 362 +- autoconf/config.sub | 256 +- autoconf/ltmain.sh | 244 +- configure.ac | 19 +- include/cln/GV_integer.h | 2 - include/cln/GV_modinteger.h | 2 - include/cln/config.h.in | 10 - include/cln/modules.h | 2 +- autoconf/acinclude.m4 => m4/gmp.m4 | 18 +- src/base/cl_base_config.h.in | 6 +- src/base/random/cl_random_from.cc | 16 - src/timing/cl_t_config.h.in | 6 +- src/timing/cl_t_current.cc | 13 - 23 files changed, 2071 insertions(+), 16748 deletions(-) delete mode 100644 autoconf/acgeneral.m4 delete mode 100644 autoconf/acspecific.m4 delete mode 100755 autoconf/autoconf delete mode 100644 autoconf/autoconf.m4 delete mode 100644 autoconf/autoconf.m4f rename autoconf/acinclude.m4 => m4/gmp.m4 (71%) diff --git a/ChangeLog b/ChangeLog index 7cef720..1cefca2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +2003-12-29 Richard B. Kreckel + + Rework of autoconfiscation infrastructure + * autoconf/config.{guess,sub}: Update to GNU version 2003-10-07. + * autoconf/ltmain.sh: Update to GNU version 1.4.3. + * autoconf/autoconf: Remove (from now on we assume autoconf is + installed properly on the sytem). + * autoconf/autoconf.m4: Likewise. + * autoconf/autoconf.m4f: Likewise. + * autoconf/acgeneral.m4: Likewise. + * autoconf/acspecific.m4: Likewise. + * autoconf/aclocal.m4: Regenerate. + * autoconf/acinclude.m4: Remove (while moving the macros...) + * m4/gmp.m4: New file (...to here). + * Makefile.devel: Update to new scheme. + * configure.ac: Likewise. + * include/cln/GV_integer.h: Assume template specializations work. + * include/cln/GV_modinteger.h: Likewise. + * include/cln/config.h.in: Likewise, and drop HAVE_BOOL. + * src/base/cl_base_config.h.in: Drop support for obsolete ftime(3). + * src/base/random/cl_random_from.cc: Likewise. + * src/timing/cl_base_config.h.in: Likewise. + * src/timing/cl_t_current.cc: Likewise. + 2003-12-27 Richard B. Kreckel * src/polynomial/cl_UP_gen.h (gen_minus): Fix case where first diff --git a/FILES b/FILES index ce6ff5e..b970738 100644 --- a/FILES +++ b/FILES @@ -50,6 +50,7 @@ Files in this package: Installation: configure configuration script - configure.in autoconf-2.13 source for the configuration script + configure.in autoconf source for the configuration script autoconf/* auxiliary configuration scripts + m4/* autoconf's driver macros Makefile.in Makefile master diff --git a/Makefile.devel b/Makefile.devel index 2cbf369..74e9e7f 100644 --- a/Makefile.devel +++ b/Makefile.devel @@ -13,33 +13,31 @@ PACKOPT = cvfhj PACKEXT = .tar.bz2 -all : configures documentation +all: configures documentation CONFIGURES = configure CONFIGURES_IN = configure.ac -AUTOCONF_FILES = autoconf/aclocal.m4 autoconf/autoconf.m4f autoconf/acgeneral.m4 autoconf/acspecific.m4 +AUTOCONF_FILES = autoconf/aclocal.m4 -configures : $(CONFIGURES) +configures: ${CONFIGURES} -configure : configure.ac $(AUTOCONF_FILES) - ./autoconf/autoconf -A autoconf -l autoconf +configure: configure.ac ${AUTOCONF_FILES} + autoconf --include=autoconf -CLISP_ACLOCAL = /home/kreckel/contrib/clisp/src/autoconf/aclocal.m4 -ACSELECT = /home/kreckel/contrib/clisp/src/autoconf/acselect -LIBTOOLMACROS = /home/kreckel/contrib/libtool/libtool.m4 +CLISP_M4DIR = ~/contrib/clisp/src/m4 -autoconf/aclocal.m4 : $(CLISP_ACLOCAL) autoconf/acinclude.m4 - ($(ACSELECT) `cat $(CONFIGURES_IN) | grep '^[A-Z][A-Z]_' | sed 's,[^A-Z_].*$$,,g' | sort | uniq` < $(CLISP_ACLOCAL) ; cat $(LIBTOOLMACROS) | sed -e 's,AC_CANONICAL_HOST,CL_CANONICAL_HOST,g' -e 's,AC_PROG_RANLIB,CL_PROG_RANLIB,g'; cat autoconf/acinclude.m4) > autoconf/aclocal.m4 +autoconf/aclocal.m4: ${wildcard m4/*.m4} + aclocal -I m4 -I ${CLISP_M4DIR} --output=autoconf/aclocal.m4 # Syntaxcheck -check-configures : $(CONFIGURES) - set -e; for f in $(CONFIGURES); do bash -x -n $$f; done +check-configures: ${CONFIGURES} + set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done -documentation : force - cd doc && $(MAKE) -f Makefile.devel documentation +documentation: force + cd doc && ${MAKE} -f Makefile.devel documentation -force : +force: diff --git a/NEWS b/NEWS index 96a111a..87fb466 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,21 @@ +2003-12-xy, version 1.1.6 + +Implementation changes +---------------------- + +* Fix a bug in polynomial subtraction. + (Reported by Munagala Ramanath.) + +Other changes +------------- + +* Provide a package control file cln.pc. + +* Updated infrastructure to autoconf-2.57. + +* Fix compilation issues with GCC-3.4 and on Mac OSX. + + 2002-05-28, version 1.1.5 ========================= diff --git a/autoconf/acgeneral.m4 b/autoconf/acgeneral.m4 deleted file mode 100644 index c17e1cb..0000000 --- a/autoconf/acgeneral.m4 +++ /dev/null @@ -1,2651 +0,0 @@ -dnl Parameterized macros. -dnl Requires GNU m4. -dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception, the Free Software Foundation gives unlimited -dnl permission to copy, distribute and modify the configure scripts that -dnl are the output of Autoconf. You need not follow the terms of the GNU -dnl General Public License when using or distributing such scripts, even -dnl though portions of the text of Autoconf appear in them. The GNU -dnl General Public License (GPL) does govern all other use of the material -dnl that constitutes the Autoconf program. -dnl -dnl Certain portions of the Autoconf source text are designed to be copied -dnl (in certain cases, depending on the input) into the output of -dnl Autoconf. We call these the "data" portions. The rest of the Autoconf -dnl source text consists of comments plus executable code that decides which -dnl of the data portions to output in any given case. We call these -dnl comments and executable code the "non-data" portions. Autoconf never -dnl copies any of the non-data portions into its output. -dnl -dnl This special exception to the GPL applies to versions of Autoconf -dnl released by the Free Software Foundation. When you make and -dnl distribute a modified version of Autoconf, you may extend this special -dnl exception to the GPL to apply to your modified version as well, *unless* -dnl your modified version has the potential to copy into its output some -dnl of the text that was the non-data portion of the version that you started -dnl with. (In other words, unless your change moves or copies text from -dnl the non-data portions to the data portions.) If your modification has -dnl such potential, you must delete any notice of this special exception -dnl to the GPL from your modified version. -dnl -dnl Written by David MacKenzie, with help from -dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, -dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. -dnl -dnl Changed by Bruno Haible, 18 January 1999 -dnl Changed more by Richard Kreckel, 16 November 2000 -dnl -divert(-1)dnl Throw away output until AC_INIT is called. -changequote([, ]) - -define(AC_ACVERSION, 2.13) - -dnl Some old m4's don't support m4exit. But they provide -dnl equivalent functionality by core dumping because of the -dnl long macros we define. -ifdef([__gnu__], , [errprint(Autoconf requires GNU m4. -Install it before installing Autoconf or set the -M4 environment variable to its path name. -)m4exit(2)]) - -undefine([eval]) -undefine([include]) -undefine([shift]) -undefine([format]) - - -dnl ### Defining macros - - -dnl m4 output diversions. We let m4 output them all in order at the end, -dnl except that we explicitly undivert AC_DIVERSION_SED, AC_DIVERSION_CMDS, -dnl and AC_DIVERSION_ICMDS. - -dnl AC_DIVERSION_NOTICE - 1 (= 0) AC_REQUIRE'd #! /bin/sh line -define(AC_DIVERSION_NOTICE, 1)dnl copyright notice & option help strings -define(AC_DIVERSION_INIT, 2)dnl initialization code -define(AC_DIVERSION_NORMAL_4, 3)dnl AC_REQUIRE'd code, 4 level deep -define(AC_DIVERSION_NORMAL_3, 4)dnl AC_REQUIRE'd code, 3 level deep -define(AC_DIVERSION_NORMAL_2, 5)dnl AC_REQUIRE'd code, 2 level deep -define(AC_DIVERSION_NORMAL_1, 6)dnl AC_REQUIRE'd code, 1 level deep -define(AC_DIVERSION_NORMAL, 7)dnl the tests and output code -define(AC_DIVERSION_SED, 8)dnl variable substitutions in config.status -define(AC_DIVERSION_CMDS, 9)dnl extra shell commands in config.status -define(AC_DIVERSION_ICMDS, 10)dnl extra initialization in config.status - -dnl Change the diversion stream to STREAM, while stacking old values. -dnl AC_DIVERT_PUSH(STREAM) -define(AC_DIVERT_PUSH, -[pushdef([AC_DIVERSION_CURRENT], $1)dnl -divert(AC_DIVERSION_CURRENT)dnl -]) - -dnl Change the diversion stream to its previous value, unstacking it. -dnl AC_DIVERT_POP() -define(AC_DIVERT_POP, -[popdef([AC_DIVERSION_CURRENT])dnl -divert(AC_DIVERSION_CURRENT)dnl -]) - -dnl Initialize the diversion setup. -define([AC_DIVERSION_CURRENT], AC_DIVERSION_NORMAL) -dnl This will be popped by AC_REQUIRE in AC_INIT. -pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_NOTICE) - -dnl The prologue for Autoconf macros. -dnl AC_PRO(MACRO-NAME) -define(AC_PRO, -[define([AC_PROVIDE_$1], )dnl -ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL, -[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))], -[pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl -]) - -dnl The Epilogue for Autoconf macros. -dnl AC_EPI() -define(AC_EPI, -[AC_DIVERT_POP()dnl -ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL, -[undivert(AC_DIVERSION_NORMAL_4)dnl -undivert(AC_DIVERSION_NORMAL_3)dnl -undivert(AC_DIVERSION_NORMAL_2)dnl -undivert(AC_DIVERSION_NORMAL_1)dnl -])dnl -]) - -dnl Define a macro which automatically provides itself. Add machinery -dnl so the macro automatically switches expansion to the diversion -dnl stack if it is not already using it. In this case, once finished, -dnl it will bring back all the code accumulated in the diversion stack. -dnl This, combined with AC_REQUIRE, achieves the topological ordering of -dnl macros. We don't use this macro to define some frequently called -dnl macros that are not involved in ordering constraints, to save m4 -dnl processing. -dnl AC_DEFUN(NAME, EXPANSION) -define([AC_DEFUN], -[define($1, [AC_PRO([$1])$2[]AC_EPI()])]) - - -dnl ### Initialization - - -dnl AC_INIT_NOTICE() -AC_DEFUN(AC_INIT_NOTICE, -[# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version] AC_ACVERSION [ -# 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:]) - -dnl AC_PREFIX_DEFAULT(PREFIX) -AC_DEFUN(AC_PREFIX_DEFAULT, -[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl -ac_default_prefix=$1 -AC_DIVERT_POP()]) - -dnl AC_INIT_PARSE_ARGS() -AC_DEFUN(AC_INIT_PARSE_ARGS, -[ -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -dnl Installation directory options. -dnl These are left unexpanded so users can "make install exec_prefix=/foo" -dnl and all the variables that are supposed to be based on exec_prefix -dnl by default will actually change. -dnl Use braces instead of parens because sh, perl, etc. also accept them. -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='${datadir}/info' -mandir='${datadir}/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 -changequote(, )dnl - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; -changequote([, ])dnl - *) 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. -changequote(, )dnl - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_feature: invalid feature name) - 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. -changequote(, )dnl - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_feature: invalid feature name) - 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 -changequote(, )dnl -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -changequote([, ])dnl -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version AC_ACVERSION" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. -changequote(, )dnl - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_package: invalid package name) - 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. -changequote(, )dnl - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_package: invalid package name) - 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" ;; - - -*) AC_MSG_ERROR([$ac_option: invalid option; use --help to show usage]) - ;; - - *) -changequote(, )dnl - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then -changequote([, ])dnl - AC_MSG_WARN($ac_option: invalid host type) - fi - if test "x$nonopt" != xNONE; then - AC_MSG_ERROR(can only configure for one host and one target at a time) - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - AC_MSG_ERROR(missing argument to --`echo $ac_prev | sed 's/_/-/g'`) -fi -]) - -dnl Try to have only one #! line, so the script doesn't look funny -dnl for users of AC_REVISION. -dnl AC_INIT_BINSH() -AC_DEFUN(AC_INIT_BINSH, -[#! /bin/sh -]) - -dnl AC_INIT(UNIQUE-FILE-IN-SOURCE-DIR) -AC_DEFUN(AC_INIT, -[sinclude(acsite.m4)dnl -sinclude(./aclocal.m4)dnl -AC_REQUIRE([AC_INIT_BINSH])dnl -AC_INIT_NOTICE -AC_DIVERT_POP()dnl to NORMAL -AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl -AC_INIT_PARSE_ARGS -AC_INIT_PREPARE($1)dnl -AC_DIVERT_POP()dnl to NORMAL -]) - -dnl AC_INIT_PREPARE(UNIQUE-FILE-IN-SOURCE-DIR) -AC_DEFUN(AC_INIT_PREPARE, -[trap 'rm -fr conftest* confdefs* 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 -define(AC_FD_MSG, 6)dnl -[#] AC_FD_MSG checking for... messages and results -define(AC_FD_CC, 5)dnl -[#] AC_FD_CC compiler messages saved in config.log -if test "$silent" = yes; then - exec AC_FD_MSG>/dev/null -else - exec AC_FD_MSG>&1 -fi -exec AC_FD_CC>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&AC_FD_CC - -# 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) ;; -changequote(<<, >>)dnl -dnl If you change this globbing pattern, test it on an old shell -- -dnl it's sensitive. Putting any kind of quote in it causes syntax errors. - *" "*|*" "*|*[\[\]\~\<<#>>\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; -changequote([, ])dnl - *) 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=$1 - -# 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 -changequote(, )dnl - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` -changequote([, ])dnl - 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 - AC_MSG_ERROR(can not find sources in $ac_confdir or ..) - else - AC_MSG_ERROR(can not find sources in $srcdir) - fi -fi -dnl Double slashes in pathnames in object file debugging info -dnl mess up M-x gdb in Emacs. -changequote(, )dnl -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` -changequote([, ])dnl - -dnl Let the site file select an alternate cache file if it wants to. -AC_SITE_LOAD -AC_CACHE_LOAD -AC_LANG_C -dnl By default always use an empty string as the executable -dnl extension. Only change it if the script calls AC_EXEEXT. -ac_exeext= -dnl By default assume that objects files use an extension of .o. Only -dnl change it if the script calls AC_OBJEXT. -ac_objext=o -AC_PROG_ECHO_N -dnl Substitute for predefined variables. -AC_SUBST(SHELL)dnl -AC_SUBST(CFLAGS)dnl -AC_SUBST(CPPFLAGS)dnl -AC_SUBST(CXXFLAGS)dnl -AC_SUBST(FFLAGS)dnl -AC_SUBST(DEFS)dnl -AC_SUBST(LDFLAGS)dnl -AC_SUBST(LIBS)dnl -AC_SUBST(exec_prefix)dnl -AC_SUBST(prefix)dnl -AC_SUBST(program_transform_name)dnl -dnl Installation directory options. -AC_SUBST(bindir)dnl -AC_SUBST(sbindir)dnl -AC_SUBST(libexecdir)dnl -AC_SUBST(datadir)dnl -AC_SUBST(sysconfdir)dnl -AC_SUBST(sharedstatedir)dnl -AC_SUBST(localstatedir)dnl -AC_SUBST(libdir)dnl -AC_SUBST(includedir)dnl -AC_SUBST(oldincludedir)dnl -AC_SUBST(infodir)dnl -AC_SUBST(mandir)dnl -]) - - -dnl ### Selecting optional features - - -dnl AC_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE]) -AC_DEFUN(AC_ARG_ENABLE, -[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl -ac_help="$ac_help -[$2]" -AC_DIVERT_POP()dnl -[#] Check whether --enable-[$1] or --disable-[$1] was given. -if test "[${enable_]patsubst([$1], -, _)+set}" = set; then - enableval="[$enable_]patsubst([$1], -, _)" - ifelse([$3], , :, [$3]) -ifelse([$4], , , [else - $4 -])dnl -fi -]) - -AC_DEFUN(AC_ENABLE, -[AC_OBSOLETE([$0], [; instead use AC_ARG_ENABLE])dnl -AC_ARG_ENABLE([$1], [ --enable-$1], [$2], [$3])dnl -]) - - -dnl ### Working with optional software - - -dnl AC_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE]) -AC_DEFUN(AC_ARG_WITH, -[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl -ac_help="$ac_help -[$2]" -AC_DIVERT_POP()dnl -[#] Check whether --with-[$1] or --without-[$1] was given. -if test "[${with_]patsubst([$1], -, _)+set}" = set; then - withval="[$with_]patsubst([$1], -, _)" - ifelse([$3], , :, [$3]) -ifelse([$4], , , [else - $4 -])dnl -fi -]) - -AC_DEFUN(AC_WITH, -[AC_OBSOLETE([$0], [; instead use AC_ARG_WITH])dnl -AC_ARG_WITH([$1], [ --with-$1], [$2], [$3])dnl -]) - - -dnl ### Transforming program names. - - -dnl AC_ARG_PROGRAM() -AC_DEFUN(AC_ARG_PROGRAM, -[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," -]) - - -dnl ### Version numbers - - -dnl AC_REVISION(REVISION-INFO) -AC_DEFUN(AC_REVISION, -[AC_REQUIRE([AC_INIT_BINSH])dnl -[# From configure.in] translit([$1], $")]) - -dnl Subroutines of AC_PREREQ. - -dnl Change the dots in NUMBER into commas. -dnl AC_PREREQ_SPLIT(NUMBER) -define(AC_PREREQ_SPLIT, -[translit($1, ., [, ])]) - -dnl Default the ternary version number to 0 (e.g., 1, 7 -> 1, 7, 0). -dnl AC_PREREQ_CANON(MAJOR, MINOR [,TERNARY]) -define(AC_PREREQ_CANON, -[$1, $2, ifelse([$3], , 0, [$3])]) - -dnl Complain and exit if version number 1 is less than version number 2. -dnl PRINTABLE2 is the printable version of version number 2. -dnl AC_PREREQ_COMPARE(MAJOR1, MINOR1, TERNARY1, MAJOR2, MINOR2, TERNARY2, -dnl PRINTABLE2) -define(AC_PREREQ_COMPARE, -[ifelse(builtin([eval], -[$3 + $2 * 1000 + $1 * 1000000 < $6 + $5 * 1000 + $4 * 1000000]), 1, -[errprint(dnl -FATAL ERROR: Autoconf version $7 or higher is required for this script -)m4exit(3)])]) - -dnl Complain and exit if the Autoconf version is less than VERSION. -dnl AC_PREREQ(VERSION) -define(AC_PREREQ, -[AC_PREREQ_COMPARE(AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)), -AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])), [$1])]) - - -dnl ### Getting the canonical system type - - -dnl Find install-sh, config.sub, config.guess, and Cygnus configure -dnl in directory DIR. These are auxiliary files used in configuration. -dnl DIR can be either absolute or relative to $srcdir. -dnl AC_CONFIG_AUX_DIR(DIR) -AC_DEFUN(AC_CONFIG_AUX_DIR, -[AC_CONFIG_AUX_DIRS($1 $srcdir/$1)]) - -dnl The default is `$srcdir' or `$srcdir/..' or `$srcdir/../..'. -dnl There's no need to call this macro explicitly; just AC_REQUIRE it. -AC_DEFUN(AC_CONFIG_AUX_DIR_DEFAULT, -[AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../..)]) - -dnl Internal subroutine. -dnl Search for the configuration auxiliary files in directory list $1. -dnl We look only for install-sh, so users of AC_PROG_INSTALL -dnl do not automatically need to distribute the other auxiliary files. -dnl AC_CONFIG_AUX_DIRS(DIR ...) -AC_DEFUN(AC_CONFIG_AUX_DIRS, -[ac_aux_dir= -for ac_dir in $1; 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 - AC_MSG_ERROR([can not find install-sh or install.sh in $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. -AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -]) - -dnl Canonicalize the host, target, and build system types. -AC_DEFUN(AC_CANONICAL_SYSTEM, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_BEFORE([$0], [AC_ARG_PROGRAM]) -# 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) ;; -*) AC_MSG_ERROR(can only configure for one host and one target at a time) ;; -esac - -AC_CANONICAL_HOST -AC_CANONICAL_TARGET -AC_CANONICAL_BUILD -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- -]) - -dnl Subroutines of AC_CANONICAL_SYSTEM. - -AC_DEFUN(AC_CANONICAL_HOST, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else AC_MSG_ERROR(can not run $ac_config_sub) -fi - -AC_MSG_CHECKING(host system type) - -dnl Set host_alias. -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else AC_MSG_ERROR(can not guess host type; you must specify one) - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -dnl Set the other host vars. -changequote(<<, >>)dnl -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/'` -changequote([, ])dnl -AC_MSG_RESULT($host) -AC_SUBST(host)dnl -AC_SUBST(host_alias)dnl -AC_SUBST(host_cpu)dnl -AC_SUBST(host_vendor)dnl -AC_SUBST(host_os)dnl -]) - -dnl Internal use only. -AC_DEFUN(AC_CANONICAL_TARGET, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_MSG_CHECKING(target system type) - -dnl Set target_alias. -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -dnl Set the other target vars. -changequote(<<, >>)dnl -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/'` -changequote([, ])dnl -AC_MSG_RESULT($target) -AC_SUBST(target)dnl -AC_SUBST(target_alias)dnl -AC_SUBST(target_cpu)dnl -AC_SUBST(target_vendor)dnl -AC_SUBST(target_os)dnl -]) - -dnl Internal use only. -AC_DEFUN(AC_CANONICAL_BUILD, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_MSG_CHECKING(build system type) - -dnl Set build_alias. -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -dnl Set the other build vars. -changequote(<<, >>)dnl -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/'` -changequote([, ])dnl -AC_MSG_RESULT($build) -AC_SUBST(build)dnl -AC_SUBST(build_alias)dnl -AC_SUBST(build_cpu)dnl -AC_SUBST(build_vendor)dnl -AC_SUBST(build_os)dnl -]) - - -dnl AC_VALIDATE_CACHED_SYSTEM_TUPLE[(cmd)] -dnl if the cache file is inconsistent with the current host, -dnl target and build system types, execute CMD or print a default -dnl error message. -AC_DEFUN(AC_VALIDATE_CACHED_SYSTEM_TUPLE, [ - AC_REQUIRE([AC_CANONICAL_SYSTEM]) - AC_MSG_CHECKING([cached system tuple]) - if { test x"${ac_cv_host_system_type+set}" = x"set" && - test x"$ac_cv_host_system_type" != x"$host"; } || - { test x"${ac_cv_build_system_type+set}" = x"set" && - test x"$ac_cv_build_system_type" != x"$build"; } || - { test x"${ac_cv_target_system_type+set}" = x"set" && - test x"$ac_cv_target_system_type" != x"$target"; }; then - AC_MSG_RESULT([different]) - ifelse($#, 1, [$1], - [AC_MSG_ERROR([remove config.cache and re-run configure])]) - else - AC_MSG_RESULT(ok) - fi - ac_cv_host_system_type="$host" - ac_cv_build_system_type="$build" - ac_cv_target_system_type="$target" -]) - - -dnl ### Caching test results - - -dnl Look for site or system specific initialization scripts. -dnl AC_SITE_LOAD() -define(AC_SITE_LOAD, -[# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done -]) - -dnl AC_CACHE_LOAD() -define(AC_CACHE_LOAD, -[if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi -]) - -dnl AC_CACHE_SAVE() -define(AC_CACHE_SAVE, -[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 -dnl Allow a site initialization script to override cache values. -# 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. -changequote(, )dnl -(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 -changequote([, ])dnl -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 -]) - -dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved. -dnl AC_CACHE_VAL(CACHE-ID, COMMANDS-TO-SET-IT) -define(AC_CACHE_VAL, -[dnl We used to use the below line, but it fails if the 1st arg is a -dnl shell variable, so we need the eval. -dnl if test "${$1+set}" = set; then -dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion"). -if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG -else - $2 -fi -]) - -dnl AC_CACHE_CHECK(MESSAGE, CACHE-ID, COMMANDS) -define(AC_CACHE_CHECK, -[AC_MSG_CHECKING([$1]) -AC_CACHE_VAL([$2], [$3])dnl -AC_MSG_RESULT([$]$2)]) - - -dnl ### Defining symbols - - -dnl Set VARIABLE to VALUE, verbatim, or 1. -dnl AC_DEFINE(VARIABLE [, VALUE]) -define(AC_DEFINE, -[cat >> confdefs.h <<\EOF -[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1) -EOF -]) - -dnl Similar, but perform shell substitutions $ ` \ once on VALUE. -define(AC_DEFINE_UNQUOTED, -[cat >> confdefs.h <&AC_FD_MSG -echo "configure:__oline__: checking $1" >&AC_FD_CC]) - -dnl AC_CHECKING(FEATURE-DESCRIPTION) -define(AC_CHECKING, -[echo "checking $1" 1>&AC_FD_MSG -echo "configure:__oline__: checking $1" >&AC_FD_CC]) - -dnl AC_MSG_RESULT(RESULT-DESCRIPTION) -define(AC_MSG_RESULT, -[echo "$ac_t""$1" 1>&AC_FD_MSG]) - -dnl AC_MSG_RESULTPROTO(RESULT-PROTOTYPE-DESCRIPTION) -define(AC_MSG_RESULTPROTO, -[AC_MSG_RESULT(${ac_tt}[$1]) -dnl ac_proto=`echo "$1" | tr -s ' '` -dnl AC_MSG_RESULT(${ac_tt}${ac_proto}) -]) - -dnl AC_VERBOSE(RESULT-DESCRIPTION) -define(AC_VERBOSE, -[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl -echo " $1" 1>&AC_FD_MSG]) - -dnl AC_MSG_WARN(PROBLEM-DESCRIPTION) -define(AC_MSG_WARN, -[echo "configure: warning: $1" 1>&2]) - -dnl AC_MSG_ERROR(ERROR-DESCRIPTION) -define(AC_MSG_ERROR, -[{ echo "configure: error: $1" 1>&2; exit 1; }]) - - -dnl ### Selecting which language to use for testing - - -dnl AC_LANG_C() -AC_DEFUN(AC_LANG_C, -[define([AC_LANG], [C])dnl -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>&AC_FD_CC' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' -cross_compiling=$ac_cv_prog_cc_cross -]) - -dnl AC_LANG_CPLUSPLUS() -AC_DEFUN(AC_LANG_CPLUSPLUS, -[define([AC_LANG], [CPLUSPLUS])dnl -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' -cross_compiling=$ac_cv_prog_cxx_cross -]) - -dnl AC_LANG_FORTRAN77() -AC_DEFUN(AC_LANG_FORTRAN77, -[define([AC_LANG], [FORTRAN77])dnl -ac_ext=f -ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC' -ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' -cross_compiling=$ac_cv_prog_f77_cross -]) - -dnl Push the current language on a stack. -dnl AC_LANG_SAVE() -define(AC_LANG_SAVE, -[pushdef([AC_LANG_STACK], AC_LANG)]) - -dnl Restore the current language from the stack. -dnl AC_LANG_RESTORE() -pushdef([AC_LANG_RESTORE], -[ifelse(AC_LANG_STACK, [C], [AC_LANG_C],dnl -AC_LANG_STACK, [CPLUSPLUS], [AC_LANG_CPLUSPLUS],dnl -AC_LANG_STACK, [FORTRAN77], [AC_LANG_FORTRAN77])[]popdef([AC_LANG_STACK])]) - -dnl Expands to the "extern ..." prefix used for system declarations. -dnl AC_LANG_EXTERN() -define(AC_LANG_EXTERN, -[extern -#ifdef __cplusplus -"C" -#endif -]) - - -dnl ### Compiler-running mechanics - - -dnl The purpose of this macro is to "configure:123: command line" -dnl written into config.log for every test run. -dnl AC_TRY_EVAL(VARIABLE) -AC_DEFUN(AC_TRY_EVAL, -[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl -(eval [$]$1) 2>&AC_FD_CC; }]) - -dnl AC_TRY_COMMAND(COMMAND) -AC_DEFUN(AC_TRY_COMMAND, -[{ ac_try='$1'; AC_TRY_EVAL(ac_try); }]) - - -dnl ### Dependencies between macros - - -dnl AC_BEFORE(THIS-MACRO-NAME, CALLED-MACRO-NAME) -define(AC_BEFORE, -[ifdef([AC_PROVIDE_$2], [errprint(__file__:__line__: [$2 was called before $1 -])])]) - -dnl AC_REQUIRE(MACRO-NAME) -define(AC_REQUIRE, -[ifdef([AC_PROVIDE_$1], , -[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))dnl -indir([$1]) -AC_DIVERT_POP()dnl -])]) - -dnl AC_PROVIDE(MACRO-NAME) -define(AC_PROVIDE, -[define([AC_PROVIDE_$1], )]) - -dnl AC_OBSOLETE(THIS-MACRO-NAME [, SUGGESTION]) -define(AC_OBSOLETE, -[errprint(__file__:__line__: warning: [$1] is obsolete[$2] -)]) - - -dnl ### Checking for programs - - -dnl AC_CHECK_PROG(VARIABLE, PROG-TO-CHECK-FOR, VALUE-IF-FOUND -dnl [, [VALUE-IF-NOT-FOUND] [, [PATH] [, [REJECT]]]]) -AC_DEFUN(AC_CHECK_PROG, -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_prog_$1, -[if test -n "[$]$1"; then - ac_cv_prog_$1="[$]$1" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -ifelse([$6], , , [ ac_prog_rejected=no -])dnl -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$5], , $PATH, [$5])" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then -ifelse([$6], , , dnl -[ if test "[$ac_dir/$ac_word]" = "$6"; then - ac_prog_rejected=yes - continue - fi -])dnl - ac_cv_prog_$1="$3" - break - fi - done - IFS="$ac_save_ifs" -ifelse([$6], , , [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_$1 - 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 $1 to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "[$]@" - shift - ac_cv_prog_$1="[$]@" -ifelse([$2], [$4], dnl -[ else - # Default is a loser. - AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl -ifelse([$5], , [\$]PATH, [$5])]) -])dnl - fi -fi -])dnl -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_CHECK_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_prog_$1" && ac_cv_prog_$1="$4" -])dnl -fi])dnl -$1="$ac_cv_prog_$1" -if test -n "[$]$1"; then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) - -dnl AC_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN(AC_PATH_PROG, -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, -[case "[$]$1" in - /*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$4], , $PATH, [$4])" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_$1="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" -dnl If no 3rd arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$3], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$3" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test -n "[$]$1"; then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) - -dnl AC_CHECK_PROGS(VARIABLE, PROGS-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND -dnl [, PATH]]) -AC_DEFUN(AC_CHECK_PROGS, -[for ac_prog in $2 -do -AC_CHECK_PROG($1, [$]ac_prog, [$]ac_prog, , $4) -test -n "[$]$1" && break -done -ifelse([$3], , , [test -n "[$]$1" || $1="$3" -])]) - -dnl AC_PATH_PROGS(VARIABLE, PROGS-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND -dnl [, PATH]]) -AC_DEFUN(AC_PATH_PROGS, -[for ac_prog in $2 -do -AC_PATH_PROG($1, [$]ac_prog, , $4) -test -n "[$]$1" && break -done -ifelse([$3], , , [test -n "[$]$1" || $1="$3" -])]) - -dnl Internal subroutine. -AC_DEFUN(AC_CHECK_TOOL_PREFIX, -[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_CANONICAL_BUILD])dnl -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi -]) - -dnl AC_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN(AC_CHECK_TOOL, -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl -AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2, - ifelse([$3], , [$2], ), $4) -ifelse([$3], , , [ -if test -z "$ac_cv_prog_$1"; then -if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG($1, $2, $2, $3) -else - $1="$3" -fi -fi]) -]) - -dnl Guess the value for the `prefix' variable by looking for -dnl the argument program along PATH and taking its parent. -dnl Example: if the argument is `gcc' and we find /usr/local/gnu/bin/gcc, -dnl set `prefix' to /usr/local/gnu. -dnl This comes too late to find a site file based on the prefix, -dnl and it might use a cached value for the path. -dnl No big loss, I think, since most configures don't use this macro anyway. -dnl AC_PREFIX_PROGRAM(PROGRAM) -AC_DEFUN(AC_PREFIX_PROGRAM, -[if test "x$prefix" = xNONE; then -changequote(<<, >>)dnl -define(<>, translit($1, [a-z], [A-Z]))dnl -changequote([, ])dnl -dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle. -echo $ac_n "checking for prefix by $ac_c" 1>&AC_FD_MSG -AC_PATH_PROG(AC_VAR_NAME, $1) -changequote(<<, >>)dnl - if test -n "$ac_cv_path_<<>>AC_VAR_NAME"; then - prefix=`echo $ac_cv_path_<<>>AC_VAR_NAME|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` -changequote([, ])dnl - fi -fi -undefine([AC_VAR_NAME])dnl -]) - -dnl Try to compile, link and execute TEST-PROGRAM. Set WORKING-VAR to -dnl `yes' if the current compiler works, otherwise set it ti `no'. Set -dnl CROSS-VAR to `yes' if the compiler and linker produce non-native -dnl executables, otherwise set it to `no'. Before calling -dnl `AC_TRY_COMPILER()', call `AC_LANG_*' to set-up for the right -dnl language. -dnl -dnl AC_TRY_COMPILER(TEST-PROGRAM, WORKING-VAR, CROSS-VAR) -AC_DEFUN(AC_TRY_COMPILER, -[cat > conftest.$ac_ext << EOF -ifelse(AC_LANG, [FORTRAN77], , -[ -[#]line __oline__ "configure" -#include "confdefs.h" -]) -[$1] -EOF -if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - [$2]=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - [$3]=no - else - [$3]=yes - fi -else - echo "configure: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC - [$2]=no -fi -rm -fr conftest*]) - - -dnl ### Checking for libraries - - -dnl AC_TRY_LINK_FUNC(func, action-if-found, action-if-not-found) -dnl Try to link a program that calls FUNC, handling GCC builtins. If -dnl the link succeeds, execute ACTION-IF-FOUND; otherwise, execute -dnl ACTION-IF-NOT-FOUND. - -AC_DEFUN(AC_TRY_LINK_FUNC, -AC_TRY_LINK(dnl -ifelse([$1], [main], , dnl Avoid conflicting decl of main. -[/* Override any gcc2 internal prototype to avoid an error. */ -]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus -extern "C" -#endif -])dnl -[/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $1(); -]), -[$1()], -[$2], -[$3])) - - -dnl AC_SEARCH_LIBS(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND -dnl [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]]) -dnl Search for a library defining FUNC, if it's not already available. - -AC_DEFUN(AC_SEARCH_LIBS, -[AC_PREREQ([2.13]) -AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1], -[ac_func_search_save_LIBS="$LIBS" -ac_cv_search_$1="no" -AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"]) -test "$ac_cv_search_$1" = "no" && for i in $2; do -LIBS="-l$i $5 $ac_func_search_save_LIBS" -AC_TRY_LINK_FUNC([$1], -[ac_cv_search_$1="-l$i" -break]) -done -LIBS="$ac_func_search_save_LIBS"]) -if test "$ac_cv_search_$1" != "no"; then - test "$ac_cv_search_$1" = "none required" || LIBS="$ac_cv_search_$1 $LIBS" - $3 -else : - $4 -fi]) - - - -dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND -dnl [, OTHER-LIBRARIES]]]) -AC_DEFUN(AC_CHECK_LIB, -[AC_MSG_CHECKING(ifelse([$2], [main], [for -l$1], [for $2 in -l$1])) -dnl Use a cache variable name containing both the library and function name, -dnl because the test really is for library $1 defining function $2, not -dnl just for library $1. Separate tests with the same $1 and different $2s -dnl may have different results. -ac_lib_var=`echo ifelse([$2],main,[$1],[$1[_]$2]) | sed 'y%./+-%__p_%'` -AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, -[ac_save_LIBS="$LIBS" -LIBS="-l$1 $5 $LIBS" -AC_TRY_LINK(ifelse(AC_LANG, [FORTRAN77], , -ifelse([$2], [main], , dnl Avoid conflicting decl of main. -[/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $2(); -])), - [$2()], - eval "ac_cv_lib_$ac_lib_var=yes", - eval "ac_cv_lib_$ac_lib_var=no") -LIBS="$ac_save_LIBS" -])dnl -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$3], , -[changequote(, )dnl - ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_lib) - LIBS="-l$1 $LIBS" -], [$3]) -else - AC_MSG_RESULT(no) -ifelse([$4], , , [$4 -])dnl -fi -]) - -dnl AC_HAVE_LIBRARY(LIBRARY, [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND -dnl [, OTHER-LIBRARIES]]]) -AC_DEFUN(AC_HAVE_LIBRARY, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_LIB])dnl -changequote(<<, >>)dnl -define(<>, dnl -patsubst(patsubst($1, <>, <<\1>>), <<-l>>, <<>>))dnl -define(<>, ac_cv_lib_<<>>AC_LIB_NAME)dnl -changequote([, ])dnl -AC_MSG_CHECKING([for -l[]AC_LIB_NAME]) -AC_CACHE_VAL(AC_CV_NAME, -[ac_save_LIBS="$LIBS" -LIBS="-l[]AC_LIB_NAME[] $4 $LIBS" -AC_TRY_LINK( , [int main()], AC_CV_NAME=yes, AC_CV_NAME=no) -LIBS="$ac_save_LIBS" -])dnl -AC_MSG_RESULT($AC_CV_NAME) -if test "$AC_CV_NAME" = yes; then - ifelse([$2], , -[AC_DEFINE([HAVE_LIB]translit(AC_LIB_NAME, [a-z], [A-Z])) - LIBS="-l[]AC_LIB_NAME[] $LIBS" -], [$2]) -ifelse([$3], , , [else - $3 -])dnl -fi -undefine([AC_LIB_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - - -dnl ### Examining declarations - - -dnl AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE [, ACTION-IF-FALSE]]) -AC_DEFUN(AC_TRY_CPP, -[AC_REQUIRE_CPP()dnl -cat > conftest.$ac_ext <&AC_FD_CC - echo "configure: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$3], , , [ rm -rf conftest* - $3 -])dnl -fi -rm -f conftest*]) - -dnl AC_EGREP_HEADER(PATTERN, HEADER-FILE, ACTION-IF-FOUND [, -dnl ACTION-IF-NOT-FOUND]) -AC_DEFUN(AC_EGREP_HEADER, -[AC_EGREP_CPP([$1], [#include <$2>], [$3], [$4])]) - -dnl Because this macro is used by AC_PROG_GCC_TRADITIONAL, which must -dnl come early, it is not included in AC_BEFORE checks. -dnl AC_EGREP_CPP(PATTERN, PROGRAM, [ACTION-IF-FOUND [, -dnl ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_EGREP_CPP, -[AC_REQUIRE_CPP()dnl -cat > conftest.$ac_ext <&AC_FD_CC | -dnl Prevent m4 from eating character classes: -changequote(, )dnl - egrep "$1" >/dev/null 2>&1; then -changequote([, ])dnl - ifelse([$3], , :, [rm -rf conftest* - $3]) -ifelse([$4], , , [else - rm -rf conftest* - $4 -])dnl -fi -rm -f conftest* -]) - - -dnl ### Examining syntax - - -dnl AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY, -dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_TRY_COMPILE, -[cat > conftest.$ac_ext <&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$4], , , [ rm -rf conftest* - $4 -])dnl -fi -rm -f conftest*]) - - -dnl ### Examining libraries - - -dnl AC_COMPILE_CHECK(ECHO-TEXT, INCLUDES, FUNCTION-BODY, -dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) -AC_DEFUN(AC_COMPILE_CHECK, -[AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnl -ifelse([$1], , , [AC_CHECKING([for $1]) -])dnl -AC_TRY_LINK([$2], [$3], [$4], [$5]) -]) - -dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY, -dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_TRY_LINK, -[cat > conftest.$ac_ext <&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$4], , , [ rm -rf conftest* - $4 -])dnl -fi -rm -f conftest*]) - - -dnl ### Checking for run-time features - - -dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE -dnl [, ACTION-IF-CROSS-COMPILING]]]) -AC_DEFUN(AC_TRY_RUN, -[if test "$cross_compiling" = yes; then - ifelse([$4], , - [errprint(__file__:__line__: warning: [AC_TRY_RUN] called without default to allow cross compiling -)dnl - AC_MSG_ERROR(can not run test program while cross compiling)], - [$4]) -else - AC_TRY_RUN_NATIVE([$1], [$2], [$3]) -fi -]) - -dnl Like AC_TRY_RUN but assumes a native-environment (non-cross) compiler. -dnl AC_TRY_RUN_NATIVE(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE]]) -AC_DEFUN(AC_TRY_RUN_NATIVE, -[cat > conftest.$ac_ext </dev/null -then -dnl Don't remove the temporary files here, so they can be examined. - ifelse([$2], , :, [$2]) -else - echo "configure: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$3], , , [ rm -fr conftest* - $3 -])dnl -fi -if test -f core; then - coredir=core`/bin/sh -c 'echo $$'` - mkdir $coredir - cp confdefs.h $coredir/confdefs.h - mv conftest.c $coredir/conftest.c - mv conftest $coredir/conftest - mv core $coredir/core - echo "warning: test program dumped core -- see subdirectory $coredir" -fi -rm -fr conftest*]) - - -dnl ### Checking for header files - - -dnl AC_CHECK_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_HEADER, -[dnl Do the transliteration at runtime so arg 1 can be a shell variable. -ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(ac_cv_header_$ac_safe, -[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=yes", - eval "ac_cv_header_$ac_safe=no")])dnl -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) -else - AC_MSG_RESULT(no) -ifelse([$3], , , [$3 -])dnl -fi -]) - -dnl AC_CHECK_HEADERS(HEADER-FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_HEADERS, -[for ac_hdr in $1 -do -AC_CHECK_HEADER($ac_hdr, -[changequote(, )dnl - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_hdr) $2], $3)dnl -done -]) - - -dnl ### Checking for the existence of files - -dnl AC_CHECK_FILE(FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FILE, -[AC_REQUIRE([AC_PROG_CC]) -dnl Do the transliteration at runtime so arg 1 can be a shell variable. -ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(ac_cv_file_$ac_safe, -[if test "$cross_compiling" = yes; then - errprint(__file__:__line__: warning: Cannot check for file existence when cross compiling -)dnl - AC_MSG_ERROR(Cannot check for file existence when cross compiling) -else - if test -r $1; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi -fi])dnl -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) -else - AC_MSG_RESULT(no) -ifelse([$3], , , [$3]) -fi -]) - -dnl AC_CHECK_FILES(FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FILES, -[for ac_file in $1 -do -AC_CHECK_FILE($ac_file, -[changequote(, )dnl - ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_file) $2], $3)dnl -done -]) - - -dnl ### Checking for library functions - - -dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FUNC, -[AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(ac_cv_func_$1, -[AC_TRY_LINK( -dnl Don't include because on OSF/1 3.0 it includes -dnl which includes which contains a prototype for -dnl select. Similarly for bzero. -[/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $1(); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $1(); -], [ -/* 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_$1) || defined (__stub___$1) -choke me -#else -$1(); -#endif -], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")]) -if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) -else - AC_MSG_RESULT(no) -ifelse([$3], , , [$3 -])dnl -fi -]) - -dnl AC_CHECK_FUNCS(FUNCTION... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FUNCS, -[for ac_func in $1 -do -AC_CHECK_FUNC($ac_func, -[changequote(, )dnl - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_func) $2], $3)dnl -done -]) - -dnl AC_REPLACE_FUNCS(FUNCTION...) -AC_DEFUN(AC_REPLACE_FUNCS, -[AC_CHECK_FUNCS([$1], , [LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"]) -AC_SUBST(LIBOBJS)dnl -]) - - -dnl ### Checking compiler characteristics - - -dnl AC_CHECK_SIZEOF(TYPE [, CROSS-SIZE]) -AC_DEFUN(AC_CHECK_SIZEOF, -[changequote(<<, >>)dnl -dnl The name to #define. -define(<>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl -dnl The cache variable name. -define(<>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl -changequote([, ])dnl -AC_MSG_CHECKING(size of $1) -AC_CACHE_VAL(AC_CV_NAME, -[AC_TRY_RUN([#include -int main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof($1)); - exit(0); -}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl -AC_MSG_RESULT($AC_CV_NAME) -AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) -undefine([AC_TYPE_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - - -dnl ### Checking for typedefs - - -dnl AC_CHECK_TYPE(TYPE, DEFAULT) -AC_DEFUN(AC_CHECK_TYPE, -[AC_REQUIRE([AC_HEADER_STDC])dnl -AC_MSG_CHECKING(for $1) -AC_CACHE_VAL(ac_cv_type_$1, -[AC_EGREP_CPP(dnl -changequote(<<,>>)dnl -<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl -changequote([,]), [#include -#if defined(STDC_HEADERS) || defined(HAVE_STDLIB_H) -#include -#endif -#if defined(STDC_HEADERS) || defined(HAVE_STDDEF_H) -#include -#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl -AC_MSG_RESULT($ac_cv_type_$1) -if test $ac_cv_type_$1 = no; then - AC_DEFINE($1, $2) -fi -]) - - -dnl ### Creating output files - - -dnl AC_CONFIG_HEADER(HEADER-TO-CREATE ...) -AC_DEFUN(AC_CONFIG_HEADER, -[define(AC_LIST_HEADER, $1)]) - -dnl Link each of the existing files SOURCE... to the corresponding -dnl link name in DEST... -dnl AC_LINK_FILES(SOURCE..., DEST...) -AC_DEFUN(AC_LINK_FILES, -[dnl -define([AC_LIST_FILES], ifdef([AC_LIST_FILES], [AC_LIST_FILES ],)[$1])dnl -define([AC_LIST_LINKS], ifdef([AC_LIST_LINKS], [AC_LIST_LINKS ],)[$2])]) - -dnl Add additional commands for AC_OUTPUT to put into config.status. -dnl Use diversions instead of macros so we can be robust in the -dnl presence of commas in $1 and/or $2. -dnl AC_OUTPUT_COMMANDS(EXTRA-CMDS, INIT-CMDS) -AC_DEFUN(AC_OUTPUT_COMMANDS, -[AC_DIVERT_PUSH(AC_DIVERSION_CMDS)dnl -[$1] -AC_DIVERT_POP()dnl -AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)dnl -[$2] -AC_DIVERT_POP()]) - -dnl AC_CONFIG_SUBDIRS(DIR ...) -AC_DEFUN(AC_CONFIG_SUBDIRS, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -define([AC_LIST_SUBDIRS], ifdef([AC_LIST_SUBDIRS], [AC_LIST_SUBDIRS ],)[$1])dnl -subdirs="AC_LIST_SUBDIRS" -AC_SUBST(subdirs)dnl -]) - -dnl The big finish. -dnl Produce config.status, config.h, and links; and configure subdirs. -dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS] [, INIT-CMDS]) -define(AC_OUTPUT, -[trap '' 1 2 15 -AC_CACHE_SAVE -trap 'rm -fr conftest* confdefs* 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 -changequote(, )dnl - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -changequote([, ])dnl -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -ifdef([AC_LIST_HEADER], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()]) - -# 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 </dev/null | sed 1q`: -# -[#] [$]0 [$]ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -changequote(, )dnl -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -changequote([, ])dnl -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 AC_ACVERSION" - 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 -ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL" -])dnl - -changequote(<<, >>)dnl -ifdef(<>, -<>, -<>) -changequote([, ])dnl -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -undivert(AC_DIVERSION_CMDS)dnl -$2 -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 -dnl config.status should not do recursion. -ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl -])dnl - -dnl Set the DEFS variable to the -D options determined earlier. -dnl This is a subroutine of AC_OUTPUT. -dnl It is called inside configure, outside of config.status. -dnl AC_OUTPUT_MAKE_DEFS() -define(AC_OUTPUT_MAKE_DEFS, -[# Transform confdefs.h into DEFS. -dnl Using a here document instead of a string reduces the quoting nightmare. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -changequote(<<, >>)dnl -s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -changequote([, ])dnl -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs -]) - -dnl Do the variable substitutions to create the Makefiles or whatever. -dnl This is a subroutine of AC_OUTPUT. It is called inside an unquoted -dnl here document whose contents are going into config.status, but -dnl upon returning, the here document is being quoted. -dnl AC_OUTPUT_FILES(FILE...) -define(AC_OUTPUT_FILES, -[# Protect against being on the right side of a sed subst in config.status. -changequote(, )dnl -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -changequote([, ])dnl -dnl These here document variables are unquoted when configure runs -dnl but quoted when config.status runs, so variables are expanded once. -$ac_vpsub -dnl Shell code in configure.in might set extrasub. -$extrasub -dnl Insert the sed substitutions of variables. -undivert(AC_DIVERSION_SED) -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 <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then -changequote(, )dnl - # 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%/[^/][^/]*$%%'` -changequote([, ])dnl - 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. -changequote(, )dnl - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` -changequote([, ])dnl - 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 - -ifdef([AC_PROVIDE_AC_PROG_INSTALL], -[ case "$ac_given_INSTALL" in -changequote(, )dnl - [/$]*) INSTALL="$ac_given_INSTALL" ;; -changequote([, ])dnl - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac -])dnl - - 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 -ifdef([AC_PROVIDE_AC_PROG_INSTALL], [s%@INSTALL@%$INSTALL%g -])dnl -dnl The parens around the eval prevent an "illegal io" in Ultrix sh. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -dnl This would break Makefile dependencies. -dnl if cmp -s $ac_file conftest.out 2>/dev/null; then -dnl echo "$ac_file is unchanged" -dnl rm -f conftest.out -dnl else -dnl rm -f $ac_file -dnl mv conftest.out $ac_file -dnl fi -fi; done -rm -f conftest.s* -]) - -dnl Create the config.h files from the config.h.in files. -dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted -dnl here document whose contents are going into config.status. -dnl AC_OUTPUT_HEADER(HEADER-FILE...) -define(AC_OUTPUT_HEADER, -[changequote(<<, >>)dnl -# 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' -# ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE". -ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)' -ac_fB='<<$>>%\1#\2define\3' -ac_fC=' ' -ac_fD='%g' -changequote([, ])dnl - -if test "${CONFIG_HEADERS+set}" != set; then -EOF -dnl Support passing AC_CONFIG_HEADER a value containing shell variables. -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then -changequote(, )dnl - # 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 -changequote([, ])dnl - - 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 -dnl Using a here document instead of a string reduces the quoting nightmare. -dnl Putting comments in sed scripts is not portable. -cat > conftest.hdr <<\EOF -changequote(<<, >>)dnl -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 -s%ac_e%ac_f%gp -changequote([, ])dnl -EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr - -dnl This is not necessary at all: Just write -dnl #ifndef _POSIX_SOURCE -dnl #undef _POSIX_SOURCE -dnl #endif -dnl instead of -dnl #undef _POSIX_SOURCE -dnl -dnl # This sed command replaces #undef with comments. This is necessary, for -dnl # example, in the case of _POSIX_SOURCE, which is predefined and required -dnl # on some systems where configure will not decide to define it. -dnl cat >> conftest.vals <<\EOF -dnl changequote(, )dnl -dnl s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% -dnl changequote([, ])dnl -dnl 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 <> $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 - -dnl Now back to your regularly scheduled config.status. -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. -changequote(, )dnl - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` -changequote([, ])dnl - 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 - -]) - -dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted -dnl here document whose contents are going into config.status. -dnl AC_OUTPUT_LINKS(SOURCE..., DEST...) -define(AC_OUTPUT_LINKS, -[EOF - -cat >> $CONFIG_STATUS <> $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 - AC_MSG_ERROR($srcdir/$ac_source: File not found) - fi - rm -f $ac_dest - - # Make relative symlinks. - # Remove last slash and all that follows it. Not all systems have dirname. -changequote(, )dnl - ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` -changequote([, ])dnl - 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. -changequote(, )dnl - ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` -changequote([, ])dnl - else - ac_dest_dir_suffix= ac_dots= - fi - - case "$srcdir" in -changequote(, )dnl - [/$]*) ac_rel_source="$srcdir/$ac_source" ;; -changequote([, ])dnl - *) 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 - AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source) - fi -done -]) - -dnl This is a subroutine of AC_OUTPUT. -dnl It is called after running config.status. -dnl AC_OUTPUT_SUBDIRS(DIRECTORY...) -define(AC_OUTPUT_SUBDIRS, -[ -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 $1; 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 - AC_MSG_ERROR(can not create `pwd`/$ac_config_dir) - fi - ;; - esac - - ac_popdir=`pwd` - cd $ac_config_dir - -changequote(, )dnl - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` -changequote([, ])dnl - - 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 - AC_MSG_WARN(no configuration information is in $ac_config_dir) - 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. - if test -n "$ac_dots"; then - ac_sub_cache_file="$ac_dots"`echo "$cache_file" | sed 's,^\./,,'` - else - ac_sub_cache_file="$cache_file" - fi - ;; - esac -ifdef([AC_PROVIDE_AC_PROG_INSTALL], - [ case "$ac_given_INSTALL" in -changequote(, )dnl - [/$]*) INSTALL="$ac_given_INSTALL" ;; -changequote([, ])dnl - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac -])dnl - - 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 - AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir) - fi - fi - - cd $ac_popdir - done -fi -]) diff --git a/autoconf/aclocal.m4 b/autoconf/aclocal.m4 index e091022..fb0d4ff 100644 --- a/autoconf/aclocal.m4 +++ b/autoconf/aclocal.m4 @@ -1,9 +1,168 @@ -dnl local autoconf macros -dnl Bruno Haible 2001-02-04 -dnl Marcus Daniels 1997-04-10 -dnl -AC_PREREQ(2.52)dnl -dnl +# generated automatically by aclocal 1.7.9 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. + +AC_PREREQ(2.57) + +AC_DEFUN([CL_AS_UNDERSCORE], +[AC_BEFORE([$0], [CL_GLOBAL_CONSTRUCTORS]) +m4_pattern_allow([^AS_UNDERSCORE$]) +AC_CACHE_CHECK(for underscore in external names, cl_cv_prog_as_underscore, [ +cat > conftest.c </dev/null 2>&1 +if grep _foo conftest.s >/dev/null ; then + cl_cv_prog_as_underscore=yes +else + cl_cv_prog_as_underscore=no +fi +rm -f conftest* +]) +if test $cl_cv_prog_as_underscore = yes; then + AS_UNDERSCORE=true + AC_DEFINE(ASM_UNDERSCORE,,[symbols are prefixed by an underscore in assembly language]) +else + AS_UNDERSCORE=false +fi +AC_SUBST(AS_UNDERSCORE)dnl +]) + +dnl Copyright (C) 1993-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible, Marcus Daniels. + +AC_PREREQ(2.13) + +AC_DEFUN([CL_GLOBAL_CONSTRUCTORS], +[AC_REQUIRE([CL_AS_UNDERSCORE])dnl +if test -n "$GCC"; then +AC_CACHE_CHECK(for the global constructors function prefix, +cl_cv_cplusplus_ctorprefix, [ +cat > conftest.cc << EOF +struct foo { foo (); }; +foo foobar; +EOF +# look for the assembly language name in the .s file +AC_TRY_COMMAND(${CXX-g++} $CXXFLAGS -S conftest.cc) >/dev/null 2>&1 +if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then + cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$' +else + if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then + cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.' + else + if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then + cl_cv_cplusplus_ctorprefix='_GLOBAL__I_' + else + cl_cv_cplusplus_ctorprefix=unknown + fi + fi +fi +rm -f conftest* +]) +if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then + ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"' + AC_DEFINE_UNQUOTED(CL_GLOBAL_CONSTRUCTOR_PREFIX,$ac_value) +AC_CACHE_CHECK(for the global destructors function prefix, +cl_cv_cplusplus_dtorprefix, [ +cat > conftest.cc << EOF +struct foo { foo (); ~ foo (); }; +foo foobar; +EOF +# look for the assembly language name in the .s file +AC_TRY_COMMAND(${CXX-g++} $CXXFLAGS -S conftest.cc) >/dev/null 2>&1 +if grep '_GLOBAL_\$D\$foobar' conftest.s >/dev/null ; then + cl_cv_cplusplus_dtorprefix='_GLOBAL_$D$' +else + if grep '_GLOBAL_\.D\.foobar' conftest.s >/dev/null ; then + cl_cv_cplusplus_dtorprefix='_GLOBAL_.D.' + else + if grep '_GLOBAL__D_foobar' conftest.s >/dev/null ; then + cl_cv_cplusplus_dtorprefix='_GLOBAL__D_' + else + cl_cv_cplusplus_dtorprefix=none + fi + fi +fi +rm -f conftest* +]) + if test "$cl_cv_cplusplus_dtorprefix" '!=' none; then + ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"' + AC_DEFINE_UNQUOTED(CL_GLOBAL_DESTRUCTOR_PREFIX,$ac_value) + fi +dnl Check whether the global constructors/destructors functions are file-scope +dnl only by default. This is the case in egcs-1.1.2 or newer. +AC_CACHE_CHECK(whether the global constructors function need to be exported, +cl_cv_cplusplus_ctorexport, [ +cat > conftest1.cc << EOF +struct foo { foo (); }; +foo foobar; +EOF +cat > conftest2.cc << EOF +#include "confdefs.h" +#ifdef ASM_UNDERSCORE +#define ASM_UNDERSCORE_PREFIX "_" +#else +#define ASM_UNDERSCORE_PREFIX "" +#endif +struct foo { foo (); }; +foo::foo () {} +extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar"); +int main() { ctor(); return 0; } +EOF +if AC_TRY_COMMAND(${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5) >/dev/null 2>&1 && test -s conftest${ac_exeext}; then + cl_cv_cplusplus_ctorexport=no +else + cl_cv_cplusplus_ctorexport=yes +fi +rm -f conftest* +]) +if test "$cl_cv_cplusplus_ctorexport" = yes; then + AC_DEFINE(CL_NEED_GLOBALIZE_CTORDTOR) +fi +fi +fi +]) + +dnl Copyright (C) 1993-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. + +AC_PREREQ(2.13) + dnl without AC_MSG_...: with AC_MSG_... and caching: dnl AC_TRY_CPP CL_CPP_CHECK dnl AC_TRY_COMPILE CL_COMPILE_CHECK @@ -20,8 +179,8 @@ dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) dnl CL_xxx_CHECK(ECHO-TEXT, CACHE-ID, dnl INCLUDES, FUNCTION-BODY, dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) -dnl -define(CL_CPP_CHECK, + +AC_DEFUN([CL_CPP_CHECK], [AC_MSG_CHECKING(for $1) AC_CACHE_VAL($2,[ AC_TRY_CPP([$3], $2=yes, $2=no) @@ -33,9 +192,9 @@ ifelse([$5], , , [else $5 ])dnl fi -])dnl -dnl -define(CL_COMPILE_CHECK, +]) + +AC_DEFUN([CL_COMPILE_CHECK], [AC_MSG_CHECKING(for $1) AC_CACHE_VAL($2,[ AC_TRY_COMPILE([$3],[$4], $2=yes, $2=no) @@ -47,9 +206,9 @@ ifelse([$6], , , [else $6 ])dnl fi -])dnl -dnl -define(CL_LINK_CHECK, +]) + +AC_DEFUN([CL_LINK_CHECK], [AC_MSG_CHECKING(for $1) AC_CACHE_VAL($2,[ AC_TRY_LINK([$3],[$4], $2=yes, $2=no) @@ -61,45 +220,11 @@ ifelse([$6], , , [else $6 ])dnl fi -])dnl -dnl -dnl CL_PROTO(IDENTIFIER, ACTION-IF-NOT-FOUND, FINAL-PROTOTYPE) -define(CL_PROTO, -[AC_MSG_CHECKING([for $1 declaration]) -AC_CACHE_VAL(cl_cv_proto_[$1], [$2 -cl_cv_proto_$1="$3"]) -cl_cv_proto_$1=`echo "[$]cl_cv_proto_$1" | tr -s ' ' | sed -e 's/( /(/'` -AC_MSG_RESULT([$]{ac_t:- - }[$]cl_cv_proto_$1) -])dnl -dnl -dnl CL_PROTO_RET(INCLUDES, DECL, CACHE-ID, TYPE-IF-OK, TYPE-IF-FAILS) -define(CL_PROTO_RET, -[AC_TRY_COMPILE([$1] -AC_LANG_EXTERN[$2 -], [], $3="$4", $3="$5") -])dnl -dnl -dnl CL_PROTO_TRY(INCLUDES, ANSI-DECL, TRAD-DECL, ACTION-IF-OK, ACTION-IF-FAILS) -define(CL_PROTO_TRY, -[AC_TRY_COMPILE([$1] -AC_LANG_EXTERN -[#if defined(__STDC__) || defined(__cplusplus) -$2 -#else -$3 -#endif -], [], [$4], [$5]) -])dnl -dnl -dnl CL_PROTO_CONST(INCLUDES, ANSI-DECL, TRAD-DECL, CACHE-ID) -define(CL_PROTO_CONST, -[CL_PROTO_TRY([$1], [$2], [$3], $4="", $4="const")] -)dnl -dnl +]) + dnl CL_SILENT(ACTION) dnl performs ACTION, with AC_MSG_CHECKING and AC_MSG_RESULT being defined away. -define(CL_SILENT, +AC_DEFUN([CL_SILENT], [pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl @@ -107,112 +232,39 @@ $1[]dnl popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl -])dnl -dnl +]) + dnl Expands to the "extern ..." prefix used for system declarations. dnl AC_LANG_EXTERN() -define(AC_LANG_EXTERN, +AC_DEFUN([AC_LANG_EXTERN], [extern #ifdef __cplusplus "C" #endif -])dnl -dnl -AC_DEFUN(CL_AS_UNDERSCORE, -[AC_BEFORE([$0], [CL_GLOBAL_CONSTRUCTORS]) -m4_pattern_allow([^AS_UNDERSCORE$]) -AC_CACHE_CHECK(for underscore in external names, cl_cv_prog_as_underscore, [ -cat > conftest.c </dev/null 2>&1 -if grep _foo conftest.s >/dev/null ; then - cl_cv_prog_as_underscore=yes -else - cl_cv_prog_as_underscore=no -fi -rm -f conftest* ]) -if test $cl_cv_prog_as_underscore = yes; then - AS_UNDERSCORE=true - AC_DEFINE(ASM_UNDERSCORE) -else - AS_UNDERSCORE=false -fi -AC_SUBST(AS_UNDERSCORE)dnl -])dnl -dnl -AC_DEFUN(CL_PROG_RANLIB, [AC_CHECK_PROG(RANLIB, ranlib, ranlib, true)])dnl -dnl -AC_DEFUN(CL_PROG_INSTALL, -[dnl This is mostly copied from AC_PROG_INSTALL. -# 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 -# AFS /usr/afsws/bin/install, which mis-handles 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. -AC_MSG_CHECKING(for a BSD compatible install) -if test -z "$INSTALL"; then -AC_CACHE_VAL(cl_cv_path_install, -[ IFS="${IFS= }"; ac_save_ifs="$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. - for ac_prog in ginstall installbsd 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. - # OSF/1 installbsd also uses dspmsg, but is usable. - : - else - if test $ac_prog = installbsd && - grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX installbsd doesn't work without option "-g". - : - else - cl_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - fi - done - ;; - esac - done - IFS="$ac_save_ifs" - # As a last resort, use cp. - test -z "$cl_cv_path_install" && cl_cv_path_install="cp" -])dnl - INSTALL="$cl_cv_path_install" -fi -dnl We do special magic for INSTALL instead of AC_SUBST, to get -dnl relative paths right. -AC_MSG_RESULT($INSTALL) -AC_SUBST(INSTALL)dnl -# 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)' -AC_SUBST(INSTALL_PROGRAM)dnl -if test -z "$INSTALL_DATA"; then - case "$INSTALL" in - cp | */cp ) INSTALL_DATA='$(INSTALL)' ;; - * ) INSTALL_DATA='$(INSTALL) -m 644' ;; - esac -fi -AC_SUBST(INSTALL_DATA)dnl -])dnl -dnl -AC_DEFUN(CL_CANONICAL_HOST, + +AC_DEFUN([CL_CC_WORKS], +[AC_CACHE_CHECK(whether CC works at all, cl_cv_prog_cc_works, [ +AC_LANG_SAVE() +AC_LANG_C() +AC_TRY_RUN([int main() { exit(0); }], +cl_cv_prog_cc_works=yes, cl_cv_prog_cc_works=no, +AC_TRY_LINK([], [], cl_cv_prog_cc_works=yes, cl_cv_prog_cc_works=no)) +AC_LANG_RESTORE() +]) +case "$cl_cv_prog_cc_works" in + *no) echo "Installation or configuration problem: C compiler cannot create executables."; exit 1;; + *yes) ;; +esac +]) + +AC_DEFUN([CL_CONFIG_SUBDIRS], +[dnl No AC_CONFIG_AUX_DIR_DEFAULT, so we don't need install.sh. +AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT]) +AC_CONFIG_SUBDIRS([$1])dnl +]) + +AC_DEFUN([CL_CANONICAL_HOST], [AC_REQUIRE([AC_PROG_CC]) dnl Actually: AC_REQUIRE([CL_CC_WORKS]) dnl Set ac_aux_dir before the cache check, because AM_PROG_LIBTOOL needs it. ac_aux_dir=${srcdir}/$1 @@ -227,19 +279,19 @@ dnl ac_aux_dir has been set. To work around this, we list AC_CANONICAL_BUILD dnl explicitly. AC_CANONICAL_BUILD AC_CANONICAL_HOST -])dnl -dnl -AC_DEFUN(CL_CANONICAL_HOST_CPU, +]) + +AC_DEFUN([CL_CANONICAL_HOST_CPU], [AC_REQUIRE([CL_CANONICAL_HOST])AC_REQUIRE([AC_PROG_CC]) case "$host_cpu" in changequote(,)dnl i[4567]86 ) host_cpu=i386 ;; - alphaev[4-7] | alphaev56 | alphapca5[67] ) + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) host_cpu=alpha ;; - hppa1.0 | hppa1.1 | hppa2.0 ) + hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) host_cpu=hppa ;; powerpc ) @@ -248,6 +300,9 @@ changequote(,)dnl c1 | c2 | c32 | c34 | c38 | c4 ) host_cpu=convex ;; + arm* ) + host_cpu=arm + ;; changequote([,])dnl mips ) AC_CACHE_CHECK([for 64-bit MIPS], cl_cv_host_mips64, [ @@ -287,429 +342,86 @@ cat >> confdefs.h <>32 == z)); - } -}], -cl_cv_c_longlong=yes, cl_cv_c_longlong=no, -dnl When cross-compiling, don't assume anything. -cl_cv_c_longlong="guessing no") ]) -case "$cl_cv_c_longlong" in - *yes) AC_DEFINE(HAVE_LONGLONG) ;; - *no) ;; -esac -])dnl -dnl -AC_DEFUN(CL_LONGDOUBLE, -[AC_CACHE_CHECK(for long double type, cl_cv_c_longdouble, [ -AC_TRY_RUN([int main() -{ long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }], -cl_cv_c_longdouble=yes, cl_cv_c_longdouble=no, -dnl When cross-compiling, don't assume anything. -cl_cv_c_longdouble="guessing no") -]) -case "$cl_cv_c_longdouble" in - *yes) AC_DEFINE(HAVE_LONGDOUBLE) ;; - *no) ;; -esac -])dnl -dnl -AC_DEFUN(CL_TEMPLATE_NULL, -[CL_COMPILE_CHECK([working template<>], cl_cv_c_templatenull, -[template class c {}; template <> class c { int x; };], , -AC_DEFINE(HAVE_TEMPLATE_NULL)) -])dnl -dnl -AC_DEFUN(CL_UNISTD_H, -[AC_CHECK_HEADERS(unistd.h)] -)dnl -dnl -AC_DEFUN(CL_ALLOCA, -[# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -CL_LINK_CHECK(working alloca.h, cl_cv_header_alloca_h, -[#include ], [char *p = (char *) alloca(2 * sizeof(int));], -AC_DEFINE(HAVE_ALLOCA_H))dnl -decl="#ifdef __GNUC__ -#define alloca __builtin_alloca -#else -#ifdef _MSC_VER -#include -#define alloca _alloca -#else -#ifdef HAVE_ALLOCA_H -#include -#else -#ifdef _AIX - #pragma alloca -#else -#ifndef alloca -char *alloca (); -#endif -#endif -#endif + +AC_DEFUN([CL_CANONICAL_HOST_CPU_FOR_FFCALL], +[AC_REQUIRE([CL_CANONICAL_HOST])AC_REQUIRE([AC_PROG_CC]) +case "$host_cpu" in +changequote(,)dnl + i[4567]86 ) + host_cpu=i386 + ;; + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) + host_cpu=alpha + ;; + hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) + host_cpu=hppa + ;; + powerpc ) + host_cpu=rs6000 + ;; + c1 | c2 | c32 | c34 | c38 | c4 ) + host_cpu=convex + ;; + arm* ) + host_cpu=arm + ;; +changequote([,])dnl + mips ) + AC_CACHE_CHECK([for 64-bit MIPS], cl_cv_host_mips64, [ +AC_EGREP_CPP(yes, +[#if defined(_MIPS_SZLONG) +#if (_MIPS_SZLONG == 64) +/* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */ + yes #endif #endif -" -CL_LINK_CHECK([alloca], cl_cv_func_alloca, -$decl, [char *p = (char *) alloca(1);], - , [alloca_missing=1])dnl -if test -n "$alloca_missing"; 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} - AC_DEFINE(NO_ALLOCA) -fi -AC_SUBST(ALLOCA)dnl -])dnl -dnl -AC_DEFUN(CL_FPU_CONTROL, -[dnl Check for Linux with and fpu_control_t or __setfpucw(). -dnl glibc versions since October 1998 define fpu_control_t. Earlier versions -dnl define and declare __setfpucw(). Very early Linux libc versions have none, -dnl and __fpu_control is of type `unsigned short'. -CL_COMPILE_CHECK([fpu_control_t], cl_cv_type_fpu_control_t, -[#include ], [fpu_control_t x;], -AC_DEFINE(HAVE_FPU_CONTROL_T)) -CL_COMPILE_CHECK([__setfpucw], cl_cv_func_setfpucw, -[#include ], [__setfpucw(_FPU_IEEE);], -AC_DEFINE(HAVE_SETFPUCW)) -])dnl -dnl -AC_DEFUN(CL_PERROR, -[AC_MSG_CHECKING(for perror declaration) -AC_CACHE_VAL(cl_cv_proto_perror, [ -AC_TRY_COMPILE([ -/* Some systems declare perror() in , some in , some don't - declare it at all. */ -#include -#include -]AC_LANG_EXTERN[double perror ();], [], -cl_cv_proto_perror=no, cl_cv_proto_perror=yes) +], cl_cv_host_mips64=yes, cl_cv_host_mips64=no) ]) -AC_MSG_RESULT([$cl_cv_proto_perror]) -if test $cl_cv_proto_perror = yes; then -AC_DEFINE(HAVE_PERROR_DECL) -fi -])dnl -dnl -AC_DEFUN(CL_RUSAGE, -[AC_CHECK_HEADERS(sys/resource.h sys/times.h)dnl -if test $ac_cv_header_sys_resource_h = yes; then - dnl HAVE_SYS_RESOURCE_H defined - CL_LINK_CHECK([getrusage], cl_cv_func_getrusage, -[#include /* NetBSD 1.0 needs this */ -#include -#include ], - [struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;], - AC_DEFINE(HAVE_GETRUSAGE))dnl - if test $cl_cv_func_getrusage = yes; then - CL_PROTO([getrusage], [ - CL_PROTO_TRY([ -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#include /* NetBSD 1.0 needs this */ -#include -#include -], -[int getrusage (int who, struct rusage * rusage);], -[int getrusage();], -[cl_cv_proto_getrusage_arg1="int"], -[cl_cv_proto_getrusage_arg1="enum __rusage_who"]) -], [extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);]) - AC_DEFINE_UNQUOTED(RUSAGE_WHO_T,$cl_cv_proto_getrusage_arg1) - fi -fi -])dnl -dnl -AC_DEFUN(CL_GETTIMEOFDAY, -[AC_BEFORE([$0], [CL_TIMES_CLOCK]) -AC_CHECK_FUNCS(gettimeofday)dnl -if test $ac_cv_func_gettimeofday = yes; then -dnl HAVE_GETTIMEOFDAY is defined -CL_PROTO([gettimeofday], [ -CL_PROTO_TRY([ -#include -#include -], [int gettimeofday (struct timeval * tp, struct timezone * tzp);], -[int gettimeofday();], -cl_cv_proto_gettimeofday_dots=no -cl_cv_proto_gettimeofday_arg2="struct timezone *", -CL_PROTO_TRY([ -#include -#include -], [int gettimeofday (struct timeval * tp, void * tzp);], -[int gettimeofday();], -cl_cv_proto_gettimeofday_dots=no -cl_cv_proto_gettimeofday_arg2="void *", -cl_cv_proto_gettimeofday_dots=yes -cl_cv_proto_gettimeofday_arg2="...")) -], [extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);]) -if test $cl_cv_proto_gettimeofday_dots = yes; then -AC_DEFINE(GETTIMEOFDAY_DOTS) +if test $cl_cv_host_mips64 = yes; then + host_cpu=mips64 else -AC_DEFINE_UNQUOTED(GETTIMEOFDAY_TZP_T,$cl_cv_proto_gettimeofday_arg2) -fi -fi -])dnl -dnl -AC_DEFUN(CL_FTIME, -[AC_BEFORE([$0], [CL_TIMES_CLOCK]) -AC_CHECK_FUNCS(ftime)])dnl -dnl -AC_DEFUN(CL_TIMES_CLOCK, -[AC_REQUIRE([CL_GETTIMEOFDAY])dnl -AC_REQUIRE([CL_FTIME])dnl -if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then -AC_CHECK_FUNC(times, , no_times=1)dnl -if test -z "$no_times"; then -AC_CACHE_CHECK(for times return value, cl_cv_func_times_return, [ -AC_TRY_RUN([ -#include -#include /* needed for CLK_TCK */ -#ifndef CLK_TCK -#include /* needed for CLK_TCK on SYSV PTX */ + AC_CACHE_CHECK([for MIPS with n32 ABI], cl_cv_host_mipsn32, [ +dnl Strictly speaking, the MIPS ABI (-32 or -n32) is independent from the CPU +dnl identification (-mips[12] or -mips[34]). But -n32 is commonly used together +dnl with -mips3, and it's easier to test the CPU identification. +AC_EGREP_CPP(yes, +[#if __mips >= 3 + yes #endif -#include -int main () -{ struct tms buffer; - clock_t result1; - clock_t result2; - int ticks; - result1 = times(&buffer); - if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1); - sleep(1); - result2 = times(&buffer); - if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1); - ticks = result2 - result1; - exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2))); -}], cl_cv_func_times_return=yes, cl_cv_func_times_return=no, -dnl When cross-compiling, don't assume anything. -cl_cv_func_times_return="guessing no") +], cl_cv_host_mipsn32=yes, cl_cv_host_mipsn32=no) ]) -case "$cl_cv_func_times_return" in - *yes) AC_DEFINE(HAVE_TIMES_CLOCK) ;; - *no) ;; -esac -fi +if test $cl_cv_host_mipsn32 = yes; then + host_cpu=mipsn32 fi -])dnl -dnl -AC_DEFUN(CL_GLOBAL_CONSTRUCTORS, -[AC_REQUIRE([CL_AS_UNDERSCORE])dnl -if test -n "$GCC"; then -AC_CACHE_CHECK(for the global constructors function prefix, -cl_cv_cplusplus_ctorprefix, [ -cat > conftest.cc << EOF -struct foo { foo (); }; -foo foobar; -EOF -# look for the assembly language name in the .s file -AC_TRY_COMMAND(${CXX-g++} $CXXFLAGS -S conftest.cc) >/dev/null 2>&1 -if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then - cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$' -else - if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then - cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.' - else - if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then - cl_cv_cplusplus_ctorprefix='_GLOBAL__I_' - else - cl_cv_cplusplus_ctorprefix=unknown - fi - fi fi -rm -f conftest* + ;; +dnl UltraSPARCs running Linux have `uname -m` = "sparc64", but the C compiler +dnl still generates 32-bit code. + sparc | sparc64 ) + AC_CACHE_CHECK([for 64-bit SPARC], cl_cv_host_sparc64, [ +AC_EGREP_CPP(yes, +[#if defined(__sparcv9) || defined(__arch64__) + yes +#endif +], cl_cv_host_sparc64=yes, cl_cv_host_sparc64=no) ]) -if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then - ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"' - AC_DEFINE_UNQUOTED(CL_GLOBAL_CONSTRUCTOR_PREFIX,$ac_value) -AC_CACHE_CHECK(for the global destructors function prefix, -cl_cv_cplusplus_dtorprefix, [ -cat > conftest.cc << EOF -struct foo { foo (); ~ foo (); }; -foo foobar; -EOF -# look for the assembly language name in the .s file -AC_TRY_COMMAND(${CXX-g++} $CXXFLAGS -S conftest.cc) >/dev/null 2>&1 -if grep '_GLOBAL_\$D\$foobar' conftest.s >/dev/null ; then - cl_cv_cplusplus_dtorprefix='_GLOBAL_$D$' +if test $cl_cv_host_sparc64 = yes; then + host_cpu=sparc64 else - if grep '_GLOBAL_\.D\.foobar' conftest.s >/dev/null ; then - cl_cv_cplusplus_dtorprefix='_GLOBAL_.D.' - else - if grep '_GLOBAL__D_foobar' conftest.s >/dev/null ; then - cl_cv_cplusplus_dtorprefix='_GLOBAL__D_' - else - cl_cv_cplusplus_dtorprefix=none - fi - fi + host_cpu=sparc fi -rm -f conftest* -]) - if test "$cl_cv_cplusplus_dtorprefix" '!=' none; then - ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"' - AC_DEFINE_UNQUOTED(CL_GLOBAL_DESTRUCTOR_PREFIX,$ac_value) - fi -dnl Check whether the global constructors/destructors functions are file-scope -dnl only by default. This is the case in egcs-1.1.2 or newer. -AC_CACHE_CHECK(whether the global constructors function need to be exported, -cl_cv_cplusplus_ctorexport, [ -cat > conftest1.cc << EOF -struct foo { foo (); }; -foo foobar; -EOF -cat > conftest2.cc << EOF -#include "confdefs.h" -#ifdef ASM_UNDERSCORE -#define ASM_UNDERSCORE_PREFIX "_" -#else -#define ASM_UNDERSCORE_PREFIX "" + ;; +esac +dnl was AC_DEFINE_UNQUOTED(__${host_cpu}__) but KAI C++ 3.2d doesn't like this +cat >> confdefs.h <&5) >/dev/null 2>&1 && test -s conftest${ac_exeext}; then - cl_cv_cplusplus_ctorexport=no -else - cl_cv_cplusplus_ctorexport=yes -fi -rm -f conftest* ]) -if test "$cl_cv_cplusplus_ctorexport" = yes; then - AC_DEFINE(CL_NEED_GLOBALIZE_CTORDTOR) -fi -fi -fi -])dnl -dnl -AC_DEFUN(CL_CHAR_UNSIGNED, -[dnl This is mostly copied from AC_C_CHAR_UNSIGNED. -AC_CACHE_CHECK(whether characters are unsigned, ac_cv_c_char_unsigned, [ -if test $ac_cv_prog_gcc = yes; then - # GCC predefines this symbol on systems where it applies. -AC_EGREP_CPP(yes, -[#ifdef __CHAR_UNSIGNED__ - yes -#endif -], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) -else -AC_TRY_RUN( -[/* volatile prevents gcc2 from optimizing the test away on sparcs. */ -#if !defined(__STDC__) || __STDC__ != 1 -#define volatile -#endif -int main() { - volatile char c = 255; exit(c < 0); -}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no, -ac_cv_c_char_unsigned="guessing no") -fi]) -if test $ac_cv_prog_gcc = no; then - # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up. - case "$ac_cv_c_char_unsigned" in - *yes) AC_DEFINE(__CHAR_UNSIGNED__) ;; - *no) ;; - esac -fi -])dnl -dnl -AC_DEFUN(CL_BOOL, -[AC_LANG_SAVE() -AC_LANG_CPLUSPLUS() -CL_COMPILE_CHECK([bool type], cl_cv_cplusplus_bool, , [bool x;], -AC_DEFINE(HAVE_BOOL), AC_DEFINE(bool,int))dnl -AC_LANG_RESTORE() -])dnl -dnl -AC_DEFUN(CL_MACHINE, -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([CL_CHAR_UNSIGNED])dnl -cl_machine_file_c=$2 -cl_machine_file_h=$3 -if test $cross_compiling = no; then -if test -z "$[$4]"; then -AC_CHECKING(for [$1]) -cat > conftest.$ac_ext <> conftest.$ac_ext -ORIGCC="$CC" -if test $ac_cv_prog_gcc = yes; then -# gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for -# target 80386. Strip "-O". -CC=`echo "$CC " | sed -e 's/-O //g'` -fi -AC_TRY_EVAL(ac_link) -CC="$ORIGCC" -if test -s conftest; then - echo "creating $cl_machine_file_h" - ./conftest > conftest.h - if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then - # The file exists and we would not be changing it - rm -f conftest.h - else - rm -f "$cl_machine_file_h" - mv conftest.h "$cl_machine_file_h" - fi - [$4]=1 -else - echo "creation of $cl_machine_file_h failed" -fi -rm -f conftest* -fi -else -echo "cross-compiling - cannot create $cl_machine_file_h" -fi -])dnl -dnl + # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- -## Copyright 1996, 1997, 1998, 1999, 2000, 2001 -## Free Software Foundation, Inc. -## Originally by Gordon Matzigkeit , 1996 -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -## -## As a special exception to the GNU General Public License, if you -## distribute this file as part of a program that contains a -## configuration script generated by Autoconf, you may include it under -## the same distribution terms that you use for the rest of that program. # serial 46 AC_PROG_LIBTOOL @@ -732,12 +444,14 @@ AC_DEFUN([AC_LIBTOOL_SETUP], AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([CL_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl +AC_REQUIRE([LT_AC_PROG_SED])dnl + AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl AC_REQUIRE([AC_OBJEXT])dnl @@ -868,7 +582,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN], # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([CL_CANONICAL_HOST]) +[AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. @@ -905,9 +619,12 @@ hpux*) # Its linker distinguishes data from code symbols lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; -irix*) +irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; solaris* | sysv5*) symcode='[[BDT]]' ;; @@ -1004,7 +721,7 @@ EOF save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$no_builtin_flag" - if AC_TRY_EVAL(ac_link) && test -s conftest; then + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS="$save_LIBS" @@ -1498,8 +1215,6 @@ fi set dummy $CC compiler="[$]2" -## FIXME: this should be a separate macro -## AC_MSG_CHECKING([for objdir]) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null @@ -1511,12 +1226,8 @@ else fi rmdir .libs 2>/dev/null AC_MSG_RESULT($objdir) -## -## END FIXME -## FIXME: this should be a separate macro -## AC_ARG_WITH(pic, [ --with-pic try to use only PIC/non-PIC objects [default=use both]], pic_mode="$withval", pic_mode=default) @@ -1554,7 +1265,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, # like `-m68040'. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' ;; - beos* | irix5* | irix6* | osf3* | osf4* | osf5*) + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; darwin* | rhapsody*) @@ -1597,7 +1308,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, lt_cv_prog_cc_pic='+Z' ;; - irix5* | irix6*) + irix5* | irix6* | nonstopux*) lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_static='-non_shared' # PIC (with -KPIC) is the default. @@ -1641,11 +1352,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_cv_prog_cc_pic='-KPIC' lt_cv_prog_cc_static='-Bstatic' - if test "x$host_vendor" = xsni; then - lt_cv_prog_cc_wl='-LD' - else - lt_cv_prog_cc_wl='-Wl,' - fi + lt_cv_prog_cc_wl='-Wl,' ;; uts4*) @@ -1707,8 +1414,6 @@ else AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) fi -## -## END FIXME # Check for any special shared library compilation flags. if test -n "$lt_cv_prog_cc_shlib"; then @@ -1720,8 +1425,6 @@ if test -n "$lt_cv_prog_cc_shlib"; then fi fi -## FIXME: this should be a separate macro -## AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl lt_cv_prog_cc_static_works=no @@ -1741,12 +1444,8 @@ wl="$lt_cv_prog_cc_wl" link_static_flag="$lt_cv_prog_cc_static" no_builtin_flag="$lt_cv_prog_cc_no_builtin" can_build_shared="$lt_cv_prog_cc_can_build_shared" -## -## END FIXME -## FIXME: this should be a separate macro -## # Check to see if options -o and -c are simultaneously supported by compiler AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) AC_CACHE_VAL([lt_cv_compiler_c_o], [ @@ -1814,11 +1513,7 @@ if test x"$compiler_c_o" = x"yes"; then else compiler_o_lo=no fi -## -## END FIXME -## FIXME: this should be a separate macro -## # Check to see if we can do hard links to lock some files if needed hard_links="nottested" if test "$compiler_c_o" = no && test "$need_locks" != no; then @@ -1838,11 +1533,7 @@ if test "$compiler_c_o" = no && test "$need_locks" != no; then else need_locks=no fi -## -## END FIXME -## FIXME: this should be a separate macro -## if test "$GCC" = yes; then # Check to see if options -fno-rtti -fno-exceptions are supported by compiler AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) @@ -1868,11 +1559,7 @@ if test "$GCC" = yes; then no_builtin_flag=' -fno-builtin' fi fi -## -## END FIXME -## FIXME: this should be a separate macro -## # See if the linker supports building shared libraries. AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) @@ -2030,7 +1717,7 @@ EOF # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; @@ -2039,6 +1726,7 @@ EOF set dummy \$symbol; case \[$]# in 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; esac; _lt_hint=`expr 1 + \$_lt_hint`; @@ -2151,10 +1839,12 @@ else # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + case $ld_flag in + *-brtl*) aix_use_runtimelinking=yes break - fi + ;; + esac done esac @@ -2268,8 +1958,9 @@ else esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not - # yet detect zsh echo's removal of \ escapes. - archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' + # yet detect zsh echo's removal of \ escapes. Also zsh mangles + # `"' quotes if we put them in here... so don't! + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' hardcode_direct=yes @@ -2321,13 +2012,14 @@ else export_dynamic_flag_spec='${wl}-E' ;; - irix5* | irix6*) + irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='-rpath $libdir' fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; @@ -2355,7 +2047,7 @@ else hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else @@ -2365,7 +2057,7 @@ else hardcode_libdir_flag_spec='-R$libdir' ;; *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac @@ -2477,13 +2169,23 @@ EOF ;; sysv4) - if test "x$host_vendor" = xsno; then - archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - else - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - fi + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; @@ -2555,11 +2257,7 @@ EOF fi AC_MSG_RESULT([$ld_shlibs]) test "$ld_shlibs" = no && can_build_shared=no -## -## END FIXME -## FIXME: this should be a separate macro -## # Check hardcoding attributes. AC_MSG_CHECKING([how to hardcode library paths into programs]) hardcode_action= @@ -2585,11 +2283,7 @@ else hardcode_action=unsupported fi AC_MSG_RESULT([$hardcode_action]) -## -## END FIXME -## FIXME: this should be a separate macro -## striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) @@ -2600,14 +2294,10 @@ if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then else AC_MSG_RESULT([no]) fi -## -## END FIXME reload_cmds='$LD$reload_flag -o $output$reload_objs' test -z "$deplibs_check_method" && deplibs_check_method=unknown -## FIXME: this should be a separate macro -## # PORTME Fill in your ld.so characteristics AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= @@ -2636,6 +2326,9 @@ aix3*) aix4* | aix5*) version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' @@ -2674,6 +2367,7 @@ aix4* | aix5*) fi shlibpath_var=LIBPATH fi + hardcode_into_libs=yes ;; amigaos*) @@ -2721,7 +2415,7 @@ cygwin* | mingw* | pw32*) ;; yes,mingw*) library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` ;; yes,pw32*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' @@ -2804,14 +2498,17 @@ hpux9* | hpux10* | hpux11*) postinstall_cmds='chmod 555 $lib' ;; -irix5* | irix6*) - version_type=irix +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) version_type=irix ;; + esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}.so$major' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' case $host_os in - irix5*) + irix5* | nonstopux*) libsuff= shlibsuff= ;; *) @@ -2915,11 +2612,12 @@ os2*) osf3* | osf4* | osf5*) version_type=osf need_version=no - soname_spec='${libname}${release}.so' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + hardcode_into_libs=yes ;; sco3.2v5*) @@ -2962,6 +2660,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in sni) shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no ;; motorola) need_lib_prefix=no @@ -3003,19 +2707,11 @@ sysv4*MP*) esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no -## -## END FIXME -## FIXME: this should be a separate macro -## # Report the final consequences. AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) -## -## END FIXME -## FIXME: this should be a separate macro -## AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no @@ -3037,17 +2733,11 @@ aix4*) ;; esac AC_MSG_RESULT([$enable_shared]) -## -## END FIXME -## FIXME: this should be a separate macro -## AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) -## -## END FIXME if test "$hardcode_action" = relink; then # Fast installation is not supported @@ -3065,8 +2755,6 @@ fi AC_LIBTOOL_DLOPEN_SELF -## FIXME: this should be a separate macro -## if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) @@ -3109,11 +2797,7 @@ if test "$enable_shared" = yes && test "$GCC" = yes; then esac fi need_lc=${lt_cv_archive_cmds_need_lc-yes} -## -## END FIXME -## FIXME: this should be a separate macro -## # The second clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are @@ -3136,7 +2820,7 @@ if test -f "$ltmain"; then # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS \ + for var in echo old_CC old_CFLAGS SED \ AR AR_FLAGS CC LD LN_S NM SHELL \ reload_flag reload_cmds wl \ pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ @@ -3198,8 +2882,11 @@ if test -f "$ltmain"; then # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. +# A sed that does not truncate output. +SED=$lt_SED + # Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="sed -e s/^X//" +Xsed="${SED} -e s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. @@ -3649,618 +3336,1172 @@ EOF # } # /* impgen.c ends here */ -EOF +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) + + mv -f "${ofile}T" "$ofile" || \ + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") + chmod +x "$ofile" +fi + +])# _LT_AC_LTCONFIG_HACK + +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) + +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) + +# AC_ENABLE_SHARED - implement the --enable-shared flag +# Usage: AC_ENABLE_SHARED[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE(shared, +changequote(<<, >>)dnl +<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], +changequote([, ])dnl +[p=${PACKAGE-default} +case $enableval in +yes) enable_shared=yes ;; +no) enable_shared=no ;; +*) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac], +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl +]) + +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no)]) + +# AC_ENABLE_STATIC - implement the --enable-static flag +# Usage: AC_ENABLE_STATIC[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE(static, +changequote(<<, >>)dnl +<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], +changequote([, ])dnl +[p=${PACKAGE-default} +case $enableval in +yes) enable_static=yes ;; +no) enable_static=no ;; +*) + enable_static=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac], +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl +]) + +# AC_DISABLE_STATIC - set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no)]) + + +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE(fast-install, +changequote(<<, >>)dnl +<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], +changequote([, ])dnl +[p=${PACKAGE-default} +case $enableval in +yes) enable_fast_install=yes ;; +no) enable_fast_install=no ;; +*) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac], +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl +]) + +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no)]) + +# AC_LIBTOOL_PICMODE - implement the --with-pic flag +# Usage: AC_LIBTOOL_PICMODE[(MODE)] +# Where MODE is either `yes' or `no'. If omitted, it defaults to +# `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default)]) + + +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in + /*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; + ?:/*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. + ;; + *) + ac_save_MAGIC_CMD="$MAGIC_CMD" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + egrep "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$ac_save_ifs" + MAGIC_CMD="$ac_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +]) + + +# AC_PATH_MAGIC - find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) + else + MAGIC_CMD=: + fi +fi +]) + + +# AC_PROG_LD - find the path to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH(gnu-ld, +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | [[A-Za-z]]:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + test "$with_gnu_ld" != no && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" +else + lt_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$lt_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_PROG_LD_GNU +]) + +# AC_PROG_LD_GNU - +AC_DEFUN([AC_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 &5; then + lt_cv_prog_gnu_ld=yes +else + lt_cv_prog_gnu_ld=no +fi]) +with_gnu_ld=$lt_cv_prog_gnu_ld +]) + +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker +# -- PORTME Some linkers may need a different reload flag. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, +[lt_cv_ld_reload_flag='-r']) +reload_flag=$lt_cv_ld_reload_flag +test -n "$reload_flag" && reload_flag=" $reload_flag" +]) + +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], +[AC_CACHE_CHECK([how to recognise dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given egrep regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix4* | aix5*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi4*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin* | mingw* | pw32*) + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' + lt_cv_file_magic_cmd='/usr/bin/file -L' + case "$host_os" in + rhapsody* | darwin1.[[012]]) + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` + ;; + *) # Darwin 1.3 on + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' ;; esac + ;; - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) +freebsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; - mv -f "${ofile}T" "$ofile" || \ - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") - chmod +x "$ofile" -fi -## -## END FIXME +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; -])# _LT_AC_LTCONFIG_HACK +hpux10.20*|hpux11*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) +irix5* | irix6* | nonstopux*) + case $host_os in + irix5* | nonstopux*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" + ;; + *) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" + ;; + esac + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` + lt_cv_deplibs_check_method=pass_all + ;; -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) +# This must be Linux ELF. +linux-gnu*) + case $host_cpu in + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) + lt_cv_deplibs_check_method=pass_all ;; + *) + # glibc up to 2.1.1 does not perform some relocations on ARM + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; + esac + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + ;; -# AC_ENABLE_SHARED - implement the --enable-shared flag -# Usage: AC_ENABLE_SHARED[(DEFAULT)] -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to -# `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE(shared, -changequote(<<, >>)dnl -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], -changequote([, ])dnl -[p=${PACKAGE-default} -case $enableval in -yes) enable_shared=yes ;; -no) enable_shared=no ;; -*) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$ac_save_ifs" +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' + fi ;; -esac], -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +openbsd*) + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' + else + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + fi + ;; + +osf3* | osf4* | osf5*) + # this will be overridden with pass_all, but let us keep it just in case + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' + lt_cv_file_magic_test_file=/shlib/libc.so + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + lt_cv_file_magic_test_file=/lib/libc.so + ;; + +sysv5uw[[78]]* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method ]) -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no)]) -# AC_ENABLE_STATIC - implement the --enable-static flag -# Usage: AC_ENABLE_STATIC[(DEFAULT)] -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to -# `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE(static, -changequote(<<, >>)dnl -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], -changequote([, ])dnl -[p=${PACKAGE-default} -case $enableval in -yes) enable_static=yes ;; -no) enable_static=no ;; -*) - enable_static=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_static=yes +# AC_PROG_NM - find the path to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl +AC_MSG_CHECKING([for BSD-compatible nm]) +AC_CACHE_VAL(lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/${ac_tool_prefix}nm + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then + lt_cv_path_NM="$tmp_nm -B" + break + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + lt_cv_path_NM="$tmp_nm -p" + break + else + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + fi fi done IFS="$ac_save_ifs" - ;; -esac], -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +AC_MSG_RESULT([$NM]) ]) -# AC_DISABLE_STATIC - set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no)]) - - -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to -# `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE(fast-install, -changequote(<<, >>)dnl -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], -changequote([, ])dnl -[p=${PACKAGE-default} -case $enableval in -yes) enable_fast_install=yes ;; -no) enable_fast_install=no ;; +# AC_CHECK_LIBM - check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32*) + # These system don't have libm + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") + ;; *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$ac_save_ifs" + AC_CHECK_LIB(m, main, LIBM="-lm") ;; -esac], -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl +esac ]) -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for +# the libltdl convenience library and LTDLINCL to the include flags for +# the libltdl header and adds --enable-ltdl-convenience to the +# configure arguments. Note that LIBLTDL and LTDLINCL are not +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed +# with '${top_builddir}/' and LTDLINCL will be prefixed with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no)]) + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +]) -# AC_LIBTOOL_PICMODE - implement the --with-pic flag -# Usage: AC_LIBTOOL_PICMODE[(MODE)] -# Where MODE is either `yes' or `no'. If omitted, it defaults to -# `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for +# the libltdl installable library and LTDLINCL to the include flags for +# the libltdl header and adds --enable-ltdl-install to the configure +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed +# with '${top_srcdir}/' (note the single quotes!). If your package is +# not flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default)]) - + AC_CHECK_LIB(ltdl, main, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +]) -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in - /*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; - ?:/*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. - ;; - *) - ac_save_MAGIC_CMD="$MAGIC_CMD" - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <&2 +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) -EOF - fi ;; - esac +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_executable_p="test -f" +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" fi + done + done +done + + # Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/sed$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + _max=0 + _count=0 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris + # along with /bin/sed that truncates output. + for _sed in $_sed_list /usr/xpg4/bin/sed; do + test ! -f ${_sed} && break + cat /dev/null > "$tmp/sed.in" + _count=0 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" + # Check for GNU sed and select it if it is found. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then + lt_cv_path_SED=${_sed} break fi + while true; do + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" + mv "$tmp/sed.tmp" "$tmp/sed.in" + cp "$tmp/sed.in" "$tmp/sed.nl" + echo >>"$tmp/sed.nl" + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break + # 40000 chars as input seems more than enough + test $_count -gt 10 && break + _count=`expr $_count + 1` + if test $_count -gt $_max; then + _max=$_count + lt_cv_path_SED=$_sed + fi + done done - IFS="$ac_save_ifs" - MAGIC_CMD="$ac_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) + rm -rf "$tmp" +]) +if test "X$SED" != "X"; then + lt_cv_path_SED=$SED else - AC_MSG_RESULT(no) + SED=$lt_cv_path_SED fi +AC_MSG_RESULT([$SED]) ]) +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -# AC_PATH_MAGIC - find a file program which can recognise a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) - else - MAGIC_CMD=: - fi -fi +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. + +AC_PREREQ(2.57) + +AC_DEFUN([CL_LONGLONG], +[AC_CACHE_CHECK(for long long type, cl_cv_c_longlong, [ +AC_TRY_RUN([int main() +{ +/* long longs don't work right with gcc-2.7.2 on m68k */ +/* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets + miscompiled. */ +#if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc)) +#if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ <= 7) + exit(1); +#endif +#endif + { long x = 944938507; long y = 737962842; long z = 162359677; + exit(!(((long long) x)*((long long) y)>>32 == z)); + } +}], +cl_cv_c_longlong=yes, cl_cv_c_longlong=no, +dnl When cross-compiling, don't assume anything. +cl_cv_c_longlong="guessing no") +]) +case "$cl_cv_c_longlong" in + *yes) AC_DEFINE(HAVE_LONGLONG,,[compiler supports the `long long' type]) ;; + *no) ;; +esac ]) +dnl Copyright (C) 1993-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -# AC_PROG_LD - find the path to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH(gnu-ld, -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([CL_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | [[A-Za-z]]:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then - test "$with_gnu_ld" != no && break - else - test "$with_gnu_ld" != yes && break - fi - fi - done - IFS="$ac_save_ifs" -else - lt_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$lt_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_PROG_LD_GNU +dnl From Bruno Haible, Marcus Daniels. + +AC_PREREQ(2.13) + +AC_DEFUN([CL_LONGDOUBLE], +[AC_CACHE_CHECK(for long double type, cl_cv_c_longdouble, [ +AC_TRY_RUN([int main() +{ long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }], +cl_cv_c_longdouble=yes, cl_cv_c_longdouble=no, +dnl When cross-compiling, don't assume anything. +cl_cv_c_longdouble="guessing no") +]) +case "$cl_cv_c_longdouble" in + *yes) AC_DEFINE(HAVE_LONGDOUBLE) ;; + *no) ;; +esac ]) -# AC_PROG_LD_GNU - -AC_DEFUN([AC_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then - lt_cv_prog_gnu_ld=yes -else - lt_cv_prog_gnu_ld=no -fi]) -with_gnu_ld=$lt_cv_prog_gnu_ld +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. + +AC_PREREQ(2.57) + +AC_DEFUN([CL_ALLOCA], +[# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +CL_LINK_CHECK(working alloca.h, cl_cv_header_alloca_h, +[#include ], [char *p = (char *) alloca(2 * sizeof(int));], +AC_DEFINE(HAVE_ALLOCA_H,,[have and it should be used (not Ultrix)])) +decl="#ifdef __GNUC__ +#define alloca __builtin_alloca +#else +#ifdef _MSC_VER +#include +#define alloca _alloca +#else +#ifdef HAVE_ALLOCA_H +#include +#else +#ifdef _AIX + #pragma alloca +#else +#ifndef alloca +char *alloca (); +#endif +#endif +#endif +#endif +#endif +" +CL_LINK_CHECK([alloca], cl_cv_func_alloca, +$decl, [char *p = (char *) alloca(1);], + , [alloca_missing=1])dnl +if test -n "$alloca_missing"; 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} + AC_DEFINE(NO_ALLOCA,,[need to link with an external alloca.o when using alloca()]) +fi +AC_SUBST(ALLOCA)dnl ]) -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker -# -- PORTME Some linkers may need a different reload flag. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, -[lt_cv_ld_reload_flag='-r']) -reload_flag=$lt_cv_ld_reload_flag -test -n "$reload_flag" && reload_flag=" $reload_flag" +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. + +AC_PREREQ(2.57) + +AC_DEFUN([CL_FPU_CONTROL], +[dnl Check for Linux with and fpu_control_t or __setfpucw(). +dnl glibc versions since October 1998 define fpu_control_t. Earlier versions +dnl define and declare __setfpucw(). Very early Linux libc versions have none, +dnl and __fpu_control is of type `unsigned short'. +CL_COMPILE_CHECK([fpu_control_t], cl_cv_type_fpu_control_t, +[#include ], [fpu_control_t x;], +AC_DEFINE(HAVE_FPU_CONTROL_T,,[have and it defines the fpu_control_t type])) +CL_COMPILE_CHECK([__setfpucw], cl_cv_func_setfpucw, +[#include ], [__setfpucw(_FPU_IEEE);], +AC_DEFINE(HAVE_SETFPUCW,,[have and it declares the __setfpucw() function])) ]) -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies -# -- PORTME fill in with the dynamic library characteristics -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], -[AC_CACHE_CHECK([how to recognise dependant libraries], -lt_cv_deplibs_check_method, -[lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given egrep regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. -beos*) - lt_cv_deplibs_check_method=pass_all - ;; +AC_PREREQ(2.57) -bsdi4*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; +AC_DEFUN([CL_GETTIMEOFDAY], +[AC_BEFORE([$0], [CL_TIMES_CLOCK]) +AC_CHECK_FUNCS(gettimeofday)dnl +if test $ac_cv_func_gettimeofday = yes; then +dnl HAVE_GETTIMEOFDAY is defined +CL_PROTO([gettimeofday], [ +CL_PROTO_TRY([ +#include +#include +], [int gettimeofday (struct timeval * tp, struct timezone * tzp);], +[int gettimeofday();], +cl_cv_proto_gettimeofday_dots=no +cl_cv_proto_gettimeofday_arg2="struct timezone *", +CL_PROTO_TRY([ +#include +#include +], [int gettimeofday (struct timeval * tp, void * tzp);], +[int gettimeofday();], +cl_cv_proto_gettimeofday_dots=no +cl_cv_proto_gettimeofday_arg2="void *", +cl_cv_proto_gettimeofday_dots=yes +cl_cv_proto_gettimeofday_arg2="...")) +], [extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);]) +if test $cl_cv_proto_gettimeofday_dots = yes; then +AC_DEFINE(GETTIMEOFDAY_DOTS,,[declaration of gettimeofday() needs dots]) +else +AC_DEFINE_UNQUOTED(GETTIMEOFDAY_TZP_T,$cl_cv_proto_gettimeofday_arg2,[type of `tzp' in gettimeofday() declaration]) +fi +fi +]) -cygwin* | mingw* | pw32*) - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -darwin* | rhapsody*) - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' - lt_cv_file_magic_cmd='/usr/bin/file -L' - case "$host_os" in - rhapsody* | darwin1.[[012]]) - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` - ;; - *) # Darwin 1.3 on - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' - ;; - esac - ;; +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. -freebsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; +AC_PREREQ(2.57) -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; +AC_DEFUN([CL_TIMES_CLOCK], +[AC_REQUIRE([CL_GETTIMEOFDAY])dnl +if test $ac_cv_func_gettimeofday = no; then +AC_CHECK_FUNC(times, , no_times=1)dnl +if test -z "$no_times"; then +AC_CACHE_CHECK(for times return value, cl_cv_func_times_return, [ +AC_TRY_RUN([ +#include +#include /* needed for CLK_TCK */ +#ifndef CLK_TCK +#include /* needed for CLK_TCK on SYSV PTX */ +#endif +#include +int main () +{ struct tms buffer; + clock_t result1; + clock_t result2; + int ticks; + result1 = times(&buffer); + if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1); + sleep(1); + result2 = times(&buffer); + if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1); + ticks = result2 - result1; + exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2))); +}], cl_cv_func_times_return=yes, cl_cv_func_times_return=no, +dnl When cross-compiling, don't assume anything. +cl_cv_func_times_return="guessing no") +]) +case "$cl_cv_func_times_return" in + *yes) AC_DEFINE(HAVE_TIMES_CLOCK,,[have the times() function and it returns the real time, but do not have the gettimeofday() or ftime() function]) ;; + *no) ;; +esac +fi +fi +]) -hpux10.20*|hpux11*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; +dnl Copyright (C) 1993-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -irix5* | irix6*) - case $host_os in - irix5*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" - ;; - *) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" - ;; - esac - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` - lt_cv_deplibs_check_method=pass_all - ;; +dnl From Bruno Haible, Marcus Daniels. -# This must be Linux ELF. -linux-gnu*) - case $host_cpu in - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) - lt_cv_deplibs_check_method=pass_all ;; - *) - # glibc up to 2.1.1 does not perform some relocations on ARM - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; - esac - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` - ;; +AC_PREREQ(2.13) + +dnl CL_PROTO(IDENTIFIER, ACTION-IF-NOT-FOUND, FINAL-PROTOTYPE) +AC_DEFUN([CL_PROTO], +[AC_MSG_CHECKING([for $1 declaration]) +AC_CACHE_VAL(cl_cv_proto_[$1], [$2 +cl_cv_proto_$1="$3"]) +cl_cv_proto_$1=`echo "[$]cl_cv_proto_$1" | tr -s ' ' | sed -e 's/( /(/'` +AC_MSG_RESULT([$]{ac_t:- + }[$]cl_cv_proto_$1) +]) + +dnl CL_PROTO_RET(INCLUDES, ANSI-DECL, TRAD-DECL, CACHE-ID, TYPE-IF-OK, TYPE-IF-FAILS) +AC_DEFUN([CL_PROTO_RET], +[AC_TRY_COMPILE([$1] +AC_LANG_EXTERN +[#if defined(__STDC__) || defined(__cplusplus) +$2 +#else +$3 +#endif +], [], $4="$5", $4="$6") +]) + +dnl CL_PROTO_TRY(INCLUDES, ANSI-DECL, TRAD-DECL, ACTION-IF-OK, ACTION-IF-FAILS) +AC_DEFUN([CL_PROTO_TRY], +[AC_TRY_COMPILE([$1] +AC_LANG_EXTERN +[#if defined(__STDC__) || defined(__cplusplus) +$2 +#else +$3 +#endif +], [], [$4], [$5]) +]) -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' - fi - ;; +dnl CL_PROTO_CONST(INCLUDES, ANSI-DECL, TRAD-DECL, CACHE-ID) +AC_DEFUN([CL_PROTO_CONST], +[CL_PROTO_TRY([$1], [$2], [$3], $4="", $4="const")] +) -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -openbsd*) - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' - else - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' - fi - ;; +dnl From Bruno Haible, Marcus Daniels, Sam Steingold, Peter Burwood, Sam Steingold. -osf3* | osf4* | osf5*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' - lt_cv_file_magic_test_file=/shlib/libc.so - lt_cv_deplibs_check_method=pass_all - ;; +AC_PREREQ(2.57) -sco3.2v5*) - lt_cv_deplibs_check_method=pass_all - ;; +AC_DEFUN([CL_RUSAGE], +[AC_CHECK_HEADERS(sys/resource.h sys/times.h)dnl +if test $ac_cv_header_sys_resource_h = yes; then + dnl HAVE_SYS_RESOURCE_H defined + CL_LINK_CHECK([getrusage], cl_cv_func_getrusage, +[#include /* NetBSD 1.0 needs this */ +#include +#include ], + [struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;])dnl + if test $cl_cv_func_getrusage = yes; then + CL_PROTO([getrusage], [ + CL_PROTO_TRY([ +#include +#ifdef HAVE_UNISTD_H +#include +#endif +#include /* NetBSD 1.0 needs this */ +#include +#include +], +[int getrusage (int who, struct rusage * rusage);], +[int getrusage();], +[cl_cv_proto_getrusage_arg1="int"], +[cl_cv_proto_getrusage_arg1="enum __rusage_who"]) +], [extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);])dnl + AC_CACHE_CHECK(whether getrusage works, cl_cv_func_getrusage_works, [ + AC_TRY_RUN([ +#include +#include /* NetBSD 1.0 needs this */ +#include +#include /* for time(2) */ +#include +int main () +{ + struct rusage used, prev; + time_t end = time(NULL)+2; + int count = 0; + + if ((count = getrusage(RUSAGE_SELF, &prev))) { + /* getrusage is defined but does not do anything. */ + /*fprintf(stderr,"getrusage failed: return=%d\n",count);*/ + return 1; + } + while (time(NULL) < end) { + count++; + getrusage(RUSAGE_SELF, &used); + if ((used.ru_utime.tv_usec != prev.ru_utime.tv_usec) + || (used.ru_utime.tv_sec != prev.ru_utime.tv_sec) + || (used.ru_stime.tv_usec != prev.ru_stime.tv_usec) + || (used.ru_stime.tv_sec != prev.ru_stime.tv_sec)) { + /*fprintf(stderr,"success after %d runs\n",count);*/ + return 0; + } + } + /* getrusage is defined but does not work. */ + /*fprintf(stderr,"failure after %d runs\n",count);*/ + return 1; +}], +cl_cv_func_getrusage_works=yes, +cl_cv_func_getrusage_works=no, +dnl When cross-compiling, don't assume anything. +cl_cv_func_getrusage_works="guessing no")]) + fi + if test $cl_cv_func_getrusage_works = yes; then + AC_DEFINE(HAVE_GETRUSAGE,,[have , the getrusage() function, the struct rusage type, and defines RUSAGE_SELF]) + AC_DEFINE_UNQUOTED(RUSAGE_WHO_T,$cl_cv_proto_getrusage_arg1,[type of `who' in getrusage() declaration]) + fi +fi +]) -solaris*) - lt_cv_deplibs_check_method=pass_all - lt_cv_file_magic_test_file=/lib/libc.so - ;; +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -sysv5uw[[78]]* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - esac - ;; -esac +AC_PREREQ(2.57) + +AC_DEFUN([CL_PERROR], +[AC_MSG_CHECKING(for perror declaration) +AC_CACHE_VAL(cl_cv_proto_perror, [ +AC_TRY_COMPILE([ +/* Some systems declare perror() in , some in , some don't + declare it at all. */ +#include +#include +]AC_LANG_EXTERN[double perror ();], [], +cl_cv_proto_perror=no, cl_cv_proto_perror=yes) ]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method +AC_MSG_RESULT([$cl_cv_proto_perror]) +if test $cl_cv_proto_perror = yes; then +AC_DEFINE(HAVE_PERROR_DECL,,[ or contains a declaration for perror()]) +fi ]) +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -# AC_PROG_NM - find the path to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl -AC_MSG_CHECKING([for BSD-compatible nm]) -AC_CACHE_VAL(lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/${ac_tool_prefix}nm - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then - lt_cv_path_NM="$tmp_nm -B" - break - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - lt_cv_path_NM="$tmp_nm -p" - break - else - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - fi - fi - done - IFS="$ac_save_ifs" - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -AC_MSG_RESULT([$NM]) -]) - -# AC_CHECK_LIBM - check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([CL_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32*) - # These system don't have libm - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, main, LIBM="-lm") - ;; -esac -]) +dnl From Bruno Haible, Marcus Daniels, Sam Steingold. -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl convenience library and INCLTDL to the include flags for -# the libltdl header and adds --enable-ltdl-convenience to the -# configure arguments. Note that LIBLTDL and INCLTDL are not -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed -# with '${top_builddir}/' and INCLTDL will be prefixed with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and -# top_srcdir appropriately in the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) -]) +AC_PREREQ(2.13) -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl installable library and INCLTDL to the include flags for -# the libltdl header and adds --enable-ltdl-install to the configure -# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will -# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed -# with '${top_srcdir}/' (note the single quotes!). If your package is -# not flat and you're not using automake, define top_builddir and -# top_srcdir appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, main, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) +AC_DEFUN([CL_MACHINE], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_C_CHAR_UNSIGNED])dnl +cl_machine_file_c=$2 +cl_machine_file_h=$3 +if test $cross_compiling = no; then +if test -z "$[$4]"; then +AC_CHECKING(for [$1]) +cat > conftest.$ac_ext <> conftest.$ac_ext +ORIGCC="$CC" +if test $ac_cv_prog_gcc = yes; then +# gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for +# target 80386. Strip "-O". +CC=`echo "$CC " | sed -e 's/-O //g'` +fi +AC_TRY_EVAL(ac_link) +CC="$ORIGCC" +if test -s conftest; then + echo "creating $cl_machine_file_h" + ./conftest > conftest.h + if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then + # The file exists and we would not be changing it + rm -f conftest.h else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - INCLTDL= + rm -f "$cl_machine_file_h" + mv conftest.h "$cl_machine_file_h" fi + [$4]=1 +else + echo "creation of $cl_machine_file_h failed" +fi +rm -f conftest* +fi +else +echo "cross-compiling - cannot create $cl_machine_file_h" +fi ]) -# old names -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. -# This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL]) -# Is the gmp header file new enough? (should be implemented with an argument) +dnl From Richard B. Kreckel. + +AC_PREREQ(2.13) + +dnl Is the gmp header file new enough? (should be implemented with an argument) AC_DEFUN(CL_GMP_H_VERSION, [AC_CACHE_CHECK([for recent enough gmp.h], cl_cv_new_gmp_h, [ AC_TRY_CPP([#include @@ -4270,7 +4511,7 @@ AC_DEFUN(CL_GMP_H_VERSION, cl_cv_new_gmp_h="yes", cl_cv_new_gmp_h="no") ])])dnl -# Does libgmp provide some functionality introduced in version 3.0? +dnl Does libgmp provide some functionality introduced in version 3.0? AC_DEFUN(CL_GMP_CHECK, [AC_CACHE_CHECK([for working libgmp], cl_cv_new_libgmp, [ SAVELIBS=$LIBS @@ -4279,7 +4520,7 @@ AC_DEFUN(CL_GMP_CHECK, cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) ])]) -# What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) +dnl What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) AC_DEFUN(CL_GMP_SET_UINTD, [AC_CACHE_CHECK([how large gmp demands uintD to be], cl_cv_gmp_set_uintd, [ AC_TRY_RUN([#include @@ -4310,3 +4551,4 @@ int main() { ]) AC_DEFINE_UNQUOTED($cl_gmp_demands) ]) + diff --git a/autoconf/acspecific.m4 b/autoconf/acspecific.m4 deleted file mode 100644 index 2f2d9e8..0000000 --- a/autoconf/acspecific.m4 +++ /dev/null @@ -1,2867 +0,0 @@ -dnl Macros that test for specific features. -dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception, the Free Software Foundation gives unlimited -dnl permission to copy, distribute and modify the configure scripts that -dnl are the output of Autoconf. You need not follow the terms of the GNU -dnl General Public License when using or distributing such scripts, even -dnl though portions of the text of Autoconf appear in them. The GNU -dnl General Public License (GPL) does govern all other use of the material -dnl that constitutes the Autoconf program. -dnl -dnl Certain portions of the Autoconf source text are designed to be copied -dnl (in certain cases, depending on the input) into the output of -dnl Autoconf. We call these the "data" portions. The rest of the Autoconf -dnl source text consists of comments plus executable code that decides which -dnl of the data portions to output in any given case. We call these -dnl comments and executable code the "non-data" portions. Autoconf never -dnl copies any of the non-data portions into its output. -dnl -dnl This special exception to the GPL applies to versions of Autoconf -dnl released by the Free Software Foundation. When you make and -dnl distribute a modified version of Autoconf, you may extend this special -dnl exception to the GPL to apply to your modified version as well, *unless* -dnl your modified version has the potential to copy into its output some -dnl of the text that was the non-data portion of the version that you started -dnl with. (In other words, unless your change moves or copies text from -dnl the non-data portions to the data portions.) If your modification has -dnl such potential, you must delete any notice of this special exception -dnl to the GPL from your modified version. -dnl -dnl Written by David MacKenzie, with help from -dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, -dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. -dnl -dnl Changed by Bruno Haible, 18 January 1999 - - -dnl ### Checks for programs - - -dnl Check whether to use -n, \c, or newline-tab to separate -dnl checking messages from result messages. -dnl Idea borrowed from dist 3.0. -dnl Internal use only. -AC_DEFUN(AC_PROG_ECHO_N, -[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=' ' ac_tt= - else - ac_n=-n ac_c= ac_t= ac_tt=' - ' - fi -else - ac_n= ac_c='\c' ac_t= ac_tt=' - ' -fi -]) - -AC_DEFUN(AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - AC_CHECK_PROG(CC, cl, cl) ;; - esac - fi - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_WORKS -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -else - GCC= -fi - -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -dnl AC_PROG_CC_G -if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" -dnl # This doesn't work on Linux (libc-4.5.26): Because of differences between -dnl # the shared and the static libraries there are less symbols available -dnl # without -g than with -g. It is therefore better to run the configuration -dnl # without -g and to add -g afterwards than the contrary. So don't add -dnl # -g to the CFLAGS now. -dnl elif test $ac_cv_prog_cc_g = yes; then -dnl if test "$GCC" = yes; then -dnl CFLAGS="-g -O2" -dnl else -dnl CFLAGS="-g" -dnl fi -else - if test "$GCC" = yes; then -dnl CFLAGS="-O" - # Add "-O" to both the CC and CPP commands, to eliminate possible confusion - # that results from __OPTIMIZE__ being defined for CC but not CPP. -changequote(, )dnl - if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then -changequote([, ])dnl - : # already optimizing - else - CC="$CC -O" - ac_cv_prog_CC="$CC" - fi - else - CFLAGS= - fi -fi -]) - -AC_DEFUN(AC_PROG_CXX, -[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl -AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, gcc) - -AC_PROG_CXX_WORKS -AC_PROG_CXX_GNU - -if test $ac_cv_prog_gxx = yes; then - GXX=yes -else - GXX= -fi - -dnl Check whether -g works, even if CXXFLAGS is set, in case the package -dnl plays around with CXXFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -dnl AC_PROG_CXX_G -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" -dnl # This doesn't work on Linux (libc-4.5.26): Because of differences between -dnl # the shared and the static libraries there are less symbols available -dnl # without -g than with -g. It is therefore better to run the configuration -dnl # without -g and to add -g afterwards than the contrary. So don't add -dnl # -g to the CFLAGS now. -dnl elif test $ac_cv_prog_cxx_g = yes; then -dnl if test "$GXX" = yes; then -dnl CXXFLAGS="-g -O2" -dnl else -dnl CXXFLAGS="-g" -dnl fi -else - if test "$GXX" = yes; then -dnl CXXFLAGS="-O" - # Add "-O" to both the CXX and CXXCPP commands, to eliminate possible confu- - # sion that results from __OPTIMIZE__ being defined for CXX but not CXXCPP. -changequote(, )dnl - if echo "$CXX " | grep ' -O[1-9 ]' > /dev/null; then -changequote([, ])dnl - : # already optimizing - else - CXX="$CXX -O" - ac_cv_prog_CXX="$CXX" - fi - else - CXXFLAGS= - fi -fi -]) - -dnl Determine a Fortran 77 compiler to use. If `F77' is not already set -dnl in the environment, check for `g77', `f77' and `f2c', in that order. -dnl Set the output variable `F77' to the name of the compiler found. -dnl -dnl If using `g77' (the GNU Fortran 77 compiler), then `AC_PROG_F77' -dnl will set the shell variable `G77' to `yes', and empty otherwise. If -dnl the output variable `FFLAGS' was not already set in the environment, -dnl then set it to `-g -02' for `g77' (or `-O2' where `g77' does not -dnl accept `-g'). Otherwise, set `FFLAGS' to `-g' for all other Fortran -dnl 77 compilers. -dnl -dnl AC_PROG_F77() -AC_DEFUN(AC_PROG_F77, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -if test -z "$F77"; then - AC_CHECK_PROGS(F77, g77 f77 f2c) - test -z "$F77" && AC_MSG_ERROR([no acceptable Fortran 77 compiler found in \$PATH]) -fi - -AC_PROG_F77_WORKS -AC_PROG_F77_GNU - -if test $ac_cv_prog_g77 = yes; then - G77=yes -dnl Check whether -g works, even if FFLAGS is set, in case the package -dnl plays around with FFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_FFLAGS="${FFLAGS+set}" - ac_save_FFLAGS="$FFLAGS" - FFLAGS= - AC_PROG_F77_G - if test "$ac_test_FFLAGS" = set; then - FFLAGS="$ac_save_FFLAGS" - elif test $ac_cv_prog_f77_g = yes; then - FFLAGS="-g -O2" - else - FFLAGS="-O2" - fi -else - G77= - test "${FFLAGS+set}" = set || FFLAGS="-g" -fi -]) - -AC_DEFUN(AC_PROG_CC_WORKS, -[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) -AC_LANG_SAVE -AC_LANG_C -AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) -AC_LANG_RESTORE -AC_MSG_RESULT($ac_cv_prog_cc_works) -if test $ac_cv_prog_cc_works = no; then - AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.]) -fi -AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler]) -AC_MSG_RESULT($ac_cv_prog_cc_cross) -cross_compiling=$ac_cv_prog_cc_cross -]) - -AC_DEFUN(AC_PROG_CXX_WORKS, -[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) -AC_LANG_SAVE -AC_LANG_CPLUSPLUS -AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) -AC_LANG_RESTORE -AC_MSG_RESULT($ac_cv_prog_cxx_works) -if test $ac_cv_prog_cxx_works = no; then - AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.]) -fi -AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler]) -AC_MSG_RESULT($ac_cv_prog_cxx_cross) -cross_compiling=$ac_cv_prog_cxx_cross -]) - -dnl Test whether the Fortran 77 compiler can compile and link a trivial -dnl Fortran program. Also, test whether the Fortran 77 compiler is a -dnl cross-compiler (which may realistically be the case if the Fortran -dnl compiler is `g77'). -dnl -dnl AC_PROG_F77_WORKS() -AC_DEFUN(AC_PROG_F77_WORKS, -[AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works]) -AC_LANG_SAVE -AC_LANG_FORTRAN77 -AC_TRY_COMPILER(dnl -[ program conftest - end -], ac_cv_prog_f77_works, ac_cv_prog_f77_cross) -AC_LANG_RESTORE -AC_MSG_RESULT($ac_cv_prog_f77_works) -if test $ac_cv_prog_f77_works = no; then - AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.]) -fi -AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler]) -AC_MSG_RESULT($ac_cv_prog_f77_cross) -cross_compiling=$ac_cv_prog_f77_cross -]) - -AC_DEFUN(AC_PROG_CC_GNU, -[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc, -[dnl The semicolon is to pacify NeXT's syntax-checking cpp. -cat > conftest.c </dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi])]) - -AC_DEFUN(AC_PROG_CXX_GNU, -[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx, -[dnl The semicolon is to pacify NeXT's syntax-checking cpp. -cat > conftest.C </dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi])]) - -dnl Test whether for Fortran 77 compiler is `g77' (the GNU Fortran 77 -dnl Compiler). This test depends on whether the Fortran 77 compiler can -dnl do CPP pre-processing. -dnl -dnl AC_PROG_F77_GNU() -AC_DEFUN(AC_PROG_F77_GNU, -[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77, -[cat > conftest.fpp </dev/null 2>&1; then - ac_cv_prog_g77=yes -else - ac_cv_prog_g77=no -fi])]) - -AC_DEFUN(AC_PROG_CC_G, -[AC_CACHE_CHECK(whether ${CC-cc} accepts -g, ac_cv_prog_cc_g, -[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* -])]) - -AC_DEFUN(AC_PROG_CXX_G, -[AC_CACHE_CHECK(whether ${CXX-g++} accepts -g, ac_cv_prog_cxx_g, -[echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_cxx_g=yes -else - ac_cv_prog_cxx_g=no -fi -rm -f conftest* -])]) - -dnl Test whether the Fortran 77 compiler can accept the `-g' option to -dnl enable debugging. -dnl -dnl AC_PROG_F77_G() -AC_DEFUN(AC_PROG_F77_G, -[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g, -[cat > conftest.f << EOF - program conftest - end -EOF -if test -z "`$F77 -g -c conftest.f 2>&1`"; then - ac_cv_prog_f77_g=yes -else - ac_cv_prog_f77_g=no -fi -rm -f conftest* -])]) - -AC_DEFUN(AC_PROG_GCC_TRADITIONAL, -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_CPP])dnl -if test $ac_cv_prog_gcc = yes; then - AC_CACHE_CHECK(whether -traditional is needed for ${CC-cc} on this system, - ac_cv_prog_gcc_traditional, -[ ac_pattern="Autoconf.*'x'" - AC_EGREP_CPP($ac_pattern, [#include -Autoconf TIOCGETP], - ac_cv_prog_gcc_traditional=yes, ac_cv_prog_gcc_traditional=no) - - if test $ac_cv_prog_gcc_traditional = no; then - AC_EGREP_CPP($ac_pattern, [#include -Autoconf TCGETA], - ac_cv_prog_gcc_traditional=yes) - fi - if test $ac_cv_prog_gcc_traditional = no; then - # On some USL SVR4 systems, gcc's fixinc.svr4 modifies and - # in such a way that "#include " results in a - # syntax error because of `sigset_t' if gcc is called with __STDC__=1 - # but __STRICT_ANSI__ undefined. Remedy: use -traditional. - ac_prog=' -#include -#include -#ifdef __cplusplus -extern "C" void exit(int); -#endif -int main() { exit(0); }' - echo "$ac_prog" > conftest.c - if eval $ac_link; then - : - else - ac_prog=' -#undef __STDC__ -#include -#include -#ifdef __cplusplus -extern "C" void exit(int); -#endif -int main() { exit(0); }' - echo "$ac_prog" > conftest.c - if eval $ac_link; then - ac_cv_prog_gcc_traditional=yes - fi - fi - rm -f conftest* - fi]) - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi -]) - -AC_DEFUN(AC_PROG_CC_C_O, -[if test "x$CC" != xcc; then - AC_MSG_CHECKING(whether $CC and cc understand -c and -o together) -else - AC_MSG_CHECKING(whether cc understands -c and -o together) -fi -set dummy $CC; ac_cc="`echo [$]2 | -changequote(, )dnl - sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" -changequote([, ])dnl -AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, -[echo 'foo(){}' > conftest.c -# Make sure it works both with $CC and with simple cc. -# We do the test twice because some compilers refuse to overwrite an -# existing .o file with -o, though they will create one. -ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC' -if AC_TRY_EVAL(ac_try) && - test -f conftest.o && AC_TRY_EVAL(ac_try); -then - eval ac_cv_prog_cc_${ac_cc}_c_o=yes - if test "x$CC" != xcc; then - # Test first that cc exists at all. - if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then - ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC' - if AC_TRY_EVAL(ac_try) && - test -f conftest.o && AC_TRY_EVAL(ac_try); - then - # cc works too. - : - else - # cc exists but doesn't like -o. - eval ac_cv_prog_cc_${ac_cc}_c_o=no - fi - fi - fi -else - eval ac_cv_prog_cc_${ac_cc}_c_o=no -fi -rm -f conftest* -])dnl -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) - AC_DEFINE(NO_MINUS_C_MINUS_O) -fi -]) - -dnl Test if the Fortran 77 compiler accepts the options `-c' and `-o' -dnl simultaneously, and define `F77_NO_MINUS_C_MINUS_O' if it does not. -dnl -dnl The usefulness of this macro is questionable, as I can't really see -dnl why anyone would use it. The only reason I include it is for -dnl completeness, since a similar test exists for the C compiler. -dnl -dnl AC_PROG_F77_C_O -AC_DEFUN(AC_PROG_F77_C_O, -[AC_BEFORE([$0], [AC_PROG_F77])dnl -AC_MSG_CHECKING(whether $F77 understand -c and -o together) -set dummy $F77; ac_f77="`echo [$]2 | -changequote(, )dnl -sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" -changequote([, ])dnl -AC_CACHE_VAL(ac_cv_prog_f77_${ac_f77}_c_o, -[cat > conftest.f << EOF - program conftest - end -EOF -# We do the `AC_TRY_EVAL' test twice because some compilers refuse to -# overwrite an existing `.o' file with `-o', although they will create -# one. -ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC' -if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then - eval ac_cv_prog_f77_${ac_f77}_c_o=yes -else - eval ac_cv_prog_f77_${ac_f77}_c_o=no -fi -rm -f conftest* -])dnl -if eval "test \"`echo '$ac_cv_prog_f77_'${ac_f77}_c_o`\" = yes"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) - AC_DEFINE(F77_NO_MINUS_C_MINUS_O) -fi -]) - -dnl Define SET_MAKE to set ${MAKE} if make doesn't. -AC_DEFUN(AC_PROG_MAKE_SET, -[AC_MSG_CHECKING([whether ${MAKE-make} sets \$(MAKE)]) -set dummy ${MAKE-make}; ac_make=`echo "[$]2" | sed 'y%./+-%__p_%'` -AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set, -[cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -changequote(, )dnl -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -changequote([, ])dnl -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])dnl -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - AC_MSG_RESULT(yes) - SET_MAKE= -else - AC_MSG_RESULT(no) - SET_MAKE="MAKE=${MAKE-make}" -fi -AC_SUBST([SET_MAKE])dnl -]) - -AC_DEFUN(AC_PROG_RANLIB, -[AC_CHECK_PROG(RANLIB, ranlib, ranlib, :)]) - -dnl Check for mawk first since it's generally faster. -AC_DEFUN(AC_PROG_AWK, -[AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )]) - -AC_DEFUN(AC_PROG_YACC, -[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)]) - -AC_DEFUN(AC_PROG_CPP, -[AC_MSG_CHECKING(how to run the C preprocessor) -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -AC_CACHE_VAL(ac_cv_prog_CPP, -[ # 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" - if test -n "$GCC"; then -dnl This is already part of AC_PROG_CC. -dnl # Use the same optimization flags than for CC, because some things may -dnl # depend upon __OPTIMIZE__. -dnl CPP="$CPP -O" - # Suppress warning messages. -dnl # When using gcc -traditional on machines that have , -dnl # the "-Dconst=" from AC_C_CONST and the "#define const __const" from -dnl # generate a warning. Unless suppressed, this warning -dnl # causes later tests using AC_TRY_CPP to fail. - CPP="$CPP -w" - fi - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use - # "cc -E -traditional-cpp" instead. -dnl Use a header file that comes with gcc, so configuring glibc -dnl with a fresh cross-compiler works. - AC_TRY_CPP([#include -Syntax Error], ac_have_cpp=1) - if test -z "$ac_have_cpp"; then - CPP="${CC-cc} -E -traditional-cpp" - AC_TRY_CPP([#include -Syntax Error], ac_have_cpp=1) - if test -n "$ac_have_cpp"; then - CC="${CC-cc} -traditional-cpp" - else - CPP="${CC-cc} -nologo -E" - AC_TRY_CPP([#include -Syntax Error], ac_have_cpp=1) - if test -n "$ac_have_cpp"; then - CC="${CC-cc} -nologo" - else - CPP=/lib/cpp - fi - fi - fi - ac_cv_prog_CC="$CC" - ac_cv_prog_CPP="$CPP"])dnl - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -AC_MSG_RESULT($CPP) -AC_SUBST(CPP)dnl -]) - -AC_DEFUN(AC_PROG_CXXCPP, -[AC_MSG_CHECKING(how to run the C++ preprocessor) -if test -z "$CXXCPP"; then -AC_CACHE_VAL(ac_cv_prog_CXXCPP, -[AC_LANG_SAVE[]dnl -AC_LANG_CPLUSPLUS[]dnl - CXXCPP="${CXX-g++} -E" - AC_TRY_CPP([#include ], , CXXCPP=/lib/cpp) - ac_cv_prog_CXXCPP="$CXXCPP" -AC_LANG_RESTORE[]dnl -fi])dnl -CXXCPP="$ac_cv_prog_CXXCPP" -AC_MSG_RESULT($CXXCPP) -AC_SUBST(CXXCPP)dnl -]) - -dnl Require finding the C or C++ preprocessor, whichever is the -dnl current language. -AC_DEFUN(AC_REQUIRE_CPP, -[ifelse(AC_LANG, C, [AC_REQUIRE([AC_PROG_CPP])], [AC_REQUIRE([AC_PROG_CXXCPP])])]) - -AC_DEFUN(AC_PROG_LEX, -[AC_CHECK_PROG(LEX, flex, flex, lex) -if test -z "$LEXLIB" -then - case "$LEX" in - flex*) ac_lib=fl ;; - *) ac_lib=l ;; - esac - AC_CHECK_LIB($ac_lib, yywrap, LEXLIB="-l$ac_lib") -fi -AC_SUBST(LEXLIB)]) - -dnl Check if lex declares yytext as a char * by default, not a char[]. -undefine([AC_DECL_YYTEXT]) -AC_DEFUN(AC_DECL_YYTEXT, -[AC_REQUIRE_CPP()dnl -AC_REQUIRE([AC_PROG_LEX])dnl -AC_CACHE_CHECK(lex output file root, ac_cv_prog_lex_root, -[# The minimal lex program is just a single line: %%. But some broken lexes -# (Solaris, I think it was) want two %% lines, so accommodate them. -echo '%% -%%' | $LEX -if test -f lex.yy.c; then - ac_cv_prog_lex_root=lex.yy -elif test -f lexyy.c; then - ac_cv_prog_lex_root=lexyy -else - AC_MSG_ERROR(cannot find output from $LEX; giving up) -fi]) -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root -AC_SUBST(LEX_OUTPUT_ROOT)dnl - -AC_CACHE_CHECK(whether yytext is a pointer, ac_cv_prog_lex_yytext_pointer, -[# POSIX says lex can declare yytext either as a pointer or an array; the -# default is implementation-dependent. Figure out which it is, since -# not all implementations provide the %pointer and %array declarations. -ac_cv_prog_lex_yytext_pointer=no -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c -ac_save_LIBS="$LIBS" -LIBS="$LIBS $LEXLIB" -AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`, , ac_cv_prog_lex_yytext_pointer=yes) -LIBS="$ac_save_LIBS" -rm -f "${LEX_OUTPUT_ROOT}.c" -]) -if test $ac_cv_prog_lex_yytext_pointer = yes; then - AC_DEFINE(YYTEXT_POINTER) -fi -]) - -AC_DEFUN(AC_PROG_INSTALL, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# 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. -AC_MSG_CHECKING(for a BSD compatible install) -if test -z "$INSTALL"; then -AC_CACHE_VAL(ac_cv_path_install, -[ 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 - if test $ac_prog = installbsd && - grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX installbsd doesn't work without option "-g". - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" -])dnl - 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 -dnl We do special magic for INSTALL instead of AC_SUBST, to get -dnl relative paths right. -AC_MSG_RESULT($INSTALL) - -# 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}' -AC_SUBST(INSTALL_PROGRAM)dnl - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -AC_SUBST(INSTALL_DATA)dnl -]) - -AC_DEFUN(AC_PROG_LN_S, -[AC_MSG_CHECKING(whether ln -s works) -AC_CACHE_VAL(ac_cv_prog_LN_S, -[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])dnl -LN_S="$ac_cv_prog_LN_S" -if test "$ac_cv_prog_LN_S" = "ln -s"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi -AC_SUBST(LN_S)dnl -]) - -define(AC_RSH, -[errprint(__file__:__line__: [$0] has been removed; replace it with equivalent code -)m4exit(4)]) - - -dnl ### Checks for header files - - -AC_DEFUN(AC_HEADER_STDC, -[AC_REQUIRE_CPP()dnl -AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc, -[AC_TRY_CPP([#include -#include -#include -#include ], ac_cv_header_stdc=yes, ac_cv_header_stdc=no) - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -AC_EGREP_HEADER(memchr, string.h, , ac_cv_header_stdc=no) -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -AC_EGREP_HEADER(free, stdlib.h, , ac_cv_header_stdc=no) -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -AC_TRY_RUN([#include -#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); } -], , ac_cv_header_stdc=no, :) -fi]) -if test $ac_cv_header_stdc = yes; then - AC_DEFINE(STDC_HEADERS) -fi -]) - -AC_DEFUN(AC_UNISTD_H, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(unistd.h)])dnl -AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H))]) - -AC_DEFUN(AC_USG, -[AC_OBSOLETE([$0], - [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])dnl -AC_MSG_CHECKING([for BSD string and memory functions]) -AC_TRY_LINK([#include ], [rindex(0, 0); bzero(0, 0);], - [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); AC_DEFINE(USG)])]) - - -dnl If memchr and the like aren't declared in , include . -dnl To avoid problems, don't check for gcc2 built-ins. -AC_DEFUN(AC_MEMORY_H, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])dnl -AC_MSG_CHECKING(whether string.h declares mem functions) -AC_EGREP_HEADER(memchr, string.h, ac_found=yes, ac_found=no) -AC_MSG_RESULT($ac_found) -if test $ac_found = no; then - AC_CHECK_HEADER(memory.h, [AC_DEFINE(NEED_MEMORY_H)]) -fi -]) - -AC_DEFUN(AC_HEADER_MAJOR, -[AC_CACHE_CHECK(whether sys/types.h defines makedev, - ac_cv_header_sys_types_h_makedev, -[AC_TRY_LINK([#include ], [return makedev(0, 0);], - ac_cv_header_sys_types_h_makedev=yes, ac_cv_header_sys_types_h_makedev=no) -]) - -if test $ac_cv_header_sys_types_h_makedev = no; then -AC_CHECK_HEADER(sys/mkdev.h, [AC_DEFINE(MAJOR_IN_MKDEV)]) - - if test $ac_cv_header_sys_mkdev_h = no; then -AC_CHECK_HEADER(sys/sysmacros.h, [AC_DEFINE(MAJOR_IN_SYSMACROS)]) - fi -fi -]) - -AC_DEFUN(AC_HEADER_DIRENT, -[ac_header_dirent=no -AC_CHECK_HEADERS_DIRENT(dirent.h sys/ndir.h sys/dir.h ndir.h, - [ac_header_dirent=$ac_hdr; break]) -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then -AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir") -else -AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx") -fi -]) - -dnl Like AC_CHECK_HEADER, except also make sure that HEADER-FILE -dnl defines the type `DIR'. dirent.h on NextStep 3.2 doesn't. -dnl AC_CHECK_HEADER_DIRENT(HEADER-FILE, ACTION-IF-FOUND) -AC_DEFUN(AC_CHECK_HEADER_DIRENT, -[ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING([for $1 that defines DIR]) -AC_CACHE_VAL(ac_cv_header_dirent_$ac_safe, -[AC_TRY_COMPILE([#include -#include <$1>], [DIR *dirp = 0;], - eval "ac_cv_header_dirent_$ac_safe=yes", - eval "ac_cv_header_dirent_$ac_safe=no")])dnl -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - AC_MSG_RESULT(yes) - $2 -else - AC_MSG_RESULT(no) -fi -]) - -dnl Like AC_CHECK_HEADERS, except succeed only for a HEADER-FILE that -dnl defines `DIR'. -dnl AC_CHECK_HEADERS_DIRENT(HEADER-FILE... [, ACTION]) -define(AC_CHECK_HEADERS_DIRENT, -[for ac_hdr in $1 -do -AC_CHECK_HEADER_DIRENT($ac_hdr, -[changequote(, )dnl - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_hdr) $2])dnl -done]) - -AC_DEFUN(AC_DIR_HEADER, -[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - AC_CHECK_HEADER_DIRENT($ac_hdr, [ac_header_dirent=$ac_hdr; break]) -done - -case "$ac_header_dirent" in -dirent.h) AC_DEFINE(DIRENT) ;; -sys/ndir.h) AC_DEFINE(SYSNDIR) ;; -sys/dir.h) AC_DEFINE(SYSDIR) ;; -ndir.h) AC_DEFINE(NDIR) ;; -esac - -AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void, -[AC_TRY_RUN([#include -#include <$ac_header_dirent> -int closedir(); int main() { exit(closedir(opendir(".")) != 0); }], - ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)]) -if test $ac_cv_func_closedir_void = yes; then - AC_DEFINE(VOID_CLOSEDIR) -fi -]) - -AC_DEFUN(AC_HEADER_STAT, -[AC_CACHE_CHECK(whether stat file-mode macros are broken, - ac_cv_header_stat_broken, -[AC_EGREP_CPP([You lose], [#include -#include - -#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 -], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)]) -if test $ac_cv_header_stat_broken = yes; then - AC_DEFINE(STAT_MACROS_BROKEN) -fi -]) - -AC_DEFUN(AC_DECL_SYS_SIGLIST, -[AC_CACHE_CHECK([for sys_siglist declaration in signal.h or unistd.h], - ac_cv_decl_sys_siglist, -[AC_TRY_COMPILE([#include -#include -/* NetBSD declares sys_siglist in unistd.h. */ -#ifdef HAVE_UNISTD_H -#include -#endif], [char *msg = *(sys_siglist + 1);], - ac_cv_decl_sys_siglist=yes, ac_cv_decl_sys_siglist=no)]) -if test $ac_cv_decl_sys_siglist = yes; then - AC_DEFINE(SYS_SIGLIST_DECLARED) -fi -]) - -AC_DEFUN(AC_HEADER_SYS_WAIT, -[AC_CACHE_CHECK([for sys/wait.h that is POSIX.1 compatible], - ac_cv_header_sys_wait_h, -[AC_TRY_COMPILE([#include -#include -#ifndef WEXITSTATUS -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif], [int s; -wait (&s); -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;], -ac_cv_header_sys_wait_h=yes, ac_cv_header_sys_wait_h=no)]) -if test $ac_cv_header_sys_wait_h = yes; then - AC_DEFINE(HAVE_SYS_WAIT_H) -fi -]) - - -dnl ### Checks for typedefs - - -AC_DEFUN(AC_TYPE_GETGROUPS, -[AC_REQUIRE([AC_TYPE_UID_T])dnl -AC_CACHE_CHECK(type of array argument to getgroups, ac_cv_type_getgroups, -[AC_TRY_RUN( -changequote(<<, >>)dnl -<< -/* Thanks to Mike Rendell for this test. */ -#include -#define NGID 256 -#undef MAX -#define MAX(x, y) ((x) > (y) ? (x) : (y)) -int main() -{ - gid_t gidset[NGID]; - int i, n; - union { gid_t gval; long lval; } val; - - val.lval = -1; - for (i = 0; i < NGID; i++) - gidset[i] = val.gval; - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, - gidset); - /* Exit non-zero if getgroups seems to require an array of ints. This - happens when gid_t is short but getgroups modifies an array of ints. */ - exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); -} ->>, -changequote([, ])dnl - ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int, - ac_cv_type_getgroups=cross) -if test $ac_cv_type_getgroups = cross; then - dnl When we can't run the test program (we are cross compiling), presume - dnl that has either an accurate prototype for getgroups or none. - dnl Old systems without prototypes probably use int. - AC_EGREP_HEADER([getgroups.*int.*gid_t], unistd.h, - ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int) -fi]) -AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups) -]) - -AC_DEFUN(AC_TYPE_UID_T, -[AC_CACHE_CHECK(for uid_t in sys/types.h, ac_cv_type_uid_t, -[AC_EGREP_HEADER(uid_t, sys/types.h, - ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)]) -if test $ac_cv_type_uid_t = no; then - AC_DEFINE(uid_t, int) - AC_DEFINE(gid_t, int) -fi -]) - -AC_DEFUN(AC_TYPE_SIZE_T, -[AC_CHECK_TYPE(size_t, unsigned)]) - -AC_DEFUN(AC_TYPE_PID_T, -[AC_CHECK_TYPE(pid_t, int)]) - -AC_DEFUN(AC_TYPE_OFF_T, -[AC_CHECK_TYPE(off_t, long)]) - -AC_DEFUN(AC_TYPE_MODE_T, -[AC_CHECK_TYPE(mode_t, int)]) - -dnl Note that identifiers starting with SIG are reserved by ANSI C. -AC_DEFUN(AC_TYPE_SIGNAL, -[AC_CACHE_CHECK([return type of signal handlers], ac_cv_type_signal, -[AC_TRY_COMPILE([#include -#include -#ifdef signal -#undef signal -#endif -extern -#ifdef __cplusplus -"C" void (*signal (int, void (*)(int)))(int); -#else -void (*signal ()) (); -#endif -], -[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)]) -AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal) -]) - - -dnl ### Checks for functions - - -AC_DEFUN(AC_FUNC_CLOSEDIR_VOID, -[AC_REQUIRE([AC_HEADER_DIRENT])dnl -AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void, -[AC_TRY_RUN([#include -#include <$ac_header_dirent> -int closedir(); int main() { exit(closedir(opendir(".")) != 0); }], - ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)]) -if test $ac_cv_func_closedir_void = yes; then - AC_DEFINE(CLOSEDIR_VOID) -fi -]) - -AC_DEFUN(AC_FUNC_FNMATCH, -[AC_CACHE_CHECK(for working fnmatch, ac_cv_func_fnmatch_works, -# Some versions of Solaris or SCO have a broken fnmatch function. -# So we run a test program. If we are cross-compiling, take no chance. -# Thanks to John Oleynick and Franc,ois Pinard for this test. -[AC_TRY_RUN([int main() { exit (fnmatch ("a*", "abc", 0) != 0); }], -ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no, -ac_cv_func_fnmatch_works=no)]) -if test $ac_cv_func_fnmatch_works = yes; then - AC_DEFINE(HAVE_FNMATCH) -fi -]) - -AC_DEFUN(AC_FUNC_MMAP, -[AC_CHECK_HEADERS(unistd.h) -AC_CHECK_FUNCS(getpagesize) -AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, -[AC_TRY_RUN([ -/* 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 -#include -#include - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# 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 -# 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); -} -], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no, -ac_cv_func_mmap_fixed_mapped=no)]) -if test $ac_cv_func_mmap_fixed_mapped = yes; then - AC_DEFINE(HAVE_MMAP) -fi -]) - -AC_DEFUN(AC_FUNC_GETPGRP, -[AC_CACHE_CHECK(whether getpgrp takes no argument, ac_cv_func_getpgrp_void, -[AC_TRY_RUN([ -/* - * If this system has a BSD-style getpgrp(), - * which takes a pid argument, exit unsuccessfully. - * - * Snarfed from Chet Ramey's bash pgrp.c test program - */ -#include -#include - -int pid; -int pg1, pg2, pg3, pg4; -int ng, np, s, child; - -int main() -{ - pid = getpid(); - pg1 = getpgrp(0); - pg2 = getpgrp(); - pg3 = getpgrp(pid); - pg4 = getpgrp(1); - - /* - * If all of these values are the same, it's pretty sure that - * we're on a system that ignores getpgrp's first argument. - */ - if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) - exit(0); - - child = fork(); - if (child < 0) - exit(1); - else if (child == 0) { - np = getpid(); - /* - * If this is Sys V, this will not work; pgrp will be - * set to np because setpgrp just changes a pgrp to be - * the same as the pid. - */ - setpgrp(np, pg1); - ng = getpgrp(0); /* Same result for Sys V and BSD */ - if (ng == pg1) { - exit(1); - } else { - exit(0); - } - } else { - wait(&s); - exit(s>>8); - } -} -], ac_cv_func_getpgrp_void=yes, ac_cv_func_getpgrp_void=no, - AC_MSG_ERROR(cannot check getpgrp if cross compiling)) -]) -if test $ac_cv_func_getpgrp_void = yes; then - AC_DEFINE(GETPGRP_VOID) -fi -]) - -AC_DEFUN(AC_FUNC_SETPGRP, -[AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void, -AC_TRY_RUN([ -#ifdef HAVE_UNISTD_H -#include -#endif - -/* - * If this system has a BSD-style setpgrp, which takes arguments, exit - * successfully. - */ -int main() -{ - if (setpgrp(1,1) == -1) - exit(0); - else - exit(1); -} -], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes, - AC_MSG_ERROR(cannot check setpgrp if cross compiling)) -) -if test $ac_cv_func_setpgrp_void = yes; then - AC_DEFINE(SETPGRP_VOID) -fi -]) - -AC_DEFUN(AC_FUNC_VPRINTF, -[AC_CHECK_FUNC(vprintf, AC_DEFINE(HAVE_VPRINTF)) -if test "$ac_cv_func_vprintf" != yes; then -AC_CHECK_FUNC(_doprnt, AC_DEFINE(HAVE_DOPRNT)) -fi -]) - -AC_DEFUN(AC_FUNC_VFORK, -[AC_REQUIRE([AC_TYPE_PID_T])dnl -AC_CHECK_HEADER(vfork.h, AC_DEFINE(HAVE_VFORK_H)) -AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works, -[AC_TRY_RUN([/* Thanks to Paul Eggert for this test. */ -#include -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_VFORK_H -#include -#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 , - but some compilers (e.g. gcc -O) don't grok . - Test for this by using a static variable whose address - is put into a register that is clobbered by the vfork. */ -static int -#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); - } - } -} -int main() { - pid_t parent = getpid (); - pid_t child; - - ((int (*)()) 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 - ); - } -}], -ac_cv_func_vfork_works=yes, ac_cv_func_vfork_works=no, AC_CHECK_FUNC(vfork) -ac_cv_func_vfork_works=$ac_cv_func_vfork)]) -if test $ac_cv_func_vfork_works = no; then - AC_DEFINE(vfork, fork) -fi -]) - -AC_DEFUN(AC_FUNC_WAIT3, -[AC_CACHE_CHECK(for wait3 that fills in rusage, ac_cv_func_wait3_rusage, -[AC_TRY_RUN([#include -#include -#include -#include -/* HP-UX has wait3 but does not fill in rusage at all. */ -int main() { - struct rusage r; - int i; - /* Use a field that we can force nonzero -- - voluntary context switches. - For systems like NeXT and OSF/1 that don't set it, - also use the system CPU time. And page faults (I/O) for Linux. */ - r.ru_nvcsw = 0; - r.ru_stime.tv_sec = 0; - r.ru_stime.tv_usec = 0; - r.ru_majflt = r.ru_minflt = 0; - switch (fork()) { - case 0: /* Child. */ - sleep(1); /* Give up the CPU. */ - _exit(0); - case -1: _exit(0); /* What can we do? */ - default: /* Parent. */ - wait3(&i, 0, &r); - sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ - exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 - && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); - } -}], ac_cv_func_wait3_rusage=yes, ac_cv_func_wait3_rusage=no, -ac_cv_func_wait3_rusage=no)]) -if test $ac_cv_func_wait3_rusage = yes; then - AC_DEFINE(HAVE_WAIT3) -fi -]) - -AC_DEFUN(AC_FUNC_ALLOCA, -[AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally. -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h, -[AC_TRY_LINK([#include ], [char *p = alloca(2 * sizeof(int));], - ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)]) -if test $ac_cv_header_alloca_h = yes; then - AC_DEFINE(HAVE_ALLOCA_H) -fi - -AC_CACHE_CHECK([for alloca], ac_cv_func_alloca_works, -[AC_TRY_LINK([ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif -], [char *p = (char *) alloca(1);], - ac_cv_func_alloca_works=yes, ac_cv_func_alloca_works=no)]) -if test $ac_cv_func_alloca_works = yes; then - AC_DEFINE(HAVE_ALLOCA) -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} - AC_DEFINE(C_ALLOCA) - -AC_CACHE_CHECK(whether alloca needs Cray hooks, ac_cv_os_cray, -[AC_EGREP_CPP(webecray, -[#if defined(CRAY) && ! defined(CRAY2) -webecray -#else -wenotbecray -#endif -], ac_cv_os_cray=yes, ac_cv_os_cray=no)]) -if test $ac_cv_os_cray = yes; then -for ac_func in _getb67 GETB67 getb67; do - AC_CHECK_FUNC($ac_func, [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func) - break]) -done -fi - -AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, -[AC_TRY_RUN([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; -} -int main () -{ - exit (find_stack_direction() < 0); -}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1, - ac_cv_c_stack_direction=0)]) -AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction) -fi -AC_SUBST(ALLOCA)dnl -]) - -AC_DEFUN(AC_FUNC_GETLOADAVG, -[ac_have_func=no # yes means we've found a way to get the load average. - -# Some systems with -lutil have (and need) -lkvm as well, some do not. -# On Solaris, -lkvm requires nlist from -lelf, so check that first -# to get the right answer into the cache. -AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS") -AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS") -# Check for the 4.4BSD definition of getloadavg. -AC_CHECK_LIB(util, getloadavg, - [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) - -if test $ac_have_func = no; then - # There is a commonly available library for RS/6000 AIX. - # Since it is not a standard part of AIX, it might be installed locally. - ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" - AC_CHECK_LIB(getloadavg, getloadavg, - LIBS="-lgetloadavg $LIBS", LIBS="$ac_getloadavg_LIBS") -fi - -# Make sure it is really in the library, if we think we found it. -AC_REPLACE_FUNCS(getloadavg) - -if test $ac_cv_func_getloadavg = yes; then - AC_DEFINE(HAVE_GETLOADAVG) - ac_have_func=yes -else - # Figure out what our getloadavg.c needs. - ac_have_func=no - AC_CHECK_HEADER(sys/dg_sys_info.h, - [ac_have_func=yes; AC_DEFINE(DGUX) - AC_CHECK_LIB(dgc, dg_sys_info)]) - - # We cannot check for , because Solaris 2 does not use dwarf (it - # uses stabs), but it is still SVR4. We cannot check for because - # Irix 4.0.5F has the header but not the library. - if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then - ac_have_func=yes; AC_DEFINE(SVR4) - fi - - if test $ac_have_func = no; then - AC_CHECK_HEADER(inq_stats/cpustats.h, - [ac_have_func=yes; AC_DEFINE(UMAX) - AC_DEFINE(UMAX4_3)]) - fi - - if test $ac_have_func = no; then - AC_CHECK_HEADER(sys/cpustats.h, - [ac_have_func=yes; AC_DEFINE(UMAX)]) - fi - - if test $ac_have_func = no; then - AC_CHECK_HEADERS(mach/mach.h) - fi - - AC_CHECK_HEADER(nlist.h, - [AC_DEFINE(NLIST_STRUCT) - AC_CACHE_CHECK([for n_un in struct nlist], ac_cv_struct_nlist_n_un, - [AC_TRY_COMPILE([#include ], - [struct nlist n; n.n_un.n_name = 0;], - ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)]) - if test $ac_cv_struct_nlist_n_un = yes; then - AC_DEFINE(NLIST_NAME_UNION) - fi - ])dnl -fi # Do not have getloadavg in system libraries. - -# Some definitions of getloadavg require that the program be installed setgid. -dnl FIXME Don't hardwire the path of getloadavg.c in the top-level directory. -AC_CACHE_CHECK(whether getloadavg requires setgid, - ac_cv_func_getloadavg_setgid, -[AC_EGREP_CPP([Yowza Am I SETGID yet], -[#include "$srcdir/getloadavg.c" -#ifdef LDAV_PRIVILEGED -Yowza Am I SETGID yet -#endif], - ac_cv_func_getloadavg_setgid=yes, ac_cv_func_getloadavg_setgid=no)]) -if test $ac_cv_func_getloadavg_setgid = yes; then - NEED_SETGID=true; AC_DEFINE(GETLOADAVG_PRIVILEGED) -else - NEED_SETGID=false -fi -AC_SUBST(NEED_SETGID)dnl - -if test $ac_cv_func_getloadavg_setgid = yes; then - AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem, -[changequote(, )dnl - # On Solaris, /dev/kmem is a symlink. Get info on the real file. - ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` - # If we got an error (system does not support symlinks), try without -L. - test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` - ac_cv_group_kmem=`echo $ac_ls_output \ - | sed -ne 's/[ ][ ]*/ /g; - s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; - / /s/.* //;p;'` -changequote([, ])dnl -]) - KMEM_GROUP=$ac_cv_group_kmem -fi -AC_SUBST(KMEM_GROUP)dnl -]) - -AC_DEFUN(AC_FUNC_UTIME_NULL, -[AC_CACHE_CHECK(whether utime accepts a null argument, ac_cv_func_utime_null, -[rm -f conftestdata; > conftestdata -# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. -AC_TRY_RUN([#include -#include -int main() { -struct stat s, t; -exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0 -&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime -&& t.st_mtime - s.st_mtime < 120)); -}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no, - ac_cv_func_utime_null=no) -rm -f core]) -if test $ac_cv_func_utime_null = yes; then - AC_DEFINE(HAVE_UTIME_NULL) -fi -]) - -AC_DEFUN(AC_FUNC_STRCOLL, -[AC_CACHE_CHECK(for working strcoll, ac_cv_func_strcoll_works, -[AC_TRY_RUN([#include -int main () -{ - exit (strcoll ("abc", "def") >= 0 || - strcoll ("ABC", "DEF") >= 0 || - strcoll ("123", "456") >= 0); -}], ac_cv_func_strcoll_works=yes, ac_cv_func_strcoll_works=no, -ac_cv_func_strcoll_works=no)]) -if test $ac_cv_func_strcoll_works = yes; then - AC_DEFINE(HAVE_STRCOLL) -fi -]) - -AC_DEFUN(AC_FUNC_SETVBUF_REVERSED, -[AC_CACHE_CHECK(whether setvbuf arguments are reversed, - ac_cv_func_setvbuf_reversed, -[AC_TRY_RUN([#include -/* If setvbuf has the reversed format, exit 0. */ -int main () { - /* This call has the arguments reversed. - A reversed system may check and see that the address of main - is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ - if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) - exit(1); - putc('\r', stdout); - exit(0); /* Non-reversed systems segv here. */ -}], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no) -rm -f core]) -if test $ac_cv_func_setvbuf_reversed = yes; then - AC_DEFINE(SETVBUF_REVERSED) -fi -]) - -AC_DEFUN(AC_FUNC_GETMNTENT, -[# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. -AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS", - [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS", - [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])]) -AC_CHECK_FUNC(getmntent, [AC_DEFINE(HAVE_GETMNTENT)])]) - -AC_DEFUN(AC_FUNC_STRFTIME, -[AC_CHECK_FUNC(strftime, [AC_DEFINE(HAVE_STRFTIME)], -[# strftime is in -lintl on SCO UNIX. -AC_CHECK_LIB(intl, strftime, -[AC_DEFINE(HAVE_STRFTIME) -LIBS="-lintl $LIBS"])])]) - -AC_DEFUN(AC_FUNC_MEMCMP, -[AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean, -[AC_TRY_RUN([ -int main() -{ - char c0 = 0x40, c1 = 0x80, c2 = 0x81; - exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); -} -], ac_cv_func_memcmp_clean=yes, ac_cv_func_memcmp_clean=no, -ac_cv_func_memcmp_clean=no)]) -test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" -AC_SUBST(LIBOBJS)dnl -]) - -AC_DEFUN(AC_FUNC_SELECT_ARGTYPES, -[AC_MSG_CHECKING([types of arguments for select()]) - AC_CACHE_VAL(ac_cv_func_select_arg234,dnl - [AC_CACHE_VAL(ac_cv_func_select_arg1,dnl - [AC_CACHE_VAL(ac_cv_func_select_arg5,dnl - [for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do - for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do - for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do - AC_TRY_COMPILE(dnl -[#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_TIME_H -#include -#endif -#ifdef HAVE_SYS_SELECT_H -#include -#endif -#ifdef HAVE_SYS_SOCKET_H -#include -#endif -extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl - [ac_not_found=no ; break 3],ac_not_found=yes) - done - done - done - ])dnl AC_CACHE_VAL - ])dnl AC_CACHE_VAL - ])dnl AC_CACHE_VAL - if test "$ac_not_found" = yes; then - ac_cv_func_select_arg1=int - ac_cv_func_select_arg234='int *' - ac_cv_func_select_arg5='struct timeval *' - fi - AC_MSG_RESULT([$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5]) - AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG1,$ac_cv_func_select_arg1) - AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG234,($ac_cv_func_select_arg234)) - AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG5,($ac_cv_func_select_arg5)) -]) - - -dnl ### Checks for structure members - - -AC_DEFUN(AC_HEADER_TIME, -[AC_CACHE_CHECK([whether time.h and sys/time.h may both be included], - ac_cv_header_time, -[AC_TRY_COMPILE([#include -#include -#include ], -[struct tm *tp;], ac_cv_header_time=yes, ac_cv_header_time=no)]) -if test $ac_cv_header_time = yes; then - AC_DEFINE(TIME_WITH_SYS_TIME) -fi -]) - -AC_DEFUN(AC_STRUCT_TM, -[AC_CACHE_CHECK([whether struct tm is in sys/time.h or time.h], - ac_cv_struct_tm, -[AC_TRY_COMPILE([#include -#include ], -[struct tm *tp; tp->tm_sec;], - ac_cv_struct_tm=time.h, ac_cv_struct_tm=sys/time.h)]) -if test $ac_cv_struct_tm = sys/time.h; then - AC_DEFINE(TM_IN_SYS_TIME) -fi -]) - -AC_DEFUN(AC_STRUCT_TIMEZONE, -[AC_REQUIRE([AC_STRUCT_TM])dnl -AC_CACHE_CHECK([for tm_zone in struct tm], ac_cv_struct_tm_zone, -[AC_TRY_COMPILE([#include -#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;], - ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)]) -if test "$ac_cv_struct_tm_zone" = yes; then - AC_DEFINE(HAVE_TM_ZONE) -else - AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, -[AC_TRY_LINK( -changequote(<<, >>)dnl -<<#include -#ifndef tzname /* For SGI. */ -extern char *tzname[]; /* RS6000 and others reject char **tzname. */ -#endif>>, -changequote([, ])dnl -[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)]) - if test $ac_cv_var_tzname = yes; then - AC_DEFINE(HAVE_TZNAME) - fi -fi -]) - -AC_DEFUN(AC_STRUCT_ST_BLOCKS, -[AC_CACHE_CHECK([for st_blocks in struct stat], ac_cv_struct_st_blocks, -[AC_TRY_COMPILE([#include -#include ], [struct stat s; s.st_blocks;], -ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)]) -if test $ac_cv_struct_st_blocks = yes; then - AC_DEFINE(HAVE_ST_BLOCKS) -else - LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" -fi -AC_SUBST(LIBOBJS)dnl -]) - -AC_DEFUN(AC_STRUCT_ST_BLKSIZE, -[AC_CACHE_CHECK([for st_blksize in struct stat], ac_cv_struct_st_blksize, -[AC_TRY_COMPILE([#include -#include ], [struct stat s; s.st_blksize;], -ac_cv_struct_st_blksize=yes, ac_cv_struct_st_blksize=no)]) -if test $ac_cv_struct_st_blksize = yes; then - AC_DEFINE(HAVE_ST_BLKSIZE) -fi -]) - -AC_DEFUN(AC_STRUCT_ST_RDEV, -[AC_CACHE_CHECK([for st_rdev in struct stat], ac_cv_struct_st_rdev, -[AC_TRY_COMPILE([#include -#include ], [struct stat s; s.st_rdev;], -ac_cv_struct_st_rdev=yes, ac_cv_struct_st_rdev=no)]) -if test $ac_cv_struct_st_rdev = yes; then - AC_DEFINE(HAVE_ST_RDEV) -fi -]) - - -dnl ### Checks for compiler characteristics - - -AC_DEFUN(AC_C_CROSS, -[AC_OBSOLETE([$0], [; it has been merged into AC_PROG_CC])]) - -AC_DEFUN(AC_C_CHAR_UNSIGNED, -[AC_CACHE_CHECK(whether char is unsigned, ac_cv_c_char_unsigned, -[if test "$GCC" = yes; then - # GCC predefines this symbol on systems where it applies. -AC_EGREP_CPP(yes, -[#ifdef __CHAR_UNSIGNED__ - yes -#endif -], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) -else -AC_TRY_RUN( -[/* volatile prevents gcc2 from optimizing the test away on sparcs. */ -#if !defined(__STDC__) || __STDC__ != 1 -#define volatile -#endif -int main() { - volatile char c = 255; exit(c < 0); -}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) -fi]) -if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then - AC_DEFINE(__CHAR_UNSIGNED__) -fi -]) - -AC_DEFUN(AC_C_LONG_DOUBLE, -[AC_CACHE_CHECK(for long double, ac_cv_c_long_double, -[if test "$GCC" = yes; then - ac_cv_c_long_double=yes -else -AC_TRY_RUN([int main() { -/* The Stardent Vistra knows sizeof(long double), but does not support it. */ -long double foo = 0.0; -/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ -exit(sizeof(long double) < sizeof(double)); }], -ac_cv_c_long_double=yes, ac_cv_c_long_double=no) -fi]) -if test $ac_cv_c_long_double = yes; then - AC_DEFINE(HAVE_LONG_DOUBLE) -fi -]) - -AC_DEFUN(AC_INT_16_BITS, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl -AC_MSG_CHECKING(whether int is 16 bits) -AC_TRY_RUN([int main() { exit(sizeof(int) != 2); }], - [AC_MSG_RESULT(yes) - AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no)) -]) - -AC_DEFUN(AC_LONG_64_BITS, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl -AC_MSG_CHECKING(whether long int is 64 bits) -AC_TRY_RUN([int main() { exit(sizeof(long int) != 8); }], - [AC_MSG_RESULT(yes) - AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no)) -]) - -AC_DEFUN(AC_C_BIGENDIAN, -[AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian, -[ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. -AC_TRY_COMPILE([#include -#include ], [ -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros -#endif], [# It does; now see whether it defined to BIG_ENDIAN or not. -AC_TRY_COMPILE([#include -#include ], [ -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)]) -if test $ac_cv_c_bigendian = unknown; then -AC_TRY_RUN([int main () { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long l; - char c[sizeof (long)]; - } u; - u.l = 1; - exit (u.c[sizeof (long) - 1] == 1); -}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes) -fi]) -if test $ac_cv_c_bigendian = yes; then - AC_DEFINE(WORDS_BIGENDIAN) -fi -]) - -dnl Do nothing if the compiler accepts the inline keyword. -dnl Otherwise define inline to __inline__ or __inline if one of those work, -dnl otherwise define inline to be empty. -AC_DEFUN(AC_C_INLINE, -[AC_CACHE_CHECK([for inline], ac_cv_c_inline, -[ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - AC_TRY_COMPILE(, [} $ac_kw foo() {], [ac_cv_c_inline=$ac_kw; break]) -done -]) -case "$ac_cv_c_inline" in - inline | yes) ;; - no) AC_DEFINE(inline, ) ;; - *) AC_DEFINE_UNQUOTED(inline, $ac_cv_c_inline) ;; -esac -]) - -AC_DEFUN(AC_C_CONST, -[dnl This message is consistent in form with the other checking messages, -dnl and with the result message. -AC_CACHE_CHECK([for working const], ac_cv_c_const, -[AC_TRY_COMPILE(, -changequote(<<, >>)dnl -<< -#ifndef __cplusplus -/* Ultrix mips cc rejects this. */ -typedef int charset[2]; const charset x; -#endif -/* 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; -} ->>, -changequote([, ])dnl -ac_cv_c_const=yes, ac_cv_c_const=no)]) -if test $ac_cv_c_const = no; then - AC_DEFINE(const, ) -fi -]) - -AC_DEFUN(AC_C_STRINGIZE, [ -AC_REQUIRE([AC_PROG_CPP]) -AC_MSG_CHECKING([for preprocessor stringizing operator]) -AC_CACHE_VAL(ac_cv_c_stringize, -AC_EGREP_CPP([#teststring],[ -#define x(y) #y - -char *s = x(teststring); -], ac_cv_c_stringize=no, ac_cv_c_stringize=yes)) -if test "${ac_cv_c_stringize}" = yes -then - AC_DEFINE(HAVE_STRINGIZE) -fi -AC_MSG_RESULT([${ac_cv_c_stringize}]) -])dnl - -define(AC_ARG_ARRAY, -[errprint(__file__:__line__: [$0] has been removed; don't do unportable things with arguments -)m4exit(4)]) - -dnl Check the object extension used by the compiler: typically .o or -dnl .obj. If this is called, some other behaviour will change, -dnl determined by ac_objext. -AC_DEFUN(AC_OBJEXT, -[AC_MSG_CHECKING([for object suffix]) -AC_CACHE_VAL(ac_cv_objext, -[rm -f conftest* -echo 'int i = 1;' > conftest.$ac_ext -if AC_TRY_EVAL(ac_compile); then - for ac_file in conftest.*; do - case $ac_file in - *.c) ;; - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; - esac - done -else - AC_MSG_ERROR([installation or configuration problem; compiler does not work]) -fi -rm -f conftest*]) -AC_MSG_RESULT($ac_cv_objext) -OBJEXT=$ac_cv_objext -ac_objext=$ac_cv_objext -AC_SUBST(OBJEXT)]) - -dnl Determine the linker flags (e.g. `-L' and `-l') for the Fortran 77 -dnl intrinsic and run-time libraries that are required to successfully -dnl link a Fortran 77 program or shared library. The output variable -dnl FLIBS is set to these flags. -dnl -dnl This macro is intended to be used in those situations when it is -dnl necessary to mix, e.g. C++ and Fortran 77, source code into a single -dnl program or shared library. -dnl -dnl For example, if object files from a C++ and Fortran 77 compiler must -dnl be linked together, then the C++ compiler/linker must be used for -dnl linking (since special C++-ish things need to happen at link time -dnl like calling global constructors, instantiating templates, enabling -dnl exception support, etc.). -dnl -dnl However, the Fortran 77 intrinsic and run-time libraries must be -dnl linked in as well, but the C++ compiler/linker doesn't know how to -dnl add these Fortran 77 libraries. Hence, the macro -dnl `AC_F77_LIBRARY_LDFLAGS' was created to determine these Fortran 77 -dnl libraries. -dnl -dnl This macro was packaged in its current form by Matthew D. Langston -dnl . However, nearly all of this macro -dnl came from the `OCTAVE_FLIBS' macro in `octave-2.0.13/aclocal.m4', -dnl and full credit should go to John W. Eaton for writing this -dnl extremely useful macro. Thank you John. -dnl -dnl AC_F77_LIBRARY_LDFLAGS() -AC_DEFUN(AC_F77_LIBRARY_LDFLAGS, -[AC_MSG_CHECKING([for Fortran 77 libraries]) -AC_REQUIRE([AC_PROG_F77]) -AC_REQUIRE([AC_CANONICAL_HOST]) -AC_CACHE_VAL(ac_cv_flibs, -[changequote(, )dnl -dnl Write a minimal program and compile it with -v. I don't know what -dnl to do if your compiler doesn't have -v... -echo " END" > conftest.f -foutput=`${F77} -v -o conftest conftest.f 2>&1` -dnl -dnl The easiest thing to do for xlf output is to replace all the commas -dnl with spaces. Try to only do that if the output is really from xlf, -dnl since doing that causes problems on other systems. -dnl -xlf_p=`echo $foutput | grep xlfentry` -if test -n "$xlf_p"; then - foutput=`echo $foutput | sed 's/,/ /g'` -fi -dnl -ld_run_path=`echo $foutput | \ - sed -n -e 's/^.*LD_RUN_PATH *= *\([^ ]*\).*/\1/p'` -dnl -dnl We are only supposed to find this on Solaris systems... -dnl Uh, the run path should be absolute, shouldn't it? -dnl -case "$ld_run_path" in - /*) - if test "$ac_cv_prog_gcc" = yes; then - ld_run_path="-Xlinker -R -Xlinker $ld_run_path" - else - ld_run_path="-R $ld_run_path" - fi - ;; - *) - ld_run_path= - ;; -esac -dnl -flibs= -lflags= -dnl -dnl If want_arg is set, we know we want the arg to be added to the list, -dnl so we don't have to examine it. -dnl -want_arg= -dnl -for arg in $foutput; do - old_want_arg=$want_arg - want_arg= -dnl -dnl None of the options that take arguments expect the argument to -dnl start with a -, so pretend we didn't see anything special. -dnl - if test -n "$old_want_arg"; then - case "$arg" in - -*) - old_want_arg= - ;; - esac - fi - case "$old_want_arg" in - '') - case $arg in - /*.a) - exists=false - for f in $lflags; do - if test x$arg = x$f; then - exists=true - fi - done - if $exists; then - arg= - else - lflags="$lflags $arg" - fi - ;; - -bI:*) - exists=false - for f in $lflags; do - if test x$arg = x$f; then - exists=true - fi - done - if $exists; then - arg= - else - if test "$ac_cv_prog_gcc" = yes; then - lflags="$lflags -Xlinker $arg" - else - lflags="$lflags $arg" - fi - fi - ;; - -lang* | -lcrt0.o | -lc | -lgcc) - arg= - ;; - -[lLR]) - want_arg=$arg - arg= - ;; - -[lLR]*) - exists=false - for f in $lflags; do - if test x$arg = x$f; then - exists=true - fi - done - if $exists; then - arg= - else - case "$arg" in - -lkernel32) - case "$canonical_host_type" in - *-*-cygwin*) - arg= - ;; - *) - lflags="$lflags $arg" - ;; - esac - ;; - -lm) - ;; - *) - lflags="$lflags $arg" - ;; - esac - fi - ;; - -u) - want_arg=$arg - arg= - ;; - -Y) - want_arg=$arg - arg= - ;; - *) - arg= - ;; - esac - ;; - -[lLR]) - arg="$old_want_arg $arg" - ;; - -u) - arg="-u $arg" - ;; - -Y) -dnl -dnl Should probably try to ensure unique directory options here too. -dnl This probably only applies to Solaris systems, and then will only -dnl work with gcc... -dnl - arg=`echo $arg | sed -e 's%^P,%%'` - SAVE_IFS=$IFS - IFS=: - list= - for elt in $arg; do - list="$list -L$elt" - done - IFS=$SAVE_IFS - arg="$list" - ;; - esac -dnl - if test -n "$arg"; then - flibs="$flibs $arg" - fi -done -if test -n "$ld_run_path"; then - flibs_result="$ld_run_path $flibs" -else - flibs_result="$flibs" -fi -changequote([, ])dnl -ac_cv_flibs="$flibs_result"]) -FLIBS="$ac_cv_flibs" -AC_SUBST(FLIBS)dnl -AC_MSG_RESULT($FLIBS) -]) - - -dnl ### Checks for operating system services - - -AC_DEFUN(AC_SYS_INTERPRETER, -[# Pull the hash mark out of the macro call to avoid m4 problems. -ac_msg="whether #! works in shell scripts" -AC_CACHE_CHECK($ac_msg, ac_cv_sys_interpreter, -[echo '#! /bin/cat -exit 69 -' > conftest -chmod u+x conftest -(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) -if test $? -ne 69; then - ac_cv_sys_interpreter=yes -else - ac_cv_sys_interpreter=no -fi -rm -f conftest]) -interpval="$ac_cv_sys_interpreter" -]) - -define(AC_HAVE_POUNDBANG, -[errprint(__file__:__line__: [$0 has been replaced by AC_SYS_INTERPRETER, taking no arguments -])m4exit(4)]) - -AC_DEFUN(AC_SYS_LONG_FILE_NAMES, -[AC_CACHE_CHECK(for long file names, ac_cv_sys_long_file_names, -[ac_cv_sys_long_file_names=yes -# Test for long file names in all the places we know might matter: -# . the current directory, where building will happen -# $prefix/lib where we will be installing things -# $exec_prefix/lib likewise -# eval it to expand exec_prefix. -# $TMPDIR if set, where it might want to write temporary files -# if $TMPDIR is not set: -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise -if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then - ac_tmpdirs="$TMPDIR" -else - ac_tmpdirs='/tmp /var/tmp /usr/tmp' -fi -for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do - test -d $ac_dir || continue - test -w $ac_dir || continue # It is less confusing to not echo anything here. - (echo 1 > $ac_dir/conftest9012345) 2>/dev/null - (echo 2 > $ac_dir/conftest9012346) 2>/dev/null - val=`cat $ac_dir/conftest9012345 2>/dev/null` - if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then - ac_cv_sys_long_file_names=no - rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null - break - fi - rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null -done]) -if test $ac_cv_sys_long_file_names = yes; then - AC_DEFINE(HAVE_LONG_FILE_NAMES) -fi -]) - -AC_DEFUN(AC_SYS_RESTARTABLE_SYSCALLS, -[AC_CACHE_CHECK(for restartable system calls, ac_cv_sys_restartable_syscalls, -[AC_TRY_RUN( -[/* Exit 0 (true) if wait returns something other than -1, - i.e. the pid of the child, which means that wait was restarted - after getting the signal. */ -#include -#include -ucatch (isig) { } -int main () { - int i = fork (), status; - if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } - signal (SIGINT, ucatch); - status = wait(&i); - if (status == -1) wait(&i); - exit (status == -1); -} -], ac_cv_sys_restartable_syscalls=yes, ac_cv_sys_restartable_syscalls=no)]) -if test $ac_cv_sys_restartable_syscalls = yes; then - AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS) -fi -]) - -AC_DEFUN(AC_PATH_X, -[AC_REQUIRE_CPP()dnl Set CPP; we run AC_PATH_X_DIRECT conditionally. -# 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. -AC_MSG_CHECKING(for X) - -AC_ARG_WITH(x, [ --with-x use the X Window System]) -# $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 -AC_CACHE_VAL(ac_cv_have_x, -[# One or both of the vars are not set, and there is no cached value. -ac_x_includes=NO ac_x_libraries=NO -AC_PATH_X_XMKMF -AC_PATH_X_DIRECT -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])dnl - fi - eval "$ac_cv_have_x" -fi # $with_x != no - -if test "$have_x" != yes; then - AC_MSG_RESULT($have_x) - 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" - AC_MSG_RESULT([libraries $x_libraries, headers $x_includes]) -fi -]) - -dnl Internal subroutine of AC_PATH_X. -dnl Set ac_x_includes and/or ac_x_libraries. -AC_DEFUN(AC_PATH_X_XMKMF, -[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 -]) - -dnl Internal subroutine of AC_PATH_X. -dnl Set ac_x_includes and/or ac_x_libraries. -AC_DEFUN(AC_PATH_X_DIRECT, -[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. -AC_TRY_CPP([#include <$x_direct_test_include>], -[# We can compile using X headers with no special include directory. -ac_x_includes=], -[# 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 # $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" -AC_TRY_LINK(, [${x_direct_test_function}()], -[LIBS="$ac_save_LIBS" -# We can link X programs with no special library path. -ac_x_libraries=], -[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 -dnl Don't even attempt the hair of trying to link an X program! - 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 # $ac_x_libraries = NO -]) - -dnl Find additional X libraries, magic flags, etc. -AC_DEFUN(AC_PATH_XTRA, -[AC_REQUIRE([AC_PATH_X])dnl -if test "$no_x" = yes; then - # Not all programs may use this symbol, but it does not hurt to define it. - AC_DEFINE(X_DISPLAY_MISSING) - X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= -else - if test -n "$x_includes"; then - X_CFLAGS="$X_CFLAGS -I$x_includes" - fi - - # It would also be nice to do this for all -L options, not just this one. - if test -n "$x_libraries"; then - X_LIBS="$X_LIBS -L$x_libraries" -dnl FIXME banish uname from this macro! - # For Solaris; some versions of Sun CC require a space after -R and - # others require no space. Words are not sufficient . . . . - case "`(uname -sr) 2>/dev/null`" in - "SunOS 5"*) - AC_MSG_CHECKING(whether -R must be followed by a space) - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" - AC_TRY_LINK(, , ac_R_nospace=yes, ac_R_nospace=no) - if test $ac_R_nospace = yes; then - AC_MSG_RESULT(no) - X_LIBS="$X_LIBS -R$x_libraries" - else - LIBS="$ac_xsave_LIBS -R $x_libraries" - AC_TRY_LINK(, , ac_R_space=yes, ac_R_space=no) - if test $ac_R_space = yes; then - AC_MSG_RESULT(yes) - X_LIBS="$X_LIBS -R $x_libraries" - else - AC_MSG_RESULT(neither works) - fi - fi - LIBS="$ac_xsave_LIBS" - esac - fi - - # Check for system-dependent libraries X programs must link with. - # Do this before checking for the system-independent R6 libraries - # (-lICE), since we may need -lsocket or whatever for X linking. - - if test "$ISC" = yes; then - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" - else - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X - # libraries were built with DECnet support. And karl@cs.umb.edu says - # the Alpha needs dnet_stub (dnet does not exist). - AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) - if test $ac_cv_lib_dnet_dnet_ntoa = no; then - AC_CHECK_LIB(dnet_stub, dnet_ntoa, - [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) - fi - - # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, - # to get the SysV transport functions. - # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) - # needs -lnsl. - # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to dickey@clark.net. - AC_CHECK_FUNC(gethostbyname) - if test $ac_cv_func_gethostbyname = no; then - AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") - fi - - # lieder@skyler.mavd.honeywell.com says without -lsocket, - # socket/setsockopt and other routines are undefined under SCO ODT - # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary - # on later versions), says simon@lia.di.epfl.ch: it contains - # gethostby* variants that don't use the nameserver (or something). - # -lsocket must be given before -lnsl if both are needed. - # We assume that if connect needs -lnsl, so does gethostbyname. - AC_CHECK_FUNC(connect) - if test $ac_cv_func_connect = no; then - AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , - $X_EXTRA_LIBS) - fi - - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. - AC_CHECK_FUNC(remove) - if test $ac_cv_func_remove = no; then - AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") - fi - - # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. - AC_CHECK_FUNC(shmat) - if test $ac_cv_func_shmat = no; then - AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") - fi - fi - - # Check for libraries that X11R6 Xt/Xaw programs need. - ac_save_LDFLAGS="$LDFLAGS" - test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" - # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to - # check for ICE first), but we must link in the order -lSM -lICE or - # we get undefined symbols. So assume we have SM if we have ICE. - # These have to be linked with before -lX11, unlike the other - # libraries we check for below, so use a different variable. - # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. - AC_CHECK_LIB(ICE, IceConnectionNumber, - [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) - LDFLAGS="$ac_save_LDFLAGS" - -fi -AC_SUBST(X_CFLAGS)dnl -AC_SUBST(X_PRE_LIBS)dnl -AC_SUBST(X_LIBS)dnl -AC_SUBST(X_EXTRA_LIBS)dnl -]) - -dnl The old Cygwin32 macro is deprecated. -AC_DEFUN(AC_CYGWIN32, -[AC_OBSOLETE([$0], [; instead use AC_CYGWIN])dnl -AC_CYGWIN]) - -dnl Check for Cygwin. This is a way to set the right value for -dnl EXEEXT. -AC_DEFUN(AC_CYGWIN, -[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin, -[AC_TRY_COMPILE(,[ -#ifndef __CYGWIN__ -#define __CYGWIN__ __CYGWIN32__ -#endif -return __CYGWIN__;], -ac_cv_cygwin=yes, ac_cv_cygwin=no) -rm -f conftest*]) -CYGWIN= -test "$ac_cv_cygwin" = yes && CYGWIN=yes]) - -dnl Check for mingw32. This is another way to set the right value for -dnl EXEEXT. -AC_DEFUN(AC_MINGW32, -[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -ac_cv_mingw32=yes, ac_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$ac_cv_mingw32" = yes && MINGW32=yes]) - -dnl Check for the extension used for executables. This knows that we -dnl add .exe for Cygwin or mingw32. Otherwise, it compiles a test -dnl executable. If this is called, the executable extensions will be -dnl automatically used by link commands run by the configure script. -AC_DEFUN(AC_EXEEXT, -[AC_REQUIRE([AC_CYGWIN]) -AC_REQUIRE([AC_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(ac_cv_exeext, -[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 AC_TRY_EVAL(ac_link); then - for file in conftest.*; do - case $file in - *.c | *.o | *.obj) ;; - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; - esac - done - else - AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.]) - fi - rm -f conftest* - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no -fi]) -EXEEXT="" -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} -AC_MSG_RESULT(${ac_cv_exeext}) -dnl Setting ac_exeext will implicitly change the ac_link command. -ac_exeext=$EXEEXT -AC_SUBST(EXEEXT)]) - - -dnl ### Checks for UNIX variants -dnl These are kludges which should be replaced by a single POSIX check. -dnl They aren't cached, to discourage their use. - - -AC_DEFUN(AC_AIX, -[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl -AC_BEFORE([$0], [AC_TRY_RUN])dnl -AC_MSG_CHECKING(for AIX) -AC_CACHE_VAL(ac_cv_sys_aix,[ -AC_EGREP_CPP(yes, -[#ifdef _AIX - yes -#endif -], [ac_cv_sys_aix=yes], [ac_cv_sys_aix=no])]) -AC_MSG_RESULT($ac_cv_sys_aix) -if test $ac_cv_sys_aix = yes; then - AC_DEFINE(_ALL_SOURCE) -fi -]) - -AC_DEFUN(AC_MINIX, -[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl -AC_BEFORE([$0], [AC_TRY_RUN])dnl -AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=) -if test "$MINIX" = yes; then - AC_DEFINE(_POSIX_SOURCE) - AC_DEFINE(_POSIX_1_SOURCE, 2) - AC_DEFINE(_MINIX) -fi -]) - -AC_DEFUN(AC_ISC_POSIX, -[AC_REQUIRE([AC_PROG_CC])dnl -AC_BEFORE([$0], [AC_TRY_COMPILE])dnl -AC_BEFORE([$0], [AC_TRY_RUN])dnl -AC_MSG_CHECKING(for POSIXized ISC) -AC_CACHE_VAL(ac_cv_sys_isc_posix,[ -if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1 -then - ac_cv_sys_isc_posix=yes -else - ac_cv_sys_isc_posix=no -fi -]) -AC_MSG_RESULT($ac_cv_sys_isc_posix) -if test $ac_cv_sys_isc_posix = yes; then - ISC=yes # If later tests want to check for ISC. - AC_DEFINE(_POSIX_SOURCE) - if test "$GCC" = yes; then - CC="$CC -posix" - else - CC="$CC -Xp" - fi -else - ISC= -fi -]) - -AC_DEFUN(AC_XENIX_DIR, -[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl -AC_REQUIRE([AC_DIR_HEADER])dnl -AC_MSG_CHECKING(for Xenix) -AC_EGREP_CPP(yes, -[#if defined(M_XENIX) && !defined(M_UNIX) - yes -#endif -], [AC_MSG_RESULT(yes); XENIX=yes], [AC_MSG_RESULT(no); XENIX=]) -if test "$XENIX" = yes; then - # Make sure -ldir precedes -lx. - test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS" - LIBS="$LIBS -lx" -fi -]) - -AC_DEFUN(AC_DYNIX_SEQ, -[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT])dnl -AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS") -]) - -AC_DEFUN(AC_IRIX_SUN, -[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])dnl -AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS") -]) - -AC_DEFUN(AC_SCO_INTL, -[AC_OBSOLETE([$0], [; instead use AC_FUNC_STRFTIME])dnl -AC_CHECK_LIB(intl, strftime, LIBS="-lintl $LIBS") -]) diff --git a/autoconf/autoconf b/autoconf/autoconf deleted file mode 100755 index 538dc13..0000000 --- a/autoconf/autoconf +++ /dev/null @@ -1,790 +0,0 @@ -#! /bin/sh -# -*- shell-script -*- -# autoconf -- create `configure' using m4 macros -# Copyright 1992, 1993, 1994, 1996, 1999, 2000, 2001 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -me=`echo "$0" | sed -e 's,.*[\\/],,'` - -usage="\ -Usage: $0 [OPTION] ... [TEMPLATE-FILE] - -Generate a configuration script from a TEMPLATE-FILE if given, or -\`configure.ac' if present, or else \`configure.in'. Output is sent -to the standard output if TEMPLATE-FILE is given, else into -\`configure'. - -Operation modes: - -h, --help print this help, then exit - -V, --version print version number, then exit - -v, --verbose verbosely report processing - -d, --debug don't remove temporary files - -o, --output=FILE save output in FILE (stdout is the default) - -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] - -Warning categories include: - \`cross' cross compilation issues - \`obsolete' obsolete constructs - \`syntax' dubious syntactic constructs - \`all' all the warnings - \`no-CATEGORY' turn off the warnings on CATEGORY - \`none' turn off all the warnings - \`error' warnings are error - -The environment variable \`WARNINGS' is honored. - -Library directories: - -A, --autoconf-dir=ACDIR Autoconf's macro files location (rarely needed) - -l, --localdir=DIR location of the \`aclocal.m4' file - -Tracing: - -t, --trace=MACRO report the list of calls to MACRO - -i, --initialization also trace Autoconf's initialization process - -In tracing mode, no configuration script is created. - -Report bugs to ." - -version="\ -autoconf (GNU Autoconf) 2.52 -Written by David J. MacKenzie. - -Copyright 1992, 1993, 1994, 1996, 1999, 2000, 2001 -Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help="\ -Try \`$me --help' for more information." - -exit_missing_arg="\ -echo \"$me: option \\\`\$1' requires an argument\" >&2 -echo \"\$help\" >&2 -exit 1" - -# NLS nuisances. -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_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi - -# ac_LF_and_DOT -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` - -# Find GNU m4. -# Handle the case that m4 has moved since we were configured. -# It may have been found originally in a build directory. -: ${M4=/usr/bin/m4} -case "$M4" in - [\\/]* | ?:[\\/]*) test -f "$M4" || M4=m4 ;; -esac -# Some non-GNU m4's don't reject the --help option, so give them /dev/null. -case `$M4 --help &1` in -*reload-state*);; -*) echo "$me: Autoconf requires GNU m4 1.4 or later" >&2; exit 1 ;; -esac - -# Set some high recursion limit as the default limit, 250, has already -# been hit with AC_OUTPUT. -case " $M4 " in - *" --nesting-limit"* | *" -L"* ) - # Don't override the user's choice - ;; - *) M4="$M4 --nesting-limit=1024" - ;; -esac - - -# Find a good AWK. -: ${AWK=gawk} -if echo xfoo | $AWK '/foo|^bar$/ { print }' | grep xfoo >/dev/null; then :; else - echo "$me: the regex engine of $AWK is too broken to be used" >&2 - echo "$me: you might want to install GNU AWK" >&2 - exit 1 -fi - - -# Variables. -: ${autoconf_dir=${AC_MACRODIR=/usr/share/autoconf}} -test -z "$AC_ACLOCALDIR" && - AC_ACLOCALDIR=`(aclocal --print-ac-dir) 2>/dev/null` -debug=false -# Trace Autoconf's initialization? -initialization=false -localdir=. -outfile= -# Exit status. -status=0 -# Tasks: -# - trace -# Trace the first arguments of some macros -# - script -# Produce the configure script (default) -task=script -tmp= -verbose=: - -# Parse command line. -while test $# -gt 0 ; do - optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \ - "x$1" : 'x-.\(.*\)'` - case $1 in - --version | -V ) - echo "$version" ; exit 0 ;; - --help | -h ) - echo "$usage"; exit 0 ;; - - --debug | -d ) - debug=:; shift ;; - --verbose | -v ) - verbose=echo - shift;; - - --localdir=* | -l?* ) - localdir=$optarg - shift ;; - --localdir | -l ) - test $# = 1 && eval "$exit_missing_arg" - shift - localdir=$1 - shift ;; - - --autoconf-dir=* | -A?* ) - autoconf_dir=$optarg - shift ;; - --autoconf-dir | -A ) - test $# = 1 && eval "$exit_missing_arg" - shift - autoconf_dir=$1 - shift ;; - --macrodir=* | -m?* ) - echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 - autoconf_dir=$optarg - shift ;; - --macrodir | -m ) - echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 - test $# = 1 && eval "$exit_missing_arg" - shift - autoconf_dir=$1 - shift ;; - - --trace=* | -t?* ) - task=trace - traces="$traces '"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'" - shift ;; - --trace | -t ) - test $# = 1 && eval "$exit_missing_arg" - task=trace - shift - traces="$traces '"`echo "$1" | sed "s/'/'\\\\\\\\''/g"`"'" - shift ;; - --initialization | -i ) - initialization=: - shift;; - - --output=* | -o?* ) - outfile=$optarg - shift ;; - --output | -o ) - test $# = 1 && eval "$exit_missing_arg" - shift - outfile=$1 - shift ;; - - --warnings=* | -W?* ) - warnings=$warnings,$optarg - shift ;; - --warnings | -W ) - test $# = 1 && eval "$exit_missing_arg" - shift - warnings=$warnings,$1 - shift ;; - - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - exec >&2 - echo "$me: invalid option $1" - echo "$help" - exit 1 ;; - * ) - break ;; - esac -done - -# The warnings are the concatenation of 1. application's defaults, -# 2. $WARNINGS, $3 command line options, in that order. -# Set them in the order expected by the M4 macros: the converse. -alphabet='abcdefghijklmnopqrstuvwxyz' -ALPHABET='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -NUMBERS='0123456789' -WORDCHAR=_$alphabet$ALPHABET$NUMBERS - -m4_warnings= -for warning in `IFS=,; echo syntax $WARNINGS $warnings | - tr $ALPHABET $alphabet` -do - test -n $warning || continue - m4_warnings="$warning"`test -n "$m4_warnings" && echo ",$m4_warnings"` -done - - -# Trap on 0 to stop playing with `rm'. -$debug || -{ - trap 'status=$?; rm -rf $tmp && exit $status' 0 - trap '(exit 1); exit 1' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/acXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/ac$$ - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - (exit 1); exit 1; -} - -# Running m4. -test -f "$autoconf_dir/acsite.m4" && acsite_m4="$autoconf_dir/acsite.m4" -test -f "$localdir/aclocal.m4" && aclocal_m4="$localdir/aclocal.m4" -m4_common="-I $autoconf_dir -I $localdir -Dm4_tmpdir=$tmp" -m4_prefiles=" $autoconf_dir/autoconf.m4 $acsite_m4 $aclocal_m4" -m4f_prefiles="--reload-state=$autoconf_dir/autoconf.m4f $acsite_m4 $aclocal_m4" -run_m4="$M4 $m4_common" - -# Find the input file. -case $# in - 0) - case `ls configure.ac configure.in 2>/dev/null` in - *ac*in ) - echo "$me: warning: both \`configure.ac' and \`configure.in' are present." >&2 - echo "$me: warning: proceeding with \`configure.ac'." >&2 - infile=configure.ac;; - *ac ) infile=configure.ac;; - *in ) infile=configure.in;; - * ) - echo "$me: no input file" >&2 - exit 1;; - esac - test $task = script && test -z "$outfile" && outfile=configure;; - 1) infile=$1 ;; - *) exec >&2 - echo "$me: invalid number of arguments." - echo "$help" - (exit 1); exit 1 ;; -esac - -# Unless specified, the output is stdout. -test -z "$outfile" && outfile=- - -# We need an actual file. -if test z$infile = z-; then - infile=$tmp/stdin - cat >$infile -elif test ! -r "$infile"; then - echo "$me: $infile: No such file or directory" >&2 - (exit 1); exit 1 -fi - -# Output is produced into FD 4. Prepare it. -case $outfile in - -) # Output to stdout - exec 4>&1 ;; - * ) - exec 4>$outfile;; -esac - -# Initializations are performed. Proceed to the main task. -case $task in - - ## --------------------------------- ## - ## Generate the `configure' script. ## - ## --------------------------------- ## - script) - # M4 expansion. - : >$tmp/forbidden.rx - : >$tmp/allowed.rx - $verbose "$me: running $run_m4 -Dm4_warnings=$m4_warnings $m4f_prefiles $infile" >&2 - $run_m4 -Dm4_warnings=$m4_warnings $m4f_prefiles $infile >$tmp/configure || - { (exit 1); exit 1; } - - if test "x$outfile" != x-; then - chmod +x $outfile - fi - - # Put the real line numbers into configure to make config.log more - # helpful. Because quoting can sometimes get really painful in m4, - # there are special @tokens@ to substitute. - sed 's/^ //' >"$tmp/finalize.awk" < 0) - forbidden = (forbidden ? forbidden "|" : "") pattern - close (tmp "/forbidden.rx") - if (verbose) - errprint("$me: forbidden: " forbidden) - - while ((getline pattern < (tmp "/allowed.rx")) > 0) - allowed = (allowed ? allowed "|" : "") pattern - if (!allowed) - allowed = "^$" - close (tmp "/allowed.rx") - if (verbose) - errprint("$me: allowed: " allowed) - } - - function errprint (message) - { - # BAD! the pipe to 'cat >&2' doesn't work for DJGPP. - # print message | "cat >&2" - # Use normal redirection instead: - print message > "$tmp/finalize.err" - } - - function undefined (file, line, macro) - { - errprint(file ":" line ": error: possibly undefined macro: " macro) - } - - # Body. - { - sub (/[ \t]*$/, "") - if (\$0 == "") - { - if (!duplicate) - { - oline++ - print - } - duplicate = 1 - next - } - duplicate = 0 - oline++ - if (\$0 ~ /__oline__/) - while (sub (/__oline__/, oline)) - continue - while (sub (/@<:@/, "[")) - continue - while (sub (/@:>@/, "]")) - continue - while (sub (/@S\|@/, "$")) - continue - while (sub (/@%:@/, "#")) - continue - - print - - # Dubious feature: we tolerate macro names when commented. - sub (/#.*/, "") - - # Get the tokens. - split (\$0, tokens, /[^$WORDCHAR]*/) - - for (token in tokens) - if (match (tokens[token], forbidden) && - !match (tokens[token], allowed)) - { - macros [tokens [token]] = oline - some_macros_were_not_expanded = 1 - } - } - - # If there are some macros which are left unexpanded in the output, - # try to find the input which is responsible. Otherwise, try to help. - END { - if (some_macros_were_not_expanded) - { - line = 0 - while (getline < "$infile") - { - line++ - for (macro in macros) - if (index (\$0, macro)) - { - delete macros [macro] - undefined("$infile", line, macro) - } - } - close ("$infile") - for (macro in macros) - undefined("$outfile", macros [macro], macro) - exit 1 - } - } -EOF - $AWK -v tmp="$tmp" \ - `$verbose "-v verbose=1"` \ - -f "$tmp/finalize.awk" <$tmp/configure >&4 || - { test -f "$tmp/finalize.err" && cat "$tmp/finalize.err" >&2 - (exit 1); exit 1; } - test -f "$tmp/finalize.err" && cat "$tmp/finalize.err" >&2 - ;; # End of the task script. - - - - ## -------------- ## - ## Trace macros. ## - ## -------------- ## - trace) - - # trace.m4 - # -------- - # Routines to process formatted m4 traces. - sed 's/^ //' >$tmp/trace.m4 <<\EOF - divert(-1) - changequote([, ]) - # _at_MODE(SEPARATOR, ELT1, ELT2...) - # ---------------------------------- - # List the elements, separating then with SEPARATOR. - # MODE can be: - # `at' -- the elements are enclosed in brackets. - # `star' -- the elements are listed as are. - # `percent' -- the elements are `flattened': spaces are singled out, - # and no new line remains. - define([_at_at], - [at_ifelse([$#], [1], [], - [$#], [2], [[[$2]]], - [[[$2]][$1]$0([$1], at_shift(at_shift($@)))])]) - define([_at_percent], - [at_ifelse([$#], [1], [], - [$#], [2], [at_flatten([$2])], - [at_flatten([$2])[$1]$0([$1], at_shift(at_shift($@)))])]) - define([_at_star], - [at_ifelse([$#], [1], [], - [$#], [2], [[$2]], - [[$2][$1]$0([$1], at_shift(at_shift($@)))])]) - - # FLATTEN quotes its result. - define([at_flatten], - [at_patsubst(at_patsubst(at_patsubst([[[$1]]], - [\\ - ]), - [[ - ]+], - [ ]), - [^ *\(.*\) *$], [[\1]])]) - - define([at_args], [at_shift(at_shift(at_shift(at_shift(at_shift($@)))))]) - define([at_at], [_$0([$1], at_args($@))]) - define([at_percent], [_$0([$1], at_args($@))]) - define([at_star], [_$0([$1], at_args($@))]) - -EOF - - # If you trace `define', then on `define([m4_exit], defn([m4exit])' you - # will produce - # - # AT_define([m4sugar.m4], [115], [1], [define], [m4_exit], ) - # - # Since `' is not quoted, the outter m4, when processing - # `trace.m4' will exit prematurely. Hence, move all the builtins to - # the `at_' name space. - echo '# Copy the builtins.' >>$tmp/trace.m4 - echo "dumpdef" | - $M4 2>&1 >/dev/null | - sed 's/^\([^:]*\):.*/define([at_\1], defn([\1]))/' >>$tmp/trace.m4 - echo >>$tmp/trace.m4 - - echo '# Disable the builtins.' >>$tmp/trace.m4 - echo "dumpdef" | - $M4 2>&1 >/dev/null | - sed 's/^\([^:]*\):.*/at_undefine([\1])/' >>$tmp/trace.m4 - echo >>$tmp/trace.m4 - - - # trace2m4.sed - # ------------ - # Transform the traces from m4 into an m4 input file. - # Typically, transform: - # - # | m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE]) - # - # into - # - # | AT_AC_SUBST([configure.ac], [3], [1], [AC_SUBST], [exec_prefix], [NONE]) - # - # Pay attention that the file name might include colons, if under DOS - # for instance, so we don't use `[^:][^:]*'. - # The first s/// catches multiline traces, the second, traces as above. - preamble='m4trace:\(..*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)-' - cat >$tmp/trace2m4.sed <$tmp/translate.awk <<\EOF - function trans (arg, sep) - { - # File name. - if (arg == "f") - return "$1" - # Line number. - if (arg == "l") - return "$2" - # Depth. - if (arg == "d") - return "$3" - # Name (also available as $0). - if (arg == "n") - return "$4" - # Escaped dollar. - if (arg == "$") - return "$" - - # $@, list of quoted effective arguments. - if (arg == "@") - return "]at_at([" (separator ? separator : ",") "], $@)[" - # $*, list of unquoted effective arguments. - if (arg == "*") - return "]at_star([" (separator ? separator : ",") "], $@)[" - # $%, list of flattened unquoted effective arguments. - if (arg == "%") - return "]at_percent([" (separator ? separator : ":") "], $@)[" - } - - function error (message) - { - print message | "cat >&2" - exit 1 - } - - { - # Accumulate the whole input. - request = request $0 "\n" - } - - END { - # Chomp. - request = substr (request, 1, length (request) - 1) - # The default request is `$f:$l:$n:$*'. - colon = index (request, ":") - macro = colon ? substr (request, 1, colon - 1) : request - request = colon ? substr (request, colon + 1) : "$f:$l:$n:$%" - - res = "" - - for (cp = request; cp; cp = substr (cp, 2)) - { - char = substr (cp, 1, 1) - if (char == "$") - { - if (match (cp, /^\$[0-9]+/)) - { - # $n -> $(n + 4) - res = res "$" (substr (cp, 2, RLENGTH - 1) + 4) - cp = substr (cp, RLENGTH) - } - else if (substr (cp, 2, 1) ~ /[fldn$@%*]/) - { - # $x, no separator given. - res = res trans(substr (cp, 2, 1)) - cp = substr (cp, 2) - } - else if (substr (cp, 2, 1) == "{") - { - # ${sep}x, long separator. - end = index (cp, "}") - if (!end) - error("invalid escape: " cp) - separator = substr (cp, 3, end - 3) - if (substr (cp, end + 1, 1) ~ /[*@%]/) - res = res trans(substr (cp, end + 1, 1), separator) - else - error("invalid escape: " cp) - cp = substr (cp, end + 1) - } - else if (substr (cp, 3, 1) ~ /[*@%]/) - { - # $sx, short separator `s'. - res = res trans(substr (cp, 3, 1), substr (cp, 2, 1)) - cp = substr(cp, 3) - } - else - { - error("invalid escape: " substr (cp, 1, 2)) - } - } - else - res = res char - } - - # Produce the definition of AT_ = the translation of the request. - print "at_define([AT_" macro "]," - print "[[" res "]])" - print "" - close("cat >&2") - } -EOF - - - # Extract both the m4 program and the m4 options from TRACES. - echo "## ------------------------- ##" >>$tmp/trace.m4 - echo "## Trace processing macros. ##" >>$tmp/trace.m4 - echo "## ------------------------- ##" >>$tmp/trace.m4 - echo >>$tmp/trace.m4 - - eval set dummy "$traces" - shift - for trace - do - echo "# $trace" >>$tmp/trace.m4 - - # The request may be several lines long, hence sed has to quit. - macro_name=`echo "$trace" | sed 's/:.*//;q'` - # If for instance TRACE is `define', be sure to have an empty - # TRACE_FORMAT. - case $trace in - $macro_name:* ) - trace_format=`echo "$trace" | sed "1s/^$macro_name:/:/"`;; - * ) - trace_format=;; - esac - - # GNU M4 1.4's tracing of builtins is buggy. When run on this input: - # - # | divert(-1) - # | changequote([, ]) - # | define([m4_eval], defn([eval])) - # | eval(1) - # | m4_eval(2) - # | undefine([eval]) - # | m4_eval(3) - # - # it behaves this way: - # - # | % m4 input.m4 -da -t eval - # | m4trace: -1- eval(1) - # | m4trace: -1- m4_eval(2) - # | m4trace: -1- m4_eval(3) - # | % - # - # Conversely: - # - # | % m4 input.m4 -da -t m4_eval - # | % - # - # So we will merge them, i.e. tracing `BUILTIN' or tracing - # `m4_BUILTIN' will be the same: tracing both, but honoring the - # *last* trace specification. - # FIXME: This is not enough: in the output `$0' will be `BUILTIN' - # sometimes and `m4_BUILTIN' at others. We should render a unique name, - # the one specified by the user. - base_name=`echo "$macro_name" | sed 's/^m4_//'` - if echo "ifdef(\`$base_name', \`', \`m4exit(-1)')" | $M4; then - # BASE_NAME is a builtin. - trace_opt="$trace_opt -t $base_name -t m4_$base_name" - echo "$base_name$trace_format" | - $AWK -f $tmp/translate.awk >>$tmp/trace.m4 || - { (exit 1); exit 1; } - echo "m4_$base_name$trace_format" | - $AWK -f $tmp/translate.awk >>$tmp/trace.m4 || - { (exit 1); exit 1; } - else - # MACRO_NAME is not a builtin. - trace_opt="$trace_opt -t $macro_name" - echo "$trace" | - $AWK -f $tmp/translate.awk >>$tmp/trace.m4 || - { (exit 1); exit 1; } - fi - echo >>$tmp/trace.m4 - done - - echo "## ------------------- ##" >>$tmp/trace.m4 - echo "## Traces to process. ##" >>$tmp/trace.m4 - echo "## ------------------- ##" >>$tmp/trace.m4 - echo >>$tmp/trace.m4 - echo "at_divert(0)at_dnl" >>$tmp/trace.m4 - - # Do we trace the initialization? - # `errprint' must be silent, otherwise there can be warnings mixed - # with traces in m4's stderr. - run_m4_trace="$run_m4 $trace_opt -daflq -Derrprint" - if $initialization; then - trace_prefiles="$m4_prefiles" - else - trace_prefiles="$m4f_prefiles" - fi - - # Run m4 on the input file to get traces. - # - # We used to have a simple pipe, which was very convenient as it - # allows to use traces on never ending expansions (i.e., when - # debugging :) but it is requires to keep error messages *and* - # traces in stderr. This is too fragile, as it results in - # unexpected data in the output. autoheader has been fragile to - # this. - $verbose "$me: running $run_m4_trace $trace_prefiles $infile -o $tmp/traces" >&2 - $run_m4_trace $trace_prefiles $infile -o $tmp/traces >/dev/null || - { - echo "$me: tracing failed" >&2 - (exit 1); exit 1 - } - - $verbose "$me: running $M4 $tmp/trace.m4" >&2 - sed -f $tmp/trace2m4.sed $tmp/traces | - # Now we are ready to run m4 to process the trace file. - if $debug; then - cat >>$tmp/trace.m4 - $M4 $tmp/trace.m4 - else - $M4 $tmp/trace.m4 - - fi | - # It makes no sense to try to transform __oline__. - sed ' - s/@<:@/[/g - s/@:>@/]/g - s/@S|@/$/g - s/@%:@/#/g - ' >&4 || - { - echo "$me: traces formatting failed" >&2 - (exit 1); exit 1 - } - ;; - - - ## ------------ ## - ## Unknown task ## - ## ------------ ## - - *) echo "$me: internal error: unknown task: $task" >&2 - (exit 1); exit 1 -esac - -(exit $status); exit $status diff --git a/autoconf/autoconf.m4 b/autoconf/autoconf.m4 deleted file mode 100644 index 19ca824..0000000 --- a/autoconf/autoconf.m4 +++ /dev/null @@ -1,27 +0,0 @@ -dnl Driver that loads the Autoconf macro files. -dnl Requires GNU m4. -dnl This file is part of Autoconf. -dnl Copyright (C) 1994 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl Written by David MacKenzie. -dnl -include(acgeneral.m4)dnl -builtin(include, acspecific.m4)dnl -dnl Do not sinclude acsite.m4 here, because it may not be installed -dnl yet when Autoconf is frozen. -dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen. diff --git a/autoconf/autoconf.m4f b/autoconf/autoconf.m4f deleted file mode 100644 index b0d1c63..0000000 --- a/autoconf/autoconf.m4f +++ /dev/null @@ -1,8823 +0,0 @@ -# This is a frozen state file generated by GNU m4 1.4 -V1 -Q1,1 -[] -T30,253 -_AC_INIT_PREPARE_FS_SEPARATORSecho "#! $SHELL" >conftest.sh -echo "exit 0" >>conftest.sh -chmod +x conftest.sh -if AC_RUN_LOG([PATH=".;."; conftest.sh]); then - ac_path_separator=';' -else - ac_path_separator=: -fi -AC_SUBST([PATH_SEPARATOR], "$ac_path_separator")dnl -rm -f conftest.sh - -T11,205 -AC_UNISTD_H_m4_defun_pro([AC_UNISTD_H])AC_DIAGNOSE([obsolete], [The macro `AC_UNISTD_H' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_HEADERS(unistd.h)[]AC_PROVIDE([AC_UNISTD_H])[]_m4_defun_epi([AC_UNISTD_H]) -T29,14 -m4_location(AC_CHECK_MEMBERS)actypes.m4:452 -T10,156 -AC_RUN_LOG_m4_defun_pro([AC_RUN_LOG])_AC_RUN_LOG([$1], - [echo "$as_me:__oline__: AS_ESCAPE([$1])"])[]AC_PROVIDE([AC_RUN_LOG])[]_m4_defun_epi([AC_RUN_LOG]) -T13,0 -AC_LIST_FILES -T17,616 -_AC_INIT_DEFAULTSm4_divert_push([DEFAULTS])dnl - -AS_SHELL_SANITIZE - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec AS_MESSAGE_FD>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -cross_compiling=no -subdirs= -MFLAGS= MAKEFLAGS= -AC_SUBST(SHELL, ${CONFIG_SHELL-/bin/sh})dnl - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -m4_divert_pop([DEFAULTS])dnl - -T10,113 -AS_DIRNAME_m4_defun_pro([AS_DIRNAME])AS_DIRNAME_EXPR([$1]) 2>/dev/null || -AS_DIRNAME_SED([$1])[]_m4_defun_epi([AS_DIRNAME]) -T28,18 -m4_location(AM_FUNC_FNMATCH)acfunctions.m4:362 -T23,13 -m4_location(AC_PROG_CC)aclang.m4:976 -F9,6 -m4_formatformat -T10,194 -AC_STRCOLL_m4_defun_pro([AC_STRCOLL])AC_DIAGNOSE([obsolete], [The macro `AC_STRCOLL' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_STRCOLL($@)[]AC_PROVIDE([AC_STRCOLL])[]_m4_defun_epi([AC_STRCOLL]) -T9,188 -AC_FD_MSG_m4_defun_pro([AC_FD_MSG])AC_DIAGNOSE([obsolete], [The macro `AC_FD_MSG' is obsolete. -You should run autoupdate.])dnl -AS_MESSAGE_FD($@)[]AC_PROVIDE([AC_FD_MSG])[]_m4_defun_epi([AC_FD_MSG]) -F14,11 -m4_changequotechangequote -T15,214 -AM_FUNC_FNMATCH_m4_defun_pro([AM_FUNC_FNMATCH])AC_DIAGNOSE([obsolete], [The macro `AM_FUNC_FNMATCH' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_FNMATCH($@)[]AC_PROVIDE([AM_FUNC_FNMATCH])[]_m4_defun_epi([AM_FUNC_FNMATCH]) -T28,16 -m4_location(AM_PROG_INSTALL)acoldnames.m4:86 -T17,222 -AC_LANG_FORTRAN77_m4_defun_pro([AC_LANG_FORTRAN77])AC_DIAGNOSE([obsolete], [The macro `AC_LANG_FORTRAN77' is obsolete. -You should run autoupdate.])dnl -AC_LANG(Fortran 77)[]AC_PROVIDE([AC_LANG_FORTRAN77])[]_m4_defun_epi([AC_LANG_FORTRAN77]) -T26,17 -m4_location(AC_PATH_PROGS)acgeneral.m4:2401 -T28,19 -m4_location(AC_FUNC_VPRINTF)acfunctions.m4:1598 -T29,11 -m4_location(_AS_TEST_PREPARE)m4sh.m4:421 -T26,18 -m4_location(AC_GETLOADAVG)acfunctions.m4:570 -F8,8 -translittranslit -T24,16 -m4_location(AC_SET_MAKE)acoldnames.m4:66 -T16,0 -AC_LIST_COMMANDS -T10,121 -m4_re_word[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789]* -T26,17 -m4_location(AC_CHECK_FILE)acgeneral.m4:2877 -T7,178 -AC_WARN_m4_defun_pro([AC_WARN])AC_DIAGNOSE([obsolete], [The macro `AC_WARN' is obsolete. -You should run autoupdate.])dnl -AC_MSG_WARN($@)[]AC_PROVIDE([AC_WARN])[]_m4_defun_epi([AC_WARN]) -T40,17 -m4_location(AC_SYS_RESTARTABLE_SYSCALLS)acspecific.m4:554 -T16,154 -_AS_QUOTE_IFELSEm4_if(m4_regexp([$1], [\\[\\$]]), - [-1], [m4_if(m4_regexp([$1], [\\[`""]]), - [-1], [$2], - [$3])], - [$2]) -T17,45 -_AS_ECHO_UNQUOTEDecho "$1" >&m4_default([$2], [AS_MESSAGE_FD]) -T24,7008 -_AC_OUTPUT_CONFIG_STATUSAC_MSG_NOTICE([creating $CONFIG_STATUS]) -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -SHELL=\${CONFIG_SHELL-$SHELL} -ac_cs_invocation="\$[0] \$[@]" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -AS_SHELL_SANITIZE -exec AS_MESSAGE_FD>&1 - -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\EOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $[0] [[OPTIONS]] [[FILE]]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions -m4_ifset([AC_LIST_FILES], -[[ --file=FILE[:TEMPLATE] - instantiate the configuration file FILE -]])dnl -m4_ifset([AC_LIST_HEADERS], -[[ --header=FILE[:TEMPLATE] - instantiate the configuration header FILE -]])dnl - -m4_ifset([AC_LIST_FILES], -[Configuration files: -$config_files - -])dnl -m4_ifset([AC_LIST_HEADERS], -[Configuration headers: -$config_headers - -])dnl -m4_ifset([AC_LIST_LINKS], -[Configuration links: -$config_links - -])dnl -m4_ifset([AC_LIST_COMMANDS], -[Configuration commands: -$config_commands - -])dnl -Report bugs to ." -EOF - -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $[#] != 0 -do - case $[1] in - --*=*) - ac_option=`expr "x$[1]" : 'x\([[^=]]*\)='` - ac_optarg=`expr "x$[1]" : 'x[[^=]]*=\(.*\)'` - shift - set dummy "$ac_option" "$ac_optarg" ${1+"$[@]"} - shift - ;; - -*);; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_need_defaults=false;; - esac - - case $[1] in - # Handling of the options. -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - AC_MSG_ERROR([ambiguous option: $[1] -Try `$[0] --help' for more information.]);; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - shift - CONFIG_FILES="$CONFIG_FILES $[1]" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - shift - CONFIG_HEADERS="$CONFIG_HEADERS $[1]" - ac_need_defaults=false;; - - # This is an error. - -*) AC_MSG_ERROR([unrecognized option: $[1] -Try `$[0] --help' for more information.]) ;; - - *) ac_config_targets="$ac_config_targets $[1]" ;; - - esac - shift -done - -exec AS_MESSAGE_LOG_FD>>config.log -cat >&AS_MESSAGE_LOG_FD << _ACEOF - -## ----------------------- ## -## Running config.status. ## -## ----------------------- ## - -This file was extended by $as_me m4_ifset([AC_PACKAGE_STRING], - [(AC_PACKAGE_STRING) ])AC_ACVERSION, executed with - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - > $ac_cs_invocation -on `(hostname || uname -n) 2>/dev/null | sed 1q` - -_ACEOF -EOF - -dnl We output the INIT-CMDS first for obvious reasons :) -m4_ifset([_AC_OUTPUT_COMMANDS_INIT], -[cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. -AC_FOREACH([AC_File], AC_LIST_FILES, -[ "m4_patsubst(AC_File, [:.*])" )dnl - CONFIG_FILES="$CONFIG_FILES AC_File" ;; -])dnl -AC_FOREACH([AC_File], AC_LIST_LINKS, -[ "m4_patsubst(AC_File, [:.*])" )dnl - CONFIG_LINKS="$CONFIG_LINKS AC_File" ;; -])dnl -AC_FOREACH([AC_File], AC_LIST_COMMANDS, -[ "m4_patsubst(AC_File, [:.*])" )dnl - CONFIG_COMMANDS="$CONFIG_COMMANDS AC_File" ;; -])dnl -AC_FOREACH([AC_File], AC_LIST_HEADERS, -[ "m4_patsubst(AC_File, [:.*])" )dnl - CONFIG_HEADERS="$CONFIG_HEADERS AC_File" ;; -])dnl - *) AC_MSG_ERROR([invalid argument: $ac_config_target]);; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then -m4_ifset([AC_LIST_FILES], -[ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -])dnl -m4_ifset([AC_LIST_HEADERS], -[ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers -])dnl -m4_ifset([AC_LIST_LINKS], -[ test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links -])dnl -m4_ifset([AC_LIST_COMMANDS], -[ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -])dnl -fi - -AS_TMPDIR(cs) - -EOF -])[]dnl m4_ifval - -dnl The following four sections are in charge of their own here -dnl documenting into $CONFIG_STATUS. -m4_ifset([AC_LIST_FILES], [_AC_OUTPUT_FILES()])dnl -m4_ifset([AC_LIST_HEADERS], [_AC_OUTPUT_HEADERS()])dnl -m4_ifset([AC_LIST_LINKS], [_AC_OUTPUT_LINKS()])dnl -m4_ifset([AC_LIST_COMMANDS], [_AC_OUTPUT_COMMANDS()])dnl - -cat >>$CONFIG_STATUS <<\EOF - -AS_EXIT(0) -EOF -chmod +x $CONFIG_STATUS - -T14,856 -AC_HEADER_STAT_m4_defun_pro([AC_HEADER_STAT])AC_CACHE_CHECK(whether stat file-mode macros are broken, - ac_cv_header_stat_broken, -[AC_EGREP_CPP([You lose], [#include -#include - -#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 -], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)]) -if test $ac_cv_header_stat_broken = yes; then - AC_DEFINE(STAT_MACROS_BROKEN, 1, - [Define if the `S_IS*' macros in do not - work properly.]) -fi -[]AC_PROVIDE([AC_HEADER_STAT])[]_m4_defun_epi([AC_HEADER_STAT]) -T24,16 -m4_location(AC_MEMORY_H)acheaders.m4:432 -T16,570 -_AS_LN_S_PREPARE_m4_defun_pro([_AS_LN_S_PREPARE])rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file -[]_m4_defun_epi([_AS_LN_S_PREPARE]) -T22,2462 -AC_F77_LIBRARY_LDFLAGS_m4_defun_pro([AC_F77_LIBRARY_LDFLAGS])AC_LANG_PUSH(Fortran 77)dnl -_AC_PROG_F77_V -AC_CACHE_CHECK([for Fortran 77 libraries], ac_cv_flibs, -[if test "x$FLIBS" != "x"; then - ac_cv_flibs="$FLIBS" # Let the user override the test. -else - -_AC_PROG_F77_V_OUTPUT - -ac_cv_flibs= - -# Save positional arguments (if any) -ac_save_positional="$[@]" - -set X $ac_f77_v_output -while test $[@%:@] != 1; do - shift - ac_arg=$[1] - case $ac_arg in - [[\\/]]*.a | ?:[[\\/]]*.a) - AC_LIST_MEMBER_OF($ac_arg, $ac_cv_flibs, , - ac_cv_flibs="$ac_cv_flibs $ac_arg") - ;; - -bI:*) - AC_LIST_MEMBER_OF($ac_arg, $ac_cv_flibs, , - [AC_LINKER_OPTION([$ac_arg], ac_cv_flibs)]) - ;; - # Ignore these flags. - -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) - ;; - -lkernel32) - test x"$CYGWIN" != xyes && ac_cv_flibs="$ac_cv_flibs $ac_arg" - ;; - -[[LRuY]]) - # These flags, when seen by themselves, take an argument. - # We remove the space between option and argument and re-iterate - # unless we find an empty arg or a new option (starting with -) - case $[2] in - "" | -*);; - *) - ac_arg="$ac_arg$[2]" - shift; shift - set X $ac_arg "$[@]" - ;; - esac - ;; - -YP,*) - for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do - AC_LIST_MEMBER_OF($ac_j, $ac_cv_flibs, , - [ac_arg="$ac_arg $ac_j" - ac_cv_flibs="$ac_cv_flibs $ac_j"]) - done - ;; - -[[lLR]]*) - AC_LIST_MEMBER_OF($ac_arg, $ac_cv_flibs, , - ac_cv_flibs="$ac_cv_flibs $ac_arg") - ;; - # Ignore everything else. - esac -done -# restore positional arguments -set X $ac_save_positional; shift - -# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, -# then we insist that the "run path" must be an absolute path (i.e. it -# must begin with a "/"). -case `(uname -sr) 2>/dev/null` in - "SunOS 5"*) - ac_ld_run_path=`echo $ac_f77_v_output | - sed -n 's,^.*LD_RUN_PATH *= *\(/[[^ ]]*\).*$,-R\1,p'` - test "x$ac_ld_run_path" != x && - AC_LINKER_OPTION([$ac_ld_run_path], ac_cv_flibs) - ;; -esac -fi # test "x$FLIBS" = "x" -]) -FLIBS="$ac_cv_flibs" -AC_SUBST(FLIBS) -AC_LANG_POP(Fortran 77)dnl -[]AC_PROVIDE([AC_F77_LIBRARY_LDFLAGS])[]_m4_defun_epi([AC_F77_LIBRARY_LDFLAGS]) -T29,16 -m4_location(AC_HEADER_DIRENT)acheaders.m4:165 -T33,17 -m4_location(AC_CHECK_TOOL_PREFIX)acgeneral.m4:2413 -T27,17 -m4_location(AC_ARG_PROGRAM)acgeneral.m4:1625 -T15,921 -_AC_INIT_SRCDIRm4_divert_push([PARSE_ARGS])dnl - -# 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] -dnl FIXME: should use AS_DIRNAME here once it is made DOS-friendly. - 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 - AC_MSG_ERROR([cannot find sources in $ac_confdir or ..]) - else - AC_MSG_ERROR([cannot find sources in $srcdir]) - fi -fi -dnl Double slashes in pathnames in object file debugging info -dnl mess up M-x gdb in Emacs. -srcdir=`echo "$srcdir" | sed 's%\([[^\\/]]\)[[\\/]]*$%\1%'` -m4_divert_pop([PARSE_ARGS])dnl - -T10,54 -m4_includem4_include_unique([$1])dnl -m4_builtin([include], [$1]) -T22,16 -m4_location(AC_INLINE)acoldnames.m4:55 -T37,1432 -AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK_m4_defun_pro([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])AC_CACHE_CHECK( - [whether lstat dereferences a symlink specified with a trailing slash], - [ac_cv_func_lstat_dereferences_slashed_symlink], -[rm -f conftest.sym conftest.file -echo >conftest.file -if ln -s conftest.file conftest.sym; then - AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], - [struct stat sbuf; - /* Linux will dereference the symlink and fail. - That is better in the sense that it means we will not - have to compile and use the lstat wrapper. */ - exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);])], - [ac_cv_func_lstat_dereferences_slashed_symlink=yes], - [ac_cv_func_lstat_dereferences_slashed_symlink=no], - [ac_cv_func_lstat_dereferences_slashed_symlink=no]) -else - # If the `ln -s' command failed, then we probably don't even - # have an lstat function. - ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f conftest.sym conftest.file -]) - -test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && - AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1, - [Define if `lstat' dereferences a symlink specified - with a trailing slash.]) - -if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then - AC_LIBOBJ(lstat) -fi -[]AC_PROVIDE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])[]_m4_defun_epi([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) -T18,385 -_AC_CHECK_TYPE_NEWAS_VAR_PUSHDEF([ac_Type], [ac_cv_type_$1])dnl -AC_CACHE_CHECK([for $1], ac_Type, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])], -[if (($1 *) 0) - return 0; -if (sizeof ($1)) - return 0;])], - [AS_VAR_SET(ac_Type, yes)], - [AS_VAR_SET(ac_Type, no)])]) -AS_IF([test AS_VAR_GET(ac_Type) = yes], [$2], [$3])[]dnl -AS_VAR_POPDEF([ac_Type])dnl - -T17,154 -AC_PREPROC_IFELSE_m4_defun_pro([AC_PREPROC_IFELSE])AC_LANG_PREPROC_REQUIRE()dnl -_AC_PREPROC_IFELSE($@)[]AC_PROVIDE([AC_PREPROC_IFELSE])[]_m4_defun_epi([AC_PREPROC_IFELSE]) -T14,1491 -AC_HEADER_STDC_m4_defun_pro([AC_HEADER_STDC])AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc, -[AC_TRY_CPP([#include -#include -#include -#include -], ac_cv_header_stdc=yes, ac_cv_header_stdc=no) - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - AC_EGREP_HEADER(memchr, string.h, , ac_cv_header_stdc=no) -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - AC_EGREP_HEADER(free, stdlib.h, , ac_cv_header_stdc=no) -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - AC_TRY_RUN( -[#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#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); -}], , ac_cv_header_stdc=no, :) -fi]) -if test $ac_cv_header_stdc = yes; then - AC_DEFINE(STDC_HEADERS, 1, [Define if you have the ANSI C header files.]) -fi -[]AC_PROVIDE([AC_HEADER_STDC])[]_m4_defun_epi([AC_HEADER_STDC]) -T8,188 -AC_FD_CC_m4_defun_pro([AC_FD_CC])AC_DIAGNOSE([obsolete], [The macro `AC_FD_CC' is obsolete. -You should run autoupdate.])dnl -AS_MESSAGE_LOG_FD($@)[]AC_PROVIDE([AC_FD_CC])[]_m4_defun_epi([AC_FD_CC]) -T12,10 -m4_cr_digits0123456789 -T8,183 -AC_VFORK_m4_defun_pro([AC_VFORK])AC_DIAGNOSE([obsolete], [The macro `AC_VFORK' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_FORK($@)[]AC_PROVIDE([AC_VFORK])[]_m4_defun_epi([AC_VFORK]) -T33,16 -m4_location(AC_HEADER_TIOCGWINSZ)acheaders.m4:385 -T14,211 -ac_cv_prog_gcc_m4_defun_pro([ac_cv_prog_gcc])AC_DIAGNOSE([obsolete], [The macro `ac_cv_prog_gcc' is obsolete. -You should run autoupdate.])dnl -ac_cv_c_compiler_gnu[]AC_PROVIDE([ac_cv_prog_gcc])[]_m4_defun_epi([ac_cv_prog_gcc]) -T15,152 -AC_LANG_PROGRAM_m4_defun_pro([AC_LANG_PROGRAM])AC_LANG_SOURCE([_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])[]AC_PROVIDE([AC_LANG_PROGRAM])[]_m4_defun_epi([AC_LANG_PROGRAM]) -T28,17 -m4_location(AC_CONFIG_LINKS)acgeneral.m4:3328 -F5,5 -ifdefifdef -T7,207 -AC_WITH_m4_defun_pro([AC_WITH])AC_DIAGNOSE([obsolete], [The macro `AC_WITH' is obsolete. -You should run autoupdate.])dnl -AC_ARG_WITH([$1], [ --with-$1], [$2], [$3])[]AC_PROVIDE([AC_WITH])[]_m4_defun_epi([AC_WITH]) -T7,74 -m4_signm4_match([$1], - [^-], -1, - [^0+], 0, - 1) -T24,13 -m4_location(AC_LANG_POP)aclang.m4:157 -T24,13 -m4_location(AC_PROG_CPP)aclang.m4:910 -T11,17 -m4_location__file__:__line__ -T19,1036 -AC_CANONICAL_TARGETm4_provide_ifelse([AC_CANONICAL_TARGET], - [m4_warn([syntax], [AC_CANONICAL_TARGET invoked multiple times])], - [_m4_defun_pro([AC_CANONICAL_TARGET])AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_BEFORE([$0], [AC_ARG_PROGRAM])dnl -m4_divert_text([HELP_CANON], -[[ --target=TARGET configure for building compilers for TARGET [HOST]]])dnl -AC_CACHE_CHECK([target system type], [ac_cv_target], -[dnl Set target_alias. -ac_cv_target_alias=$target_alias -test "x$ac_cv_target_alias" = "x" && - ac_cv_target_alias=$ac_cv_host_alias -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || - AC_MSG_ERROR([$ac_config_sub $ac_cv_target_alias failed]) -]) -_AC_CANONICAL_SPLIT([target]) - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -test -n "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}-[]dnl -[]AC_PROVIDE([AC_CANONICAL_TARGET])[]_m4_defun_epi([AC_CANONICAL_TARGET])]) -T16,216 -AC_PROGRAMS_PATH_m4_defun_pro([AC_PROGRAMS_PATH])AC_DIAGNOSE([obsolete], [The macro `AC_PROGRAMS_PATH' is obsolete. -You should run autoupdate.])dnl -AC_PATH_PROGS($@)[]AC_PROVIDE([AC_PROGRAMS_PATH])[]_m4_defun_epi([AC_PROGRAMS_PATH]) -T23,2 -_m4_divert(HELP_ENABLE)12 -T23,135 -_AC_CONFIG_DEPENDENCIESm4_divert_push([KILL]) -AC_FOREACH([AC_File], [$1], - [_AC_CONFIG_DEPENDENCY(m4_patsubst(AC_File, [:], [,]))]) -m4_divert_pop([KILL])dnl - -T7,30 -AS_WARNAS_MESSAGE([WARNING: $1], [2]) -T29,16 -m4_location(AC_CONFIG_SRCDIR)acgeneral.m4:625 -T10,113 -AS_VAR_GETAS_LITERAL_IF([$1], - [$[]$1], - [`eval echo '${'m4_patsubst($1, [[\\`]], [\\\&])'}'`]) -T21,11 -m4_location(AS_TR_SH)m4sh.m4:580 -T22,17 -m4_location(AC_PATH_X)acspecific.m4:760 -T27,16 -m4_location(AC_HEADER_STAT)acheaders.m4:232 -T11,194 -AM_CYGWIN32_m4_defun_pro([AM_CYGWIN32])AC_DIAGNOSE([obsolete], [The macro `AM_CYGWIN32' is obsolete. -You should run autoupdate.])dnl -AC_CYGWIN32($@)[]AC_PROVIDE([AM_CYGWIN32])[]_m4_defun_epi([AM_CYGWIN32]) -T27,13 -m4_location(AC_LANG_ASSERT)aclang.m4:189 -T36,16 -m4_location(AC_RESTARTABLE_SYSCALLS)acoldnames.m4:64 -T21,140 -AC_LANG_COMPILER(C++)_m4_defun_pro([AC_LANG_COMPILER(C++)])AC_REQUIRE([AC_PROG_CXX])[]AC_PROVIDE([AC_LANG_COMPILER(C++)])[]_m4_defun_epi([AC_LANG_COMPILER(C++)]) -T19,149 -AC_CONFIG_IF_MEMBERm4_if(m4_regexp($2, [\(^\| \)]m4_patsubst([$1], - [\([+*.]\)], [\\\1])[\(:\| \|$\)]), - -1, [$4], [$3]) -T37,19 -m4_location(AC_FUNC_SETVBUF_REVERSED)acfunctions.m4:1349 -T11,1005 -AC_PROG_CXX_m4_defun_pro([AC_PROG_CXX])AC_LANG_PUSH(C++)dnl -AC_ARG_VAR([CXX], [C++ compiler command])dnl -AC_ARG_VAR([CXXFLAGS], [C++ compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -_AC_ARG_VAR_CPPFLAGS()dnl -AC_CHECK_TOOLS(CXX, - [$CCC m4_default([$1], - [g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC])], - g++) - -# Provide some information about the compiler. -echo "$as_me:__oline__:" \ - "checking for _AC_LANG compiler version" >&AS_MESSAGE_LOG_FD -ac_compiler=`set X $ac_compile; echo $[2]` -_AC_EVAL([$ac_compiler --version &AS_MESSAGE_LOG_FD]) -_AC_EVAL([$ac_compiler -v &AS_MESSAGE_LOG_FD]) -_AC_EVAL([$ac_compiler -V &AS_MESSAGE_LOG_FD]) - -m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl -m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl -_AC_LANG_COMPILER_GNU -GXX=`test $ac_compiler_gnu = yes && echo yes` -_AC_PROG_CXX_G -_AC_PROG_CXX_EXIT_DECLARATION -AC_LANG_POP(C++)dnl -[]AC_PROVIDE([AC_PROG_CXX])[]_m4_defun_epi([AC_PROG_CXX]) -T28,17 -m4_location(AC_CONFIG_FILES)acgeneral.m4:3399 -T14,209 -AM_FUNC_STRTOD_m4_defun_pro([AM_FUNC_STRTOD])AC_DIAGNOSE([obsolete], [The macro `AM_FUNC_STRTOD' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_STRTOD($@)[]AC_PROVIDE([AM_FUNC_STRTOD])[]_m4_defun_epi([AM_FUNC_STRTOD]) -T12,371 -AC_LANG_SAVE_m4_defun_pro([AC_LANG_SAVE])AC_DIAGNOSE([obsolete], [The macro `AC_LANG_SAVE' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], - [instead of using `AC_LANG', `AC_LANG_SAVE', -and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.]) -m4_pushdef([_AC_LANG], _AC_LANG)[]AC_PROVIDE([AC_LANG_SAVE])[]_m4_defun_epi([AC_LANG_SAVE]) -T24,17 -m4_location(AC_ARG_WITH)acgeneral.m4:1478 -T23,17 -m4_location(AC_ARG_VAR)acgeneral.m4:1589 -T8,55 -sincludem4_include_unique([$1])dnl -m4_builtin([sinclude], [$1]) -T31,17 -m4_location(AC_CANONICAL_BUILD)acgeneral.m4:1738 -T10,51 -m4_flattenm4_translit(m4_patsubst([[[$1]]], [\\ -]), [ -], [ ]) -T17,1556 -AC_TYPE_GETGROUPS_m4_defun_pro([AC_TYPE_GETGROUPS])AC_REQUIRE([AC_TYPE_UID_T])dnl -AC_CACHE_CHECK(type of array argument to getgroups, ac_cv_type_getgroups, -[AC_RUN_IFELSE([AC_LANG_SOURCE( -[[/* Thanks to Mike Rendell for this test. */ -#include -#define NGID 256 -#undef MAX -#define MAX(x, y) ((x) > (y) ? (x) : (y)) - -int -main () -{ - gid_t gidset[NGID]; - int i, n; - union { gid_t gval; long lval; } val; - - val.lval = -1; - for (i = 0; i < NGID; i++) - gidset[i] = val.gval; - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, - gidset); - /* Exit non-zero if getgroups seems to require an array of ints. This - happens when gid_t is short but getgroups modifies an array of ints. */ - exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); -}]])], - [ac_cv_type_getgroups=gid_t], - [ac_cv_type_getgroups=int], - [ac_cv_type_getgroups=cross]) -if test $ac_cv_type_getgroups = cross; then - dnl When we can't run the test program (we are cross compiling), presume - dnl that has either an accurate prototype for getgroups or none. - dnl Old systems without prototypes probably use int. - AC_EGREP_HEADER([getgroups.*int.*gid_t], unistd.h, - ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int) -fi]) -AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups, - [Define to the type of elements in the array set by - `getgroups'. Usually this is either `int' or `gid_t'.]) -[]AC_PROVIDE([AC_TYPE_GETGROUPS])[]_m4_defun_epi([AC_TYPE_GETGROUPS]) -F11,8 -m4_traceofftraceoff -T20,13 -m4_location(AC_LANG)aclang.m4:133 -T24,14 -m4_location(AC_F77_FUNC)aclang.m4:2185 -T24,2 -_m4_divert(VERSION_USER)22 -T20,2 -_m4_divert(HELP_END)16 -T18,1 -_AC_LANG_ABBREV(C)c -T6,342 -m4_form4_case(m4_sign(m4_eval($3 - $2)), - 1, [m4_assert(m4_sign(m4_default($4, 1)) == 1)], - -1, [m4_assert(m4_sign(m4_default($4, -1)) == -1)])dnl -m4_pushdef([$1], [$2])dnl -m4_if(m4_eval([$3 > $2]), 1, - [_m4_for([$1], [$3], m4_default([$4], 1), [$5])], - [_m4_for([$1], [$3], m4_default([$4], -1), [$5])])dnl -m4_popdef([$1]) -F4,4 -decrdecr -T27,91 -_AC_CHECK_TYPE_MAYBE_TYPE_Pm4_if(m4_regexp([$1], [^[_a-zA-Z0-9 ]+\([_a-zA-Z0-9() *]\|\[\|\]\)*$]), - 0, 1, 0)dnl - -T15,96 -AC_MSG_CHECKING_AS_ECHO([$as_me:__oline__: checking $1], AS_MESSAGE_LOG_FD) -_AC_ECHO_N([checking $1... ])[]dnl - -T30,14 -m4_location(AC_F77_DUMMY_MAIN)aclang.m4:1996 -T15,2748 -AC_PROG_INSTALL_m4_defun_pro([AC_PROG_INSTALL])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# 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 -# AmigaOS /C/install, which installs bootblocks on floppy discs -# 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. -AC_MSG_CHECKING([for a BSD compatible install]) -if test -z "$INSTALL"; then -AC_CACHE_VAL(ac_cv_path_install, -[ ac_save_IFS=$IFS; IFS=$ac_path_separator - for ac_dir in $PATH; do - IFS=$ac_save_IFS - # Account for people who put trailing slashes in PATH elements. - case $ac_dir/ in - / | ./ | .// | /[cC]/* \ - | /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 AS_EXECUTABLE_P(["$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. - : - elif test $ac_prog = install && - grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done -])dnl - 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 -dnl We do special magic for INSTALL instead of AC_SUBST, to get -dnl relative paths right. -AC_MSG_RESULT([$INSTALL]) - -# 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}' -AC_SUBST(INSTALL_PROGRAM)dnl - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -AC_SUBST(INSTALL_SCRIPT)dnl - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -AC_SUBST(INSTALL_DATA)dnl -[]AC_PROVIDE([AC_PROG_INSTALL])[]_m4_defun_epi([AC_PROG_INSTALL]) -T29,16 -m4_location(AC_PROGRAM_EGREP)acoldnames.m4:36 -F8,8 -errprinterrprint -T15,215 -AC_HAVE_HEADERS_m4_defun_pro([AC_HAVE_HEADERS])AC_DIAGNOSE([obsolete], [The macro `AC_HAVE_HEADERS' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_HEADERS($@)[]AC_PROVIDE([AC_HAVE_HEADERS])[]_m4_defun_epi([AC_HAVE_HEADERS]) -T22,1561 -AC_SYS_LONG_FILE_NAMES_m4_defun_pro([AC_SYS_LONG_FILE_NAMES])AC_CACHE_CHECK(for long file names, ac_cv_sys_long_file_names, -[ac_cv_sys_long_file_names=yes -# Test for long file names in all the places we know might matter: -# . the current directory, where building will happen -# $prefix/lib where we will be installing things -# $exec_prefix/lib likewise -# eval it to expand exec_prefix. -# $TMPDIR if set, where it might want to write temporary files -# if $TMPDIR is not set: -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise -if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then - ac_tmpdirs=$TMPDIR -else - ac_tmpdirs='/tmp /var/tmp /usr/tmp' -fi -for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do - test -d $ac_dir || continue - test -w $ac_dir || continue # It is less confusing to not echo anything here. - ac_xdir=$ac_dir/cf$$ - (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue - ac_tf1=$ac_xdir/conftest9012345 - ac_tf2=$ac_xdir/conftest9012346 - (echo 1 >$ac_tf1) 2>/dev/null - (echo 2 >$ac_tf2) 2>/dev/null - ac_val=`cat $ac_tf1 2>/dev/null` - if test ! -f $ac_tf1 || test "$ac_val" != 1; then - ac_cv_sys_long_file_names=no - rm -rf $ac_xdir 2>/dev/null - break - fi - rm -rf $ac_xdir 2>/dev/null -done]) -if test $ac_cv_sys_long_file_names = yes; then - AC_DEFINE(HAVE_LONG_FILE_NAMES, 1, - [Define if you support file names longer than 14 characters.]) -fi -[]AC_PROVIDE([AC_SYS_LONG_FILE_NAMES])[]_m4_defun_epi([AC_SYS_LONG_FILE_NAMES]) -T36,14 -m4_location(AC_PROG_GCC_TRADITIONAL)aclang.m4:1029 -T12,855 -AC_PATH_PROG_m4_defun_pro([AC_PATH_PROG])# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=$[2] -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL([ac_cv_path_$1], -[case $$1 in - [[\\/]]* | ?:[[\\/]]*) - ac_cv_path_$1="$$1" # Let the user override the test with a path. - ;; - *) - AC_SHELL_PATH_WALK([$4], -[if AS_EXECUTABLE_P("$ac_dir/$ac_word"); then - ac_cv_path_$1="$ac_dir/$ac_word" - echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD - break -fi]) -dnl If no 3rd arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -m4_ifvaln([$3], -[ test -z "$ac_cv_path_$1" && ac_cv_path_$1="$3"])dnl - ;; -esac])dnl -AC_SUBST([$1], [$ac_cv_path_$1]) -if test -n "$$1"; then - AC_MSG_RESULT([$$1]) -else - AC_MSG_RESULT([no]) -fi -[]AC_PROVIDE([AC_PATH_PROG])[]_m4_defun_epi([AC_PATH_PROG]) -T12,54 -m4_copy_unm4m4_copy([$1], m4_patsubst([$1], [^m4_\(.*\)], [[\1]])) -T21,159 -AC_LANG_INT_SAVE(C++)AC_LANG_PROGRAM([m4_default([$1], [@%:@include ])], -[FILE *f = fopen ("conftest.val", "w"); -if (!f) - exit (1); -fprintf (f, "%d", ($2)); -fclose (f);]) -T27,17 -m4_location(AC_LINK_IFELSE)acgeneral.m4:2773 -T13,62 -_AS_BOX_INDIRsed 'h;s/./m4_default([$2], [=])/g;p;x;p;x' <<_ASBOX -$1 -_ASBOX -T17,112 -_AC_LANG_DISPATCHm4_ifdef([$1($2)], - [m4_indir([$1($2)], m4_shiftn(2, $@))], - [AC_FATAL([$1: unknown language: $2])]) -T28,17 -m4_location(AC_HAVE_LIBRARY)acgeneral.m4:2611 -T9,20 -AU_DEFINEAC_DEFUN([$1], [$2]) -T8,181 -AC_CONST_m4_defun_pro([AC_CONST])AC_DIAGNOSE([obsolete], [The macro `AC_CONST' is obsolete. -You should run autoupdate.])dnl -AC_C_CONST($@)[]AC_PROVIDE([AC_CONST])[]_m4_defun_epi([AC_CONST]) -T8,38 -AC_DEFUNm4_defun([$1], [$2[]AC_PROVIDE([$1])]) -T30,14 -m4_location(AC_STRUCT_ST_RDEV)actypes.m4:512 -T15,213 -AC_STDC_HEADERS_m4_defun_pro([AC_STDC_HEADERS])AC_DIAGNOSE([obsolete], [The macro `AC_STDC_HEADERS' is obsolete. -You should run autoupdate.])dnl -AC_HEADER_STDC($@)[]AC_PROVIDE([AC_STDC_HEADERS])[]_m4_defun_epi([AC_STDC_HEADERS]) -T25,179 -AC_CONFIG_AUX_DIR_DEFAULT_m4_defun_pro([AC_CONFIG_AUX_DIR_DEFAULT])AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../..)[]AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])[]_m4_defun_epi([AC_CONFIG_AUX_DIR_DEFAULT]) -F7,6 -m4_wrapm4wrap -T19,215 -AC_INCLUDES_DEFAULT_m4_defun_pro([AC_INCLUDES_DEFAULT])m4_ifval([$1], [$1 -], - [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl -$ac_includes_default])[]AC_PROVIDE([AC_INCLUDES_DEFAULT])[]_m4_defun_epi([AC_INCLUDES_DEFAULT]) -T16,650 -AC_C_LONG_DOUBLE_m4_defun_pro([AC_C_LONG_DOUBLE])AC_CACHE_CHECK(for long double, ac_cv_c_long_double, -[if test "$GCC" = yes; then - ac_cv_c_long_double=yes -else -AC_TRY_RUN( -[int -main () -{ - /* The Stardent Vistra knows sizeof(long double), but does not - support it. */ - long double foo = 0.0; - /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ - exit (sizeof (long double) < sizeof (double)); -}], -ac_cv_c_long_double=yes, ac_cv_c_long_double=no) -fi]) -if test $ac_cv_c_long_double = yes; then - AC_DEFINE(HAVE_LONG_DOUBLE, 1, - [Define if the `long double' type works.]) -fi -[]AC_PROVIDE([AC_C_LONG_DOUBLE])[]_m4_defun_epi([AC_C_LONG_DOUBLE]) -T14,213 -ac_cv_prog_g77_m4_defun_pro([ac_cv_prog_g77])AC_DIAGNOSE([obsolete], [The macro `ac_cv_prog_g77' is obsolete. -You should run autoupdate.])dnl -ac_cv_f77_compiler_gnu[]AC_PROVIDE([ac_cv_prog_g77])[]_m4_defun_epi([ac_cv_prog_g77]) -T14,771 -AC_PROG_CXXCPP_m4_defun_pro([AC_PROG_CXXCPP])AC_REQUIRE([AC_PROG_CXX])dnl -AC_ARG_VAR([CXXCPP], [C++ preprocessor])dnl -_AC_ARG_VAR_CPPFLAGS()dnl -AC_LANG_PUSH(C++)dnl -AC_MSG_CHECKING([how to run the C++ preprocessor]) -if test -z "$CXXCPP"; then - AC_CACHE_VAL(ac_cv_prog_CXXCPP, - [dnl - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - _AC_PROG_PREPROC_WORKS_IFELSE([break]) - done - ac_cv_prog_CXXCPP=$CXXCPP - ])dnl - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -AC_MSG_RESULT([$CXXCPP]) -_AC_PROG_PREPROC_WORKS_IFELSE([], - [AC_MSG_ERROR([C++ preprocessor "$CXXCPP" fails sanity check])]) -AC_SUBST(CXXCPP)dnl -AC_LANG_POP(C++)dnl -[]AC_PROVIDE([AC_PROG_CXXCPP])[]_m4_defun_epi([AC_PROG_CXXCPP]) -T25,17 -m4_location(AC_PATH_XTRA)acspecific.m4:886 -T16,1268 -_AC_PATH_X_XMKMFrm -fr conftest.dir -if mkdir conftest.dir; then - cd conftest.dir - # 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 conftest.dir -fi - -T16,205 -AC_REPLACE_FUNCS_m4_defun_pro([AC_REPLACE_FUNCS])AC_FOREACH([AC_Func], [$1], [AC_LIBSOURCE(AC_Func.c)])dnl -AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ($ac_func)]) -[]AC_PROVIDE([AC_REPLACE_FUNCS])[]_m4_defun_epi([AC_REPLACE_FUNCS]) -T7,127 -m4_casem4_if([$#], 0, [], - [$#], 1, [], - [$#], 2, [$2], - [$1], [$2], [$3], - [m4_case([$1], m4_shiftn(3, $@))]) -T10,557 -_AC_PATH_X_m4_defun_pro([_AC_PATH_X])AC_CACHE_VAL(ac_cv_have_x, -[# One or both of the vars are not set, and there is no cached value. -ac_x_includes=no ac_x_libraries=no -_AC_PATH_X_XMKMF -_AC_PATH_X_DIRECT -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])dnl -[]AC_PROVIDE([_AC_PATH_X])[]_m4_defun_epi([_AC_PATH_X]) -T19,439 -AC_STRUCT_ST_BLOCKS_m4_defun_pro([AC_STRUCT_ST_BLOCKS])AC_CHECK_MEMBERS([struct stat.st_blocks], - [AC_DEFINE(HAVE_ST_BLOCKS, 1, - [Define if your `struct stat' has - `st_blocks'. Deprecated, use - `HAVE_STRUCT_STAT_ST_BLOCKS' instead.])], - [AC_LIBOBJ([fileblocks])]) -[]AC_PROVIDE([AC_STRUCT_ST_BLOCKS])[]_m4_defun_epi([AC_STRUCT_ST_BLOCKS]) -T13,596 -AC_C_VOLATILE_m4_defun_pro([AC_C_VOLATILE])AC_REQUIRE([AC_PROG_CC_STDC])dnl -AC_CACHE_CHECK([for working volatile], ac_cv_c_volatile, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ -volatile int x; -int * volatile y;])], - [ac_cv_c_volatile=yes], - [ac_cv_c_volatile=no])]) -if test $ac_cv_c_volatile = no; then - AC_DEFINE(volatile,, - [Define to empty if the keyword `volatile' does not work. - Warning: valid code using `volatile' can become incorrect - without. Disable with care.]) -fi -[]AC_PROVIDE([AC_C_VOLATILE])[]_m4_defun_epi([AC_C_VOLATILE]) -T17,135 -_m4_dumpdefs_downm4_ifdef([_m4_dumpdefs], - [m4_pushdef([$1], m4_defn([_m4_dumpdefs]))dnl -m4_popdef([_m4_dumpdefs])dnl -_m4_dumpdefs_down([$1])]) -T30,17 -m4_location(AC_CONFIG_SUBDIRS)acgeneral.m4:3427 -T13,15 -AS_VAR_POPDEFm4_popdef([$1]) -T27,16 -m4_location(AC_LONG_DOUBLE)acoldnames.m4:57 -T4,91 -defnm4_ifndef([$1], - [m4_fatal([$0: undefined macro: $1])])dnl -m4_builtin([defn], $@) -T18,878 -AC_STRUCT_TIMEZONE_m4_defun_pro([AC_STRUCT_TIMEZONE])AC_REQUIRE([AC_STRUCT_TM])dnl -AC_CHECK_MEMBERS([struct tm.tm_zone],,,[#include -#include <$ac_cv_struct_tm> -]) -if test "$ac_cv_member_struct_tm_tm_zone" = yes; then - AC_DEFINE(HAVE_TM_ZONE, 1, - [Define if your `struct tm' has `tm_zone'. Deprecated, use - `HAVE_STRUCT_TM_TM_ZONE' instead.]) -else - AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, -[AC_TRY_LINK( -[#include -#ifndef tzname /* For SGI. */ -extern char *tzname[]; /* RS6000 and others reject char **tzname. */ -#endif -], -[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)]) - if test $ac_cv_var_tzname = yes; then - AC_DEFINE(HAVE_TZNAME, 1, - [Define if you don't have `tm_zone' but do have the external - array `tzname'.]) - fi -fi -[]AC_PROVIDE([AC_STRUCT_TIMEZONE])[]_m4_defun_epi([AC_STRUCT_TIMEZONE]) -T26,17 -m4_location(AC_ARG_ENABLE)acgeneral.m4:1450 -F5,5 -indexindex -T23,193 -AC_LANG_PREPROC_REQUIRE_m4_defun_pro([AC_LANG_PREPROC_REQUIRE])m4_require([AC_LANG_PREPROC(]_AC_LANG[)], - [AC_LANG_PREPROC])[]AC_PROVIDE([AC_LANG_PREPROC_REQUIRE])[]_m4_defun_epi([AC_LANG_PREPROC_REQUIRE]) -T6,166 -divertm4_define([m4_divert_stack], - m4_location[: $0: $1]m4_ifdef([m4_divert_stack], [ -m4_defn([m4_divert_stack])]))dnl -m4_builtin([divert], _m4_divert([$1]))dnl - -T13,659 -AC_LINK_FILES_m4_defun_pro([AC_LINK_FILES])AC_DIAGNOSE([obsolete], [The macro `AC_LINK_FILES' is obsolete. -You should run autoupdate.])dnl -m4_if($#, 2, , - [m4_fatal([$0: incorrect number of arguments])])dnl -m4_define([_AC_LINK_FILES_CNT], m4_incr(_AC_LINK_FILES_CNT))dnl -ac_sources="$1" -ac_dests="$2" -while test -n "$ac_sources"; do - set $ac_dests; ac_dest=$[1]; shift; ac_dests=$[*] - set $ac_sources; ac_source=$[1]; shift; ac_sources=$[*] - [ac_config_links_]_AC_LINK_FILES_CNT="$[ac_config_links_]_AC_LINK_FILES_CNT $ac_dest:$ac_source" -done -AC_CONFIG_LINKS($[ac_config_links_]_AC_LINK_FILES_CNT)dnl -[]AC_PROVIDE([AC_LINK_FILES])[]_m4_defun_epi([AC_LINK_FILES]) -T34,18 -m4_location(AM_FUNC_ERROR_AT_LINE)acfunctions.m4:330 -T16,149 -_AS_EXPR_PREPARE_m4_defun_pro([_AS_EXPR_PREPARE])if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi -[]_m4_defun_epi([_AS_EXPR_PREPARE]) -T20,147 -_AC_ARG_VAR_PRECIOUSAC_SUBST([$1])dnl -m4_divert_once([PARSE_ARGS], -[ac_env_$1_set=${$1+set} -ac_env_$1_value=$$1 -ac_cv_env_$1_set=${$1+set} -ac_cv_env_$1_value=$$1])dnl - -T29,16 -m4_location(AC_CHECK_HEADERS)acheaders.m4:109 -T33,14 -m4_location(AC_STRUCT_ST_BLKSIZE)actypes.m4:473 -F9,6 -m4_substrsubstr -T10,382 -AC_MINGW32_m4_defun_pro([AC_MINGW32])AC_DIAGNOSE([obsolete], [The macro `AC_MINGW32' is obsolete. -You should run autoupdate.])dnl -AC_REQUIRE([AC_CANONICAL_HOST])[]dnl -AC_DIAGNOSE([obsolete], - [$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl -case $host_os in - *mingw32* ) MINGW32=yes;; - * ) MINGW32=no;; -esac -[]AC_PROVIDE([AC_MINGW32])[]_m4_defun_epi([AC_MINGW32]) -T11,146 -AC_TRY_LINK_m4_defun_pro([AC_TRY_LINK])AC_LINK_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4])[]AC_PROVIDE([AC_TRY_LINK])[]_m4_defun_epi([AC_TRY_LINK]) -T16,811 -AC_PROG_MAKE_SET_m4_defun_pro([AC_PROG_MAKE_SET])AC_MSG_CHECKING([whether ${MAKE-make} sets \${MAKE}]) -set dummy ${MAKE-make}; ac_make=`echo "$[2]" | sed 'y,./+-,__p_,'` -AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set, -[cat >conftest.make <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 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 conftest.make])dnl -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - AC_MSG_RESULT([yes]) - SET_MAKE= -else - AC_MSG_RESULT([no]) - SET_MAKE="MAKE=${MAKE-make}" -fi -AC_SUBST([SET_MAKE])dnl -[]AC_PROVIDE([AC_PROG_MAKE_SET])[]_m4_defun_epi([AC_PROG_MAKE_SET]) -T14,415 -AC_CHECK_TOOLS_m4_defun_pro([AC_CHECK_TOOLS])if test -n "$ac_tool_prefix"; then - for ac_prog in $2 - do - AC_CHECK_PROG([$1], - [$ac_tool_prefix$ac_prog], [$ac_tool_prefix$ac_prog],, - [$4]) - test -n "$$1" && break - done -fi -if test -z "$$1"; then - ac_ct_$1=$$1 - AC_CHECK_PROGS([ac_ct_$1], [$2], [$3], [$4]) - $1=$ac_ct_$1 -fi -[]AC_PROVIDE([AC_CHECK_TOOLS])[]_m4_defun_epi([AC_CHECK_TOOLS]) -T14,1104 -AC_ARG_PROGRAMm4_provide_ifelse([AC_ARG_PROGRAM], - [m4_warn([syntax], [AC_ARG_PROGRAM invoked multiple times])], - [_m4_defun_pro([AC_ARG_PROGRAM])dnl Document the options. -m4_divert_push([HELP_BEGIN])dnl - -Program names: - --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 -m4_divert_pop([HELP_BEGIN])dnl -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" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -[s/[\\$]/&&/g;s/;s,x,x,$//] -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed -[]AC_PROVIDE([AC_ARG_PROGRAM])[]_m4_defun_epi([AC_ARG_PROGRAM])]) -T27,16 -m4_location(AC_SIZEOF_TYPE)acoldnames.m4:38 -T22,17 -m4_location(AC_ENABLE)acgeneral.m4:1454 -T21,0 -_AC_SUBST_SED_PROGRAM -T19,388 -_AC_CANONICAL_SPLITAC_SUBST([$1], [$ac_cv_$1])dnl -dnl FIXME: AC_SUBST([$1_alias], [$ac_cv_$1_alias])dnl -AC_SUBST([$1_cpu], - [`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])dnl -AC_SUBST([$1_vendor], - [`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])dnl -AC_SUBST([$1_os], - [`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])dnl - -T35,14 -m4_location(AC_F77_LIBRARY_LDFLAGS)aclang.m4:1918 -T32,19 -m4_location(AC_SETVBUF_REVERSED)acfunctions.m4:1354 -T22,107 -AC_MSG_RESULT_UNQUOTED_AS_ECHO_UNQUOTED([$as_me:__oline__: result: $1], AS_MESSAGE_LOG_FD) -_AS_ECHO_UNQUOTED([${ECHO_T}$1])[]dnl - -T24,50 -_m4_warning_error_ifelse__m4_warning_error_ifelse([$1], [$2], m4_warnings) -T18,424 -AC_CONFIG_COMMANDS_m4_defun_pro([AC_CONFIG_COMMANDS])m4_divert_push([KILL]) -_AC_CONFIG_UNIQUE([$1]) -m4_append([AC_LIST_COMMANDS], [ $1]) - -m4_if([$2],,, [AC_FOREACH([AC_Name], [$1], -[m4_append([AC_LIST_COMMANDS_COMMANDS], -[ ]m4_patsubst(AC_Name, [:.*])[ ) $2 ;; -])])]) -_AC_CONFIG_COMMANDS_INIT([$3]) -m4_divert_pop([KILL])dnl -ac_config_commands="$ac_config_commands $1" -[]AC_PROVIDE([AC_CONFIG_COMMANDS])[]_m4_defun_epi([AC_CONFIG_COMMANDS]) -T28,14 -m4_location(AC_CHECK_MEMBER)actypes.m4:435 -T9,1223 -AC_PATH_X_m4_defun_pro([AC_PATH_X])dnl Document the X abnormal options inherited from history. -m4_divert_once([HELP_BEGIN], [ -X features: - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR])dnl -AC_MSG_CHECKING([for X]) - -AC_ARG_WITH(x, [ --with-x use the X Window System]) -# $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 - _AC_PATH_X - fi - eval "$ac_cv_have_x" -fi # $with_x != no - -if test "$have_x" != yes; then - AC_MSG_RESULT([$have_x]) - 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" - AC_MSG_RESULT([libraries $x_libraries, headers $x_includes]) -fi -[]AC_PROVIDE([AC_PATH_X])[]_m4_defun_epi([AC_PATH_X]) -T24,17 -m4_location(AC_CHECKING)acgeneral.m4:2101 -T16,484 -AC_CHECK_MEMBERS_m4_defun_pro([AC_CHECK_MEMBERS])m4_foreach([AC_Member], [$1], - [AC_CHECK_MEMBER(AC_Member, - [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_Member), 1, - [Define if `]m4_patsubst(AC_Member, - [^[^.]*\.])[' is - member of `]m4_patsubst(AC_Member, [\..*])['.]) -$2], - [$3], - [$4])])[]AC_PROVIDE([AC_CHECK_MEMBERS])[]_m4_defun_epi([AC_CHECK_MEMBERS]) -F6,6 -syscmdsyscmd -T25,19 -m4_location(AC_FUNC_MMAP)acfunctions.m4:1080 -T21,0 -m4_include(aclang.m4) -T11,216 -_m4_foreachm4_if(m4_quote($2), [], [], - [m4_define([$1], [m4_car($2)])$3[]_m4_foreach([$1], - [m4_shift($2)], - [$3])]) -T15,214 -AM_PROG_INSTALL_m4_defun_pro([AM_PROG_INSTALL])AC_DIAGNOSE([obsolete], [The macro `AM_PROG_INSTALL' is obsolete. -You should run autoupdate.])dnl -AC_PROG_INSTALL($@)[]AC_PROVIDE([AM_PROG_INSTALL])[]_m4_defun_epi([AM_PROG_INSTALL]) -T14,209 -AM_FUNC_MKTIME_m4_defun_pro([AM_FUNC_MKTIME])AC_DIAGNOSE([obsolete], [The macro `AM_FUNC_MKTIME' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_MKTIME($@)[]AC_PROVIDE([AM_FUNC_MKTIME])[]_m4_defun_epi([AM_FUNC_MKTIME]) -T10,0 -m4_symbols -T13,74 -AC_LIBSOURCESm4_foreach([_AC_FILENAME], [$1], - [AC_LIBSOURCE(_AC_FILENAME)]) -T11,696 -AC_C_INLINE_m4_defun_pro([AC_C_INLINE])AC_REQUIRE([AC_PROG_CC_STDC])dnl -AC_CACHE_CHECK([for inline], ac_cv_c_inline, -[ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - AC_COMPILE_IFELSE([AC_LANG_SOURCE( -[#ifndef __cplusplus -static $ac_kw int static_foo () {return 0; } -$ac_kw int foo () {return 0; } -#endif -])], - [ac_cv_c_inline=$ac_kw; break]) -done -]) -case $ac_cv_c_inline in - inline | yes) ;; - no) AC_DEFINE(inline,, - [Define as `__inline' if that's what the C compiler calls it, - or to nothing if it is not supported.]) ;; - *) AC_DEFINE_UNQUOTED(inline, $ac_cv_c_inline) ;; -esac -[]AC_PROVIDE([AC_C_INLINE])[]_m4_defun_epi([AC_C_INLINE]) -T23,17 -m4_location(AC_TRY_RUN)acgeneral.m4:2851 -T13,205 -AC_RETSIGTYPE_m4_defun_pro([AC_RETSIGTYPE])AC_DIAGNOSE([obsolete], [The macro `AC_RETSIGTYPE' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_SIGNAL($@)[]AC_PROVIDE([AC_RETSIGTYPE])[]_m4_defun_epi([AC_RETSIGTYPE]) -T27,17 -m4_location(AC_PROG_RANLIB)acspecific.m4:113 -T17,684 -AC_STRUCT_ST_RDEV_m4_defun_pro([AC_STRUCT_ST_RDEV])AC_DIAGNOSE([obsolete], [The macro `AC_STRUCT_ST_RDEV' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], [$0: - your code should no longer depend upon `HAVE_ST_RDEV', but - `HAVE_STRUCT_STAT_ST_RDEV'. Remove this warning and - the `AC_DEFINE' when you adjust the code.]) -AC_CHECK_MEMBERS([struct stat.st_rdev], - [AC_DEFINE(HAVE_ST_RDEV, 1, - [Define if your `struct stat' has `st_rdev'. - Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV' - instead.])]) -[]AC_PROVIDE([AC_STRUCT_ST_RDEV])[]_m4_defun_epi([AC_STRUCT_ST_RDEV]) -T13,177 -AC_MSG_NOTICEm4_ifset([AS_MESSAGE_LOG_FD], - [{ _AS_ECHO([$as_me:__oline__: $1], [AS_MESSAGE_LOG_FD]) -_AS_ECHO([$as_me: $1], [$2]);}], - [_AS_ECHO([$as_me: $1], [$2])])[]dnl - -T24,16 -m4_location(AC_TIMEZONE)acoldnames.m4:74 -T13,204 -AC_FUNC_CHECK_m4_defun_pro([AC_FUNC_CHECK])AC_DIAGNOSE([obsolete], [The macro `AC_FUNC_CHECK' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_FUNC($@)[]AC_PROVIDE([AC_FUNC_CHECK])[]_m4_defun_epi([AC_FUNC_CHECK]) -T21,237 -AC_TIME_WITH_SYS_TIME_m4_defun_pro([AC_TIME_WITH_SYS_TIME])AC_DIAGNOSE([obsolete], [The macro `AC_TIME_WITH_SYS_TIME' is obsolete. -You should run autoupdate.])dnl -AC_HEADER_TIME($@)[]AC_PROVIDE([AC_TIME_WITH_SYS_TIME])[]_m4_defun_epi([AC_TIME_WITH_SYS_TIME]) -F5,5 -indirindir -T27,11 -m4_location(AS_DIRNAME_SED)m4sh.m4:292 -T13,205 -AC_HAVE_FUNCS_m4_defun_pro([AC_HAVE_FUNCS])AC_DIAGNOSE([obsolete], [The macro `AC_HAVE_FUNCS' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_FUNCS($@)[]AC_PROVIDE([AC_HAVE_FUNCS])[]_m4_defun_epi([AC_HAVE_FUNCS]) -T28,16 -m4_location(AC_PROGRAM_PATH)acoldnames.m4:37 -T8,225 -m4_splitm4_changequote(``, '')dnl -[dnl Can't use m4_default here instead of m4_if, because m4_default uses -dnl [ and ] as quotes. -m4_patsubst(````$1'''', - m4_if(``$2'',, ``[ ]+'', ``$2''), - ``], ['')]dnl -m4_changequote([, ]) -T14,228 -AC_DIVERT_PUSHm4_pushdef([m4_divert_stack], - m4_location[: $0: $1]m4_ifdef([m4_divert_stack], [ -m4_defn([m4_divert_stack])]))dnl -m4_pushdef([_m4_divert_diversion], [$1])dnl -m4_builtin([divert], _m4_divert(_m4_divert_diversion))dnl - -T21,152 -AC_LANG_FUNC_LINK_TRY_m4_defun_pro([AC_LANG_FUNC_LINK_TRY])_AC_LANG_DISPATCH([$0], _AC_LANG, $@)[]AC_PROVIDE([AC_LANG_FUNC_LINK_TRY])[]_m4_defun_epi([AC_LANG_FUNC_LINK_TRY]) -T37,13 -m4_location(AC_LANG_BOOL_COMPILE_TRY)aclang.m4:330 -T15,214 -AC_HEADER_EGREP_m4_defun_pro([AC_HEADER_EGREP])AC_DIAGNOSE([obsolete], [The macro `AC_HEADER_EGREP' is obsolete. -You should run autoupdate.])dnl -AC_EGREP_HEADER($@)[]AC_PROVIDE([AC_HEADER_EGREP])[]_m4_defun_epi([AC_HEADER_EGREP]) -T15,635 -AC_FUNC_STRCOLL_m4_defun_pro([AC_FUNC_STRCOLL])AC_CACHE_CHECK(for working strcoll, ac_cv_func_strcoll_works, -[AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], - [[exit (strcoll ("abc", "def") >= 0 || - strcoll ("ABC", "DEF") >= 0 || - strcoll ("123", "456") >= 0)]])], - ac_cv_func_strcoll_works=yes, - ac_cv_func_strcoll_works=no, - ac_cv_func_strcoll_works=no)]) -if test $ac_cv_func_strcoll_works = yes; then - AC_DEFINE(HAVE_STRCOLL, 1, - [Define if you have the `strcoll' function and it is properly - defined.]) -fi -[]AC_PROVIDE([AC_FUNC_STRCOLL])[]_m4_defun_epi([AC_FUNC_STRCOLL]) -T27,19 -m4_location(AM_FUNC_STRTOD)acfunctions.m4:1269 -T29,17 -m4_location(AC_PROG_MAKE_SET)acspecific.m4:107 -T17,57 -m4_foreach_quotedm4_pushdef([$1], [])_m4_foreach_quoted($@)m4_popdef([$1]) -T34,13 -m4_location(AC_LANG_FUNC_LINK_TRY)aclang.m4:322 -T23,17 -m4_location(_AC_PATH_X)acspecific.m4:716 -T34,14 -m4_location(AC_LANG_COMPILER(C++))aclang.m4:1132 -T26,17 -m4_location(AC_CHECK_TOOL)acgeneral.m4:2447 -T29,346 -_AC_SYS_LARGEFILE_MACRO_VALUEAC_CACHE_CHECK([for $1 value needed for large files], [$3], -[while :; do - $3=no - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$5], [$6])], - [break]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@define $1 $2 -$5], [$6])], - [$3=$2; break]) - break -done]) -if test "$$3" != no; then - AC_DEFINE_UNQUOTED([$1], [$$3], [$4]) -fi -rm -f conftest*[]dnl - -T33,14 -m4_location(AC_F77_NAME_MANGLING)aclang.m4:2120 -T11,270 -m4_list_cmpm4_if([$1$2], [()()], 0, - [$1], [()], [m4_list_cmp((0), [$2])], - [$2], [()], [m4_list_cmp([$1], (0))], - [m4_case(m4_cmp(m4_car$1, m4_car$2), - -1, -1, - 1, 1, - 0, [m4_list_cmp((m4_shift$1), (m4_shift$2))])]) -T22,31 -m4_expansion_stack_popm4_popdef([m4_expansion_stack]) -T17,1387 -AC_F77_DUMMY_MAIN_m4_defun_pro([AC_F77_DUMMY_MAIN])AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl -m4_define([_AC_LANG_PROGRAM_C_F77_HOOKS], -[#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } -#endif -]) -AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries], - ac_cv_f77_dummy_main, -[AC_LANG_PUSH(C)dnl - ac_f77_dm_save_LIBS=$LIBS - LIBS="$LIBS $FLIBS" - - # First, try linking without a dummy main: - AC_TRY_LINK([], [], - ac_cv_f77_dummy_main=none, - ac_cv_f77_dummy_main=unknown) - - if test $ac_cv_f77_dummy_main = unknown; then - for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do - AC_TRY_LINK([@%:@define F77_DUMMY_MAIN $ac_func], - [], [ac_cv_f77_dummy_main=$ac_func; break]) - done - fi - rm -f conftest* - LIBS=$ac_f77_dm_save_LIBS - AC_LANG_POP(C)dnl -]) -F77_DUMMY_MAIN=$ac_cv_f77_dummy_main -AS_IF([test "$F77_DUMMY_MAIN" != unknown], - [m4_default([$1], -[if test $F77_DUMMY_MAIN != none; then - AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $F77_DUMMY_MAIN, - [Define to dummy `main' function (if any) required to - link to the Fortran 77 libraries.]) -fi])], - [m4_default([$2], - [AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])]) -[]AC_PROVIDE([AC_F77_DUMMY_MAIN])[]_m4_defun_epi([AC_F77_DUMMY_MAIN]) -F7,7 -traceontraceon -T10,82 -_m4_divertm4_ifdef([_m4_divert($1)], - [m4_indir([_m4_divert($1)])], - [$1]) -T18,6826 -_AC_OUTPUT_HEADERScat >>$CONFIG_STATUS <<\EOF - -# -# CONFIG_HEADER section. -# - -# 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. -dnl Double quote for the `[ ]' and `define'. -[ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='[ ].*$,\1#\2' -ac_dC=' ' -ac_dD=',;t' -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='$,\1#\2define\3' -ac_uC=' ' -ac_uD=',;t'] - -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[[^:]]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[[^:]]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - test x"$ac_file" != x- && AC_MSG_NOTICE([creating $ac_file]) - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [[\\/$]]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || AC_MSG_ERROR([cannot find input file: $f]) - echo $f;; - *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - AC_MSG_ERROR([cannot find input file: $f]) - fi;; - esac - done` || AS_EXIT([1]) - # Remove the trailing spaces. - sed 's/[[ ]]*$//' $ac_file_inputs >$tmp/in - -EOF - -# Transform confdefs.h into two sed scripts, `conftest.defines' and -# `conftest.undefs', that substitutes the proper values into -# config.h.in to produce config.h. The first handles `#define' -# templates, and the second `#undef' templates. -# 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.defines conftest.undefs -# Using a here document instead of a string reduces the quoting nightmare. -# Putting comments in sed scripts is not portable. -# -# `end' is used to avoid that the second main sed command (meant for -# 0-ary CPP macros) applies to n-ary macro definitions. -# See the Autoconf documentation for `clear'. -cat >confdef2sed.sed <<\EOF -dnl Double quote for `[ ]' and `define'. -[s/[\\&,]/\\&/g -s,[\\$`],\\&,g -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp -t end -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp -: end] -EOF -# If some macros were called several times there might be several times -# the same #defines, which is useless. Nevertheless, we may not want to -# sort them, since we want the *last* AC-DEFINE to be honored. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs -rm -f confdef2sed.sed - -# 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.undefs <<\EOF -[s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,] -EOF - -# Break up conftest.defines because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS -echo ' if egrep ["^[ ]*#[ ]*define"] $tmp/in >/dev/null; then' >>$CONFIG_STATUS -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS -echo ' :' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.defines >/dev/null -do - # Write a limited-size here document to $tmp/defines.sed. - echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS - # Speed up: don't consider the non `#define' lines. - echo ['/^[ ]*#[ ]*define/!b'] >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/defines.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines -echo ' fi # egrep' >>$CONFIG_STATUS -echo >>$CONFIG_STATUS - -# Break up conftest.undefs because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.undefs >/dev/null -do - # Write a limited-size here document to $tmp/undefs.sed. - echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS - # Speed up: don't consider the non `#undef' - echo ['/^[ ]*#[ ]*undef/!b'] >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/undefs.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail - rm -f conftest.undefs - mv conftest.tail conftest.undefs -done -rm -f conftest.undefs - -dnl Now back to your regularly scheduled config.status. -cat >>$CONFIG_STATUS <<\EOF - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated automatically by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated automatically by configure. */" >$tmp/config.h - else - echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h - fi - cat $tmp/in >>$tmp/config.h - rm -f $tmp/in - if test x"$ac_file" != x-; then - if cmp -s $ac_file $tmp/config.h 2>/dev/null; then - AC_MSG_NOTICE([$ac_file is unchanged]) - else - ac_dir=`AS_DIRNAME(["$ac_file"])` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - AS_MKDIR_P(["$ac_dir"]) - fi - rm -f $ac_file - mv $tmp/config.h $ac_file - fi - else - cat $tmp/config.h - rm -f $tmp/config.h - fi -m4_ifset([AC_LIST_HEADERS_COMMANDS], -[ # Run the commands associated with the file. - case $ac_file in -AC_LIST_HEADERS_COMMANDS()dnl - esac -])dnl -done -EOF - -T7,179 -AC_MMAP_m4_defun_pro([AC_MMAP])AC_DIAGNOSE([obsolete], [The macro `AC_MMAP' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_MMAP($@)[]AC_PROVIDE([AC_MMAP])[]_m4_defun_epi([AC_MMAP]) -T29,16 -m4_location(AC_PROGRAM_CHECK)acoldnames.m4:35 -T9,189 -AC_MODE_T_m4_defun_pro([AC_MODE_T])AC_DIAGNOSE([obsolete], [The macro `AC_MODE_T' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_MODE_T($@)[]AC_PROVIDE([AC_MODE_T])[]_m4_defun_epi([AC_MODE_T]) -T23,16 -m4_location(AM_MINGW32)acoldnames.m4:85 -T13,546 -_AC_FUNC_FORK_m4_defun_pro([_AC_FUNC_FORK])AC_CACHE_CHECK(for working fork, ac_cv_func_fork_works, - [AC_RUN_IFELSE([/* By Rüdiger Kuhlmann. */ - #include - #if HAVE_UNISTD_H - # include - #endif - /* Some systems only have a dummy stub for fork() */ - int main () - { - if (fork() < 0) - exit (1); - exit (0); - }], - [ac_cv_func_fork_works=yes], - [ac_cv_func_fork_works=no], - [ac_cv_func_fork_works=cross])]) -[]AC_PROVIDE([_AC_FUNC_FORK])[]_m4_defun_epi([_AC_FUNC_FORK]) -T11,842 -AC_PROG_CPP_m4_defun_pro([AC_PROG_CPP])AC_REQUIRE([AC_PROG_CC])dnl -AC_ARG_VAR([CPP], [C preprocessor])dnl -_AC_ARG_VAR_CPPFLAGS()dnl -AC_LANG_PUSH(C)dnl -AC_MSG_CHECKING([how to run the C preprocessor]) -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - AC_CACHE_VAL([ac_cv_prog_CPP], - [dnl - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - _AC_PROG_PREPROC_WORKS_IFELSE([break]) - done - ac_cv_prog_CPP=$CPP - ])dnl - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -AC_MSG_RESULT([$CPP]) -_AC_PROG_PREPROC_WORKS_IFELSE([], - [AC_MSG_ERROR([C preprocessor "$CPP" fails sanity check])]) -AC_SUBST(CPP)dnl -AC_LANG_POP(C)dnl -[]AC_PROVIDE([AC_PROG_CPP])[]_m4_defun_epi([AC_PROG_CPP]) -T10,711 -m4_requirem4_expansion_stack_push(m4_location[: $1 is required by...])dnl -m4_ifdef([_m4_expanding($1)], - [m4_fatal([$0: circular dependency of $1])])dnl -m4_ifndef([_m4_divert_dump], - [m4_fatal([$0: cannot be used outside of an m4_defun'd macro])])dnl -m4_provide_ifelse([$1], - [], - [m4_divert_push(m4_eval(m4_divnum - 1))dnl -m4_default([$2], [$1]) -m4_divert(m4_defn([_m4_divert_dump]))dnl -m4_undivert(m4_defn([_m4_divert_diversion]))dnl -m4_divert_pop(m4_defn([_m4_divert_dump]))])dnl -m4_provide_ifelse([$1], - [], - [m4_warn([syntax], - [$1 is m4_require'd but is not m4_defun'd])])dnl -m4_expansion_stack_pop()dnl - -T20,16 -m4_location(AC_WARN)acoldnames.m4:27 -T16,215 -AC_PROGRAM_EGREP_m4_defun_pro([AC_PROGRAM_EGREP])AC_DIAGNOSE([obsolete], [The macro `AC_PROGRAM_EGREP' is obsolete. -You should run autoupdate.])dnl -AC_EGREP_CPP($@)[]AC_PROVIDE([AC_PROGRAM_EGREP])[]_m4_defun_epi([AC_PROGRAM_EGREP]) -T9,368 -AC_EMXOS2_m4_defun_pro([AC_EMXOS2])AC_DIAGNOSE([obsolete], [The macro `AC_EMXOS2' is obsolete. -You should run autoupdate.])dnl -AC_REQUIRE([AC_CANONICAL_HOST])[]dnl -AC_DIAGNOSE([obsolete], - [$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl -case $host_os in - *emx* ) EMXOS2=yes;; - * ) EMXOS2=no;; -esac -[]AC_PROVIDE([AC_EMXOS2])[]_m4_defun_epi([AC_EMXOS2]) -T26,19 -m4_location(_AC_FUNC_FORK)acfunctions.m4:1473 -T30,13 -m4_location(AC_NO_EXECUTABLES)aclang.m4:621 -T13,43 -AC_DEFUN_ONCEm4_defun_once([$1], [$2[]AC_PROVIDE([$1])]) -F6,6 -regexpregexp -T17,47 -AC_PROVIDE_IFELSEm4_ifdef([AC_PROVIDE_$1], - [$2], [$3]) -T25,17 -m4_location(AC_CHECK_LIB)acgeneral.m4:2583 -T14,421 -AC_CHECK_TYPES_m4_defun_pro([AC_CHECK_TYPES])m4_foreach([AC_Type], [$1], - [_AC_CHECK_TYPE_NEW(AC_Type, - [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_Type), 1, - [Define if the system has the type - `]AC_Type['.]) -$2], - [$3], - [$4])])[]AC_PROVIDE([AC_CHECK_TYPES])[]_m4_defun_epi([AC_CHECK_TYPES]) -T21,16 -m4_location(AC_OFF_T)acoldnames.m4:62 -T21,244 -AM_FUNC_ERROR_AT_LINE_m4_defun_pro([AM_FUNC_ERROR_AT_LINE])AC_DIAGNOSE([obsolete], [The macro `AM_FUNC_ERROR_AT_LINE' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_ERROR_AT_LINE($@)[]AC_PROVIDE([AM_FUNC_ERROR_AT_LINE])[]_m4_defun_epi([AM_FUNC_ERROR_AT_LINE]) -T24,0 -m4_include(acversion.m4) -T21,2 -_m4_divert(HELP_WITH)13 -T9,184 -AC_FIND_X_m4_defun_pro([AC_FIND_X])AC_DIAGNOSE([obsolete], [The macro `AC_FIND_X' is obsolete. -You should run autoupdate.])dnl -AC_PATH_X($@)[]AC_PROVIDE([AC_FIND_X])[]_m4_defun_epi([AC_FIND_X]) -T30,17 -m4_location(AC_PREPROC_IFELSE)acgeneral.m4:2659 -T32,17 -m4_location(AC_CANONICAL_SYSTEM)acgeneral.m4:1784 -T25,17 -m4_location(AC_ARG_ARRAY)acspecific.m4:352 -T10,196 -AC_ST_RDEV_m4_defun_pro([AC_ST_RDEV])AC_DIAGNOSE([obsolete], [The macro `AC_ST_RDEV' is obsolete. -You should run autoupdate.])dnl -AC_STRUCT_ST_RDEV($@)[]AC_PROVIDE([AC_ST_RDEV])[]_m4_defun_epi([AC_ST_RDEV]) -T11,201 -AC_TIMEZONE_m4_defun_pro([AC_TIMEZONE])AC_DIAGNOSE([obsolete], [The macro `AC_TIMEZONE' is obsolete. -You should run autoupdate.])dnl -AC_STRUCT_TIMEZONE($@)[]AC_PROVIDE([AC_TIMEZONE])[]_m4_defun_epi([AC_TIMEZONE]) -T23,657 -AC_PROG_GCC_TRADITIONAL_m4_defun_pro([AC_PROG_GCC_TRADITIONAL])if test $ac_cv_c_compiler_gnu = yes; then - AC_CACHE_CHECK(whether $CC needs -traditional, - ac_cv_prog_gcc_traditional, -[ ac_pattern="Autoconf.*'x'" - AC_EGREP_CPP($ac_pattern, [#include -Autoconf TIOCGETP], - ac_cv_prog_gcc_traditional=yes, ac_cv_prog_gcc_traditional=no) - - if test $ac_cv_prog_gcc_traditional = no; then - AC_EGREP_CPP($ac_pattern, [#include -Autoconf TCGETA], - ac_cv_prog_gcc_traditional=yes) - fi]) - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi -[]AC_PROVIDE([AC_PROG_GCC_TRADITIONAL])[]_m4_defun_epi([AC_PROG_GCC_TRADITIONAL]) -T10,1803 -AC_C_CONST_m4_defun_pro([AC_C_CONST])AC_REQUIRE([AC_PROG_CC_STDC])dnl -AC_CACHE_CHECK([for an ANSI C-conforming const], ac_cv_c_const, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], -[[/* FIXME: Include the comments suggested by Paul. */ -#ifndef __cplusplus - /* 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; - } -#endif -]])], - [ac_cv_c_const=yes], - [ac_cv_c_const=no])]) -if test $ac_cv_c_const = no; then - AC_DEFINE(const,, - [Define to empty if `const' does not conform to ANSI C.]) -fi -[]AC_PROVIDE([AC_C_CONST])[]_m4_defun_epi([AC_C_CONST]) -T19,527 -m4_version_unletterm4_translit(m4_patsubst(m4_patsubst(m4_patsubst([$1], - [\([0-9]+\)\([abcdefghi]\)], - [m4_eval(\1 + 1).-1.\2]), - [\([0-9]+\)\([jklmnopqrs]\)], - [m4_eval(\1 + 1).-1.1\2]), - [\([0-9]+\)\([tuvwxyz]\)], - [m4_eval(\1 + 1).-1.2\2]), - [abcdefghijklmnopqrstuvwxyz], - [12345678901234567890123456]) -T26,19 -m4_location(AC_UTIME_NULL)acfunctions.m4:1409 -T14,136 -AS_VAR_PUSHDEFAS_LITERAL_IF([$2], - [m4_pushdef([$1], [AS_TR_SH($2)])], - [as_$1=AS_TR_SH($2) -m4_pushdef([$1], [$as_[$1]])]) -T23,258 -AC_RESTARTABLE_SYSCALLS_m4_defun_pro([AC_RESTARTABLE_SYSCALLS])AC_DIAGNOSE([obsolete], [The macro `AC_RESTARTABLE_SYSCALLS' is obsolete. -You should run autoupdate.])dnl -AC_SYS_RESTARTABLE_SYSCALLS($@)[]AC_PROVIDE([AC_RESTARTABLE_SYSCALLS])[]_m4_defun_epi([AC_RESTARTABLE_SYSCALLS]) -T17,438 -AC_CONFIG_SUBDIRS_m4_defun_pro([AC_CONFIG_SUBDIRS])_AC_CONFIG_UNIQUE([$1])dnl -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -m4_append([_AC_LIST_SUBDIRS], [ $1])dnl -AS_LITERAL_IF([$1], [], - [AC_DIAGNOSE(syntax, [$0: you should use literals])]) -m4_divert_text([DEFAULTS], - [ac_subdirs_all="$ac_subdirs_all m4_normalize([$1])"]) -AC_SUBST(subdirs, "$subdirs $1")dnl -[]AC_PROVIDE([AC_CONFIG_SUBDIRS])[]_m4_defun_epi([AC_CONFIG_SUBDIRS]) -T10,27 -AC_WARNINGAC_DIAGNOSE([syntax], [$1]) -T7,41 -m4_warnm4_warning_ifelse([$1], [_m4_warn([$2])]) -T12,1213 -AC_FUNC_FORK_m4_defun_pro([AC_FUNC_FORK])AC_REQUIRE([AC_TYPE_PID_T])dnl -AC_CHECK_HEADERS(unistd.h vfork.h) -AC_CHECK_FUNCS(fork vfork) -ac_cv_func_fork_works=$ac_cv_func_fork -if test "x$ac_cv_func_fork" = xyes; then - _AC_FUNC_FORK -fi -if test "x$ac_cv_func_fork_works" = xcross; then - case $host in - *-*-amigaos* | *-*-msdosdjgpp*) - # Override, as these systems have only a dummy fork() stub - ac_cv_func_fork_works=no - ;; - *) - ac_cv_func_fork_works=yes - ;; - esac - AC_MSG_WARN(CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling.) -fi -ac_cv_func_vfork_works=$ac_cv_func_vfork -if test "x$ac_cv_func_vfork" = xyes; then - _AC_FUNC_VFORK -fi; -if test "x$ac_cv_func_fork_works" = xcross; then - ac_cv_func_vfork_works=ac_cv_func_vfork - AC_MSG_WARN(CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling.) -fi - -if test "x$ac_cv_func_vfork_works" = xyes; then - AC_DEFINE(HAVE_WORKING_VFORK, 1, [Define if `vfork' works.]) -else - AC_DEFINE(vfork, fork, [Define as `fork' if `vfork' does not work.]) -fi -if test "x$ac_cv_func_fork_works" = xyes; then - AC_DEFINE(HAVE_WORKING_FORK, 1, [Define if `fork' works.]) -fi -[]AC_PROVIDE([AC_FUNC_FORK])[]_m4_defun_epi([AC_FUNC_FORK]) -T16,1326 -AC_SYS_LARGEFILE_m4_defun_pro([AC_SYS_LARGEFILE])AC_ARG_ENABLE(largefile, - [ --disable-largefile omit support for large files]) -if test "$enable_largefile" != no; then - - AC_CACHE_CHECK([for special C compiler options needed for large files], - ac_cv_sys_largefile_CC, - [ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) - AC_COMPILE_IFELSE([], [break]) - CC="$CC -n32" - AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi]) - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - _AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64, - ac_cv_sys_file_offset_bits, - [Number of bits in a file offset, on hosts where this is settable.], - [_AC_SYS_LARGEFILE_TEST_INCLUDES]) - _AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1, - ac_cv_sys_large_files, - [Define for large files, on AIX-style hosts.], - [_AC_SYS_LARGEFILE_TEST_INCLUDES]) -fi -[]AC_PROVIDE([AC_SYS_LARGEFILE])[]_m4_defun_epi([AC_SYS_LARGEFILE]) -T11,454 -AC_PROG_LEXm4_provide_ifelse([AC_PROG_LEX], - [m4_warn([syntax], [AC_PROG_LEX invoked multiple times])], - [_m4_defun_pro([AC_PROG_LEX])AC_CHECK_PROGS(LEX, flex lex, :) -if test -z "$LEXLIB" -then - AC_CHECK_LIB(fl, yywrap, LEXLIB="-lfl", - [AC_CHECK_LIB(l, yywrap, LEXLIB="-ll")]) -fi -AC_SUBST(LEXLIB) -if test "x$LEX" != "x:"; then - _AC_DECL_YYTEXT -fi[]AC_PROVIDE([AC_PROG_LEX])[]_m4_defun_epi([AC_PROG_LEX])]) -T16,149 -AC_CONFIG_SRCDIR_m4_defun_pro([AC_CONFIG_SRCDIR])m4_divert_text([DEFAULTS], [ac_unique_file="$1"])[]AC_PROVIDE([AC_CONFIG_SRCDIR])[]_m4_defun_epi([AC_CONFIG_SRCDIR]) -T50,18 -m4_location(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)acfunctions.m4:711 -T31,17 -m4_location(AC_CONFIG_AUX_DIRS)acgeneral.m4:1683 -F7,7 -esyscmdesyscmd -F7,7 -builtinbuiltin -T22,0 -AC_LIST_LINKS_COMMANDS -T12,297 -AC_CACHE_VALm4_if(m4_regexp([$2], [AC_DEFINE]), [-1], [], - [AC_DIAGNOSE(syntax, -[$0($1, ...): suspicious presence of an AC_DEFINE in the second argument, ]dnl -[where no actions should be taken])])dnl -AS_VAR_SET_IF([$1], - [echo $ECHO_N "(cached) $ECHO_C" >&AS_MESSAGE_FD], - [$2]) -T27,14 -m4_location(AC_PROG_CXXCPP)aclang.m4:1125 -T16,73 -_AH_VERBATIM_OLDAS_LITERAL_IF([$1], - [AH_OUTPUT([$1], _AS_QUOTE([[$2]]))]) - -T32,17 -m4_location(AC_INCLUDES_DEFAULT)acgeneral.m4:2257 -T14,300 -_AS_CR_PREPARE_m4_defun_pro([_AS_CR_PREPARE])# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits -[]_m4_defun_epi([_AS_CR_PREPARE]) -T17,55 -m4_pattern_forbidm4_file_append(m4_defn([m4_tmpdir])/forbidden.rx, [$1]) -T9,166 -m4_divertm4_define([m4_divert_stack], - m4_location[: $0: $1]m4_ifdef([m4_divert_stack], [ -m4_defn([m4_divert_stack])]))dnl -m4_builtin([divert], _m4_divert([$1]))dnl - -F4,4 -incrincr -T18,114 -m4_version_comparem4_list_cmp((m4_split(m4_version_unletter([$1]), [\.])), - (m4_split(m4_version_unletter([$2]), [\.]))) -T7,0 -__gnu__ -T24,17 -m4_location(AC_PROG_LEX)acspecific.m4:141 -T24,18 -m4_location(AC_SCO_INTL)acspecific.m4:1050 -T25,13 -m4_location(AC_LANG_SAVE)aclang.m4:167 -T14,374 -AC_CHECK_FUNCS_m4_defun_pro([AC_CHECK_FUNCS])AC_FOREACH([AC_Func], [$1], - [AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Func), - [Define if you have the `]AC_Func[' function.])])dnl -for ac_func in $1 -do -AC_CHECK_FUNC($ac_func, - [AC_DEFINE_UNQUOTED([AS_TR_CPP([HAVE_$ac_func])]) $2], - [$3])dnl -done -[]AC_PROVIDE([AC_CHECK_FUNCS])[]_m4_defun_epi([AC_CHECK_FUNCS]) -T25,18 -m4_location(AC_ISC_POSIX)acspecific.m4:1017 -T27,14 -m4_location(AC_C_BIGENDIAN)aclang.m4:1573 -F6,6 -definedefine -T14,132 -AC_TRY_COMMAND_m4_defun_pro([AC_TRY_COMMAND]){ ac_try='$1' - _AC_EVAL([$ac_try]); }[]AC_PROVIDE([AC_TRY_COMMAND])[]_m4_defun_epi([AC_TRY_COMMAND]) -T8,40 -undivertm4_builtin([undivert], _m4_divert([$1])) -T24,17 -m4_location(AC_PROG_AWK)acspecific.m4:118 -T31,16 -m4_location(AC_MINUS_C_MINUS_O)acoldnames.m4:60 -T16,152 -AC_TRY_LINK_FUNC_m4_defun_pro([AC_TRY_LINK_FUNC])AC_LINK_IFELSE([AC_LANG_CALL([], [$1])], [$2], [$3])[]AC_PROVIDE([AC_TRY_LINK_FUNC])[]_m4_defun_epi([AC_TRY_LINK_FUNC]) -T25,16 -m4_location(AC_FIND_XTRA)acoldnames.m4:52 -T14,158 -AC_TRY_COMPILE_m4_defun_pro([AC_TRY_COMPILE])AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4])[]AC_PROVIDE([AC_TRY_COMPILE])[]_m4_defun_epi([AC_TRY_COMPILE]) -T18,940 -AC_CANONICAL_BUILDm4_provide_ifelse([AC_CANONICAL_BUILD], - [m4_warn([syntax], [AC_CANONICAL_BUILD invoked multiple times])], - [_m4_defun_pro([AC_CANONICAL_BUILD])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -m4_divert_text([HELP_CANON], -[[ -System types: - --build=BUILD configure for building on BUILD [guessed]]])dnl -# Make sure we can run config.sub. -$ac_config_sub sun4 >/dev/null 2>&1 || - AC_MSG_ERROR([cannot run $ac_config_sub]) - -AC_CACHE_CHECK([build system type], [ac_cv_build], -[ac_cv_build_alias=$build_alias -test -z "$ac_cv_build_alias" && - ac_cv_build_alias=`$ac_config_guess` -test -z "$ac_cv_build_alias" && - AC_MSG_ERROR([cannot guess build type; you must specify one]) -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || - AC_MSG_ERROR([$ac_config_sub $ac_cv_build_alias failed.]) -]) -_AC_CANONICAL_SPLIT(build) -[]AC_PROVIDE([AC_CANONICAL_BUILD])[]_m4_defun_epi([AC_CANONICAL_BUILD])]) -T11,79 -AH_TEMPLATEAH_VERBATIM([$1], - m4_text_wrap([$2 */], [ ], [/* ])[ -#undef $1]) -T10,42 -AC_PROVIDEm4_define([AC_PROVIDE_$1])m4_provide([$1]) -T17,48 -m4_provide_ifelsem4_ifdef([m4_provide($1)], - [$2], [$3]) -T13,431 -AC_DIVERT_POPm4_ifval([$1], - [m4_if(_m4_divert([$1]), m4_divnum, [], - [m4_fatal([$0($1): unexpected current diversion: ]m4_divnum)])])dnl -m4_popdef([_m4_divert_diversion])dnl -dnl m4_ifndef([_m4_divert_diversion], -dnl [m4_fatal([too many m4_divert_pop])])dnl -m4_builtin([divert], - m4_ifdef([_m4_divert_diversion], - [_m4_divert(_m4_divert_diversion)], -1))dnl -m4_popdef([m4_divert_stack])dnl - -T30,17 -m4_location(AC_CONFIG_AUX_DIR)acgeneral.m4:1642 -T9,0 -AH_OUTPUT -T26,14 -m4_location(AC_CHECK_TYPE)actypes.m4:235 -T9,192 -AC_PREFIX_m4_defun_pro([AC_PREFIX])AC_DIAGNOSE([obsolete], [The macro `AC_PREFIX' is obsolete. -You should run autoupdate.])dnl -AC_PREFIX_PROGRAM($@)[]AC_PROVIDE([AC_PREFIX])[]_m4_defun_epi([AC_PREFIX]) -T9,79 -AC_OBJEXT_m4_defun_pro([AC_OBJEXT])[]AC_PROVIDE([AC_OBJEXT])[]_m4_defun_epi([AC_OBJEXT]) -T14,300 -AC_HELP_STRINGm4_pushdef([AC_Prefix], m4_default([$3], [ ]))dnl -m4_pushdef([AC_Prefix_Format], - [ %-]m4_eval(m4_len(AC_Prefix) - 3)[s ])dnl [ %-23s ] -m4_text_wrap([$2], AC_Prefix, m4_format(AC_Prefix_Format, [$1]))dnl -m4_popdef([AC_Prefix_Format])dnl -m4_popdef([AC_Prefix])dnl - -T27,13 -m4_location(AC_REQUIRE_CPP)aclang.m4:583 -T32,17 -m4_location(AC_CANONICAL_TARGET)acgeneral.m4:1781 -T10,138 -_AC_LIBOBJAS_LITERAL_IF([$1], - [AC_LIBSOURCE([$1.c])], - [$2])dnl -AC_SUBST([LIBOBJS])dnl -LIBOBJS="$LIBOBJS $1.$ac_objext" -T13,1098 -AC_CACHE_SAVEcat >confcache <<\_ACEOF -# 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, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overriden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -_AC_CACHE_DUMP() | - sed [' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end'] >>confcache -if cmp -s $cache_file confcache; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache[]dnl - -T18,1 -_m4_divert(NOTICE)2 -T11,1113 -AC_PROG_F77_m4_defun_pro([AC_PROG_F77])AC_LANG_PUSH(Fortran 77)dnl -AC_ARG_VAR([F77], [Fortran 77 compiler command])dnl -AC_ARG_VAR([FFLAGS], [Fortran 77 compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -AC_CHECK_TOOLS(F77, - [m4_default([$1], - [g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc])]) - -# Provide some information about the compiler. -echo "$as_me:__oline__:" \ - "checking for _AC_LANG compiler version" >&AS_MESSAGE_LOG_FD -ac_compiler=`set X $ac_compile; echo $[2]` -_AC_EVAL([$ac_compiler --version &AS_MESSAGE_LOG_FD]) -_AC_EVAL([$ac_compiler -v &AS_MESSAGE_LOG_FD]) -_AC_EVAL([$ac_compiler -V &AS_MESSAGE_LOG_FD]) - -m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl -m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. -ac_save_ext=$ac_ext -ac_ext=F -_AC_LANG_COMPILER_GNU -ac_ext=$ac_save_ext -G77=`test $ac_compiler_gnu = yes && echo yes` -_AC_PROG_F77_G -AC_LANG_POP(Fortran 77)dnl -[]AC_PROVIDE([AC_PROG_F77])[]_m4_defun_epi([AC_PROG_F77]) -F9,6 -m4_syscmdsyscmd -T10,139 -AC_TRY_RUN_m4_defun_pro([AC_TRY_RUN])AC_RUN_IFELSE([AC_LANG_SOURCE([[$1]])], [$2], [$3], [$4])[]AC_PROVIDE([AC_TRY_RUN])[]_m4_defun_epi([AC_TRY_RUN]) -T22,0 -AC_OUTPUT_COMMANDS_PRE -T16,234 -AC_LINKER_OPTION_m4_defun_pro([AC_LINKER_OPTION])if test "$ac_compiler_gnu" = yes; then - for ac_link_opt in $1; do - $2="[$]$2 -Xlinker $ac_link_opt" - done -else - $2="[$]$2 $1" -fi[]AC_PROVIDE([AC_LINKER_OPTION])[]_m4_defun_epi([AC_LINKER_OPTION]) -T31,16 -m4_location(AC_WORDS_BIGENDIAN)acoldnames.m4:77 -T21,1541 -_AC_LIBOBJ_GETLOADAVGAC_LIBOBJ(getloadavg) -AC_DEFINE(C_GETLOADAVG, 1, [Define if using `getloadavg.c'.]) -# Figure out what our getloadavg.c needs. -ac_have_func=no -AC_CHECK_HEADER(sys/dg_sys_info.h, -[ac_have_func=yes - AC_DEFINE(DGUX, 1, [Define for DGUX with .]) - AC_CHECK_LIB(dgc, dg_sys_info)]) - -AC_CHECK_HEADER(locale.h) -AC_CHECK_FUNCS(setlocale) - -# We cannot check for , because Solaris 2 does not use dwarf (it -# uses stabs), but it is still SVR4. We cannot check for because -# Irix 4.0.5F has the header but not the library. -if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then - ac_have_func=yes - AC_DEFINE(SVR4, 1, [Define on System V Release 4.]) -fi - -if test $ac_have_func = no; then - AC_CHECK_HEADER(inq_stats/cpustats.h, - [ac_have_func=yes - AC_DEFINE(UMAX, 1, [Define for Encore UMAX.]) - AC_DEFINE(UMAX4_3, 1, - [Define for Encore UMAX 4.3 that has - instead of .])]) -fi - -if test $ac_have_func = no; then - AC_CHECK_HEADER(sys/cpustats.h, - [ac_have_func=yes; AC_DEFINE(UMAX)]) -fi - -if test $ac_have_func = no; then - AC_CHECK_HEADERS(mach/mach.h) -fi - -AC_CHECK_HEADERS(nlist.h, -[AC_CHECK_MEMBERS([struct nlist.n_un.n_name], - [AC_DEFINE(NLIST_NAME_UNION, 1, - [Define if your `struct nlist' has an - `n_un' member. Obsolete, depend on - `HAVE_STRUCT_NLIST_N_UN_N_NAME])], [], - [@%:@include ]) -])dnl - -T27,18 -m4_location(AC_FUNC_ALLOCA)acfunctions.m4:245 -T21,109 -_AC_CONFIG_DEPENDENCYm4_ifval([$2], - [AC_FILE_DEPENDENCY_TRACE($@)], - [AC_FILE_DEPENDENCY_TRACE([$1], [$1.in])]) -T12,206 -AC_ST_BLOCKS_m4_defun_pro([AC_ST_BLOCKS])AC_DIAGNOSE([obsolete], [The macro `AC_ST_BLOCKS' is obsolete. -You should run autoupdate.])dnl -AC_STRUCT_ST_BLOCKS($@)[]AC_PROVIDE([AC_ST_BLOCKS])[]_m4_defun_epi([AC_ST_BLOCKS]) -T23,17 -m4_location(AC_MINGW32)acspecific.m4:937 -T25,0 -m4_include(acoldnames.m4) -T24,16 -m4_location(AC_UNISTD_H)acheaders.m4:391 -T13,52 -m4_cr_LettersabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -T8,184 -AC_WAIT3_m4_defun_pro([AC_WAIT3])AC_DIAGNOSE([obsolete], [The macro `AC_WAIT3' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_WAIT3($@)[]AC_PROVIDE([AC_WAIT3])[]_m4_defun_epi([AC_WAIT3]) -T16,5 -_m4_divert(GROW)10000 -T10,523 -AC_ARG_VAR_m4_defun_pro([AC_ARG_VAR])m4_divert_once([HELP_VAR], [[ -Some influential environment variables:]])dnl -m4_divert_once([HELP_VAR_END], [[ -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations.]])dnl -m4_expand_once([m4_divert_once([HELP_VAR], - [AC_HELP_STRING([$1], [$2], [ ])])], - [$0($1)])dnl -_AC_ARG_VAR_PRECIOUS([$1])dnl -[]AC_PROVIDE([AC_ARG_VAR])[]_m4_defun_epi([AC_ARG_VAR]) -F6,6 -divnumdivnum -T29,14 -m4_location(AC_C_LONG_DOUBLE)aclang.m4:1529 -T19,659 -_AC_INIT_CONFIG_LOGm4_divert_text([INIT_PREPARE], -[m4_define([AS_MESSAGE_LOG_FD], 5)dnl -exec AS_MESSAGE_LOG_FD>config.log -cat >&AS_MESSAGE_LOG_FD <&AS_MESSAGE_LOG_FD - -cat >&AS_MESSAGE_LOG_FD </dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done], - [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD -cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD -AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])]) -rm -f conftest.$ac_cv_objext conftest.$ac_ext]) -AC_SUBST([OBJEXT], [$ac_cv_objext])dnl -ac_objext=$OBJEXT - -T17,212 -_AS_TR_SH_PREPARE_m4_defun_pro([_AS_TR_SH_PREPARE])m4_require([_AS_CR_PREPARE])dnl -# Sed expression to map a string onto a valid variable name. -as_tr_sh="sed y%*+%pp%;s%[[^_$as_cr_alnum]]%_%g" -[]_m4_defun_epi([_AS_TR_SH_PREPARE]) -T17,2038 -_AC_LIBOBJ_ALLOCA# 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. -AC_LIBSOURCES(alloca.c) -AC_SUBST(ALLOCA, alloca.$ac_objext)dnl -AC_DEFINE(C_ALLOCA, 1, [Define if using `alloca.c'.]) - -AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray, -[AC_EGREP_CPP(webecray, -[#if defined(CRAY) && ! defined(CRAY2) -webecray -#else -wenotbecray -#endif -], ac_cv_os_cray=yes, ac_cv_os_cray=no)]) -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - AC_CHECK_FUNC($ac_func, - [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func, - [Define to one of `_getb67', `GETB67', - `getb67' for Cray-2 and Cray-YMP - systems. This function is required for - `alloca.c' support on those systems.]) - break]) - done -fi - -AC_CACHE_CHECK([stack direction for C alloca], - [ac_cv_c_stack_direction], -[AC_RUN_IFELSE([AC_LANG_SOURCE( -[int -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; -} - -int -main () -{ - exit (find_stack_direction () < 0); -}])], - [ac_cv_c_stack_direction=1], - [ac_cv_c_stack_direction=-1], - [ac_cv_c_stack_direction=0])]) -AH_VERBATIM([STACK_DIRECTION], -[/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -@%:@undef STACK_DIRECTION])dnl -AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction) - -T21,19 -m4_location(AC_VFORK)acfunctions.m4:1585 -T26,17 -m4_location(AC_CHECK_FUNC)acfunctions.m4:74 -T26,16 -m4_location(AC_DIR_HEADER)acheaders.m4:454 -F8,8 -__file____file__ -T22,17 -m4_location(AC_OUTPUT)acgeneral.m4:3443 -T15,504 -AC_HAVE_LIBRARY_m4_defun_pro([AC_HAVE_LIBRARY])AC_DIAGNOSE([obsolete], [The macro `AC_HAVE_LIBRARY' is obsolete. -You should run autoupdate.])dnl -m4_pushdef([AC_Lib_Name], - m4_patsubst(m4_patsubst([[$1]], - [lib\([^\.]*\)\.a], [\1]), - [-l], []))dnl -AC_CHECK_LIB(AC_Lib_Name, main, [$2], [$3], [$4])dnl -ac_cv_lib_[]AC_Lib_Name()=ac_cv_lib_[]AC_Lib_Name()_main -m4_popdef([AC_Lib_Name])dnl -[]AC_PROVIDE([AC_HAVE_LIBRARY])[]_m4_defun_epi([AC_HAVE_LIBRARY]) -T31,18 -m4_location(AC_FUNC_GETLOADAVG)acfunctions.m4:565 -T30,17 -m4_location(AC_COMPILE_IFELSE)acgeneral.m4:2733 -T15,210 -AC_LANG_RESTORE_m4_defun_pro([AC_LANG_RESTORE])AC_DIAGNOSE([obsolete], [The macro `AC_LANG_RESTORE' is obsolete. -You should run autoupdate.])dnl -AC_LANG_POP($@)[]AC_PROVIDE([AC_LANG_RESTORE])[]_m4_defun_epi([AC_LANG_RESTORE]) -T9,63 -m4_appendm4_define([$1], - m4_ifdef([$1], [m4_defn([$1])])[$2]) -T18,582 -_AC_PREPROC_IFELSE_m4_defun_pro([_AC_PREPROC_IFELSE])m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl -if _AC_EVAL_STDERR([$ac_cpp conftest.$ac_ext]) >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_[]_AC_LANG_ABBREV[]_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - m4_default([$2], :) -else - echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD - $3 -fi -rm -f conftest.err m4_ifval([$1], [conftest.$ac_ext])[]dnl -[]AC_PROVIDE([_AC_PREPROC_IFELSE])[]_m4_defun_epi([_AC_PREPROC_IFELSE]) -T9,189 -AC_SIZE_T_m4_defun_pro([AC_SIZE_T])AC_DIAGNOSE([obsolete], [The macro `AC_SIZE_T' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_SIZE_T($@)[]AC_PROVIDE([AC_SIZE_T])[]_m4_defun_epi([AC_SIZE_T]) -T9,115 -AC_LIBOBJ_AC_LIBOBJ([$1], - [AC_DIAGNOSE(syntax, - [$0($1): you should use literals])])dnl - -T30,14 -m4_location(AC_TYPE_GETGROUPS)actypes.m4:284 -T10,137 -AC_TRY_CPP_m4_defun_pro([AC_TRY_CPP])AC_PREPROC_IFELSE([AC_LANG_SOURCE([[$1]])], [$2], [$3])[]AC_PROVIDE([AC_TRY_CPP])[]_m4_defun_epi([AC_TRY_CPP]) -T8,252 -AS_TR_SH_m4_defun_pro([AS_TR_SH])m4_require([_$0_PREPARE])dnl -AS_LITERAL_IF([$1], - [m4_patsubst(m4_translit([[$1]], [*+], [pp]), - [[^a-zA-Z0-9_]], [_])], - [`echo "$1" | $as_tr_sh`])[]_m4_defun_epi([AS_TR_SH]) -T16,390 -_AC_INIT_VERSIONm4_divert_text([VERSION_BEGIN], -[if $ac_init_version; then - cat <<\EOF])dnl -m4_ifset([AC_PACKAGE_STRING], - [m4_divert_text([VERSION_BEGIN], - [dnl -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])configure[]dnl -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) -generated by GNU Autoconf AC_ACVERSION])]) -m4_divert_text([VERSION_END], -[EOF - exit 0 -fi])dnl - -T21,19 -m4_location(AC_WAIT3)acfunctions.m4:1666 -T27,18 -m4_location(AC_FUNC_MEMCMP)acfunctions.m4:773 -T13,351 -AC_CHECK_TOOL_m4_defun_pro([AC_CHECK_TOOL])if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG([$1], [${ac_tool_prefix}$2], [${ac_tool_prefix}$2], , [$4]) -fi -if test -z "$ac_cv_prog_$1"; then - ac_ct_$1=$$1 - AC_CHECK_PROG([ac_ct_$1], [$2], [$2], [$3], [$4]) - $1=$ac_ct_$1 -else - $1="$ac_cv_prog_$1" -fi -[]AC_PROVIDE([AC_CHECK_TOOL])[]_m4_defun_epi([AC_CHECK_TOOL]) -T24,14 -m4_location(AC_F77_MAIN)aclang.m4:2027 -T17,209 -_AC_LIBOBJ_STRTODAC_LIBOBJ(strtod) -AC_CHECK_FUNC(pow) -if test $ac_cv_func_pow = no; then - AC_CHECK_LIB(m, pow, - [POW_LIB=-lm], - [AC_MSG_WARN([can't find library containing definition of pow])]) -fi - -T11,88 -AS_BASENAME_m4_defun_pro([AS_BASENAME])echo "$1" |sed 's,.*[[\\/]],,'[]_m4_defun_epi([AS_BASENAME]) -T22,16 -m4_location(AC_SIZE_T)acoldnames.m4:67 -T26,18 -m4_location(AC_HAVE_FUNCS)acfunctions.m4:107 -T14,2989 -_AC_FUNC_VFORK_m4_defun_pro([_AC_FUNC_VFORK])AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works, -[AC_TRY_RUN([/* Thanks to Paul Eggert for this test. */ -#include -#include -#include -#if HAVE_UNISTD_H -# include -#endif -#if HAVE_VFORK_H -# include -#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 , but some compilers - (e.g. gcc -O) don't grok . 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); - } - } -} - -int -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 - ); - } -}], - [ac_cv_func_vfork_works=yes], - [ac_cv_func_vfork_works=no], - [ac_cv_func_vfork_works=cross])]) -[]AC_PROVIDE([_AC_FUNC_VFORK])[]_m4_defun_epi([_AC_FUNC_VFORK]) -T15,161 -_AC_COMPUTE_INTif test "$cross_compiling" = yes; then - _AC_COMPUTE_INT_COMPILE([$1], [$2], [$3]) -else - _AC_COMPUTE_INT_RUN([$1], [$2], [$3], [$4]) -fi -rm -f conftest.val[]dnl - -T10,103 -m4_tolowerm4_translit([$1], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ], - [abcdefghijklmnopqrstuvwxyz]) -T34,18 -m4_location(AC_FUNC_CLOSEDIR_VOID)acfunctions.m4:311 -T11,555 -AC_MEMORY_H_m4_defun_pro([AC_MEMORY_H])AC_DIAGNOSE([obsolete], [The macro `AC_MEMORY_H' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], [$0: Remove this warning and -`AC_CHECK_HEADER(memory.h, AC_DEFINE(...))' when you ajust your code to -use and HAVE_STRING_H and HAVE_MEMORY_H, not NEED_MEMORY_H.])dnl -AC_CHECK_HEADER(memory.h, - [AC_DEFINE([NEED_MEMORY_H], 1, - [Same as `HAVE_MEMORY_H', don't depend on me.])]) -AC_CHECK_HEADERS(string.h memory.h) -[]AC_PROVIDE([AC_MEMORY_H])[]_m4_defun_epi([AC_MEMORY_H]) -F9,6 -m4_regexpregexp -T26,14 -m4_location(AC_TYPE_OFF_T)actypes.m4:308 -T30,18 -m4_location(AC_FUNC_GETGROUPS)acfunctions.m4:422 -T27,17 -m4_location(AC_CHECK_PROGS)acgeneral.m4:2355 -T17,136 -AC_CONFIG_AUX_DIR_m4_defun_pro([AC_CONFIG_AUX_DIR])AC_CONFIG_AUX_DIRS($1 $srcdir/$1)[]AC_PROVIDE([AC_CONFIG_AUX_DIR])[]_m4_defun_epi([AC_CONFIG_AUX_DIR]) -T29,11 -m4_location(_AS_LN_S_PREPARE)m4sh.m4:353 -T27,17 -m4_location(AC_CHECK_TOOLS)acgeneral.m4:2471 -T17,49 -m4_warning_ifelse_m4_warning_ifelse([$1], [$2], [$3], m4_warnings) -T27,14 -m4_location(ac_cv_prog_g77)aclang.m4:1270 -T14,65 -m4_list_appendm4_define([$1], - m4_ifdef([$1], [m4_defn([$1]), ])[$2]) -T8,101 -m4_fatalm4_errprintn(m4_location[: error: $1])dnl -m4_expansion_stack_dump()dnl -m4_exit(m4_if([$2],, 1, [$2])) -T20,495 -AC_HEADER_TIOCGWINSZ_m4_defun_pro([AC_HEADER_TIOCGWINSZ])AC_REQUIRE([AC_SYS_POSIX_TERMIOS])dnl -if test $ac_cv_sys_posix_termios = yes; then - _AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H -fi -if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then - _AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL - if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then - AC_DEFINE(GWINSZ_IN_SYS_IOCTL,1, - [Define if `TIOCGWINSZ' requires ]) - fi -fi -[]AC_PROVIDE([AC_HEADER_TIOCGWINSZ])[]_m4_defun_epi([AC_HEADER_TIOCGWINSZ]) -T21,733 -_AC_COMPILER_EXEEXT_OAC_MSG_CHECKING([for executable suffix]) -AS_IF([AC_TRY_EVAL(ac_link)], -[# If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']` - export ac_cv_exeext - break;; - * ) break;; - esac -done], - [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and link])]) -rm -f conftest$ac_cv_exeext -AC_MSG_RESULT([$ac_cv_exeext]) - -T17,153 -AC_PREFIX_DEFAULT_m4_defun_pro([AC_PREFIX_DEFAULT])m4_divert_text([DEFAULTS], [ac_default_prefix=$1])[]AC_PROVIDE([AC_PREFIX_DEFAULT])[]_m4_defun_epi([AC_PREFIX_DEFAULT]) -T25,13 -m4_location(AC_LANG_CALL)aclang.m4:315 -T21,16 -m4_location(AC_FD_CC)acgeneral.m4:575 -T20,1 -_m4_divert(DEFAULTS)3 -T28,17 -m4_location(_AC_EVAL_STDERR)acgeneral.m4:2160 -T24,17 -m4_location(AC_TRY_EVAL)acgeneral.m4:2168 -T29,800 -_AC_PROG_CXX_EXIT_DECLARATIONfor ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include -$ac_declaration], - [exit (42);])], - [], - [continue]) - _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration], - [exit (42);])], - [break]) -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -T14,644 -AC_SEARCH_LIBS_m4_defun_pro([AC_SEARCH_LIBS])AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1], -[ac_func_search_save_LIBS=$LIBS -ac_cv_search_$1=no -AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"]) -if test "$ac_cv_search_$1" = no; then - for ac_lib in $2; do - LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS" - AC_TRY_LINK_FUNC([$1], - [ac_cv_search_$1="-l$ac_lib" -break]) - done -fi -LIBS=$ac_func_search_save_LIBS]) -AS_IF([test "$ac_cv_search_$1" != no], - [test "$ac_cv_search_$1" = "none required" || LIBS="$ac_cv_search_$1 $LIBS" - $3], - [$4])dnl -[]AC_PROVIDE([AC_SEARCH_LIBS])[]_m4_defun_epi([AC_SEARCH_LIBS]) -T6,654 -AC_USG_m4_defun_pro([AC_USG])AC_DIAGNOSE([obsolete], [The macro `AC_USG' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], -[$0: Remove `AC_MSG_CHECKING', `AC_TRY_LINK' and this `AC_WARNING' -when you ajust your code to use HAVE_STRING_H.])dnl -AC_MSG_CHECKING([for BSD string and memory functions]) -AC_TRY_LINK([@%:@include ], [rindex(0, 0); bzero(0, 0);], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no) - AC_DEFINE(USG, 1, - [Define if you do not have , index, bzero, etc... - This symbol is obsolete, you should not depend upon it.])]) -AC_CHECK_HEADERS(string.h)[]AC_PROVIDE([AC_USG])[]_m4_defun_epi([AC_USG]) -T26,19 -m4_location(AC_FUNC_VFORK)acfunctions.m4:1581 -T30,17 -m4_location(AC_CONFIG_HEADERS)acgeneral.m4:3291 -T29,17 -m4_location(AC_CONFIG_HEADER)acgeneral.m4:3304 -T28,17 -m4_location(AC_PROG_INSTALL)acspecific.m4:264 -T14,885 -_AC_CACHE_DUMP# 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 \ - ["s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"] - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - ["s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"] - ;; - esac; -}dnl - -T17,524 -AC_PREFIX_PROGRAM_m4_defun_pro([AC_PREFIX_PROGRAM])dnl Get an upper case version of $[1]. -m4_pushdef([AC_Prog], m4_toupper([$1]))dnl -if test "x$prefix" = xNONE; then -dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle. - echo $ECHO_N "checking for prefix by $ECHO_C" >&AS_MESSAGE_FD - AC_PATH_PROG(m4_quote(AC_Prog), [$1]) - if test -n "$ac_cv_path_[]AC_Prog"; then - prefix=`AS_DIRNAME(["$ac_cv_path_[]AC_Prog"])` - fi -fi -m4_popdef([AC_Prog])dnl -[]AC_PROVIDE([AC_PREFIX_PROGRAM])[]_m4_defun_epi([AC_PREFIX_PROGRAM]) -T32,17 -m4_location(AC_DECL_SYS_SIGLIST)acspecific.m4:313 -T11,126 -AC_PROG_AWK_m4_defun_pro([AC_PROG_AWK])AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )[]AC_PROVIDE([AC_PROG_AWK])[]_m4_defun_epi([AC_PROG_AWK]) -T31,11 -m4_location(_AS_TR_CPP_PREPARE)m4sh.m4:589 -T23,553 -_AS_BROKEN_TEST_PREPARE_m4_defun_pro([_AS_BROKEN_TEST_PREPARE])# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -@%:@! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - as_executable_p="test -x" -elif test -f conf$$.file >/dev/null 2>&1; then - as_executable_p="test -f" -else - AS_ERROR([cannot check whether a file is executable on this system]) -fi -rm -f conf$$.file -[]_m4_defun_epi([_AS_BROKEN_TEST_PREPARE]) -T17,155 -AC_COMPILE_IFELSE_m4_defun_pro([AC_COMPILE_IFELSE])AC_LANG_COMPILER_REQUIRE()dnl -_AC_COMPILE_IFELSE($@)[]AC_PROVIDE([AC_COMPILE_IFELSE])[]_m4_defun_epi([AC_COMPILE_IFELSE]) -T9,189 -AC_ALLOCA_m4_defun_pro([AC_ALLOCA])AC_DIAGNOSE([obsolete], [The macro `AC_ALLOCA' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_ALLOCA($@)[]AC_PROVIDE([AC_ALLOCA])[]_m4_defun_epi([AC_ALLOCA]) -T30,16 -m4_location(AC_PROGRAMS_CHECK)acoldnames.m4:33 -T22,13 -m4_location(AC_LANG_C)aclang.m4:212 -T17,189 -_AS_UNSET_PREPARE_m4_defun_pro([_AS_UNSET_PREPARE])# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi -[]_m4_defun_epi([_AS_UNSET_PREPARE]) -T10,175 -AC_C_CROSS_m4_defun_pro([AC_C_CROSS])AC_DIAGNOSE([obsolete], [The macro `AC_C_CROSS' is obsolete. -You should run autoupdate.])dnl -[]AC_PROVIDE([AC_C_CROSS])[]_m4_defun_epi([AC_C_CROSS]) -T31,17 -m4_location(_AC_LINK_FILES_CNT)acgeneral.m4:3370 -T19,91 -_AC_COMPUTE_INT_RUNAC_RUN_IFELSE([AC_LANG_INT_SAVE([$3], [$1])], - [$2=`cat conftest.val`], [$4]) -F9,6 -m4_definedefine -T17,221 -AC_YYTEXT_POINTER_m4_defun_pro([AC_YYTEXT_POINTER])AC_DIAGNOSE([obsolete], [The macro `AC_YYTEXT_POINTER' is obsolete. -You should run autoupdate.])dnl -AC_DECL_YYTEXT($@)[]AC_PROVIDE([AC_YYTEXT_POINTER])[]_m4_defun_epi([AC_YYTEXT_POINTER]) -T28,18 -m4_location(AC_FUNC_GETPGRP)acfunctions.m4:671 -T18,274 -_AC_INIT_COPYRIGHTAC_COPYRIGHT( -[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it.], - [VERSION_FSF])dnl - -F6,6 -sysvalsysval -T26,18 -m4_location(AC_FUNC_CHECK)acfunctions.m4:102 -F11,8 -m4_translittranslit -T26,19 -m4_location(AC_FUNC_WAIT3)acfunctions.m4:1661 -T9,65 -m4_ifvalnm4_if([$1], - [], [m4_n([$3])], - [m4_n([$2])]) -T29,1105 -_AC_PROG_PREPROC_WORKS_IFELSE_m4_defun_pro([_AC_PROG_PREPROC_WORKS_IFELSE])ac_preproc_ok=false -for ac_[]_AC_LANG_ABBREV[]_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - _AC_PREPROC_IFELSE([AC_LANG_SOURCE([[@%:@include - Syntax error]])], - [], - [# Broken: fails on valid input. -continue]) - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - _AC_PREPROC_IFELSE([AC_LANG_SOURCE([[@%:@include ]])], - [# Broken: success on invalid input. -continue], - [# Passes both tests. -ac_preproc_ok=: -break]) - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -AS_IF([$ac_preproc_ok], [$1], [$2])[]AC_PROVIDE([_AC_PROG_PREPROC_WORKS_IFELSE])[]_m4_defun_epi([_AC_PROG_PREPROC_WORKS_IFELSE]) -T8,95 -undefinem4_ifndef([$1], - [m4_fatal([$0: undefined macro: $1])])dnl -m4_builtin([undefine], $@) -T24,16 -m4_location(AC_TEST_CPP)acoldnames.m4:39 -T23,2 -_m4_divert(VERSION_FSF)21 -T8,70 -AC_SUBSTm4_ifvaln([$2], [$1=$2])[]dnl -_AC_SUBST([$1], [s,@$1@,[$]$1,;t t])dnl - -T12,326 -AC_ARG_ARRAY_m4_defun_pro([AC_ARG_ARRAY])AC_DIAGNOSE([obsolete], [The macro `AC_ARG_ARRAY' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], -[$0: no longer implemented: don't do unportable things -with arguments. Remove this warning when you adjust your code.])[]AC_PROVIDE([AC_ARG_ARRAY])[]_m4_defun_epi([AC_ARG_ARRAY]) -T27,17 -m4_location(AC_TRY_COMMAND)acgeneral.m4:2175 -T31,14 -m4_location(AC_C_CHAR_UNSIGNED)aclang.m4:1503 -T8,560 -AC_MINIX_m4_defun_pro([AC_MINIX])AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl -AC_BEFORE([$0], [AC_RUN_IFELSE])dnl -AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=) -if test "$MINIX" = yes; then - AC_DEFINE(_POSIX_SOURCE, 1, - [Define if you need to in order for `stat' and other things to - work.]) - AC_DEFINE(_POSIX_1_SOURCE, 2, - [Define if the system does not provide POSIX.1 features except - with this defined.]) - AC_DEFINE(_MINIX, 1, - [Define if on MINIX.]) -fi -[]AC_PROVIDE([AC_MINIX])[]_m4_defun_epi([AC_MINIX]) -T12,24 -m4_rename_m4m4_rename([$1], [m4_$1]) -T15,211 -AC_PROGRAM_PATH_m4_defun_pro([AC_PROGRAM_PATH])AC_DIAGNOSE([obsolete], [The macro `AC_PROGRAM_PATH' is obsolete. -You should run autoupdate.])dnl -AC_PATH_PROG($@)[]AC_PROVIDE([AC_PROGRAM_PATH])[]_m4_defun_epi([AC_PROGRAM_PATH]) -T13,296 -_m4_defun_prom4_expansion_stack_push(m4_defn([m4_location($1)])[: $1 is expanded from...])dnl -m4_pushdef([_m4_expanding($1)])dnl -m4_ifdef([_m4_divert_dump], - [m4_divert_push(m4_defn([_m4_divert_diversion]))], - [m4_copy([_m4_divert_diversion], [_m4_divert_dump])dnl -m4_divert_push([GROW])])dnl - -T8,26 -AU_ALIASAU_DEFUN([$1], [$2($][@)]) -F7,4 -m4_decrdecr -F10,7 -m4_pushdefpushdef -T31,19 -m4_location(AC_FUNC_STRERROR_R)acfunctions.m4:1310 -T21,16 -m4_location(AC_ERROR)acoldnames.m4:28 -T16,123 -AC_CONFIG_HEADER_m4_defun_pro([AC_CONFIG_HEADER])AC_CONFIG_HEADERS([$1])[]AC_PROVIDE([AC_CONFIG_HEADER])[]_m4_defun_epi([AC_CONFIG_HEADER]) -F9,6 -m4_divnumdivnum -T29,17 -m4_location(AC_REPLACE_FUNCS)acfunctions.m4:97 -T29,16 -m4_location(AC_PROGRAMS_PATH)acoldnames.m4:34 -T23,19 -m4_location(AC_STRCOLL)acfunctions.m4:1378 -T26,17 -m4_location(AC_LINK_FILES)acgeneral.m4:3366 -T14,53 -m4_cr_symbols1abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ -T20,17 -m4_location(AC_WITH)acgeneral.m4:1481 -T33,14 -m4_location(AC_LANG_PREPROC(C++))aclang.m4:1092 -T14,63 -m4_cr_symbols2abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789 -T18,225 -AC_MINUS_C_MINUS_O_m4_defun_pro([AC_MINUS_C_MINUS_O])AC_DIAGNOSE([obsolete], [The macro `AC_MINUS_C_MINUS_O' is obsolete. -You should run autoupdate.])dnl -AC_PROG_CC_C_O($@)[]AC_PROVIDE([AC_MINUS_C_MINUS_O])[]_m4_defun_epi([AC_MINUS_C_MINUS_O]) -T9,219 -AC_ENABLE_m4_defun_pro([AC_ENABLE])AC_DIAGNOSE([obsolete], [The macro `AC_ENABLE' is obsolete. -You should run autoupdate.])dnl -AC_ARG_ENABLE([$1], [ --enable-$1], [$2], [$3])[]AC_PROVIDE([AC_ENABLE])[]_m4_defun_epi([AC_ENABLE]) -T15,800 -AC_CHECK_MEMBER_m4_defun_pro([AC_CHECK_MEMBER])AS_LITERAL_IF([$1], [], - [AC_FATAL([$0: requires literal arguments])])dnl -m4_if(m4_regexp([$1], [\.]), -1, - [AC_FATAL([$0: Did not see any dot in `$1'])])dnl -AS_VAR_PUSHDEF([ac_Member], [ac_cv_member_$1])dnl -dnl Extract the aggregate name, and the member name -AC_CACHE_CHECK([for $1], ac_Member, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])], -[dnl AGGREGATE ac_aggr; -static m4_patsubst([$1], [\..*]) ac_aggr; -dnl ac_aggr.MEMBER; -if (ac_aggr.m4_patsubst([$1], [^[^.]*\.])) -return 0;])], - [AS_VAR_SET(ac_Member, yes)], - [AS_VAR_SET(ac_Member, no)])]) -AS_IF([test AS_VAR_GET(ac_Member) = yes], [$2], [$3])dnl -AS_VAR_POPDEF([ac_Member])dnl -[]AC_PROVIDE([AC_CHECK_MEMBER])[]_m4_defun_epi([AC_CHECK_MEMBER]) -T25,19 -m4_location(AC_FUNC_FORK)acfunctions.m4:1451 -T15,214 -fp_FUNC_FNMATCH_m4_defun_pro([fp_FUNC_FNMATCH])AC_DIAGNOSE([obsolete], [The macro `fp_FUNC_FNMATCH' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_FNMATCH($@)[]AC_PROVIDE([fp_FUNC_FNMATCH])[]_m4_defun_epi([fp_FUNC_FNMATCH]) -T31,13 -m4_location(AC_LANG_PREPROC(C))aclang.m4:838 -T6,86 -AH_TOPm4_define([_AH_COUNTER], m4_incr(_AH_COUNTER))dnl -AH_VERBATIM([0000]_AH_COUNTER, [$1]) -T13,415 -AC_RUN_IFELSE_m4_defun_pro([AC_RUN_IFELSE])AC_LANG_COMPILER_REQUIRE()dnl -m4_ifval([$4], [], - [AC_DIAGNOSE([cross], - [$0 called without default to allow cross compiling])])dnl -if test "$cross_compiling" = yes; then - m4_default([$4], - [AC_MSG_ERROR([cannot run test program while cross compiling])]) -else - _AC_RUN_IFELSE($@) -fi[]AC_PROVIDE([AC_RUN_IFELSE])[]_m4_defun_epi([AC_RUN_IFELSE]) -T27,14 -m4_location(AC_INT_16_BITS)actypes.m4:383 -T8,138 -AU_DEFUNAU_DEFINE([$1], - [AC_DIAGNOSE([obsolete], [The macro `$1' is obsolete. -You should run autoupdate.])dnl -$2], - [$3])dnl - -T13,60 -AS_LITERAL_IFm4_if(m4_regexp([$1], [[`$]]), - -1, [$2], - [$3]) -T13,211 -AC_ST_BLKSIZE_m4_defun_pro([AC_ST_BLKSIZE])AC_DIAGNOSE([obsolete], [The macro `AC_ST_BLKSIZE' is obsolete. -You should run autoupdate.])dnl -AC_STRUCT_ST_BLKSIZE($@)[]AC_PROVIDE([AC_ST_BLKSIZE])[]_m4_defun_epi([AC_ST_BLKSIZE]) -T13,539 -AC_CHECK_FILE_m4_defun_pro([AC_CHECK_FILE])AC_DIAGNOSE([cross], - [cannot check for file existence when cross compiling])dnl -AS_VAR_PUSHDEF([ac_File], [ac_cv_file_$1])dnl -AC_CACHE_CHECK([for $1], ac_File, -[test "$cross_compiling" = yes && - AC_MSG_ERROR([cannot check for file existence when cross compiling]) -if test -r "$1"; then - AS_VAR_SET(ac_File, yes) -else - AS_VAR_SET(ac_File, no) -fi]) -AS_IF([test AS_VAR_GET(ac_File) = yes], [$2], [$3])[]dnl -AS_VAR_POPDEF([ac_File])dnl -[]AC_PROVIDE([AC_CHECK_FILE])[]_m4_defun_epi([AC_CHECK_FILE]) -T27,14 -m4_location(_AC_PROG_F77_V)aclang.m4:1807 -T13,26 -m4_cr_lettersabcdefghijklmnopqrstuvwxyz -T23,250 -AC_SYS_SIGLIST_DECLARED_m4_defun_pro([AC_SYS_SIGLIST_DECLARED])AC_DIAGNOSE([obsolete], [The macro `AC_SYS_SIGLIST_DECLARED' is obsolete. -You should run autoupdate.])dnl -AC_DECL_SYS_SIGLIST($@)[]AC_PROVIDE([AC_SYS_SIGLIST_DECLARED])[]_m4_defun_epi([AC_SYS_SIGLIST_DECLARED]) -T10,252 -AC_LANG(C)ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AS_MESSAGE_LOG_FD' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -T19,683 -AC_DECL_SYS_SIGLIST_m4_defun_pro([AC_DECL_SYS_SIGLIST])AC_CACHE_CHECK([for sys_siglist declaration in signal.h or unistd.h], - ac_cv_decl_sys_siglist, -[AC_COMPILE_IFELSE( -[AC_LANG_PROGRAM([#include -#include -/* NetBSD declares sys_siglist in unistd.h. */ -#if HAVE_UNISTD_H -# include -#endif -], [char *msg = *(sys_siglist + 1);])], - [ac_cv_decl_sys_siglist=yes], - [ac_cv_decl_sys_siglist=no])]) -if test $ac_cv_decl_sys_siglist = yes; then - AC_DEFINE(SYS_SIGLIST_DECLARED, 1, - [Define if `sys_siglist' is declared by or .]) -fi -[]AC_PROVIDE([AC_DECL_SYS_SIGLIST])[]_m4_defun_epi([AC_DECL_SYS_SIGLIST]) -T14,44 -m4_divert_oncem4_expand_once([m4_divert_text([$1], [$2])]) -T12,4770 -AC_PATH_XTRA_m4_defun_pro([AC_PATH_XTRA])AC_REQUIRE([AC_PATH_X])dnl -if test "$no_x" = yes; then - # Not all programs may use this symbol, but it does not hurt to define it. - AC_DEFINE([X_DISPLAY_MISSING], 1, - [Define if the X Window System is missing or not being used.]) - X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= -else - if test -n "$x_includes"; then - X_CFLAGS="$X_CFLAGS -I$x_includes" - fi - - # It would also be nice to do this for all -L options, not just this one. - if test -n "$x_libraries"; then - X_LIBS="$X_LIBS -L$x_libraries" -dnl FIXME: banish uname from this macro! - # For Solaris; some versions of Sun CC require a space after -R and - # others require no space. Words are not sufficient . . . . - case `(uname -sr) 2>/dev/null` in - "SunOS 5"*) - AC_MSG_CHECKING([whether -R must be followed by a space]) - ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" - AC_LINK_IFELSE([AC_LANG_PROGRAM()], ac_R_nospace=yes, ac_R_nospace=no) - if test $ac_R_nospace = yes; then - AC_MSG_RESULT([no]) - X_LIBS="$X_LIBS -R$x_libraries" - else - LIBS="$ac_xsave_LIBS -R $x_libraries" - AC_LINK_IFELSE([AC_LANG_PROGRAM()], ac_R_space=yes, ac_R_space=no) - if test $ac_R_space = yes; then - AC_MSG_RESULT([yes]) - X_LIBS="$X_LIBS -R $x_libraries" - else - AC_MSG_RESULT([neither works]) - fi - fi - LIBS=$ac_xsave_LIBS - esac - fi - - # Check for system-dependent libraries X programs must link with. - # Do this before checking for the system-independent R6 libraries - # (-lICE), since we may need -lsocket or whatever for X linking. - - if test "$ISC" = yes; then - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" - else - # Martyn Johnson says this is needed for Ultrix, if the X - # libraries were built with DECnet support. And Karl Berry says - # the Alpha needs dnet_stub (dnet does not exist). - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" - AC_TRY_LINK_FUNC(XOpenDisplay, , - [AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) - if test $ac_cv_lib_dnet_dnet_ntoa = no; then - AC_CHECK_LIB(dnet_stub, dnet_ntoa, - [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) - fi]) - LIBS="$ac_xsave_LIBS" - - # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, - # to get the SysV transport functions. - # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) - # needs -lnsl. - # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to T.E. Dickey. - # The functions gethostbyname, getservbyname, and inet_addr are - # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. - AC_CHECK_FUNC(gethostbyname) - if test $ac_cv_func_gethostbyname = no; then - AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") - if test $ac_cv_lib_nsl_gethostbyname = no; then - AC_CHECK_LIB(bsd, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd") - fi - fi - - # lieder@skyler.mavd.honeywell.com says without -lsocket, - # socket/setsockopt and other routines are undefined under SCO ODT - # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary - # on later versions), says Simon Leinen: it contains gethostby* - # variants that don't use the nameserver (or something). -lsocket - # must be given before -lnsl if both are needed. We assume that - # if connect needs -lnsl, so does gethostbyname. - AC_CHECK_FUNC(connect) - if test $ac_cv_func_connect = no; then - AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , - $X_EXTRA_LIBS) - fi - - # Guillermo Gomez says -lposix is necessary on A/UX. - AC_CHECK_FUNC(remove) - if test $ac_cv_func_remove = no; then - AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") - fi - - # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. - AC_CHECK_FUNC(shmat) - if test $ac_cv_func_shmat = no; then - AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") - fi - fi - - # Check for libraries that X11R6 Xt/Xaw programs need. - ac_save_LDFLAGS=$LDFLAGS - test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" - # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to - # check for ICE first), but we must link in the order -lSM -lICE or - # we get undefined symbols. So assume we have SM if we have ICE. - # These have to be linked with before -lX11, unlike the other - # libraries we check for below, so use a different variable. - # John Interrante, Karl Berry - AC_CHECK_LIB(ICE, IceConnectionNumber, - [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) - LDFLAGS=$ac_save_LDFLAGS - -fi -AC_SUBST(X_CFLAGS)dnl -AC_SUBST(X_PRE_LIBS)dnl -AC_SUBST(X_LIBS)dnl -AC_SUBST(X_EXTRA_LIBS)dnl -[]AC_PROVIDE([AC_PATH_XTRA])[]_m4_defun_epi([AC_PATH_XTRA]) -T23,0 -AC_OUTPUT_COMMANDS_POST -T15,365 -AC_C_PROTOTYPES_m4_defun_pro([AC_C_PROTOTYPES])AC_REQUIRE([AC_PROG_CC_STDC])dnl -AC_MSG_CHECKING([for function prototypes]) -if test "$ac_cv_prog_cc_stdc" != no; then - AC_MSG_RESULT([yes]) - AC_DEFINE(PROTOTYPES, 1, - [Define if the C compiler supports function prototypes.]) -else - AC_MSG_RESULT([no]) -fi -[]AC_PROVIDE([AC_C_PROTOTYPES])[]_m4_defun_epi([AC_C_PROTOTYPES]) -T22,17 -m4_location(AC_CYGWIN)acspecific.m4:907 -T13,45 -AC_SUBST_FILE_AC_SUBST([$1], [/@$1@/r [$]$1 -s,@$1@,,;t t]) -T17,215 -AC_LANG_CPLUSPLUS_m4_defun_pro([AC_LANG_CPLUSPLUS])AC_DIAGNOSE([obsolete], [The macro `AC_LANG_CPLUSPLUS' is obsolete. -You should run autoupdate.])dnl -AC_LANG(C++)[]AC_PROVIDE([AC_LANG_CPLUSPLUS])[]_m4_defun_epi([AC_LANG_CPLUSPLUS]) -T24,11 -m4_location(AS_BASENAME)m4sh.m4:304 -T27,17 -m4_location(AC_TRY_COMPILE)acgeneral.m4:2740 -T31,16 -m4_location(AC_LONG_FILE_NAMES)acoldnames.m4:58 -T9,90 -m4_beforem4_provide_ifelse([$2], - [m4_warn([syntax], [$2 was called before $1])]) -T30,10 -m4_location(AS_SHELL_SANITIZE)m4sh.m4:97 -T25,17 -m4_location(AC_EGREP_CPP)acgeneral.m4:2690 -T7,91 -m4_defnm4_ifndef([$1], - [m4_fatal([$0: undefined macro: $1])])dnl -m4_builtin([defn], $@) -T21,353 -_AC_LANG_COMPILER_GNUAC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler], - [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu], -[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__ - choke me -#endif -]])], - [ac_compiler_gnu=yes], - [ac_compiler_gnu=no]) -ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu -]) -T24,0 -m4_include(acgeneral.m4) -T7,317 -AC_INITAC_PLAIN_SCRIPT -m4_ifval([$2], [_AC_INIT_PACKAGE($@)]) -m4_divert_text([BINSH], [@%:@! /bin/sh]) -_AC_INIT_DEFAULTS -_AC_INIT_PARSE_ARGS -_AC_INIT_SRCDIR -_AC_INIT_HELP -_AC_INIT_VERSION -_AC_INIT_CONFIG_LOG -_AC_INIT_PREPARE -_AC_INIT_NOTICE -_AC_INIT_COPYRIGHT -m4_ifval([$2], , [m4_ifval([$1], [AC_CONFIG_SRCDIR([$1])])])dnl - -T13,529 -AC_ARG_ENABLE_m4_defun_pro([AC_ARG_ENABLE])m4_divert_once([HELP_ENABLE], [[ -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]]])dnl -m4_divert_once([HELP_ENABLE], [$2])dnl -# Check whether --enable-$1 or --disable-$1 was given. -if test "[${enable_]m4_patsubst([$1], -, _)+set}" = set; then - enableval="[$enable_]m4_patsubst([$1], -, _)" - $3 -m4_ifvaln([$4], [else - $4])dnl -fi; dnl -[]AC_PROVIDE([AC_ARG_ENABLE])[]_m4_defun_epi([AC_ARG_ENABLE]) -T30,11 -m4_location(_AS_TR_SH_PREPARE)m4sh.m4:567 -T22,16 -m4_location(AC_PREREQ)acgeneral.m4:509 -T25,17 -m4_location(AC_PATH_PROG)acgeneral.m4:2388 -T31,17 -m4_location(AC_OUTPUT_COMMANDS)acgeneral.m4:3238 -T15,409 -_AC_LINK_IFELSEm4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl -rm -f conftest.$ac_objext conftest$ac_exeext -AS_IF([AC_TRY_EVAL(ac_link) && - AC_TRY_COMMAND([test -s conftest$ac_exeext])], - [$2], - [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD -cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD -m4_ifvaln([$3], [$3])dnl])[]dnl -rm -f conftest.$ac_objext conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl - -T11,55 -m4_sincludem4_include_unique([$1])dnl -m4_builtin([sinclude], [$1]) -T34,14 -m4_location(_AC_F77_NAME_MANGLING)aclang.m4:2117 -T23,14 -m4_location(AC_C_CROSS)aclang.m4:1485 -T26,705 -AC_LANG_FUNC_LINK_TRY(C++)AC_LANG_PROGRAM( -[/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $1 (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $1 (); -char (*f) (); -], -[/* 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_$1) || defined (__stub___$1) -choke me -#else -f = $1; -#endif -]) -T9,181 -AC_LANG_C_m4_defun_pro([AC_LANG_C])AC_DIAGNOSE([obsolete], [The macro `AC_LANG_C' is obsolete. -You should run autoupdate.])dnl -AC_LANG(C)[]AC_PROVIDE([AC_LANG_C])[]_m4_defun_epi([AC_LANG_C]) -T14,548 -AC_INT_16_BITS_m4_defun_pro([AC_INT_16_BITS])AC_DIAGNOSE([obsolete], [The macro `AC_INT_16_BITS' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_SIZEOF([int]) -AC_DIAGNOSE([obsolete], [$0: - your code should no longer depend upon `INT_16_BITS', but upon - `SIZEOF_INT'. Remove this warning and the `AC_DEFINE' when you - adjust the code.])dnl -test $ac_cv_sizeof_int = 2 && - AC_DEFINE(INT_16_BITS, 1, - [Define if `sizeof (int)' = 2. Obsolete, use `SIZEOF_INT'.]) -[]AC_PROVIDE([AC_INT_16_BITS])[]_m4_defun_epi([AC_INT_16_BITS]) -T23,17 -m4_location(AC_RUN_LOG)acgeneral.m4:2182 -T12,647 -AC_ISC_POSIX_m4_defun_pro([AC_ISC_POSIX])AC_REQUIRE([AC_PROG_CC])dnl -AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl -AC_BEFORE([$0], [AC_RUN_IFELSE])dnl -AC_MSG_CHECKING([for POSIXized ISC]) -if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1 -then - AC_MSG_RESULT([yes]) - ISC=yes # If later tests want to check for ISC. - AC_DEFINE(_POSIX_SOURCE, 1, - [Define if you need to in order for stat and other things to - work.]) - if test "$GCC" = yes; then - CC="$CC -posix" - else - CC="$CC -Xp" - fi -else - AC_MSG_RESULT([no]) - ISC= -fi -[]AC_PROVIDE([AC_ISC_POSIX])[]_m4_defun_epi([AC_ISC_POSIX]) -T15,476 -AC_CONFIG_FILES_m4_defun_pro([AC_CONFIG_FILES])m4_divert_push([KILL]) -_AC_CONFIG_UNIQUE([$1]) -_AC_CONFIG_DEPENDENCIES([$1]) -m4_append([AC_LIST_FILES], [ $1]) -dnl Register the commands. -m4_ifval([$2], [AC_FOREACH([AC_File], [$1], -[m4_append([AC_LIST_FILES_COMMANDS], -[ ]m4_patsubst(AC_File, [:.*])[ ) $2 ;; -])])]) -_AC_CONFIG_COMMANDS_INIT([$3]) -m4_divert_pop([KILL])dnl -ac_config_files="$ac_config_files m4_normalize([$1])" -[]AC_PROVIDE([AC_CONFIG_FILES])[]_m4_defun_epi([AC_CONFIG_FILES]) -T22,16 -m4_location(AC_MODE_T)acoldnames.m4:61 -T16,216 -AC_PROGRAM_CHECK_m4_defun_pro([AC_PROGRAM_CHECK])AC_DIAGNOSE([obsolete], [The macro `AC_PROGRAM_CHECK' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_PROG($@)[]AC_PROVIDE([AC_PROGRAM_CHECK])[]_m4_defun_epi([AC_PROGRAM_CHECK]) -T18,647 -AC_C_CHAR_UNSIGNED_m4_defun_pro([AC_C_CHAR_UNSIGNED])AH_VERBATIM([__CHAR_UNSIGNED__], -[/* Define if type `char' is unsigned and you are not using gcc. */ -#ifndef __CHAR_UNSIGNED__ -# undef __CHAR_UNSIGNED__ -#endif])dnl -AC_CACHE_CHECK(whether char is unsigned, ac_cv_c_char_unsigned, -[AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([AC_INCLUDES_DEFAULT([])], - [((char) -1) < 0])], - ac_cv_c_char_unsigned=no, ac_cv_c_char_unsigned=yes)]) -if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then - AC_DEFINE(__CHAR_UNSIGNED__) -fi -[]AC_PROVIDE([AC_C_CHAR_UNSIGNED])[]_m4_defun_epi([AC_C_CHAR_UNSIGNED]) -T11,192 -AC_CYGWIN32_m4_defun_pro([AC_CYGWIN32])AC_DIAGNOSE([obsolete], [The macro `AC_CYGWIN32' is obsolete. -You should run autoupdate.])dnl -AC_CYGWIN($@)[]AC_PROVIDE([AC_CYGWIN32])[]_m4_defun_epi([AC_CYGWIN32]) -T17,489 -AC_CONFIG_HEADERS_m4_defun_pro([AC_CONFIG_HEADERS])m4_divert_push([KILL]) -_AC_CONFIG_UNIQUE([$1]) -_AC_CONFIG_DEPENDENCIES([$1]) -m4_append([AC_LIST_HEADERS], [ $1]) -dnl Register the commands -m4_ifval([$2], [AC_FOREACH([AC_File], [$1], -[m4_append([AC_LIST_HEADERS_COMMANDS], -[ ]m4_patsubst(AC_File, [:.*])[ ) $2 ;; -])])]) -_AC_CONFIG_COMMANDS_INIT([$3]) -m4_divert_pop([KILL])dnl -ac_config_headers="$ac_config_headers m4_normalize([$1])" -[]AC_PROVIDE([AC_CONFIG_HEADERS])[]_m4_defun_epi([AC_CONFIG_HEADERS]) -T14,584 -_AC_PROG_CXX_Gac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -CXXFLAGS="-g" -AC_CACHE_CHECK(whether $CXX accepts -g, ac_cv_prog_cxx_g, - [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], - [ac_cv_prog_cxx_g=yes], - [ac_cv_prog_cxx_g=no])]) -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi[]dnl - -T10,189 -AM_MINGW32_m4_defun_pro([AM_MINGW32])AC_DIAGNOSE([obsolete], [The macro `AM_MINGW32' is obsolete. -You should run autoupdate.])dnl -AC_MINGW32($@)[]AC_PROVIDE([AM_MINGW32])[]_m4_defun_epi([AM_MINGW32]) -T14,666 -AC_TYPE_SIGNAL_m4_defun_pro([AC_TYPE_SIGNAL])AC_CACHE_CHECK([return type of signal handlers], ac_cv_type_signal, -[AC_COMPILE_IFELSE( -[AC_LANG_PROGRAM([#include -#include -#ifdef signal -# undef signal -#endif -#ifdef __cplusplus -extern "C" void (*signal (int, void (*)(int)))(int); -#else -void (*signal ()) (); -#endif -], - [int i;])], - [ac_cv_type_signal=void], - [ac_cv_type_signal=int])]) -AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal, - [Define as the return type of signal handlers - (`int' or `void').]) -[]AC_PROVIDE([AC_TYPE_SIGNAL])[]_m4_defun_epi([AC_TYPE_SIGNAL]) -T11,199 -AC_SET_MAKE_m4_defun_pro([AC_SET_MAKE])AC_DIAGNOSE([obsolete], [The macro `AC_SET_MAKE' is obsolete. -You should run autoupdate.])dnl -AC_PROG_MAKE_SET($@)[]AC_PROVIDE([AC_SET_MAKE])[]_m4_defun_epi([AC_SET_MAKE]) -T16,305 -AC_COMPILE_CHECK_m4_defun_pro([AC_COMPILE_CHECK])AC_DIAGNOSE([obsolete], [The macro `AC_COMPILE_CHECK' is obsolete. -You should run autoupdate.])dnl -m4_ifvaln([$1], [AC_CHECKING([for $1])])dnl -AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5]) -[]AC_PROVIDE([AC_COMPILE_CHECK])[]_m4_defun_epi([AC_COMPILE_CHECK]) -T15,637 -AC_CHECK_SIZEOF_m4_defun_pro([AC_CHECK_SIZEOF])AS_LITERAL_IF([$1], [], - [AC_FATAL([$0: requires literal arguments])])dnl -AC_CHECK_TYPE([$1], [], [], [$3]) -AC_CACHE_CHECK([size of $1], AS_TR_SH([ac_cv_sizeof_$1]), -[if test "$AS_TR_SH([ac_cv_type_$1])" = yes; then - _AC_COMPUTE_INT([sizeof ($1)], - [AS_TR_SH([ac_cv_sizeof_$1])], - [AC_INCLUDES_DEFAULT([$3])]) -else - AS_TR_SH([ac_cv_sizeof_$1])=0 -fi])dnl -AC_DEFINE_UNQUOTED(AS_TR_CPP(sizeof_$1), $AS_TR_SH([ac_cv_sizeof_$1]), - [The size of a `$1', as computed by sizeof.]) -[]AC_PROVIDE([AC_CHECK_SIZEOF])[]_m4_defun_epi([AC_CHECK_SIZEOF]) -F8,8 -patsubstpatsubst -T46,17 -m4_location(_AC_INCLUDES_DEFAULT_REQUIREMENTS)acgeneral.m4:2241 -T28,14 -m4_location(AC_F77_WRAPPERS)aclang.m4:2165 -F11,8 -m4_errprinterrprint -T16,1506 -_AC_OUTPUT_LINKScat >>$CONFIG_STATUS <<\EOF - -# -# CONFIG_LINKS section. -# - -dnl Here we use : instead of .. because if AC_LINK_FILES was used -dnl with empty parameters (as in gettext.m4), then we obtain here -dnl `:', which we want to skip. So let's keep a single exception: `:'. -for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` - ac_source=`echo "$ac_file" | sed 's,[[^:]]*:,,'` - - AC_MSG_NOTICE([linking $srcdir/$ac_source to $ac_dest]) - - if test ! -r $srcdir/$ac_source; then - AC_MSG_ERROR([$srcdir/$ac_source: File not found]) - fi - rm -f $ac_dest - - # Make relative symlinks. - ac_dest_dir=`AS_DIRNAME(["$ac_dest"])` - if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then - AS_MKDIR_P(["$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. - ln -s $ac_rel_source $ac_dest 2>/dev/null || - ln $srcdir/$ac_source $ac_dest || - AC_MSG_ERROR([cannot link $ac_dest to $srcdir/$ac_source]) -m4_ifset([AC_LIST_LINKS_COMMANDS], -[ # Run the commands associated with the file. - case $ac_file in -AC_LIST_LINKS_COMMANDS()dnl - esac -])dnl -done -EOF - -T13,89 -AC_MSG_RESULT_AS_ECHO([$as_me:__oline__: result: $1], AS_MESSAGE_LOG_FD) -_AS_ECHO([${ECHO_T}$1])[]dnl - -T13,251 -m4_defun_oncem4_define([m4_location($1)], m4_location)dnl -m4_define([$1], - [m4_provide_ifelse([$1], - [m4_warn([syntax], [$1 invoked multiple times])], - [_m4_defun_pro([$1])$2[]_m4_defun_epi([$1])])]) -T11,498 -AC_ARG_WITH_m4_defun_pro([AC_ARG_WITH])m4_divert_once([HELP_WITH], [[ -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)]]) -m4_divert_once([HELP_WITH], [$2])dnl -# Check whether --with-$1 or --without-$1 was given. -if test "[${with_]m4_patsubst([$1], -, _)+set}" = set; then - withval="[$with_]m4_patsubst([$1], -, _)" - $3 -m4_ifvaln([$4], [else - $4])dnl -fi; dnl -[]AC_PROVIDE([AC_ARG_WITH])[]_m4_defun_epi([AC_ARG_WITH]) -T34,16 -m4_location(AC_STAT_MACROS_BROKEN)acoldnames.m4:68 -T28,14 -m4_location(AC_CHECK_SIZEOF)actypes.m4:363 -T8,80 -m4_ifsetm4_ifdef([$1], - [m4_if(m4_defn([$1]), [], [$3], [$2])], - [$3]) -T8,1061 -AS_UNAME{ -cat <<_ASUNAME -## ---------- ## -## Platform. ## -## ---------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -PATH = $PATH - -_ASUNAME -} -T25,14 -m4_location(AC_STRUCT_TM)actypes.m4:532 -T7,72 -AS_INITm4_init - -# Forbidden tokens and exceptions. -m4_pattern_forbid([^_?AS_]) - -T12,558 -AC_STRUCT_TM_m4_defun_pro([AC_STRUCT_TM])AC_CACHE_CHECK([whether struct tm is in sys/time.h or time.h], - ac_cv_struct_tm, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include -#include -], - [struct tm *tp; tp->tm_sec;])], - [ac_cv_struct_tm=time.h], - [ac_cv_struct_tm=sys/time.h])]) -if test $ac_cv_struct_tm = sys/time.h; then - AC_DEFINE(TM_IN_SYS_TIME, 1, - [Define if your declares `struct tm'.]) -fi -[]AC_PROVIDE([AC_STRUCT_TM])[]_m4_defun_epi([AC_STRUCT_TM]) -T14,212 -AC_GETGROUPS_T_m4_defun_pro([AC_GETGROUPS_T])AC_DIAGNOSE([obsolete], [The macro `AC_GETGROUPS_T' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_GETGROUPS($@)[]AC_PROVIDE([AC_GETGROUPS_T])[]_m4_defun_epi([AC_GETGROUPS_T]) -T27,17 -m4_location(AC_CHECK_FUNCS)acfunctions.m4:89 -T9,86 -AH_BOTTOMm4_define([_AH_COUNTER], m4_incr(_AH_COUNTER))dnl -AH_VERBATIM([zzzz]_AH_COUNTER, [$1]) -T24,17 -m4_location(AC_TRY_LINK)acgeneral.m4:2787 -T8,42 -_AS_ECHO_AS_ECHO_UNQUOTED([_AS_QUOTE([$1])], [$2]) -T26,2 -AC_LANG_SOURCE(Fortran 77)$1 -T10,192 -AC_VERBOSE_m4_defun_pro([AC_VERBOSE])AC_DIAGNOSE([obsolete], [The macro `AC_VERBOSE' is obsolete. -You should run autoupdate.])dnl -AC_MSG_RESULT($@)[]AC_PROVIDE([AC_VERBOSE])[]_m4_defun_epi([AC_VERBOSE]) -T27,18 -m4_location(AM_FUNC_MKTIME)acfunctions.m4:940 -T22,16 -m4_location(AM_EXEEXT)acoldnames.m4:81 -T20,16 -m4_location(AC_LN_S)acoldnames.m4:56 -T28,19 -m4_location(AC_FUNC_OBSTACK)acfunctions.m4:1103 -T26,19 -m4_location(AC_FUNC_LSTAT)acfunctions.m4:1211 -T27,16 -m4_location(AC_CROSS_CHECK)acoldnames.m4:50 -T22,160 -AC_CONFIG_COMMANDS_PRE_m4_defun_pro([AC_CONFIG_COMMANDS_PRE])m4_append([AC_OUTPUT_COMMANDS_PRE], [$1 -])[]AC_PROVIDE([AC_CONFIG_COMMANDS_PRE])[]_m4_defun_epi([AC_CONFIG_COMMANDS_PRE]) -T27,19 -m4_location(AC_FUNC_STRTOD)acfunctions.m4:1264 -T6,2 -m4_car$1 -T23,441 -_AC_CHECK_HEADER_DIRENTAS_VAR_PUSHDEF([ac_Header], [ac_cv_header_dirent_$1])dnl -AC_CACHE_CHECK([for $1 that defines DIR], ac_Header, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include -#include <$1> -], - [if ((DIR *) 0) -return 0;])], - [AS_VAR_SET(ac_Header, yes)], - [AS_VAR_SET(ac_Header, no)])]) -AS_IF([test AS_VAR_GET(ac_Header) = yes], [$2], [$3])[]dnl -AS_VAR_POPDEF([ac_Header])dnl - -T21,17 -m4_location(AC_MINIX)acspecific.m4:990 -T10,46 -m4_foreachm4_pushdef([$1])_m4_foreach($@)m4_popdef([$1]) -T30,13 -m4_location(AC_LANG_CPLUSPLUS)aclang.m4:239 -T20,1772 -_AC_ARG_VAR_VALIDATE# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([[a-zA-Z_0-9]]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - AS_MESSAGE([error: `$ac_var' was set to `$ac_old_val' in the previous run], 2) - ac_cache_corrupted=: ;; - ,set) - AS_MESSAGE([error: `$ac_var' was not set in the previous run], 2) - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - AS_MESSAGE([error: `$ac_var' has changed since the previous run:], 2) - AS_MESSAGE([ former value: $ac_old_val], 2) - AS_MESSAGE([ current value: $ac_new_val], 2) - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. It doesn't matter if - # we pass some twice (in addition to the command line arguments). - if test "$ac_new_set" = set; then - case $ac_new_val in -dnl If you change this globbing pattern, test it on an old shell -- -dnl it's sensitive. Putting any kind of quote in it causes syntax errors. -[ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)] - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" - ;; - esac - fi -done -if $ac_cache_corrupted; then - AS_MESSAGE([error: changes in the environment can compromise the build], 2) - AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over]) -fi - -T17,1172 -AC_FUNC_GETGROUPS_m4_defun_pro([AC_FUNC_GETGROUPS])AC_REQUIRE([AC_TYPE_GETGROUPS])dnl -AC_REQUIRE([AC_TYPE_SIZE_T])dnl -AC_CHECK_FUNC(getgroups) - -# If we don't yet have getgroups, see if it's in -lbsd. -# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. -ac_save_LIBS=$LIBS -if test $ac_cv_func_getgroups = no; then - AC_CHECK_LIB(bsd, getgroups, [GETGROUPS_LIB=-lbsd]) -fi - -# Run the program to test the functionality of the system-supplied -# getgroups function only if there is such a function. -if test $ac_cv_func_getgroups = yes; then - AC_CACHE_CHECK([for working getgroups], ac_cv_func_getgroups_works, - [AC_RUN_IFELSE([AC_LANG_PROGRAM([], - [[/* On Ultrix 4.3, getgroups (0, 0) always fails. */ - exit (getgroups (0, 0) == -1 ? 1 : 0);]])], - [ac_cv_func_getgroups_works=yes], - [ac_cv_func_getgroups_works=no], - [ac_cv_func_getgroups_works=no]) - ]) - if test $ac_cv_func_getgroups_works = yes; then - AC_DEFINE(HAVE_GETGROUPS, 1, - [Define if your system has a working `getgroups' function.]) - fi -fi -LIBS=$ac_save_LIBS -[]AC_PROVIDE([AC_FUNC_GETGROUPS])[]_m4_defun_epi([AC_FUNC_GETGROUPS]) -F9,6 -m4_sysvalsysval -T29,11 -m4_location(_AS_EXPR_PREPARE)m4sh.m4:326 -T11,785 -AC_F77_MAIN_m4_defun_pro([AC_F77_MAIN])AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl -AC_CACHE_CHECK([for alternate main to link with Fortran 77 libraries], - ac_cv_f77_main, -[AC_LANG_PUSH(C)dnl - ac_f77_m_save_LIBS=$LIBS - LIBS="$LIBS $FLIBS" - ac_cv_f77_main="main" # default entry point name - - for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do - AC_TRY_LINK([#undef F77_DUMMY_MAIN -@%:@define main $ac_func], [], [ac_cv_f77_main=$ac_func; break]) - done - rm -f conftest* - LIBS=$ac_f77_m_save_LIBS - AC_LANG_POP(C)dnl -]) -AC_DEFINE_UNQUOTED([F77_MAIN], $ac_cv_f77_main, - [Define to alternate name for `main' routine that is - called from a `main' in the Fortran libraries.]) -[]AC_PROVIDE([AC_F77_MAIN])[]_m4_defun_epi([AC_F77_MAIN]) -F7,4 -m4_evaleval -T12,56 -AC_MSG_ERROR{ AS_MESSAGE([error: $1], [2]) - AS_EXIT([$2]); }[]dnl - -F12,9 -m4_debugmodedebugmode -T16,53 -m4_pattern_allowm4_file_append(m4_defn([m4_tmpdir])/allowed.rx, [$1]) -T31,16 -m4_location(AC_GCC_TRADITIONAL)acoldnames.m4:53 -T9,79 -AC_EXEEXT_m4_defun_pro([AC_EXEEXT])[]AC_PROVIDE([AC_EXEEXT])[]_m4_defun_epi([AC_EXEEXT]) -T21,11 -m4_location(AS_UNSET)m4sh.m4:161 -T14,141 -m4_expand_oncem4_provide_ifelse(m4_ifval([$2], [[$2]], [[$1]]), - [], - [m4_provide(m4_ifval([$2], [[$2]], [[$1]]))[]$1]) -T12,18 -m4_errprintnm4_errprint([$1 -]) -T12,683 -AC_CHECK_LIB_m4_defun_pro([AC_CHECK_LIB])m4_ifval([$3], , [AH_CHECK_LIB([$1])])dnl -AS_LITERAL_IF([$1], - [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$2])], - [AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1''_$2])])dnl -AC_CACHE_CHECK([for $2 in -l$1], ac_Lib, -[ac_check_lib_save_LIBS=$LIBS -LIBS="-l$1 $5 $LIBS" -AC_TRY_LINK_FUNC([$2], - [AS_VAR_SET(ac_Lib, yes)], - [AS_VAR_SET(ac_Lib, no)]) -LIBS=$ac_check_lib_save_LIBS]) -AS_IF([test AS_VAR_GET(ac_Lib) = yes], - [m4_default([$3], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1)) - LIBS="-l$1 $LIBS" -])], - [$4])dnl -AS_VAR_POPDEF([ac_Lib])dnl -[]AC_PROVIDE([AC_CHECK_LIB])[]_m4_defun_epi([AC_CHECK_LIB]) -T44,17 -m4_location(AC_VALIDATE_CACHED_SYSTEM_TUPLE)acgeneral.m4:1792 -T22,17 -m4_location(AC_EMXOS2)acspecific.m4:922 -T28,15 -m4_location(AC_CHECK_HEADER)acheaders.m4:85 -T16,2913 -_AC_INIT_PREPAREm4_divert_push([INIT_PREPARE])dnl - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell meta-characters. -ac_configure_args= -ac_sep= -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) ;; -dnl If you change this globbing pattern, test it on an old shell -- -dnl it's sensitive. Putting any kind of quote in it causes syntax errors. -[ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)] - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - ac_sep=" " ;; - *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" - ac_sep=" " ;; - esac - # Get rid of the leading space. -done - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - echo >&AS_MESSAGE_LOG_FD - echo ["## ----------------- ##"] >&AS_MESSAGE_LOG_FD - echo ["## Cache variables. ##"] >&AS_MESSAGE_LOG_FD - echo ["## ----------------- ##"] >&AS_MESSAGE_LOG_FD - echo >&AS_MESSAGE_LOG_FD - m4_patsubst(m4_patsubst(m4_dquote(m4_defn([_AC_CACHE_DUMP])), - [^ *\(#.*\)? -]), - ['], ['"'"']) >&AS_MESSAGE_LOG_FD - sed "/^$/d" confdefs.h >conftest.log - if test -s conftest.log; then - echo >&AS_MESSAGE_LOG_FD - echo ["## ------------ ##"] >&AS_MESSAGE_LOG_FD - echo ["## confdefs.h. ##"] >&AS_MESSAGE_LOG_FD - echo ["## ------------ ##"] >&AS_MESSAGE_LOG_FD - echo >&AS_MESSAGE_LOG_FD - cat conftest.log >&AS_MESSAGE_LOG_FD - fi - (echo; echo) >&AS_MESSAGE_LOG_FD - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" >&AS_MESSAGE_LOG_FD - echo "$as_me: exit $exit_status" >&AS_MESSAGE_LOG_FD - rm -rf conftest* confdefs* core core.* *.core conf$[$]* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; AS_EXIT([1])' $ac_signal -done -ac_signal=0 - -# 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 - -# Let the site file select an alternate cache file if it wants to. -AC_SITE_LOAD -AC_CACHE_LOAD -_AC_ARG_VAR_VALIDATE -_AC_ARG_VAR_PRECIOUS(build_alias)dnl -_AC_ARG_VAR_PRECIOUS(host_alias)dnl -_AC_ARG_VAR_PRECIOUS(target_alias)dnl -AC_LANG_PUSH(C) - -_AC_PROG_ECHO()dnl -_AC_INIT_PREPARE_FS_SEPARATORS - -dnl Substitute for predefined variables. -AC_SUBST(DEFS)dnl -AC_SUBST(LIBS)dnl -m4_divert_pop([INIT_PREPARE])dnl - -T27,14 -m4_location(AC_TYPE_SIZE_T)actypes.m4:306 -T29,17 -m4_location(AC_SYS_LARGEFILE)acspecific.m4:434 -T20,215 -AC_F77_NAME_MANGLING_m4_defun_pro([AC_F77_NAME_MANGLING])AC_DIAGNOSE([obsolete], [The macro `AC_F77_NAME_MANGLING' is obsolete. -You should run autoupdate.])dnl -[]AC_PROVIDE([AC_F77_NAME_MANGLING])[]_m4_defun_epi([AC_F77_NAME_MANGLING]) -T19,3 -_m4_divert(PREPARE)100 -T24,0 -m4_include(acheaders.m4) -T34,341 -_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTLAC_CACHE_CHECK([whether sys/ioctl.h defines TIOCGWINSZ], - ac_cv_sys_tiocgwinsz_in_sys_ioctl_h, -[AC_EGREP_CPP([yes], - [#include -#include -#ifdef TIOCGWINSZ - yes -#endif -], - ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes, - ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no)]) - -T18,3178 -AC_FUNC_GETLOADAVG_m4_defun_pro([AC_FUNC_GETLOADAVG])ac_have_func=no # yes means we've found a way to get the load average. - -ac_save_LIBS=$LIBS - -# Check for getloadavg, but be sure not to touch the cache variable. -(AC_CHECK_FUNC(getloadavg, exit 0, exit 1)) && ac_have_func=yes - -# On HPUX9, an unprivileged user can get load averages through this function. -AC_CHECK_FUNCS(pstat_getdynamic) - -# Solaris has libkstat which does not require root. -AC_CHECK_LIB(kstat, kstat_open) -test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes - -# Some systems with -lutil have (and need) -lkvm as well, some do not. -# On Solaris, -lkvm requires nlist from -lelf, so check that first -# to get the right answer into the cache. -# For kstat on solaris, we need libelf to force the definition of SVR4 below. -if test $ac_have_func = no; then - AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS") -fi -if test $ac_have_func = no; then - AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS") - # Check for the 4.4BSD definition of getloadavg. - AC_CHECK_LIB(util, getloadavg, - [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) -fi - -if test $ac_have_func = no; then - # There is a commonly available library for RS/6000 AIX. - # Since it is not a standard part of AIX, it might be installed locally. - ac_getloadavg_LIBS=$LIBS - LIBS="-L/usr/local/lib $LIBS" - AC_CHECK_LIB(getloadavg, getloadavg, - [LIBS="-lgetloadavg $LIBS"], [LIBS=$ac_getloadavg_LIBS]) -fi - -# Make sure it is really in the library, if we think we found it, -# otherwise set up the replacement function. -AC_CHECK_FUNCS(getloadavg, [], - [_AC_LIBOBJ_GETLOADAVG]) - -# Some definitions of getloadavg require that the program be installed setgid. -dnl FIXME: Don't hardwire the path of getloadavg.c in the top-level directory. -AC_CACHE_CHECK(whether getloadavg requires setgid, - ac_cv_func_getloadavg_setgid, -[AC_EGREP_CPP([Yowza Am I SETGID yet], -[#include "$srcdir/getloadavg.c" -#ifdef LDAV_PRIVILEGED -Yowza Am I SETGID yet -@%:@endif], - ac_cv_func_getloadavg_setgid=yes, - ac_cv_func_getloadavg_setgid=no)]) -if test $ac_cv_func_getloadavg_setgid = yes; then - NEED_SETGID=true - AC_DEFINE(GETLOADAVG_PRIVILEGED, 1, - [Define if the `getloadavg' function needs to be run setuid - or setgid.]) -else - NEED_SETGID=false -fi -AC_SUBST(NEED_SETGID)dnl - -if test $ac_cv_func_getloadavg_setgid = yes; then - AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem, -[ # On Solaris, /dev/kmem is a symlink. Get info on the real file. - ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` - # If we got an error (system does not support symlinks), try without -L. - test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` - ac_cv_group_kmem=`echo $ac_ls_output \ - | sed -ne ['s/[ ][ ]*/ /g; - s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; - / /s/.* //;p;']` -]) - AC_SUBST(KMEM_GROUP, $ac_cv_group_kmem)dnl -fi -if test "x$ac_save_LIBS" = x; then - GETLOADAVG_LIBS=$LIBS -else - GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` -fi -LIBS=$ac_save_LIBS - -AC_SUBST(GETLOADAVG_LIBS)dnl -[]AC_PROVIDE([AC_FUNC_GETLOADAVG])[]_m4_defun_epi([AC_FUNC_GETLOADAVG]) -T14,135 -_AS_TR_PREPARE_m4_defun_pro([_AS_TR_PREPARE])m4_require([_AS_TR_SH_PREPARE])dnl -m4_require([_AS_TR_CPP_PREPARE])dnl -[]_m4_defun_epi([_AS_TR_PREPARE]) -T12,169 -AC_LANG_PUSH_m4_defun_pro([AC_LANG_PUSH])_AC_LANG_SET(m4_ifdef([_AC_LANG], [m4_defn([_AC_LANG])]), - [$1])dnl -m4_pushdef([_AC_LANG], [$1])[]_m4_defun_epi([AC_LANG_PUSH]) -T23,11 -m4_location(AS_DIRNAME)m4sh.m4:296 -T14,205 -AC_CROSS_CHECK_m4_defun_pro([AC_CROSS_CHECK])AC_DIAGNOSE([obsolete], [The macro `AC_CROSS_CHECK' is obsolete. -You should run autoupdate.])dnl -AC_C_CROSS($@)[]AC_PROVIDE([AC_CROSS_CHECK])[]_m4_defun_epi([AC_CROSS_CHECK]) -T23,17 -m4_location(AC_VERBOSE)acgeneral.m4:2106 -T31,19 -m4_location(AC_FUNC_UTIME_NULL)acfunctions.m4:1404 -T34,18 -m4_location(AC_FUNC_ERROR_AT_LINE)acfunctions.m4:325 -T19,377 -_AC_COMPILER_EXEEXTAC_LANG_CONFTEST([AC_LANG_PROGRAM()]) -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe" -_AC_COMPILER_EXEEXT_DEFAULT -_AC_COMPILER_EXEEXT_WORKS -rm -f a.out a.exe conftest$ac_cv_exeext -ac_clean_files=$ac_clean_files_save -_AC_COMPILER_EXEEXT_CROSS -_AC_COMPILER_EXEEXT_O -rm -f conftest.$ac_ext -AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl -ac_exeext=$EXEEXT - -T13,111 -AC_FUNC_LSTAT_m4_defun_pro([AC_FUNC_LSTAT])_AC_FUNC_STAT(lstat)[]AC_PROVIDE([AC_FUNC_LSTAT])[]_m4_defun_epi([AC_FUNC_LSTAT]) -T22,0 -AC_LIST_FILES_COMMANDS -T14,914 -AC_FUNC_FSEEKO_m4_defun_pro([AC_FUNC_FSEEKO])_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1, - [ac_cv_sys_largefile_source], - [Define to make fseeko visible on some hosts (e.g. glibc 2.2).], - [@%:@include ], [return !fseeko;]) - -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug -# in glibc 2.1.3, but that breaks too many other things. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. -AC_CACHE_CHECK([for fseeko], [ac_cv_func_fseeko], - [AC_TRY_LINK([@%:@include ], - [return fseeko && fseeko (stdin, 0, 0);], - [ac_cv_func_fseeko=yes], - [ac_cv_func_fseeko=no])]) -if test $ac_cv_func_fseeko = yes; then - AC_DEFINE(HAVE_FSEEKO, 1, - [Define if fseeko (and presumably ftello) exists and is declared.]) -fi -[]AC_PROVIDE([AC_FUNC_FSEEKO])[]_m4_defun_epi([AC_FUNC_FSEEKO]) -T19,526 -_AC_OUTPUT_COMMANDScat >>$CONFIG_STATUS <<\EOF - -# -# CONFIG_COMMANDS section. -# -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` - ac_source=`echo "$ac_file" | sed 's,[[^:]]*:,,'` - -dnl FIXME: Until Automake uses the new features of config.status, we -dnl should keep this silent. Otherwise, because Automake runs this in -dnl each directory, it quickly becomes annoying. -dnl echo "executing commands of $ac_dest" - case $ac_dest in -AC_LIST_COMMANDS_COMMANDS()dnl - esac -done -EOF - -T17,228 -AM_TYPE_PTRDIFF_T_m4_defun_pro([AM_TYPE_PTRDIFF_T])AC_DIAGNOSE([obsolete], [The macro `AM_TYPE_PTRDIFF_T' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_TYPES(ptrdiff_t)[]AC_PROVIDE([AM_TYPE_PTRDIFF_T])[]_m4_defun_epi([AM_TYPE_PTRDIFF_T]) -T27,11 -m4_location(_AS_TR_PREPARE)m4sh.m4:612 -T27,17 -m4_location(AC_DECL_YYTEXT)acspecific.m4:186 -T12,944 -m4_text_wrapm4_pushdef([m4_Prefix], m4_default([$2], []))dnl -m4_pushdef([m4_Prefix1], m4_default([$3], [m4_Prefix]))dnl -m4_pushdef([m4_Width], m4_default([$4], 79))dnl -m4_pushdef([m4_Cursor], m4_len(m4_Prefix1))dnl -m4_pushdef([m4_Separator], [])dnl -m4_Prefix1[]dnl -m4_if(m4_eval(m4_Cursor > m4_len(m4_Prefix)), - 1, [m4_define([m4_Cursor], m4_len(m4_Prefix)) -m4_Prefix])[]dnl -m4_foreach_quoted([m4_Word], (m4_split(m4_normalize([$1]))), -[m4_define([m4_Cursor], m4_eval(m4_Cursor + len(m4_Word) + 1))dnl -dnl New line if too long, else insert a space unless it is the first -dnl of the words. -m4_if(m4_eval(m4_Cursor > m4_Width), - 1, [m4_define([m4_Cursor], - m4_eval(m4_len(m4_Prefix) + m4_len(m4_Word) + 1))] -m4_Prefix, - [m4_Separator])[]dnl -m4_Word[]dnl -m4_define([m4_Separator], [ ])])dnl -m4_popdef([m4_Separator])dnl -m4_popdef([m4_Cursor])dnl -m4_popdef([m4_Width])dnl -m4_popdef([m4_Prefix1])dnl -m4_popdef([m4_Prefix])dnl - -T6,93 -popdefm4_ifndef([$1], - [m4_fatal([$0: undefined macro: $1])])dnl -m4_builtin([popdef], $@) -T14,109 -m4_file_appendm4_syscmd([cat >>$1 <<_m4eof -$2 -_m4eof -]) -m4_if(m4_sysval, [0], [], - [m4_fatal([$0: cannot write: $1])]) -T22,11 -m4_location(AS_TR_CPP)m4sh.m4:604 -T28,13 -m4_location(_AC_LANG_ABBREV)aclang.m4:181 -T28,19 -m4_location(AC_FUNC_STRCOLL)acfunctions.m4:1373 -T13,203 -AC_FUNC_VFORK_m4_defun_pro([AC_FUNC_VFORK])AC_DIAGNOSE([obsolete], [The macro `AC_FUNC_VFORK' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_FORK($@)[]AC_PROVIDE([AC_FUNC_VFORK])[]_m4_defun_epi([AC_FUNC_VFORK]) -T16,262 -AC_FUNC_STRFTIME_m4_defun_pro([AC_FUNC_STRFTIME])AC_CHECK_FUNCS(strftime, [], -[# strftime is in -lintl on SCO UNIX. -AC_CHECK_LIB(intl, strftime, - [AC_DEFINE(HAVE_STRFTIME) -LIBS="-lintl $LIBS"])])dnl -[]AC_PROVIDE([AC_FUNC_STRFTIME])[]_m4_defun_epi([AC_FUNC_STRFTIME]) -T36,19 -m4_location(AC_FUNC_SELECT_ARGTYPES)acfunctions.m4:1154 -T16,124 -AC_LANG_COMPILERAC_BEFORE([AC_LANG_COMPILER(]_AC_LANG[)], - [AC_LANG_PREPROC(]_AC_LANG[)])dnl -_AC_LANG_DISPATCH([$0], _AC_LANG, $@) -T17,479 -AC_FUNC_GETMNTENT_m4_defun_pro([AC_FUNC_GETMNTENT])# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. -AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS", - [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS", - [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])]) -AC_CHECK_FUNC(getmntent, - [AC_DEFINE(HAVE_GETMNTENT, 1, - [Define if you have the `getmntent' function.])])[]AC_PROVIDE([AC_FUNC_GETMNTENT])[]_m4_defun_epi([AC_FUNC_GETMNTENT]) -F8,5 -m4_ifdefifdef -T24,0 -AC_FILE_DEPENDENCY_TRACE -T9,154 -AC_DEFINEAC_DEFINE_TRACE([$1])dnl -m4_ifval([$3], [_AH_TEMPLATE_OLD([$1], [$3])])dnl -cat >>confdefs.h <<\EOF -[@%:@define] $1 m4_if($#, 2, [$2], $#, 3, [$2], 1) -EOF - -F7,4 -m4_incrincr -T17,333 -AC_HAVE_POUNDBANG_m4_defun_pro([AC_HAVE_POUNDBANG])AC_DIAGNOSE([obsolete], [The macro `AC_HAVE_POUNDBANG' is obsolete. -You should run autoupdate.])dnl -AC_SYS_INTERPRETER -AC_DIAGNOSE([obsolete], -[$0: Remove this warning when you adjust your code to use - `AC_SYS_INTERPRETER'.])[]AC_PROVIDE([AC_HAVE_POUNDBANG])[]_m4_defun_epi([AC_HAVE_POUNDBANG]) -T4,44 -m4_nm4_if([$1], - [], [], - [$1 -]) -T31,17 -m4_location(AC_SYS_INTERPRETER)acspecific.m4:339 -T10,74 -AS_VAR_SETAS_LITERAL_IF([$1], - [$1=$2], - [eval "$1=$2"]) -T9,2328 -AC_OUTPUTdnl Dispatch the extra arguments to their native macros. -m4_ifval([$1], - [AC_CONFIG_FILES([$1])])dnl -m4_ifval([$2$3], - [AC_CONFIG_COMMANDS(default, [$2], [$3])])dnl -m4_ifval([$1$2$3], - [AC_DIAGNOSE([obsolete], - [$0 should be used without arguments. -You should run autoupdate.])])dnl -AC_CACHE_SAVE - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub=['/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}'] -fi - -m4_ifset([AC_LIST_HEADERS], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()]) - -dnl Commands to run before creating config.status. -AC_OUTPUT_COMMANDS_PRE()dnl - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -_AC_OUTPUT_CONFIG_STATUS()dnl -ac_clean_files=$ac_clean_files_save - -dnl Commands to run after config.status was created -AC_OUTPUT_COMMANDS_POST()dnl - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - exec AS_MESSAGE_LOG_FD>/dev/null - $SHELL $CONFIG_STATUS || ac_cs_success=false - exec AS_MESSAGE_LOG_FD>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || AS_EXIT([1]) -fi -dnl config.status should not do recursion. -AC_PROVIDE_IFELSE([AC_CONFIG_SUBDIRS], [_AC_OUTPUT_SUBDIRS()])dnl - -T18,131 -AC_LANG_PREPROC(C)_m4_defun_pro([AC_LANG_PREPROC(C)])AC_REQUIRE([AC_PROG_CPP])[]AC_PROVIDE([AC_LANG_PREPROC(C)])[]_m4_defun_epi([AC_LANG_PREPROC(C)]) -T24,14 -m4_location(AC_PROG_F77)aclang.m4:1325 -T10,194 -AC_VPRINTF_m4_defun_pro([AC_VPRINTF])AC_DIAGNOSE([obsolete], [The macro `AC_VPRINTF' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_VPRINTF($@)[]AC_PROVIDE([AC_VPRINTF])[]_m4_defun_epi([AC_VPRINTF]) -T9,69 -m4_assertm4_if(m4_eval([$1]), 0, - [m4_fatal([assert failed: $1], [$2])]) -T21,1229 -_AC_PROG_F77_V_OUTPUT_m4_defun_pro([_AC_PROG_F77_V_OUTPUT])AC_REQUIRE([AC_PROG_F77])dnl -AC_LANG_PUSH(Fortran 77)dnl - -AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - -# Compile and link our simple test program by passing a flag (argument -# 1 to this macro) to the Fortran 77 compiler in order to get -# "verbose" output that we can then parse for the Fortran 77 linker -# flags. -ac_save_FFLAGS=$FFLAGS -FFLAGS="$FFLAGS m4_default([$1], [$ac_cv_prog_f77_v])" -(eval echo $as_me:__oline__: \"$ac_link\") >&AS_MESSAGE_LOG_FD -ac_f77_v_output=`eval $ac_link AS_MESSAGE_LOG_FD>&1 2>&1 | grep -v 'Driving:'` -echo "$ac_f77_v_output" >&AS_MESSAGE_LOG_FD -FFLAGS=$ac_save_FFLAGS - -rm -f conftest* -AC_LANG_POP(Fortran 77)dnl - -# If we are using xlf then replace all the commas with spaces. -if echo $ac_f77_v_output | grep xlfentry >/dev/null 2>&1; then - ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` -fi - -# If we are using Cray Fortran then delete quotes. -# Use "\"" instead of '"' for font-lock-mode. -# FIXME: a more general fix for quoted arguments with spaces? -if echo $ac_f77_v_output | grep cft90 >/dev/null 2>&1; then - ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` -fi[]dnl -[]AC_PROVIDE([_AC_PROG_F77_V_OUTPUT])[]_m4_defun_epi([_AC_PROG_F77_V_OUTPUT]) -T29,19 -m4_location(AC_FUNC_STRFTIME)acfunctions.m4:1321 -T11,43 -AC_OBSOLETEAC_DIAGNOSE([obsolete], [$1 is obsolete$2]) -T29,16 -m4_location(AC_CHAR_UNSIGNED)acoldnames.m4:48 -T14,228 -m4_divert_pushm4_pushdef([m4_divert_stack], - m4_location[: $0: $1]m4_ifdef([m4_divert_stack], [ -m4_defn([m4_divert_stack])]))dnl -m4_pushdef([_m4_divert_diversion], [$1])dnl -m4_builtin([divert], _m4_divert(_m4_divert_diversion))dnl - -T8,0 -__unix__ -T15,509 -AC_FUNC_OBSTACK_m4_defun_pro([AC_FUNC_OBSTACK])AC_LIBSOURCES([obstack.h, obstack.c])dnl -AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack, -[AC_TRY_LINK([@%:@include "obstack.h"], - [struct obstack *mem; obstack_free(mem,(char *) 0)], - [ac_cv_func_obstack=yes], - [ac_cv_func_obstack=no])]) -if test $ac_cv_func_obstack = yes; then - AC_DEFINE(HAVE_OBSTACK, 1, [Define if libc includes obstacks.]) -else - AC_LIBOBJ(obstack) -fi -[]AC_PROVIDE([AC_FUNC_OBSTACK])[]_m4_defun_epi([AC_FUNC_OBSTACK]) -T5,70 -m4_dom4_if($#, 0, [], - $#, 1, [$1], - [$1[]m4_do(m4_shift($@))]) -T23,14 -m4_location(AC_C_CONST)aclang.m4:1664 -T21,1885 -_AC_F77_NAME_MANGLING_m4_defun_pro([_AC_F77_NAME_MANGLING])AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl -AC_REQUIRE([AC_F77_DUMMY_MAIN])dnl -AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], - ac_cv_f77_mangling, -[AC_LANG_PUSH(Fortran 77)dnl -AC_COMPILE_IFELSE( -[ subroutine foobar() - return - end - subroutine foo_bar() - return - end], -[mv conftest.$ac_objext cf77_test.$ac_objext - - AC_LANG_PUSH(C)dnl - - ac_save_LIBS=$LIBS - LIBS="cf77_test.$ac_objext $LIBS $FLIBS" - - ac_success=no - for ac_foobar in foobar FOOBAR; do - for ac_underscore in "" "_"; do - ac_func="$ac_foobar$ac_underscore" - AC_TRY_LINK_FUNC($ac_func, - [ac_success=yes; break 2]) - done - done - - if test "$ac_success" = "yes"; then - case $ac_foobar in - foobar) - ac_case=lower - ac_foo_bar=foo_bar - ;; - FOOBAR) - ac_case=upper - ac_foo_bar=FOO_BAR - ;; - esac - - ac_success_extra=no - for ac_extra in "" "_"; do - ac_func="$ac_foo_bar$ac_underscore$ac_extra" - AC_TRY_LINK_FUNC($ac_func, - [ac_success_extra=yes; break]) - done - - if test "$ac_success_extra" = "yes"; then - ac_cv_f77_mangling="$ac_case case" - if test -z "$ac_underscore"; then - ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" - else - ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" - fi - if test -z "$ac_extra"; then - ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" - else - ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" - fi - else - ac_cv_f77_mangling="unknown" - fi - else - ac_cv_f77_mangling="unknown" - fi - - LIBS=$ac_save_LIBS - AC_LANG_POP(C)dnl - rm -f cf77_test* conftest*]) -AC_LANG_POP(Fortran 77)dnl -]) -[]AC_PROVIDE([_AC_F77_NAME_MANGLING])[]_m4_defun_epi([_AC_F77_NAME_MANGLING]) -T11,224 -AC_IRIX_SUN_m4_defun_pro([AC_IRIX_SUN])AC_DIAGNOSE([obsolete], [The macro `AC_IRIX_SUN' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_GETMNTENT -AC_CHECK_LIB(sun, getpwnam)[]AC_PROVIDE([AC_IRIX_SUN])[]_m4_defun_epi([AC_IRIX_SUN]) -T15,103 -_AC_LANG_ABBREV_m4_defun_pro([_AC_LANG_ABBREV])_AC_LANG_DISPATCH([$0], _AC_LANG, $@)[]_m4_defun_epi([_AC_LANG_ABBREV]) -T14,911 -AC_FUNC_STRTOD_m4_defun_pro([AC_FUNC_STRTOD])AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod, -[AC_RUN_IFELSE([AC_LANG_SOURCE([[ -double strtod (); -int -main() -{ - { - /* Some versions of Linux strtod mis-parse strings with leading '+'. */ - char *string = " +69"; - char *term; - double value; - value = strtod (string, &term); - if (value != 69 || term != (string + 4)) - exit (1); - } - - { - /* Under Solaris 2.4, strtod returns the wrong value for the - terminating character under some conditions. */ - char *string = "NaN"; - char *term; - strtod (string, &term); - if (term != string && *(term - 1) == 0) - exit (1); - } - exit (0); -} -]])], - ac_cv_func_strtod=yes, - ac_cv_func_strtod=no, - ac_cv_func_strtod=no)]) -if test $ac_cv_func_strtod = no; then - _AC_LIBOBJ_STRTOD -fi -[]AC_PROVIDE([AC_FUNC_STRTOD])[]_m4_defun_epi([AC_FUNC_STRTOD]) -F8,8 -__line____line__ -T13,468 -AC_CHECK_TYPE_m4_defun_pro([AC_CHECK_TYPE])m4_if($#, 3, - [_AC_CHECK_TYPE_NEW($@)], - $#, 4, - [_AC_CHECK_TYPE_NEW($@)], - _AC_CHECK_TYPE_REPLACEMENT_TYPE_P([$2]), 1, - [_AC_CHECK_TYPE_OLD($@)], - _AC_CHECK_TYPE_MAYBE_TYPE_P([$2]), 1, - [AC_DIAGNOSE([syntax], - [$0: assuming `$2' is not a type])_AC_CHECK_TYPE_NEW($@)], - [_AC_CHECK_TYPE_NEW($@)])[]dnl -[]AC_PROVIDE([AC_CHECK_TYPE])[]_m4_defun_epi([AC_CHECK_TYPE]) -T9,26 -m4_ifndefm4_ifdef([$1], [$3], [$2]) -T12,123 -AC_COPYRIGHTm4_divert_text([NOTICE], -[m4_patsubst([ -$1], [^], [@%:@ ])])dnl -m4_divert_text(m4_default([$2], [VERSION_USER]), -[ -$1])dnl - -T30,11 -m4_location(_AS_UNSET_PREPARE)m4sh.m4:152 -T11,73 -AH_VERBATIMAS_LITERAL_IF([$1], - [AH_OUTPUT([$1], AS_ESCAPE([[$2]]))]) - -T15,1131 -AC_FUNC_GETPGRP_m4_defun_pro([AC_FUNC_GETPGRP])AC_CACHE_CHECK(whether getpgrp takes no argument, ac_cv_func_getpgrp_void, -[# Use it with a single arg. -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [getpgrp (0);])], - [ac_func_getpgrp_1=yes], - [ac_func_getpgrp_1=no]) -# Use it with no arg. -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [getpgrp ();])], - [ac_func_getpgrp_0=yes], - [ac_func_getpgrp_0=no]) -# If both static checks agree, we are done. -case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in - yes:no) ac_cv_func_getpgrp_void=yes;; - no:yes) ac_cv_func_getpgrp_void=false;; - *) AC_RUN_IFELSE([_AC_FUNC_GETPGRP_TEST], - [ac_cv_func_getpgrp_void=yes], - [ac_cv_func_getpgrp_void=no], - [AC_MSG_ERROR([cannot check getpgrp if cross compiling])]);; -esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1 -]) -if test $ac_cv_func_getpgrp_void = yes; then - AC_DEFINE(GETPGRP_VOID, 1, - [Define if the `getpgrp' function takes no argument.]) -fi -[]AC_PROVIDE([AC_FUNC_GETPGRP])[]_m4_defun_epi([AC_FUNC_GETPGRP]) -T22,16 -m4_location(AC_FIND_X)acoldnames.m4:51 -T23,228 -_AC_OUTPUT_COMMANDS_CNT_m4_defun_pro([_AC_OUTPUT_COMMANDS_CNT])AC_DIAGNOSE([obsolete], [The macro `_AC_OUTPUT_COMMANDS_CNT' is obsolete. -You should run autoupdate.])dnl -0[]AC_PROVIDE([_AC_OUTPUT_COMMANDS_CNT])[]_m4_defun_epi([_AC_OUTPUT_COMMANDS_CNT]) -T23,16 -m4_location(AC_ST_RDEV)acoldnames.m4:72 -T20,17 -m4_location(AC_INIT)acgeneral.m4:1382 -T32,13 -m4_location(_AC_ARG_VAR_LDFLAGS)aclang.m4:830 -T12,4 -AC_ACVERSION2.52 -T38,17 -m4_location(AC_CONFIG_AUX_DIR_DEFAULT)acgeneral.m4:1650 -T11,207 -AC_CHECKING_m4_defun_pro([AC_CHECKING])AC_DIAGNOSE([obsolete], [The macro `AC_CHECKING' is obsolete. -You should run autoupdate.])dnl -AS_MESSAGE([checking $1...])[]AC_PROVIDE([AC_CHECKING])[]_m4_defun_epi([AC_CHECKING]) -T14,126 -AC_PROG_RANLIB_m4_defun_pro([AC_PROG_RANLIB])AC_CHECK_TOOL(RANLIB, ranlib, :)[]AC_PROVIDE([AC_PROG_RANLIB])[]_m4_defun_epi([AC_PROG_RANLIB]) -T34,14 -m4_location(_AC_PROG_F77_V_OUTPUT)aclang.m4:1775 -T30,17 -m4_location(AC_CANONICAL_HOST)acgeneral.m4:1755 -T15,349 -_AC_INIT_NOTICEm4_divert_text([NOTICE], -[@%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by Autoconf AC_ACVERSION[]dnl -m4_ifset([AC_PACKAGE_STRING], [ for AC_PACKAGE_STRING]).]) - -m4_ifset([AC_PACKAGE_BUGREPORT], - [m4_divert_text([NOTICE], - [@%:@ -@%:@ Report bugs to .])]) - -T13,4980 -_AC_INIT_HELPm4_divert_push([HELP_BEGIN])dnl - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # 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 -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue - cd $ac_subdir - # A "../" for each directory in /$ac_subdir. - ac_dots=`echo $ac_subdir | - sed 's,^\./,,;s,[[^/]]$,&/,;s,[[^/]]*/,../,g'` - - case $srcdir in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - [[\\/]]* | ?:[[\\/]]* ) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_subdir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure.gnu; then - echo - $SHELL $ac_sub_srcdir/configure.gnu --help=recursive - elif test -f $ac_sub_srcdir/configure; then - echo - $SHELL $ac_sub_srcdir/configure --help=recursive - elif test -f $ac_sub_srcdir/configure.ac || - test -f $ac_sub_srcdir/configure.in; then - echo - $ac_configure --help - else - AC_MSG_WARN([no configuration information is in $ac_subdir]) - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -m4_divert_pop([HELP_END])dnl - -T14,1258 -AC_FUNC_ALLOCA_m4_defun_pro([AC_FUNC_ALLOCA])# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h, -[AC_TRY_LINK([@%:@include ], - [char *p = (char *) alloca (2 * sizeof (int));], - ac_cv_working_alloca_h=yes, ac_cv_working_alloca_h=no)]) -if test $ac_cv_working_alloca_h = yes; then - AC_DEFINE(HAVE_ALLOCA_H, 1, - [Define if you have and it should be used - (not on Ultrix).]) -fi - -AC_CACHE_CHECK([for alloca], ac_cv_func_alloca_works, -[AC_TRY_LINK( -[#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif -], [char *p = (char *) alloca (1);], - ac_cv_func_alloca_works=yes, ac_cv_func_alloca_works=no)]) - -if test $ac_cv_func_alloca_works = yes; then - AC_DEFINE(HAVE_ALLOCA, 1, - [Define if you have `alloca', as a function or macro.]) -else - _AC_LIBOBJ_ALLOCA -fi -[]AC_PROVIDE([AC_FUNC_ALLOCA])[]_m4_defun_epi([AC_FUNC_ALLOCA]) -T9,507 -AS_TMPDIR# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap 'AS_EXIT([1])' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/$1XXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/$1$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - AS_EXIT -}dnl - -T11,195 -AC_SCO_INTL_m4_defun_pro([AC_SCO_INTL])AC_DIAGNOSE([obsolete], [The macro `AC_SCO_INTL' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_STRFTIME[]AC_PROVIDE([AC_SCO_INTL])[]_m4_defun_epi([AC_SCO_INTL]) -T8,184 -AC_PID_T_m4_defun_pro([AC_PID_T])AC_DIAGNOSE([obsolete], [The macro `AC_PID_T' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_PID_T($@)[]AC_PROVIDE([AC_PID_T])[]_m4_defun_epi([AC_PID_T]) -T24,2 -_m4_divert(HELP_VAR_END)15 -T12,0 -AC_LIBSOURCE -F11,8 -m4_maketempmaketemp -T24,997 -AC_FUNC_SETVBUF_REVERSED_m4_defun_pro([AC_FUNC_SETVBUF_REVERSED])AC_CACHE_CHECK(whether setvbuf arguments are reversed, - ac_cv_func_setvbuf_reversed, -[AC_TRY_RUN([#include -/* If setvbuf has the reversed format, exit 0. */ -int -main () -{ - /* This call has the arguments reversed. - A reversed system may check and see that the address of main - is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ - if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) - exit(1); - putc('\r', stdout); - exit(0); /* Non-reversed systems segv here. */ -}], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no) -rm -f core core.* *.core]) -if test $ac_cv_func_setvbuf_reversed = yes; then - AC_DEFINE(SETVBUF_REVERSED, 1, - [Define if the `setvbuf' function takes the buffering type as - its second argument and the buffer pointer as the third, as on - System V before release 3.]) -fi -[]AC_PROVIDE([AC_FUNC_SETVBUF_REVERSED])[]_m4_defun_epi([AC_FUNC_SETVBUF_REVERSED]) -T8,101 -AC_FATALm4_errprintn(m4_location[: error: $1])dnl -m4_expansion_stack_dump()dnl -m4_exit(m4_if([$2],, 1, [$2])) -T17,437 -AC_LIST_MEMBER_OF_m4_defun_pro([AC_LIST_MEMBER_OF])dnl Do some sanity checking of the arguments. -m4_if([$1], , [AC_FATAL([$0]: missing argument 1)])dnl -m4_if([$2], , [AC_FATAL([$0]: missing argument 2)])dnl - - ac_exists=false - for ac_i in $2; do - if test x"$1" = x"$ac_i"; then - ac_exists=true - break - fi - done - - AS_IF([test x"$ac_exists" = xtrue], [$3], [$4])[]dnl -[]AC_PROVIDE([AC_LIST_MEMBER_OF])[]_m4_defun_epi([AC_LIST_MEMBER_OF]) -T9,75 -AC_BEFOREAC_PROVIDE_IFELSE([$2], [AC_DIAGNOSE([syntax], [$2 was called before $1])]) -T13,0 -AC_LIST_LINKS -T11,40 -m4_undivertm4_builtin([undivert], _m4_divert([$1])) -T28,14 -m4_location(AC_C_PROTOTYPES)aclang.m4:1726 -T18,184 -_m4_warning_ifelsem4_case([$4], - [$1], [$2], - [all], [$2], - [], [$3], - [none], [$3], - [no-$1], [$3], - [$0([$1], [$2], [$3], m4_shiftn(4, $@))]) -T15,186 -_AC_EVAL_STDERR_m4_defun_pro([_AC_EVAL_STDERR])_AC_RUN_LOG_STDERR([eval $1], - [eval echo "$as_me:__oline__: \"$1\""])[]AC_PROVIDE([_AC_EVAL_STDERR])[]_m4_defun_epi([_AC_EVAL_STDERR]) -T14,827 -_AC_PROG_F77_V_m4_defun_pro([_AC_PROG_F77_V])AC_CACHE_CHECK([how to get verbose linking output from $F77], - [ac_cv_prog_f77_v], -[AC_LANG_ASSERT(Fortran 77) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], -[ac_cv_prog_f77_v= -# Try some options frequently used verbose output -for ac_verb in -v -verbose --verbose -V -\#\#\#; do - _AC_PROG_F77_V_OUTPUT($ac_verb) - # look for -l* and *.a constructs in the output - for ac_arg in $ac_f77_v_output; do - case $ac_arg in - [[\\/]]*.a | ?:[[\\/]]*.a | -[[lLRu]]*) - ac_cv_prog_f77_v=$ac_verb - break 2 ;; - esac - done -done -if test -z "$ac_cv_prog_f77_v"; then - AC_MSG_WARN([cannot determine how to obtain linking information from $F77]) -fi], - [AC_MSG_WARN([compilation failed])]) -])[]AC_PROVIDE([_AC_PROG_F77_V])[]_m4_defun_epi([_AC_PROG_F77_V]) -T16,0 -_AC_LIST_SUBDIRS -T10,177 -AS_MESSAGEm4_ifset([AS_MESSAGE_LOG_FD], - [{ _AS_ECHO([$as_me:__oline__: $1], [AS_MESSAGE_LOG_FD]) -_AS_ECHO([$as_me: $1], [$2]);}], - [_AS_ECHO([$as_me: $1], [$2])])[]dnl - -T12,199 -AC_FIND_XTRA_m4_defun_pro([AC_FIND_XTRA])AC_DIAGNOSE([obsolete], [The macro `AC_FIND_XTRA' is obsolete. -You should run autoupdate.])dnl -AC_PATH_XTRA($@)[]AC_PROVIDE([AC_FIND_XTRA])[]_m4_defun_epi([AC_FIND_XTRA]) -T27,14 -m4_location(AC_TYPE_MODE_T)actypes.m4:309 -T22,0 -m4_include(actypes.m4) -F3,3 -lenlen -F5,6 -m4_ififelse -T19,14264 -_AC_INIT_PARSE_ARGSm4_divert_push([PARSE_ARGS])dnl - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -AC_SUBST(exec_prefix, NONE)dnl -no_create= -no_recursion= -AC_SUBST(prefix, NONE)dnl -program_prefix=NONE -program_suffix=NONE -AC_SUBST(program_transform_name, [s,x,x,])dnl -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -AC_SUBST([bindir], ['${exec_prefix}/bin'])dnl -AC_SUBST([sbindir], ['${exec_prefix}/sbin'])dnl -AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])dnl -AC_SUBST([datadir], ['${prefix}/share'])dnl -AC_SUBST([sysconfdir], ['${prefix}/etc'])dnl -AC_SUBST([sharedstatedir], ['${prefix}/com'])dnl -AC_SUBST([localstatedir], ['${prefix}/var'])dnl -AC_SUBST([libdir], ['${exec_prefix}/lib'])dnl -AC_SUBST([includedir], ['${prefix}/include'])dnl -AC_SUBST([oldincludedir], ['/usr/include'])dnl -AC_SUBST([infodir], ['${datadir}/info'])dnl -AC_SUBST([mandir], ['${datadir}/man'])dnl - -# Identity of this package. -AC_SUBST([PACKAGE_NAME], - [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])dnl -AC_SUBST([PACKAGE_TARNAME], - [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])dnl -AC_SUBST([PACKAGE_VERSION], - [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])dnl -AC_SUBST([PACKAGE_STRING], - [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])dnl -AC_SUBST([PACKAGE_BUGREPORT], - [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])dnl - -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 - - ac_optarg=`expr "x$ac_option" : 'x[[^=]]*=\(.*\)'` - - # 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_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$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 ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null && - AC_MSG_ERROR([invalid feature name: $ac_feature]) - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([[^=]]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null && - AC_MSG_ERROR([invalid feature name: $ac_feature]) - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) 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 | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([[^=]]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null && - AC_MSG_ERROR([invalid package name: $ac_package]) - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null && - AC_MSG_ERROR([invalid package name: $ac_package]) - 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 ;; - - -*) AC_MSG_ERROR([unrecognized option: $ac_option -Try `$[0] --help' for more information.]) - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([[^=]]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null && - AC_MSG_ERROR([invalid variable name: $ac_envvar]) - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - AC_MSG_WARN([you should use --build, --host, --target]) - expr "x$ac_option" : "[.*[^-._$as_cr_alnum]]" >/dev/null && - AC_MSG_WARN([invalid host type: $ac_option]) - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - AC_MSG_ERROR([missing argument to $ac_option]) -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [[\\/$]]* | ?:[[\\/]]* | NONE | '' ) ;; - *) AC_MSG_ERROR([expected an absolute path for --$ac_var: $ac_val]);; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [[\\/$]]* | ?:[[\\/]]* ) ;; - *) AC_MSG_ERROR([expected an absolute path for --$ac_var: $ac_val]);; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: should be removed in autoconf 3.0. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - AC_MSG_WARN([If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used.]) - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec AS_MESSAGE_FD>/dev/null - -m4_divert_pop([PARSE_ARGS])dnl - -F6,6 -ifelseifelse -T24,2 -_m4_divert(INIT_PREPARE)30 -T8,151 -AS_UNSET_m4_defun_pro([AS_UNSET])m4_require([_AS_UNSET_PREPARE])dnl -$as_unset $1 || test "${$1+set}" != set || { $1=$2; export $1; }[]_m4_defun_epi([AS_UNSET]) -T21,237 -AC_STAT_MACROS_BROKEN_m4_defun_pro([AC_STAT_MACROS_BROKEN])AC_DIAGNOSE([obsolete], [The macro `AC_STAT_MACROS_BROKEN' is obsolete. -You should run autoupdate.])dnl -AC_HEADER_STAT($@)[]AC_PROVIDE([AC_STAT_MACROS_BROKEN])[]_m4_defun_epi([AC_STAT_MACROS_BROKEN]) -T8,4 -m4_quote[$*] -T28,18 -m4_location(AC_FUNC_FNMATCH)acfunctions.m4:356 -F8,5 -m4_indexindex -T15,2038 -AC_PROG_CC_STDC_m4_defun_pro([AC_PROG_CC_STDC])AC_REQUIRE([AC_PROG_CC])dnl -AC_BEFORE([$0], [AC_C_INLINE])dnl -AC_BEFORE([$0], [AC_C_CONST])dnl -dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require -dnl a magic option to avoid problems with ANSI preprocessor commands -dnl like #elif. -dnl FIXME: can't do this because then AC_AIX won't work due to a -dnl circular dependency. -dnl AC_BEFORE([$0], [AC_PROG_CPP]) -AC_MSG_CHECKING([for $CC option to accept ANSI C]) -AC_CACHE_VAL(ac_cv_prog_cc_stdc, -[ac_cv_prog_cc_stdc=no -ac_save_CC=$CC -AC_LANG_CONFTEST([AC_LANG_PROGRAM( -[[#include -#include -#include -#include -/* 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;]], -[[return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];]])]) -# 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" - AC_COMPILE_IFELSE([], - [ac_cv_prog_cc_stdc=$ac_arg -break]) -done -rm -f conftest.$ac_ext conftest.$ac_objext -CC=$ac_save_CC -]) -case "x$ac_cv_prog_cc_stdc" in - x|xno) - AC_MSG_RESULT([none needed]) ;; - *) - AC_MSG_RESULT([$ac_cv_prog_cc_stdc]) - CC="$CC $ac_cv_prog_cc_stdc" ;; -esac -[]AC_PROVIDE([AC_PROG_CC_STDC])[]_m4_defun_epi([AC_PROG_CC_STDC]) -T15,228 -AC_PLAIN_SCRIPTAS_INIT - -# Forbidden tokens and exceptions. -m4_pattern_forbid([^_?A[CHUM]_]) -m4_pattern_forbid([_AC_]) -# Actually reserved by M4sh. -m4_pattern_allow([^AS_FLAGS$]) - -m4_divert_push([BODY])dnl -m4_wrap([m4_divert_pop([BODY])[]])dnl - -T14,517 -_AC_RUN_IFELSEm4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl -rm -f conftest$ac_exeext -AS_IF([AC_TRY_EVAL(ac_link) && AC_TRY_COMMAND(./conftest$ac_exeext)], - [$2], - [echo "$as_me: program exited with status $ac_status" >&AS_MESSAGE_LOG_FD -echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD -cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD -m4_ifvaln([$3], [$3])dnl])[]dnl -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext m4_ifval([$1], - [conftest.$ac_ext])[]dnl - -T26,0 -m4_include(acfunctions.m4) -T20,3 -_AC_LANG_ABBREV(C++)cxx -T15,214 -AM_FUNC_OBSTACK_m4_defun_pro([AM_FUNC_OBSTACK])AC_DIAGNOSE([obsolete], [The macro `AM_FUNC_OBSTACK' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_OBSTACK($@)[]AC_PROVIDE([AM_FUNC_OBSTACK])[]_m4_defun_epi([AM_FUNC_OBSTACK]) -T15,214 -AC_MAJOR_HEADER_m4_defun_pro([AC_MAJOR_HEADER])AC_DIAGNOSE([obsolete], [The macro `AC_MAJOR_HEADER' is obsolete. -You should run autoupdate.])dnl -AC_HEADER_MAJOR($@)[]AC_PROVIDE([AC_MAJOR_HEADER])[]_m4_defun_epi([AC_MAJOR_HEADER]) -T18,1532 -AC_FUNC_STRERROR_R_m4_defun_pro([AC_FUNC_STRERROR_R])AC_CHECK_DECLS([strerror_r]) -AC_CHECK_FUNCS([strerror_r]) -if test $ac_cv_func_strerror_r = yes; then - AC_CACHE_CHECK([for working strerror_r], - ac_cv_func_strerror_r_works, - [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], - [[ - char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - ]])], - ac_cv_func_strerror_r_works=yes, - ac_cv_func_strerror_r_works=no) - if test $ac_cv_func_strerror_r_works = no; then - # strerror_r seems not to work, but now we have to choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT - extern char *strerror_r ();], - [[char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - exit (!isalpha (x));]])], - ac_cv_func_strerror_r_works=yes, - ac_cv_func_strerror_r_works=no, - ac_cv_func_strerror_r_works=no) - fi - ]) - if test $ac_cv_func_strerror_r_works = yes; then - AC_DEFINE_UNQUOTED([HAVE_WORKING_STRERROR_R], 1, - [Define to 1 if `strerror_r' returns a string.]) - fi -fi -[]AC_PROVIDE([AC_FUNC_STRERROR_R])[]_m4_defun_epi([AC_FUNC_STRERROR_R]) -T17,1 -_m4_divert(BINSH)0 -T18,372 -_AC_COMPILE_IFELSEm4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl -rm -f conftest.$ac_objext -AS_IF([AC_TRY_EVAL(ac_compile) && - AC_TRY_COMMAND([test -s conftest.$ac_objext])], - [$2], - [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD -cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD -m4_ifvaln([$3],[$3])dnl])dnl -rm -f conftest.$ac_objext m4_ifval([$1], [conftest.$ac_ext])[]dnl - -T16,94 -_AS_TEST_PREPARE_m4_defun_pro([_AS_TEST_PREPARE])as_executable_p="test -f" -[]_m4_defun_epi([_AS_TEST_PREPARE]) -T15,111 -AS_VAR_TEST_SETAS_LITERAL_IF([$1], - [test "${$1+set}" = set], - [eval "test \"\${$1+set}\" = set"]) -T33,179 -_AC_CHECK_TYPE_REPLACEMENT_TYPE_Pm4_if(m4_regexp([$1], - [^\(_Bool\|bool\|char\|double\|float\|int\|long\|short\|\(un\)?signed\|[_a-zA-Z][_a-zA-Z0-9]*_t\)[][_a-zA-Z0-9() *]*$]), - 0, 1, 0)dnl - -T16,137 -AC_LANG_INT_SAVE_m4_defun_pro([AC_LANG_INT_SAVE])_AC_LANG_DISPATCH([$0], _AC_LANG, $@)[]AC_PROVIDE([AC_LANG_INT_SAVE])[]_m4_defun_epi([AC_LANG_INT_SAVE]) -T8,183 -AC_ERROR_m4_defun_pro([AC_ERROR])AC_DIAGNOSE([obsolete], [The macro `AC_ERROR' is obsolete. -You should run autoupdate.])dnl -AC_MSG_ERROR($@)[]AC_PROVIDE([AC_ERROR])[]_m4_defun_epi([AC_ERROR]) -T37,13 -m4_location(AC_LANG_COMPILER_REQUIRE)aclang.m4:532 -T15,133 -_AS_BOX_LITERALcat <<\_ASBOX -m4_patsubst([$1], [.], m4_if([$2], [], [[=]], [[$2]])) -$1 -m4_patsubst([$1], [.], m4_if([$2], [], [[=]], [[$2]])) -_ASBOX -T13,230 -AC_PATH_PROGS_m4_defun_pro([AC_PATH_PROGS])for ac_prog in $2 -do - AC_PATH_PROG([$1], [$ac_prog], , [$4]) - test -n "$$1" && break -done -m4_ifvaln([$3], [test -n "$$1" || $1="$3"])dnl -[]AC_PROVIDE([AC_PATH_PROGS])[]_m4_defun_epi([AC_PATH_PROGS]) -T41,14 -m4_location(AC_LANG_COMPILER(Fortran 77))aclang.m4:1263 -T7,470 -m4_init# We need a tmp directory. -m4_ifndef([m4_tmpdir], - [m4_define([m4_tmpdir], [/tmp])]) - -# M4sugar reserves `m4_[A-Za-z0-9_]*'. We'd need \b and +, -# but they are not portable. -m4_pattern_forbid([^m4_]) -m4_pattern_forbid([^dnl$]) - -# Check the divert push/pop perfect balance. -m4_wrap([m4_ifdef([_m4_divert_diversion], - [m4_fatal([$0: unbalanced m4_divert_push:] -m4_defn([m4_divert_stack]))])[]]) - -m4_divert_push([KILL]) -m4_wrap([m4_divert_pop([KILL])[]]) - -T14,482 -_AC_PROG_F77_Gac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g, -[FFLAGS=-g -_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], -[ac_cv_prog_f77_g=yes], -[ac_cv_prog_f77_g=no]) -]) -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "$G77" = yes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "$G77" = yes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi[]dnl - -T15,592 -AC_LONG_64_BITS_m4_defun_pro([AC_LONG_64_BITS])AC_DIAGNOSE([obsolete], [The macro `AC_LONG_64_BITS' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_SIZEOF([long int]) -AC_DIAGNOSE([obsolete], [$0: - your code should no longer depend upon `LONG_64_BITS', but upon - `SIZEOF_LONG_INT'. Remove this warning and the `AC_DEFINE' when - you adjust the code.])dnl -test $ac_cv_sizeof_long_int = 8 && - AC_DEFINE(LONG_64_BITS, 1, - [Define if `sizeof (long int)' = 8. Obsolete, use - `SIZEOF_LONG_INT'.]) -[]AC_PROVIDE([AC_LONG_64_BITS])[]_m4_defun_epi([AC_LONG_64_BITS]) -T9,93 -m4_popdefm4_ifndef([$1], - [m4_fatal([$0: undefined macro: $1])])dnl -m4_builtin([popdef], $@) -T10,399 -AS_MKDIR_P{ case $1 in - [[\\/]]* | ?:[[\\/]]* ) as_incr_dir=;; - *) as_incr_dir=.;; -esac -as_dummy=$1 -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$[@]"`; do - case $as_mkdir_dir in - # Skip DOS drivespec - ?:) as_incr_dir=$as_mkdir_dir ;; - *) - as_incr_dir=$as_incr_dir/$as_mkdir_dir - test -d "$as_incr_dir" || mkdir "$as_incr_dir" - ;; - esac -done; } - -T13,209 -AC_UTIME_NULL_m4_defun_pro([AC_UTIME_NULL])AC_DIAGNOSE([obsolete], [The macro `AC_UTIME_NULL' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_UTIME_NULL($@)[]AC_PROVIDE([AC_UTIME_NULL])[]_m4_defun_epi([AC_UTIME_NULL]) -T15,809 -AC_PROG_F77_C_O_m4_defun_pro([AC_PROG_F77_C_O])AC_REQUIRE([AC_PROG_F77])dnl -AC_CACHE_CHECK([whether $F77 understand -c and -o together], - [ac_cv_prog_f77_c_o], -[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) -# We test twice because some compilers refuse to overwrite an existing -# `.o' file with `-o', although they will create one. -ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$ac_objext >&AS_MESSAGE_LOG_FD' -if AC_TRY_EVAL(ac_try) && - test -f conftest.$ac_objext && - AC_TRY_EVAL(ac_try); then - ac_cv_prog_f77_c_o=yes -else - ac_cv_prog_f77_c_o=no -fi -rm -f conftest*]) -if test $ac_cv_prog_f77_c_o = no; then - AC_DEFINE(F77_NO_MINUS_C_MINUS_O, 1, - [Define if your Fortran 77 compiler doesn't accept -c and -o together.]) -fi -[]AC_PROVIDE([AC_PROG_F77_C_O])[]_m4_defun_epi([AC_PROG_F77_C_O]) -T13,422 -AC_CACHE_LOADif test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - AC_MSG_NOTICE([loading cache $cache_file]) - case $cache_file in - [[\\/]]* | ?:[[\\/]]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - AC_MSG_NOTICE([creating cache $cache_file]) - >$cache_file -fi - -T11,241 -_AC_RUN_LOG_m4_defun_pro([_AC_RUN_LOG]){ ($2) >&AS_MESSAGE_LOG_FD - ($1) 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }[]AC_PROVIDE([_AC_RUN_LOG])[]_m4_defun_epi([_AC_RUN_LOG]) -T13,694 -_AC_FUNC_STATAC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])dnl -AC_CACHE_CHECK([whether $1 accepts an empty string], - [ac_cv_func_$1_empty_string_bug], -[AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], -[[struct stat sbuf; - exit ($1 ("", &sbuf) ? 1 : 0);]])], - [ac_cv_func_$1_empty_string_bug=yes], - [ac_cv_func_$1_empty_string_bug=no], - [ac_cv_func_$1_empty_string_bug=yes])]) -if test $ac_cv_func_$1_empty_string_bug = yes; then - AC_LIBOBJ([$1]) - AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1_EMPTY_STRING_BUG]), 1, - [Define if `$1' has the bug that it succeeds when - given the zero-length file name argument.]) -fi - -T19,239 -AC_SETVBUF_REVERSED_m4_defun_pro([AC_SETVBUF_REVERSED])AC_DIAGNOSE([obsolete], [The macro `AC_SETVBUF_REVERSED' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_SETVBUF_REVERSED($@)[]AC_PROVIDE([AC_SETVBUF_REVERSED])[]_m4_defun_epi([AC_SETVBUF_REVERSED]) -T14,211 -AC_LONG_DOUBLE_m4_defun_pro([AC_LONG_DOUBLE])AC_DIAGNOSE([obsolete], [The macro `AC_LONG_DOUBLE' is obsolete. -You should run autoupdate.])dnl -AC_C_LONG_DOUBLE($@)[]AC_PROVIDE([AC_LONG_DOUBLE])[]_m4_defun_epi([AC_LONG_DOUBLE]) -T19,234 -AC_CANONICAL_SYSTEM_m4_defun_pro([AC_CANONICAL_SYSTEM])AC_DIAGNOSE([obsolete], [The macro `AC_CANONICAL_SYSTEM' is obsolete. -You should run autoupdate.])dnl -AC_CANONICAL_TARGET($@)[]AC_PROVIDE([AC_CANONICAL_SYSTEM])[]_m4_defun_epi([AC_CANONICAL_SYSTEM]) -T13,1576 -AC_CHECK_PROG_m4_defun_pro([AC_CHECK_PROG])# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=$[2] -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_prog_$1, -[if test -n "$$1"; then - ac_cv_prog_$1="$$1" # Let the user override the test. -else -m4_ifvaln([$6], -[ ac_prog_rejected=no])dnl - AC_SHELL_PATH_WALK([$5], -[AS_EXECUTABLE_P("$ac_dir/$ac_word") || continue -m4_ifvaln([$6], -[if test "$ac_dir/$ac_word" = "$6"; then - ac_prog_rejected=yes - continue -fi])dnl -ac_cv_prog_$1="$3" -echo "$as_me:__oline__: found $ac_dir/$ac_word" >&AS_MESSAGE_LOG_FD -break]) -m4_ifvaln([$6], -[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_$1 - shift - if test $[@%:@] != 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 $1 to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" ${1+"$[@]"} - shift - ac_cv_prog_$1="$[@]" -m4_if([$2], [$4], -[ else - # Default is a loser. - AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl -m4_default([$5], [\$PATH])]) -])dnl - fi -fi])dnl -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_CHECK_PROGS will keep looking. -m4_ifvaln([$4], -[ test -z "$ac_cv_prog_$1" && ac_cv_prog_$1="$4"])dnl -fi])dnl -$1=$ac_cv_prog_$1 -if test -n "$$1"; then - AC_MSG_RESULT([$$1]) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST($1)dnl -[]AC_PROVIDE([AC_CHECK_PROG])[]_m4_defun_epi([AC_CHECK_PROG]) -T24,14 -m4_location(AC_C_INLINE)aclang.m4:1602 -T14,213 -ac_cv_prog_gxx_m4_defun_pro([ac_cv_prog_gxx])AC_DIAGNOSE([obsolete], [The macro `ac_cv_prog_gxx' is obsolete. -You should run autoupdate.])dnl -ac_cv_cxx_compiler_gnu[]AC_PROVIDE([ac_cv_prog_gxx])[]_m4_defun_epi([ac_cv_prog_gxx]) -T18,362 -_AC_RUN_LOG_STDERR_m4_defun_pro([_AC_RUN_LOG_STDERR]){ ($2) >&AS_MESSAGE_LOG_FD - ($1) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }[]AC_PROVIDE([_AC_RUN_LOG_STDERR])[]_m4_defun_epi([_AC_RUN_LOG_STDERR]) -T20,240 -AC_LANG_PROGRAM(C++)$1 -m4_ifdef([_AC_LANG_PROGRAM_C_F77_HOOKS], [_AC_LANG_PROGRAM_C_F77_HOOKS()])dnl -int -main () -{ -dnl Do *not* indent the following line: there may be CPP directives. -dnl Don't move the `;' right after for the same reason. -$2 - ; - return 0; -} -T14,3837 -AC_FUNC_MKTIME_m4_defun_pro([AC_FUNC_MKTIME])AC_REQUIRE([AC_HEADER_TIME])dnl -AC_CHECK_HEADERS(sys/time.h unistd.h) -AC_CHECK_FUNCS(alarm) -AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, -[AC_RUN_IFELSE([AC_LANG_SOURCE( -[[/* Test program from Paul Eggert and Tony Leneis. */ -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - -#if HAVE_UNISTD_H -# include -#endif - -#if !HAVE_ALARM -# define alarm(X) /* empty */ -#endif - -/* Work around redefinition to rpl_putenv by other config tests. */ -#undef putenv - -static time_t time_t_max; - -/* Values we'll use to set the TZ environment variable. */ -static const char *const tz_strings[] = { - (const char *) 0, "TZ=GMT0", "TZ=JST-9", - "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" -}; -#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) - -/* Fail if mktime fails to convert a date in the spring-forward gap. - Based on a problem report from Andreas Jaeger. */ -static void -spring_forward_gap () -{ - /* glibc (up to about 1998-10-07) failed this test. */ - struct tm tm; - - /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" - instead of "TZ=America/Vancouver" in order to detect the bug even - on systems that don't support the Olson extension, or don't have the - full zoneinfo tables installed. */ - putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); - - tm.tm_year = 98; - tm.tm_mon = 3; - tm.tm_mday = 5; - tm.tm_hour = 2; - tm.tm_min = 0; - tm.tm_sec = 0; - tm.tm_isdst = -1; - if (mktime (&tm) == (time_t)-1) - exit (1); -} - -static void -mktime_test (now) - time_t now; -{ - struct tm *lt; - if ((lt = localtime (&now)) && mktime (lt) != now) - exit (1); - now = time_t_max - now; - if ((lt = localtime (&now)) && mktime (lt) != now) - exit (1); -} - -static void -irix_6_4_bug () -{ - /* Based on code from Ariel Faigon. */ - struct tm tm; - tm.tm_year = 96; - tm.tm_mon = 3; - tm.tm_mday = 0; - tm.tm_hour = 0; - tm.tm_min = 0; - tm.tm_sec = 0; - tm.tm_isdst = -1; - mktime (&tm); - if (tm.tm_mon != 2 || tm.tm_mday != 31) - exit (1); -} - -static void -bigtime_test (j) - int j; -{ - struct tm tm; - time_t now; - tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; - now = mktime (&tm); - if (now != (time_t) -1) - { - struct tm *lt = localtime (&now); - if (! (lt - && lt->tm_year == tm.tm_year - && lt->tm_mon == tm.tm_mon - && lt->tm_mday == tm.tm_mday - && lt->tm_hour == tm.tm_hour - && lt->tm_min == tm.tm_min - && lt->tm_sec == tm.tm_sec - && lt->tm_yday == tm.tm_yday - && lt->tm_wday == tm.tm_wday - && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) - == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) - exit (1); - } -} - -int -main () -{ - time_t t, delta; - int i, j; - - /* This test makes some buggy mktime implementations loop. - Give up after 60 seconds; a mktime slower than that - isn't worth using anyway. */ - alarm (60); - - for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) - continue; - time_t_max--; - delta = time_t_max / 997; /* a suitable prime number */ - for (i = 0; i < N_STRINGS; i++) - { - if (tz_strings[i]) - putenv (tz_strings[i]); - - for (t = 0; t <= time_t_max - delta; t += delta) - mktime_test (t); - mktime_test ((time_t) 60 * 60); - mktime_test ((time_t) 60 * 60 * 24); - - for (j = 1; 0 < j; j *= 2) - bigtime_test (j); - bigtime_test (j - 1); - } - irix_6_4_bug (); - spring_forward_gap (); - exit (0); -}]])], - [ac_cv_func_working_mktime=yes], - [ac_cv_func_working_mktime=no], - [ac_cv_func_working_mktime=no])]) -if test $ac_cv_func_working_mktime = no; then - AC_LIBOBJ([mktime]) -fi -[]AC_PROVIDE([AC_FUNC_MKTIME])[]_m4_defun_epi([AC_FUNC_MKTIME]) -T36,16 -m4_location(AC_SYS_SIGLIST_DECLARED)acoldnames.m4:73 -T6,27 -m4_cmpm4_sign(m4_eval([$1 - $2])) -T34,16 -m4_location(AC_TIME_WITH_SYS_TIME)acoldnames.m4:75 -F6,3 -m4_lenlen -T8,88 -_m4_warn_m4_warning_error_ifelse([m4_fatal([$1])], - [m4_warning([$1])]) -T15,52 -AC_DEFINE_TRACEAS_LITERAL_IF([$1], [AC_DEFINE_TRACE_LITERAL([$1])]) -T19,16 -m4_location(AC_USG)acheaders.m4:408 -T20,1 -_m4_divert(REVISION)1 -T19,17 -m4_location(AC_RSH)acspecific.m4:285 -T28,19 -m4_location(AC_FUNC_SETPGRP)acfunctions.m4:1177 -T20,270 -_AC_ARG_VAR_CPPFLAGS_m4_defun_pro([_AC_ARG_VAR_CPPFLAGS])AC_ARG_VAR([CPPFLAGS], - [C/C++ preprocessor flags, e.g. -I if you have - headers in a nonstandard directory ])[]AC_PROVIDE([_AC_ARG_VAR_CPPFLAGS])[]_m4_defun_epi([_AC_ARG_VAR_CPPFLAGS]) -T19,159 -AC_LANG_INT_SAVE(C)AC_LANG_PROGRAM([m4_default([$1], [@%:@include ])], -[FILE *f = fopen ("conftest.val", "w"); -if (!f) - exit (1); -fprintf (f, "%d", ($2)); -fclose (f);]) -T16,598 -AC_HEADER_DIRENT_m4_defun_pro([AC_HEADER_DIRENT])AH_CHECK_HEADERS_DIRENT(dirent.h sys/ndir.h sys/dir.h ndir.h) -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - _AC_CHECK_HEADER_DIRENT($ac_hdr, - [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$ac_hdr), 1) -ac_header_dirent=$ac_hdr; break]) -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then - AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir") -else - AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx") -fi -[]AC_PROVIDE([AC_HEADER_DIRENT])[]_m4_defun_epi([AC_HEADER_DIRENT]) -T9,36 -m4_renamem4_copy([$1], [$2])m4_undefine([$1]) -T40,14 -m4_location(AC_LANG_PREPROC(Fortran 77))aclang.m4:1255 -T31,16 -m4_location(AC_HEADER_SYS_WAIT)acheaders.m4:311 -T25,0 -AC_LIST_COMMANDS_COMMANDS -T28,16 -m4_location(AC_STDC_HEADERS)acoldnames.m4:69 -T16,143 -AH_CHECK_HEADERSAC_FOREACH([AC_Header], [$1], - [AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Header), - [Define if you have the <]AC_Header[> header file.])]) -T14,117 -AC_REQUIRE_CPP_m4_defun_pro([AC_REQUIRE_CPP])AC_LANG_PREPROC_REQUIRE[]AC_PROVIDE([AC_REQUIRE_CPP])[]_m4_defun_epi([AC_REQUIRE_CPP]) -T14,143 -AC_LINK_IFELSE_m4_defun_pro([AC_LINK_IFELSE])AC_LANG_COMPILER_REQUIRE()dnl -_AC_LINK_IFELSE($@)[]AC_PROVIDE([AC_LINK_IFELSE])[]_m4_defun_epi([AC_LINK_IFELSE]) -T32,14 -m4_location(AC_STRUCT_ST_BLOCKS)actypes.m4:497 -T14,50 -m4_divert_textm4_divert_push([$1])dnl -$2 -m4_divert_pop([$1])dnl - -T24,93 -_AC_CONFIG_COMMANDS_INITm4_ifval([$1], - [m4_append([_AC_OUTPUT_COMMANDS_INIT], - [$1 -])]) -T25,17 -m4_location(AC_PATH_TOOL)acgeneral.m4:2430 -F8,5 -m4_indirindir -T27,1245 -_AC_COMPILER_EXEEXT_DEFAULT# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -AC_MSG_CHECKING([for _AC_LANG compiler default output]) -ac_link_default=`echo "$ac_link" | sed ['s/ -o *conftest[^ ]*//']` -AS_IF([AC_TRY_EVAL(ac_link_default)], -[# Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. -for ac_file in `ls a.exe conftest.exe 2>/dev/null; - ls a.out conftest 2>/dev/null; - ls a.* conftest.* 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - a.out ) # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']` - # FIXME: I believe we export ac_cv_exeext for Libtool --akim. - export ac_cv_exeext - break;; - * ) break;; - esac -done], - [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD -cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD -AC_MSG_ERROR([_AC_LANG compiler cannot create executables], 77)]) -ac_exeext=$ac_cv_exeext -AC_MSG_RESULT([$ac_file]) - -T12,107 -AC_FUNC_STAT_m4_defun_pro([AC_FUNC_STAT])_AC_FUNC_STAT(stat)[]AC_PROVIDE([AC_FUNC_STAT])[]_m4_defun_epi([AC_FUNC_STAT]) -T6,93 -AS_BOXAS_LITERAL_IF([$1], - [_AS_BOX_LITERAL($@)], - [_AS_BOX_INDIR($@)]) -T18,767 -AC_HEADER_SYS_WAIT_m4_defun_pro([AC_HEADER_SYS_WAIT])AC_CACHE_CHECK([for sys/wait.h that is POSIX.1 compatible], - ac_cv_header_sys_wait_h, -[AC_COMPILE_IFELSE( -[AC_LANG_PROGRAM([#include -#include -#ifndef WEXITSTATUS -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif -], -[ int s; - wait (&s); - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;])], - [ac_cv_header_sys_wait_h=yes], - [ac_cv_header_sys_wait_h=no])]) -if test $ac_cv_header_sys_wait_h = yes; then - AC_DEFINE(HAVE_SYS_WAIT_H, 1, - [Define if you have that is POSIX.1 compatible.]) -fi -[]AC_PROVIDE([AC_HEADER_SYS_WAIT])[]_m4_defun_epi([AC_HEADER_SYS_WAIT]) -T15,876 -AC_HEADER_MAJOR_m4_defun_pro([AC_HEADER_MAJOR])AC_CACHE_CHECK(whether sys/types.h defines makedev, - ac_cv_header_sys_types_h_makedev, -[AC_TRY_LINK([#include -], [return makedev(0, 0);], - ac_cv_header_sys_types_h_makedev=yes, ac_cv_header_sys_types_h_makedev=no) -]) - -if test $ac_cv_header_sys_types_h_makedev = no; then -AC_CHECK_HEADER(sys/mkdev.h, - [AC_DEFINE(MAJOR_IN_MKDEV, 1, - [Define if `major', `minor', and `makedev' are - declared in .])]) - - if test $ac_cv_header_sys_mkdev_h = no; then - AC_CHECK_HEADER(sys/sysmacros.h, - [AC_DEFINE(MAJOR_IN_SYSMACROS, 1, - [Define if `major', `minor', and `makedev' are - declared in .])]) - fi -fi -[]AC_PROVIDE([AC_HEADER_MAJOR])[]_m4_defun_epi([AC_HEADER_MAJOR]) -T28,13 -m4_location(AC_LANG_RESTORE)aclang.m4:173 -T13,26 -m4_cr_LETTERSABCDEFGHIJKLMNOPQRSTUVWXYZ -T27,3 -_AC_LANG_ABBREV(Fortran 77)f77 -T9,186 -_AS_QUOTE_AS_QUOTE_IFELSE([$1], - [AS_ESCAPE([$1], [`""])], - [m4_warn([obsolete], - [back quotes and double quotes should not be escaped in: $1])dnl -$1]) -T10,54 -m4_noquotem4_changequote(-=<{,}>=-)$1-=<{}>=-m4_changequote([,]) -T8,143 -m4_matchm4_if([$#], 0, [], - [$#], 1, [], - [$#], 2, [$2], - m4_regexp([$1], [$2]), -1, [m4_match([$1], m4_shiftn(3, $@))], - [$3]) -T28,16 -m4_location(AC_MAJOR_HEADER)acoldnames.m4:59 -T16,2 -_m4_divert(KILL)-1 -T9,138 -AC_PREREQm4_if(m4_version_compare(m4_defn([AC_ACVERSION]), [$1]), -1, - [AC_FATAL([Autoconf version $1 or higher is required for this script])]) -T19,1091 -AC_OUTPUT_MAKE_DEFS[# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\EOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -EOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed -] -T25,17 -m4_location(AC_PROG_YACC)acspecific.m4:124 -T20,19 -m4_location(AC_MMAP)acfunctions.m4:1085 -T10,711 -AC_REQUIREm4_expansion_stack_push(m4_location[: $1 is required by...])dnl -m4_ifdef([_m4_expanding($1)], - [m4_fatal([$0: circular dependency of $1])])dnl -m4_ifndef([_m4_divert_dump], - [m4_fatal([$0: cannot be used outside of an m4_defun'd macro])])dnl -m4_provide_ifelse([$1], - [], - [m4_divert_push(m4_eval(m4_divnum - 1))dnl -m4_default([$2], [$1]) -m4_divert(m4_defn([_m4_divert_dump]))dnl -m4_undivert(m4_defn([_m4_divert_diversion]))dnl -m4_divert_pop(m4_defn([_m4_divert_dump]))])dnl -m4_provide_ifelse([$1], - [], - [m4_warn([syntax], - [$1 is m4_require'd but is not m4_defun'd])])dnl -m4_expansion_stack_pop()dnl - -T7,57 -AS_EXIT{ (exit m4_default([$1], 1)); exit m4_default([$1], 1); } -T14,202 -AC_DECL_YYTEXT_m4_defun_pro([AC_DECL_YYTEXT])AC_DIAGNOSE([obsolete], [The macro `AC_DECL_YYTEXT' is obsolete. -You should run autoupdate.])dnl -AC_PROG_LEX[]AC_PROVIDE([AC_DECL_YYTEXT])[]_m4_defun_epi([AC_DECL_YYTEXT]) -T28,18 -m4_location(fp_FUNC_FNMATCH)acfunctions.m4:363 -F8,8 -traceofftraceoff -F8,5 -m4_shiftshift -T17,52 -AC_LANG_SOURCE(C)#line __oline__ "configure" -#include "confdefs.h" -$1 -T15,749 -AC_CHECK_HEADER_m4_defun_pro([AC_CHECK_HEADER])AS_VAR_PUSHDEF([ac_Header], [ac_cv_header_$1])dnl -AC_CACHE_CHECK([for $1], ac_Header, - [m4_ifval([$4], - [AC_COMPILE_IFELSE([AC_LANG_SOURCE([$4 -@%:@include <$1>])], - [AS_VAR_SET(ac_Header, yes)], - [AS_VAR_SET(ac_Header, no)])], - [AC_PREPROC_IFELSE([AC_LANG_SOURCE([@%:@include <$1>])], - [AS_VAR_SET(ac_Header, yes)], - [AS_VAR_SET(ac_Header, no)])])]) -AS_IF([test AS_VAR_GET(ac_Header) = yes], [$2], [$3])[]dnl -AS_VAR_POPDEF([ac_Header])dnl -[]AC_PROVIDE([AC_CHECK_HEADER])[]_m4_defun_epi([AC_CHECK_HEADER]) -T21,16 -m4_location(AC_PID_T)acoldnames.m4:63 -T29,13 -m4_location(AC_LANG_INT_SAVE)aclang.m4:338 -T23,2 -_m4_divert(VERSION_END)23 -T8,151 -_AC_EVAL_m4_defun_pro([_AC_EVAL])_AC_RUN_LOG([eval $1], - [eval echo "$as_me:__oline__: \"$1\""])[]AC_PROVIDE([_AC_EVAL])[]_m4_defun_epi([_AC_EVAL]) -T6,502 -AC_AIX_m4_defun_pro([AC_AIX])AH_VERBATIM([_ALL_SOURCE], -[/* Define if on AIX 3. - System headers sometimes define this. - We just want to avoid a redefinition error message. */ -@%:@ifndef _ALL_SOURCE -@%:@ undef _ALL_SOURCE -@%:@endif])dnl -AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl -AC_BEFORE([$0], [AC_RUN_IFELSE])dnl -AC_MSG_CHECKING([for AIX]) -AC_EGREP_CPP(yes, -[#ifdef _AIX - yes -#endif -], -[AC_MSG_RESULT([yes]) -AC_DEFINE(_ALL_SOURCE)], -[AC_MSG_RESULT([no])]) -[]AC_PROVIDE([AC_AIX])[]_m4_defun_epi([AC_AIX]) -T22,18 -m4_location(AC_ALLOCA)acfunctions.m4:250 -T15,145 -AC_EGREP_HEADER_m4_defun_pro([AC_EGREP_HEADER])AC_EGREP_CPP([$1], -[#include <$2> -], [$3], [$4])[]AC_PROVIDE([AC_EGREP_HEADER])[]_m4_defun_epi([AC_EGREP_HEADER]) -T18,817 -AC_CONFIG_AUX_DIRS_m4_defun_pro([AC_CONFIG_AUX_DIRS])ac_aux_dir= -for ac_dir in $1; 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 - elif test -f $ac_dir/shtool; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - AC_MSG_ERROR([cannot find install-sh or install.sh in $1]) -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. -AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -[]AC_PROVIDE([AC_CONFIG_AUX_DIRS])[]_m4_defun_epi([AC_CONFIG_AUX_DIRS]) -T28,16 -m4_location(AC_HEADER_CHECK)acoldnames.m4:30 -T13,426 -AC_TYPE_UID_T_m4_defun_pro([AC_TYPE_UID_T])AC_CACHE_CHECK(for uid_t in sys/types.h, ac_cv_type_uid_t, -[AC_EGREP_HEADER(uid_t, sys/types.h, - ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)]) -if test $ac_cv_type_uid_t = no; then - AC_DEFINE(uid_t, int, [Define to `int' if doesn't define.]) - AC_DEFINE(gid_t, int, [Define to `int' if doesn't define.]) -fi -[]AC_PROVIDE([AC_TYPE_UID_T])[]_m4_defun_epi([AC_TYPE_UID_T]) -T14,210 -AC_SIZEOF_TYPE_m4_defun_pro([AC_SIZEOF_TYPE])AC_DIAGNOSE([obsolete], [The macro `AC_SIZEOF_TYPE' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_SIZEOF($@)[]AC_PROVIDE([AC_SIZEOF_TYPE])[]_m4_defun_epi([AC_SIZEOF_TYPE]) -T14,1077 -AC_FUNC_MEMCMP_m4_defun_pro([AC_FUNC_MEMCMP])AC_CACHE_CHECK([for working memcmp], ac_cv_func_memcmp_working, -[AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[ - /* Some versions of memcmp are not 8-bit clean. */ - char c0 = 0x40, c1 = 0x80, c2 = 0x81; - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) - exit (1); - - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes - or more and with at least one buffer not starting on a 4-byte boundary. - William Lewis provided this test program. */ - { - char foo[21]; - char bar[21]; - int i; - for (i = 0; i < 4; i++) - { - char *a = foo + i; - char *b = bar + i; - strcpy (a, "--------01111111"); - strcpy (b, "--------10000000"); - if (memcmp (a, b, 16) >= 0) - exit (1); - } - exit (0); - } -]])], - [ac_cv_func_memcmp_working=yes], - [ac_cv_func_memcmp_working=no], - [ac_cv_func_memcmp_working=no])]) -test $ac_cv_func_memcmp_working = no && AC_LIBOBJ([memcmp]) -[]AC_PROVIDE([AC_FUNC_MEMCMP])[]_m4_defun_epi([AC_FUNC_MEMCMP]) -T26,14 -m4_location(AC_TYPE_UID_T)actypes.m4:303 -T27,17 -m4_location(AC_SEARCH_LIBS)acgeneral.m4:2537 -T32,13 -m4_location(AC_LANG_COMPILER(C))aclang.m4:917 -T24,161 -AC_LANG_BOOL_COMPILE_TRY_m4_defun_pro([AC_LANG_BOOL_COMPILE_TRY])_AC_LANG_DISPATCH([$0], _AC_LANG, $@)[]AC_PROVIDE([AC_LANG_BOOL_COMPILE_TRY])[]_m4_defun_epi([AC_LANG_BOOL_COMPILE_TRY]) -T23,0 -AC_DEFINE_TRACE_LITERAL -T29,17 -m4_location(AC_LINKER_OPTION)acgeneral.m4:4486 -T17,685 -AC_CANONICAL_HOSTm4_provide_ifelse([AC_CANONICAL_HOST], - [m4_warn([syntax], [AC_CANONICAL_HOST invoked multiple times])], - [_m4_defun_pro([AC_CANONICAL_HOST])AC_REQUIRE([AC_CANONICAL_BUILD])dnl -m4_divert_text([HELP_CANON], -[[ --host=HOST build programs to run on HOST [BUILD]]])dnl -AC_CACHE_CHECK([host system type], [ac_cv_host], -[ac_cv_host_alias=$host_alias -test -z "$ac_cv_host_alias" && - ac_cv_host_alias=$ac_cv_build_alias -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || - AC_MSG_ERROR([$ac_config_sub $ac_cv_host_alias failed]) -]) -_AC_CANONICAL_SPLIT([host]) -[]AC_PROVIDE([AC_CANONICAL_HOST])[]_m4_defun_epi([AC_CANONICAL_HOST])]) -T10,40 -m4_warningm4_errprintn(m4_location[: warning: $1]) -T30,17 -m4_location(AC_HAVE_POUNDBANG)acspecific.m4:346 -T15,281 -AS_DIRNAME_EXPR_m4_defun_pro([AS_DIRNAME_EXPR])m4_require([_AS_EXPR_PREPARE])dnl -$as_expr X[]$1 : 'X\(.*[[^/]]\)//*[[^/][^/]]*/*$' \| \ - X[]$1 : 'X\(//\)[[^/]]' \| \ - X[]$1 : 'X\(//\)$' \| \ - X[]$1 : 'X\(/\)' \| \ - . : '\(.\)'[]_m4_defun_epi([AS_DIRNAME_EXPR]) -T28,161 -AC_LANG_COMPILER(Fortran 77)_m4_defun_pro([AC_LANG_COMPILER(Fortran 77)])AC_REQUIRE([AC_PROG_F77])[]AC_PROVIDE([AC_LANG_COMPILER(Fortran 77)])[]_m4_defun_epi([AC_LANG_COMPILER(Fortran 77)]) -T24,17 -m4_location(_AC_RUN_LOG)acgeneral.m4:2126 -T13,431 -m4_divert_popm4_ifval([$1], - [m4_if(_m4_divert([$1]), m4_divnum, [], - [m4_fatal([$0($1): unexpected current diversion: ]m4_divnum)])])dnl -m4_popdef([_m4_divert_diversion])dnl -dnl m4_ifndef([_m4_divert_diversion], -dnl [m4_fatal([too many m4_divert_pop])])dnl -m4_builtin([divert], - m4_ifdef([_m4_divert_diversion], - [_m4_divert(_m4_divert_diversion)], -1))dnl -m4_popdef([m4_divert_stack])dnl - -T27,14 -m4_location(AC_CHECK_TYPES)actypes.m4:172 -T33,1144 -_AC_INCLUDES_DEFAULT_REQUIREMENTS_m4_defun_pro([_AC_INCLUDES_DEFAULT_REQUIREMENTS])m4_divert_text([DEFAULTS], -[# Factoring default headers for most tests. -dnl If ever you change this variable, please keep autoconf.texi in sync. -ac_includes_default="\ -#include -#if HAVE_SYS_TYPES_H -# include -#endif -#if HAVE_SYS_STAT_H -# include -#endif -#if STDC_HEADERS -# include -# include -#else -# if HAVE_STDLIB_H -# include -# endif -#endif -#if HAVE_STRING_H -# if !STDC_HEADERS && HAVE_MEMORY_H -# include -# endif -# include -#endif -#if HAVE_STRINGS_H -# include -#endif -#if HAVE_INTTYPES_H -# include -#else -# if HAVE_STDINT_H -# include -# endif -#endif -#if HAVE_UNISTD_H -# include -#endif" -])dnl -AC_REQUIRE([AC_HEADER_STDC])dnl -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h], - [], [], $ac_includes_default) -[]AC_PROVIDE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])[]_m4_defun_epi([_AC_INCLUDES_DEFAULT_REQUIREMENTS]) -T23,133 -m4_expansion_stack_dumpm4_ifdef([m4_expansion_stack], - [m4_errprintn(m4_defn([m4_expansion_stack]))])dnl -m4_errprintn(m4_location[: the top level]) -T28,14 -m4_location(AC_LONG_64_BITS)actypes.m4:398 -T11,100 -AC_TRY_EVAL_m4_defun_pro([AC_TRY_EVAL])_AC_EVAL([$$1])[]AC_PROVIDE([AC_TRY_EVAL])[]_m4_defun_epi([AC_TRY_EVAL]) -T13,931 -AC_FUNC_CHOWN_m4_defun_pro([AC_FUNC_CHOWN])AC_REQUIRE([AC_TYPE_UID_T])dnl -AC_CHECK_HEADERS(unistd.h) -AC_CACHE_CHECK([for working chown], ac_cv_func_chown_works, -[AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT -#include -], -[[ char *f = "conftest.chown"; - struct stat before, after; - - if (creat (f, 0600) < 0) - exit (1); - if (stat (f, &before) < 0) - exit (1); - if (chown (f, (uid_t) -1, (gid_t) -1) == -1) - exit (1); - if (stat (f, &after) < 0) - exit (1); - exit ((before.st_uid == after.st_uid - && before.st_gid == after.st_gid) ? 0 : 1); -]])], - [ac_cv_func_chown_works=yes], - [ac_cv_func_chown_works=no], - [ac_cv_func_chown_works=no]) -rm -f conftest.chown -]) -if test $ac_cv_func_chown_works = yes; then - AC_DEFINE(HAVE_CHOWN, 1, - [Define if your system has a working `chown' function.]) -fi -[]AC_PROVIDE([AC_FUNC_CHOWN])[]_m4_defun_epi([AC_FUNC_CHOWN]) -T11,95 -m4_undefinem4_ifndef([$1], - [m4_fatal([$0: undefined macro: $1])])dnl -m4_builtin([undefine], $@) -T12,317 -AC_PATH_TOOL_m4_defun_pro([AC_PATH_TOOL])if test -n "$ac_tool_prefix"; then - AC_PATH_PROG([$1], [${ac_tool_prefix}$2], , [$4]) -fi -if test -z "$ac_cv_path_$1"; then - ac_pt_$1=$$1 - AC_PATH_PROG([ac_pt_$1], [$2], [$3], [$4]) - $1=$ac_pt_$1 -else - $1="$ac_cv_path_$1" -fi -[]AC_PROVIDE([AC_PATH_TOOL])[]_m4_defun_epi([AC_PATH_TOOL]) -T11,193 -AC_TEST_CPP_m4_defun_pro([AC_TEST_CPP])AC_DIAGNOSE([obsolete], [The macro `AC_TEST_CPP' is obsolete. -You should run autoupdate.])dnl -AC_TRY_CPP($@)[]AC_PROVIDE([AC_TEST_CPP])[]_m4_defun_epi([AC_TEST_CPP]) -T12,132 -AC_PROG_YACC_m4_defun_pro([AC_PROG_YACC])AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)[]AC_PROVIDE([AC_PROG_YACC])[]_m4_defun_epi([AC_PROG_YACC]) -T26,18 -m4_location(AC_FUNC_CHOWN)acfunctions.m4:286 -T15,307 -AC_FUNC_VPRINTF_m4_defun_pro([AC_FUNC_VPRINTF])AC_CHECK_FUNCS(vprintf, [] -[AC_CHECK_FUNC(_doprnt, - [AC_DEFINE(HAVE_DOPRNT, 1, - [Define if you don't have `vprintf' but do have - `_doprnt.'])])]) -[]AC_PROVIDE([AC_FUNC_VPRINTF])[]_m4_defun_epi([AC_FUNC_VPRINTF]) -F10,7 -m4_traceontraceon -T36,11 -m4_location(_AS_BROKEN_TEST_PREPARE)m4sh.m4:414 -T24,16 -m4_location(AM_CYGWIN32)acoldnames.m4:79 -T11,94 -AC_REVISIONm4_divert_text([REVISION], - [@%:@ From __file__ m4_translit([$1], [$""]).])dnl - -T28,14 -m4_location(AC_PROG_CC_STDC)aclang.m4:1479 -T17,875 -AS_SHELL_SANITIZE_m4_defun_pro([AS_SHELL_SANITIZE])# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -dnl Moved here because the tests below can use AC_MSG_ERROR, which uses $as_me -as_me=`AS_BASENAME($[0])` - -_AS_EXPR_PREPARE -_AS_LN_S_PREPARE -_AS_TEST_PREPARE -_AS_UNSET_PREPARE -_AS_TR_PREPARE - -# NLS nuisances. -AS_UNSET([LANG], [C]) -AS_UNSET([LC_ALL], [C]) -AS_UNSET([LC_TIME], [C]) -AS_UNSET([LC_CTYPE], [C]) -AS_UNSET([LANGUAGE], [C]) -AS_UNSET([LC_COLLATE], [C]) -AS_UNSET([LC_NUMERIC], [C]) -AS_UNSET([LC_MESSAGES], [C]) - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -AS_UNSET([CDPATH], [:]) -[]_m4_defun_epi([AS_SHELL_SANITIZE]) -T19,52 -AC_LANG_SOURCE(C++)#line __oline__ "configure" -#include "confdefs.h" -$1 -T13,209 -AC_GETLOADAVG_m4_defun_pro([AC_GETLOADAVG])AC_DIAGNOSE([obsolete], [The macro `AC_GETLOADAVG' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_GETLOADAVG($@)[]AC_PROVIDE([AC_GETLOADAVG])[]_m4_defun_epi([AC_GETLOADAVG]) -T7,101 -_m4_for$4[]dnl -m4_if($1, [$2], [], - [m4_define([$1], m4_eval($1+[$3]))_m4_for([$1], [$2], [$3], [$4])]) -T25,2 -_m4_divert(VERSION_BEGIN)20 -T28,16 -m4_location(AC_TEST_PROGRAM)acoldnames.m4:40 -F3,3 -dnldnl -T20,11 -m4_location(AS_LN_S)m4sh.m4:363 -T28,11 -m4_location(AS_EXECUTABLE_P)m4sh.m4:312 -T20,2 -_m4_divert(HELP_VAR)14 -T22,2 -_m4_divert(HELP_CANON)11 -T12,4341 -AC_FUNC_MMAP_m4_defun_pro([AC_FUNC_MMAP])AC_CHECK_HEADERS(stdlib.h unistd.h) -AC_CHECK_FUNCS(getpagesize) -AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, -[AC_RUN_IFELSE([AC_LANG_SOURCE([AC_INCLUDES_DEFAULT] -[[/* 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 file system 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 -#include - -#if !STDC_HEADERS && !HAVE_STDLIB_H -char *malloc (); -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#if !HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# if !HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# if HAVE_SYS_PARAM_H -# include -# 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 */ - -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize (); - - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - exit (1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 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 ("conftest.mmap", O_RDWR); - if (fd < 0) - exit (1); - data2 = (char *) 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 = (char *) 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); - exit (0); -}]])], - [ac_cv_func_mmap_fixed_mapped=yes], - [ac_cv_func_mmap_fixed_mapped=no], - [ac_cv_func_mmap_fixed_mapped=no])]) -if test $ac_cv_func_mmap_fixed_mapped = yes; then - AC_DEFINE(HAVE_MMAP, 1, - [Define if you have a working `mmap' system call.]) -fi -rm -f conftest.mmap -[]AC_PROVIDE([AC_FUNC_MMAP])[]_m4_defun_epi([AC_FUNC_MMAP]) -T8,27 -m4_ifvalm4_if([$1], [], [$3], [$2]) -T19,212 -AC_LANG(Fortran 77)ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AS_MESSAGE_LOG_FD' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - -T11,48 -m4_dumpdefs_m4_dumpdefs_up([$1])dnl -_m4_dumpdefs_down([$1]) -F12,9 -m4_changecomchangecom -T5,97 -AS_IFm4_ifval([$2$3], -[if $1; then - m4_ifval([$2], [$2], :) -m4_ifvaln([$3], -[else - $3])dnl -fi -])dnl - -T10,27 -m4_providem4_define([m4_provide($1)]) -T42,13 -m4_location(_AC_PROG_PREPROC_WORKS_IFELSE)aclang.m4:873 -T27,14 -m4_location(AC_TYPE_SIGNAL)actypes.m4:335 -T25,19 -m4_location(AC_FUNC_STAT)acfunctions.m4:1210 -T10,26 -m4_defaultm4_ifval([$1], [$1], [$2]) -T13,118 -AC_TYPE_OFF_T_m4_defun_pro([AC_TYPE_OFF_T])AC_CHECK_TYPE(off_t, long)[]AC_PROVIDE([AC_TYPE_OFF_T])[]_m4_defun_epi([AC_TYPE_OFF_T]) -T11,30 -AC_MSG_WARNAS_MESSAGE([WARNING: $1], [2]) -T27,13 -m4_location(ac_cv_prog_gcc)aclang.m4:924 -T7,161 -m4_join_m4_defun_pro([m4_join])m4_case([$#], - [1], [], - [2], [[$2]], - [[$2][$1]m4_join([$1], m4_shift(m4_shift($@)))])[]_m4_defun_epi([m4_join]) -T25,631 -_AC_COMPILER_EXEEXT_WORKS# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -AC_MSG_CHECKING([whether the _AC_LANG compiler works]) -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if AC_TRY_COMMAND([./$ac_file]); then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - AC_MSG_ERROR([cannot run _AC_LANG compiled programs. -If you meant to cross compile, use `--host'.]) - fi - fi -fi -AC_MSG_RESULT([yes]) - -T27,18 -m4_location(AC_FUNC_MKTIME)acfunctions.m4:935 -T16,89 -_AH_TEMPLATE_OLD_AH_VERBATIM_OLD([$1], - m4_text_wrap([$2 */], [ ], [/* ])[ -#undef $1]) -T22,16 -m4_location(AC_FD_MSG)acgeneral.m4:576 -T19,17 -m4_location(AC_AIX)acspecific.m4:971 -T22,2 -_m4_divert(HELP_BEGIN)10 -T12,257 -AC_PROG_LN_S_m4_defun_pro([AC_PROG_LN_S])AC_MSG_CHECKING([whether ln -s works]) -AC_SUBST([LN_S], [$as_ln_s])dnl -if test "$LN_S" = "ln -s"; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no, using $LN_S]) -fi -[]AC_PROVIDE([AC_PROG_LN_S])[]_m4_defun_epi([AC_PROG_LN_S]) -T14,673 -AC_FUNC_MALLOC_m4_defun_pro([AC_FUNC_MALLOC])AC_REQUIRE([AC_HEADER_STDC])dnl -AC_CHECK_HEADERS(stdlib.h) -AC_CACHE_CHECK([for working malloc], ac_cv_func_malloc_works, -[AC_RUN_IFELSE( -[AC_LANG_PROGRAM( -[[#if STDC_HEADERS || HAVE_STDLIB_H -# include -#else -char *malloc (); -#endif -]], - [exit (malloc (0) ? 0 : 1);])], - [ac_cv_func_malloc_works=yes], - [ac_cv_func_malloc_works=no], - [ac_cv_func_malloc_works=no])]) -if test $ac_cv_func_malloc_works = yes; then - AC_DEFINE(HAVE_MALLOC, 1, - [Define if your system has a working `malloc' function.]) -fi -[]AC_PROVIDE([AC_FUNC_MALLOC])[]_m4_defun_epi([AC_FUNC_MALLOC]) -T13,498 -AC_CHECK_DECL_m4_defun_pro([AC_CHECK_DECL])AS_VAR_PUSHDEF([ac_Symbol], [ac_cv_have_decl_$1])dnl -AC_CACHE_CHECK([whether $1 is declared], ac_Symbol, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])], -[#ifndef $1 - char *p = (char *) $1; -#endif -])], - [AS_VAR_SET(ac_Symbol, yes)], - [AS_VAR_SET(ac_Symbol, no)])]) -AS_IF([test AS_VAR_GET(ac_Symbol) = yes], [$2], [$3])[]dnl -AS_VAR_POPDEF([ac_Symbol])dnl -[]AC_PROVIDE([AC_CHECK_DECL])[]_m4_defun_epi([AC_CHECK_DECL]) -T21,16 -m4_location(AC_CONST)acoldnames.m4:49 -T18,419 -AC_OUTPUT_COMMANDS_m4_defun_pro([AC_OUTPUT_COMMANDS])AC_DIAGNOSE([obsolete], [The macro `AC_OUTPUT_COMMANDS' is obsolete. -You should run autoupdate.])dnl -m4_define([_AC_OUTPUT_COMMANDS_CNT], m4_incr(_AC_OUTPUT_COMMANDS_CNT))dnl -dnl Double quoted since that was the case in the original macro. -AC_CONFIG_COMMANDS([default-]_AC_OUTPUT_COMMANDS_CNT, [[$1]], [[$2]])dnl -[]AC_PROVIDE([AC_OUTPUT_COMMANDS])[]_m4_defun_epi([AC_OUTPUT_COMMANDS]) -T24,198 -AC_LANG_COMPILER_REQUIRE_m4_defun_pro([AC_LANG_COMPILER_REQUIRE])m4_require([AC_LANG_COMPILER(]_AC_LANG[)], - [AC_LANG_COMPILER])[]AC_PROVIDE([AC_LANG_COMPILER_REQUIRE])[]_m4_defun_epi([AC_LANG_COMPILER_REQUIRE]) -T18,233 -AC_LONG_FILE_NAMES_m4_defun_pro([AC_LONG_FILE_NAMES])AC_DIAGNOSE([obsolete], [The macro `AC_LONG_FILE_NAMES' is obsolete. -You should run autoupdate.])dnl -AC_SYS_LONG_FILE_NAMES($@)[]AC_PROVIDE([AC_LONG_FILE_NAMES])[]_m4_defun_epi([AC_LONG_FILE_NAMES]) -T18,432 -AC_SYS_INTERPRETER_m4_defun_pro([AC_SYS_INTERPRETER])AC_CACHE_CHECK(whether @%:@! works in shell scripts, ac_cv_sys_interpreter, -[echo '#! /bin/cat -exit 69 -' >conftest -chmod u+x conftest -(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) -if test $? -ne 69; then - ac_cv_sys_interpreter=yes -else - ac_cv_sys_interpreter=no -fi -rm -f conftest]) -interpval=$ac_cv_sys_interpreter -[]AC_PROVIDE([AC_SYS_INTERPRETER])[]_m4_defun_epi([AC_SYS_INTERPRETER]) -T14,131 -AC_LANG_SOURCE_m4_defun_pro([AC_LANG_SOURCE])_AC_LANG_DISPATCH([$0], _AC_LANG, $@)[]AC_PROVIDE([AC_LANG_SOURCE])[]_m4_defun_epi([AC_LANG_SOURCE]) -T23,164 -AC_CONFIG_COMMANDS_POST_m4_defun_pro([AC_CONFIG_COMMANDS_POST])m4_append([AC_OUTPUT_COMMANDS_POST], [$1 -])[]AC_PROVIDE([AC_CONFIG_COMMANDS_POST])[]_m4_defun_epi([AC_CONFIG_COMMANDS_POST]) -F10,7 -m4_esyscmdesyscmd -F10,7 -m4_builtinbuiltin -T31,17 -m4_location(AC_CONFIG_COMMANDS)acgeneral.m4:3213 -T13,1683 -AC_FUNC_WAIT3_m4_defun_pro([AC_FUNC_WAIT3])AC_DIAGNOSE([obsolete], -[$0: `wait3' is being removed from the Open Group standards. -Remove this `AC_FUNC_WAIT3' and adjust your code to use `waitpid' instead.])dnl -AC_CACHE_CHECK([for wait3 that fills in rusage], - [ac_cv_func_wait3_rusage], -[AC_RUN_IFELSE([AC_LANG_SOURCE( -[[#include -#include -#include -#include -/* HP-UX has wait3 but does not fill in rusage at all. */ -int -main () -{ - struct rusage r; - int i; - /* Use a field that we can force nonzero -- - voluntary context switches. - For systems like NeXT and OSF/1 that don't set it, - also use the system CPU time. And page faults (I/O) for Linux. */ - r.ru_nvcsw = 0; - r.ru_stime.tv_sec = 0; - r.ru_stime.tv_usec = 0; - r.ru_majflt = r.ru_minflt = 0; - switch (fork ()) - { - case 0: /* Child. */ - sleep(1); /* Give up the CPU. */ - _exit(0); - break; - case -1: /* What can we do? */ - _exit(0); - break; - default: /* Parent. */ - wait3(&i, 0, &r); - /* Avoid "text file busy" from rm on fast HP-UX machines. */ - sleep(2); - exit (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 - && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); - } -}]])], - [ac_cv_func_wait3_rusage=yes], - [ac_cv_func_wait3_rusage=no], - [ac_cv_func_wait3_rusage=no])]) -if test $ac_cv_func_wait3_rusage = yes; then - AC_DEFINE(HAVE_WAIT3, 1, - [Define if you have the `wait3' system call. - Deprecated, you should no longer depend upon `wait3'.]) -fi -[]AC_PROVIDE([AC_FUNC_WAIT3])[]_m4_defun_epi([AC_FUNC_WAIT3]) -T21,1038 -_AC_FUNC_GETPGRP_TESTAC_LANG_SOURCE([AC_INCLUDES_DEFAULT] -[[ -/* - * If this system has a BSD-style getpgrp(), - * which takes a pid argument, exit unsuccessfully. - * - * Snarfed from Chet Ramey's bash pgrp.c test program - */ - -int pid; -int pg1, pg2, pg3, pg4; -int ng, np, s, child; - -int -main () -{ - pid = getpid (); - pg1 = getpgrp (0); - pg2 = getpgrp (); - pg3 = getpgrp (pid); - pg4 = getpgrp (1); - - /* If all of these values are the same, it's pretty sure that we're - on a system that ignores getpgrp's first argument. */ - if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) - exit (0); - - child = fork (); - if (child < 0) - exit(1); - else if (child == 0) - { - np = getpid (); - /* If this is Sys V, this will not work; pgrp will be set to np - because setpgrp just changes a pgrp to be the same as the - pid. */ - setpgrp (np, pg1); - ng = getpgrp (0); /* Same result for Sys V and BSD */ - if (ng == pg1) - exit (1); - else - exit (0); - } - else - { - wait (&s); - exit (s>>8); - } -}]]) - -T8,184 -AC_OFF_T_m4_defun_pro([AC_OFF_T])AC_DIAGNOSE([obsolete], [The macro `AC_OFF_T' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_OFF_T($@)[]AC_PROVIDE([AC_OFF_T])[]_m4_defun_epi([AC_OFF_T]) -T20,140 -AC_LANG_PREPROC(C++)_m4_defun_pro([AC_LANG_PREPROC(C++)])AC_REQUIRE([AC_PROG_CXXCPP])[]AC_PROVIDE([AC_LANG_PREPROC(C++)])[]_m4_defun_epi([AC_LANG_PREPROC(C++)]) -T15,694 -AC_FUNC_SETPGRP_m4_defun_pro([AC_FUNC_SETPGRP])AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void, -[AC_RUN_IFELSE( -[AC_LANG_PROGRAM( -[#if HAVE_UNISTD_H -# include -#endif -], -[/* If this system has a BSD-style setpgrp, which takes arguments, exit - successfully. */ - exit (setpgrp (1,1) == -1);])], - [ac_cv_func_setpgrp_void=no], - [ac_cv_func_setpgrp_void=yes], - [AC_MSG_ERROR([cannot check setpgrp if cross compiling])])]) -if test $ac_cv_func_setpgrp_void = yes; then - AC_DEFINE(SETPGRP_VOID, 1, - [Define if the `setpgrp' function takes no argument.]) -fi -[]AC_PROVIDE([AC_FUNC_SETPGRP])[]_m4_defun_epi([AC_FUNC_SETPGRP]) -T27,16 -m4_location(AC_HEADER_TIME)acheaders.m4:331 -T7,179 -AC_LN_S_m4_defun_pro([AC_LN_S])AC_DIAGNOSE([obsolete], [The macro `AC_LN_S' is obsolete. -You should run autoupdate.])dnl -AC_PROG_LN_S($@)[]AC_PROVIDE([AC_LN_S])[]_m4_defun_epi([AC_LN_S]) -T14,569 -AC_HEADER_TIME_m4_defun_pro([AC_HEADER_TIME])AC_CACHE_CHECK([whether time.h and sys/time.h may both be included], - ac_cv_header_time, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include -#include -#include -], -[if ((struct tm *) 0) -return 0;])], - [ac_cv_header_time=yes], - [ac_cv_header_time=no])]) -if test $ac_cv_header_time = yes; then - AC_DEFINE(TIME_WITH_SYS_TIME, 1, - [Define if you can safely include both and .]) -fi -[]AC_PROVIDE([AC_HEADER_TIME])[]_m4_defun_epi([AC_HEADER_TIME]) -T16,298 -AC_CHECK_HEADERS_m4_defun_pro([AC_CHECK_HEADERS])AH_CHECK_HEADERS([$1])dnl -for ac_header in $1 -do -AC_CHECK_HEADER($ac_header, - [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$ac_header)) $2], - [$3], - [$4])dnl -done -[]AC_PROVIDE([AC_CHECK_HEADERS])[]_m4_defun_epi([AC_CHECK_HEADERS]) -T12,26 -m4_normalizem4_strip(m4_flatten([$1])) -T35,17 -m4_location(AC_CONFIG_COMMANDS_PRE)acgeneral.m4:3249 -T27,17 -m4_location(AC_CHECK_FILES)acgeneral.m4:2888 -T16,247 -_AC_INIT_PACKAGEm4_define([AC_PACKAGE_NAME], [$1]) -m4_define([AC_PACKAGE_TARNAME], - m4_tolower(m4_patsubst([[[$1]]], [GNU ]))) -m4_define([AC_PACKAGE_VERSION], [$2]) -m4_define([AC_PACKAGE_STRING], [$1 $2]) -m4_define([AC_PACKAGE_BUGREPORT], [$3]) - -T27,14 -m4_location(ac_cv_prog_gxx)aclang.m4:1139 -T31,17 -m4_location(_AC_RUN_LOG_STDERR)acgeneral.m4:2142 -T30,16 -m4_location(AC_YYTEXT_POINTER)acoldnames.m4:78 -T14,151 -AC_LANG_ASSERT_m4_defun_pro([AC_LANG_ASSERT])m4_if(_AC_LANG, $1, [], - [m4_fatal([$0: current language is not $1: ] _AC_LANG)])[]_m4_defun_epi([AC_LANG_ASSERT]) -T21,420 -AC_FUNC_ERROR_AT_LINE_m4_defun_pro([AC_FUNC_ERROR_AT_LINE])AC_LIBSOURCES([error.h, error.c])dnl -AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line, -[AC_TRY_LINK([],[error_at_line (0, 0, "", 0, "");], - [ac_cv_lib_error_at_line=yes], - [ac_cv_lib_error_at_line=no])]) -if test $ac_cv_lib_error_at_line = no; then - AC_LIBOBJ(error) -fi -[]AC_PROVIDE([AC_FUNC_ERROR_AT_LINE])[]_m4_defun_epi([AC_FUNC_ERROR_AT_LINE]) -T28,16 -m4_location(AC_HEADER_MAJOR)acheaders.m4:191 -T14,120 -AC_TYPE_MODE_T_m4_defun_pro([AC_TYPE_MODE_T])AC_CHECK_TYPE(mode_t, int)[]AC_PROVIDE([AC_TYPE_MODE_T])[]_m4_defun_epi([AC_TYPE_MODE_T]) -T24,0 -AC_LIST_HEADERS_COMMANDS -T15,567 -AC_CONFIG_LINKS_m4_defun_pro([AC_CONFIG_LINKS])m4_divert_push([KILL]) -_AC_CONFIG_UNIQUE([$1]) -_AC_CONFIG_DEPENDENCIES([$1]) -m4_if(m4_regexp([$1], [^\.:\| \.:]), -1,, - [AC_FATAL([$0: invalid destination: `.'])]) -m4_append([AC_LIST_LINKS], [ $1]) -dnl Register the commands -m4_ifval([$2], [AC_FOREACH([AC_File], [$1], -[m4_append([AC_LIST_LINKS_COMMANDS], -[ ]m4_patsubst(AC_File, [:.*])[ ) $2 ;; -])])]) -_AC_CONFIG_COMMANDS_INIT([$3]) -m4_divert_pop([KILL])dnl -ac_config_links="$ac_config_links m4_normalize([$1])" -[]AC_PROVIDE([AC_CONFIG_LINKS])[]_m4_defun_epi([AC_CONFIG_LINKS]) -T18,234 -AC_GCC_TRADITIONAL_m4_defun_pro([AC_GCC_TRADITIONAL])AC_DIAGNOSE([obsolete], [The macro `AC_GCC_TRADITIONAL' is obsolete. -You should run autoupdate.])dnl -AC_PROG_GCC_TRADITIONAL($@)[]AC_PROVIDE([AC_GCC_TRADITIONAL])[]_m4_defun_epi([AC_GCC_TRADITIONAL]) -T15,67 -AC_LANG_PREPROCAC_LANG_COMPILER_REQUIRE()dnl -_AC_LANG_DISPATCH([$0], _AC_LANG, $@) -T14,493 -AC_CHECK_DECLS_m4_defun_pro([AC_CHECK_DECLS])m4_foreach([AC_Symbol], [$1], - [AC_CHECK_DECL(AC_Symbol, - [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_DECL_]AC_Symbol), 1, - [Define to 1 if you have the declaration - of `]AC_Symbol[', and to 0 if you don't.]) -$2], - [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_DECL_]AC_Symbol), 0) -$3], - [$4])]) -[]AC_PROVIDE([AC_CHECK_DECLS])[]_m4_defun_epi([AC_CHECK_DECLS]) -F11,8 -m4_patsubstpatsubst -T14,1608 -AC_PROG_CC_C_O_m4_defun_pro([AC_PROG_CC_C_O])AC_REQUIRE([AC_PROG_CC])dnl -if test "x$CC" != xcc; then - AC_MSG_CHECKING([whether $CC and cc understand -c and -o together]) -else - AC_MSG_CHECKING([whether cc understands -c and -o together]) -fi -set dummy $CC; ac_cc=`echo $[2] | - sed 's/[[^a-zA-Z0-9_]]/_/g;s/^[[0-9]]/_/'` -AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, -[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) -# Make sure it works both with $CC and with simple cc. -# We do the test twice because some compilers refuse to overwrite an -# existing .o file with -o, though they will create one. -ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&AS_MESSAGE_LOG_FD' -if AC_TRY_EVAL(ac_try) && - test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); -then - eval ac_cv_prog_cc_${ac_cc}_c_o=yes - if test "x$CC" != xcc; then - # Test first that cc exists at all. - if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AS_MESSAGE_LOG_FD); then - ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&AS_MESSAGE_LOG_FD' - if AC_TRY_EVAL(ac_try) && - test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); - then - # cc works too. - : - else - # cc exists but doesn't like -o. - eval ac_cv_prog_cc_${ac_cc}_c_o=no - fi - fi - fi -else - eval ac_cv_prog_cc_${ac_cc}_c_o=no -fi -rm -f conftest* -])dnl -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then - AC_MSG_RESULT([yes]) -else - AC_MSG_RESULT([no]) - AC_DEFINE(NO_MINUS_C_MINUS_O, 1, - [Define if your C compiler doesn't accept -c and -o together.]) -fi -[]AC_PROVIDE([AC_PROG_CC_C_O])[]_m4_defun_epi([AC_PROG_CC_C_O]) -T21,16 -m4_location(AC_UID_T)acoldnames.m4:76 -T26,17 -m4_location(AC_RUN_IFELSE)acgeneral.m4:2843 -T9,374 -AC_CYGWIN_m4_defun_pro([AC_CYGWIN])AC_DIAGNOSE([obsolete], [The macro `AC_CYGWIN' is obsolete. -You should run autoupdate.])dnl -AC_REQUIRE([AC_CANONICAL_HOST])[]dnl -AC_DIAGNOSE([obsolete], - [$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl -case $host_os in - *cygwin* ) CYGWIN=yes;; - * ) CYGWIN=no;; -esac -[]AC_PROVIDE([AC_CYGWIN])[]_m4_defun_epi([AC_CYGWIN]) -T31,14 -m4_location(AC_STRUCT_TIMEZONE)actypes.m4:564 -T16,5966 -_AC_OUTPUT_FILEScat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF] -dnl These here document variables are unquoted when configure runs -dnl but quoted when config.status runs, so variables are expanded once. -dnl Insert the sed substitutions of variables. -_AC_SUBST_SED_PROGRAM()dnl -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. -dnl One cannot portably go further than 100 commands because of HP-UX. -dnl Here, there are 2 cmd per line, and two cmd are added later. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # 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" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo [':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b'] && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -EOF -cat >>$CONFIG_STATUS <<\EOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[[^:]]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[[^:]]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`AS_DIRNAME(["$ac_file"])` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - AS_MKDIR_P(["$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 $srcdir in - .) ac_srcdir=. - if test -z "$ac_dots"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` - fi ;; - [[\\/]]* | ?:[[\\/]]* ) - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_dots$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_dots$srcdir ;; - esac - -AC_PROVIDE_IFELSE([AC_PROG_INSTALL], -[ case $INSTALL in - [[\\/$]]* | ?:[[\\/]]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_dots$INSTALL ;; - esac -])dnl - - if test x"$ac_file" != x-; then - AC_MSG_NOTICE([creating $ac_file]) - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated automatically by config.status. */ - configure_input="Generated automatically from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [[\\/$]]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || AC_MSG_ERROR([cannot find input file: $f]) - echo $f;; - *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - AC_MSG_ERROR([cannot find input file: $f]) - fi;; - esac - done` || AS_EXIT([1]) -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -:t -[/@[a-zA-Z_][a-zA-Z_0-9]*@/!b] -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -AC_PROVIDE_IFELSE([AC_PROG_INSTALL], [s,@INSTALL@,$ac_INSTALL,;t t -])dnl -dnl The parens around the eval prevent an "illegal io" in Ultrix sh. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin -dnl This would break Makefile dependencies. -dnl if cmp -s $ac_file $tmp/out 2>/dev/null; then -dnl echo "$ac_file is unchanged" -dnl else -dnl rm -f $ac_file -dnl mv $tmp/out $ac_file -dnl fi - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -m4_ifset([AC_LIST_FILES_COMMANDS], -[ # Run the commands associated with the file. - case $ac_file in -AC_LIST_FILES_COMMANDS()dnl - esac -])dnl -done -EOF - -T30,18 -m4_location(AC_FUNC_GETMNTENT)acfunctions.m4:582 -T8,116 -m4_defunm4_define([m4_location($1)], m4_location)dnl -m4_define([$1], - [_m4_defun_pro([$1])$2[]_m4_defun_epi([$1])]) -F12,9 -m4_debugfiledebugfile -T18,141 -_AC_CHECK_TYPE_OLD_AC_CHECK_TYPE_NEW([$1],, - [AC_DEFINE_UNQUOTED([$1], [$2], - [Define to `$2' if does not define.])])dnl - -T12,125 -AC_LANG_CALL_m4_defun_pro([AC_LANG_CALL])_AC_LANG_DISPATCH([$0], _AC_LANG, $@)[]AC_PROVIDE([AC_LANG_CALL])[]_m4_defun_epi([AC_LANG_CALL]) -T13,1 -AS_MESSAGE_FD6 -T7,99 -AS_LN_S_m4_defun_pro([AS_LN_S])m4_require([_AS_LN_S_PREPARE])dnl -$as_ln_s $1 $2 -[]_m4_defun_epi([AS_LN_S]) -T11,340 -AC_LANG_POP_m4_defun_pro([AC_LANG_POP])m4_ifval([$1], - [m4_if([$1], m4_defn([_AC_LANG]), [], - [m4_fatal([$0($1): unexpected current language: ]m4_defn([_AC_LANG]))])])dnl -m4_pushdef([$0 OLD], m4_defn([_AC_LANG]))dnl -m4_popdef([_AC_LANG])dnl -_AC_LANG_SET(m4_defn([$0 OLD]), m4_defn([_AC_LANG]))dnl -m4_popdef([$0 OLD])dnl -[]_m4_defun_epi([AC_LANG_POP]) -T31,17 -m4_location(_AC_PREPROC_IFELSE)acgeneral.m4:2649 -T28,16 -m4_location(AC_HEADER_EGREP)acoldnames.m4:31 -T26,14 -m4_location(AC_C_VOLATILE)aclang.m4:1689 -T28,19 -m4_location(AM_FUNC_OBSTACK)acfunctions.m4:1108 -T26,14 -m4_location(AC_TYPE_PID_T)actypes.m4:307 -T18,225 -AC_WORDS_BIGENDIAN_m4_defun_pro([AC_WORDS_BIGENDIAN])AC_DIAGNOSE([obsolete], [The macro `AC_WORDS_BIGENDIAN' is obsolete. -You should run autoupdate.])dnl -AC_C_BIGENDIAN($@)[]AC_PROVIDE([AC_WORDS_BIGENDIAN])[]_m4_defun_epi([AC_WORDS_BIGENDIAN]) -T20,715 -AC_STRUCT_ST_BLKSIZE_m4_defun_pro([AC_STRUCT_ST_BLKSIZE])AC_DIAGNOSE([obsolete], [The macro `AC_STRUCT_ST_BLKSIZE' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], [$0: - your code should no longer depend upon `HAVE_ST_BLKSIZE', but - `HAVE_STRUCT_STAT_ST_BLKSIZE'. Remove this warning and - the `AC_DEFINE' when you adjust the code.]) -AC_CHECK_MEMBERS([struct stat.st_blksize], - [AC_DEFINE(HAVE_ST_BLKSIZE, 1, - [Define if your `struct stat' has - `st_blksize'. Deprecated, use - `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])]) -[]AC_PROVIDE([AC_STRUCT_ST_BLKSIZE])[]_m4_defun_epi([AC_STRUCT_ST_BLKSIZE]) -F7,7 -pushdefpushdef -T13,795 -AC_DIR_HEADER_m4_defun_pro([AC_DIR_HEADER])AC_DIAGNOSE([obsolete], [The macro `AC_DIR_HEADER' is obsolete. -You should run autoupdate.])dnl -AC_HEADER_DIRENT -AC_FUNC_CLOSEDIR_VOID -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the four `AC_DEFINE' when you -ajust your code to use `AC_HEADER_DIRENT'.]) -test ac_cv_header_dirent_dirent_h && - AC_DEFINE([DIRENT], 1, [Same as `HAVE_DIRENT_H', don't depend on me.]) -test ac_cv_header_dirent_sys_ndir_h && - AC_DEFINE([SYSNDIR], 1, [Same as `HAVE_SYS_NDIR_H', don't depend on me.]) -test ac_cv_header_dirent_sys_dir_h && - AC_DEFINE([SYSDIR], 1, [Same as `HAVE_SYS_DIR_H', don't depend on me.]) -test ac_cv_header_dirent_ndir_h && - AC_DEFINE([NDIR], 1, [Same as `HAVE_NDIR_H', don't depend on me.]) -[]AC_PROVIDE([AC_DIR_HEADER])[]_m4_defun_epi([AC_DIR_HEADER]) -T33,17 -m4_location(AC_SYS_POSIX_TERMIOS)acspecific.m4:568 -T35,17 -m4_location(AC_SYS_LONG_FILE_NAMES)acspecific.m4:489 -T28,16 -m4_location(AC_HAVE_HEADERS)acoldnames.m4:29 -T27,18 -m4_location(AC_FUNC_FSEEKO)acfunctions.m4:386 -T8,184 -AC_UID_T_m4_defun_pro([AC_UID_T])AC_DIAGNOSE([obsolete], [The macro `AC_UID_T' is obsolete. -You should run autoupdate.])dnl -AC_TYPE_UID_T($@)[]AC_PROVIDE([AC_UID_T])[]_m4_defun_epi([AC_UID_T]) -T10,125 -_AC_ECHO_Necho $ECHO_N "_AS_QUOTE([$1])$ECHO_C" >&m4_default([$2], - [AS_MESSAGE_FD]) -T36,17 -m4_location(_AC_OUTPUT_COMMANDS_CNT)acgeneral.m4:3241 -T27,19 -m4_location(_AC_FUNC_VFORK)acfunctions.m4:1576 -T34,331 -_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_HAC_CACHE_CHECK([whether termios.h defines TIOCGWINSZ], - ac_cv_sys_tiocgwinsz_in_termios_h, -[AC_EGREP_CPP([yes], - [#include -#include -#ifdef TIOCGWINSZ - yes -#endif -], - ac_cv_sys_tiocgwinsz_in_termios_h=yes, - ac_cv_sys_tiocgwinsz_in_termios_h=no)]) - -T23,898 -_AC_COMPUTE_INT_COMPILE# Depending upon the size, compute the lo and hi bounds. -AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= 0])], - [ac_lo=0 ac_mid=0 - while :; do - AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])], - [ac_hi=$ac_mid; break], - [ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`]) - done], - [ac_hi=-1 ac_mid=-1 - while :; do - AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= $ac_mid])], - [ac_lo=$ac_mid; break], - [ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`]) - done]) -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])], - [ac_hi=$ac_mid], [ac_lo=`expr $ac_mid + 1`]) -done -$2=$ac_lo[]dnl - -T14,507 -AC_C_STRINGIZE_m4_defun_pro([AC_C_STRINGIZE])AC_CACHE_CHECK([for preprocessor stringizing operator], - [ac_cv_c_stringize], -[AC_EGREP_CPP([@%:@teststring], - [@%:@define x(y) #y - -char *s = x(teststring);], - [ac_cv_c_stringize=no], - [ac_cv_c_stringize=yes])]) -if test $ac_cv_c_stringize = yes; then - AC_DEFINE(HAVE_STRINGIZE, 1, - [Define if cpp supports the ANSI @%:@ stringizing operator.]) -fi -[]AC_PROVIDE([AC_C_STRINGIZE])[]_m4_defun_epi([AC_C_STRINGIZE]) -T23,17 -m4_location(AC_TRY_CPP)acgeneral.m4:2669 -T14,92 -AC_CACHE_CHECKAC_MSG_CHECKING([$1]) -AC_CACHE_VAL([$2], [$3])dnl -AC_MSG_RESULT_UNQUOTED([AS_VAR_GET([$2])]) -T29,17 -m4_location(AC_COMPILE_CHECK)acgeneral.m4:2796 -T25,139 -__m4_warning_error_ifelsem4_case([$3], - [error], [$1], - [], [$2], - [no-error], [$2], - [$0([$1], [$2], m4_shiftn(3, $@))]) -T31,259 -AC_VALIDATE_CACHED_SYSTEM_TUPLE_m4_defun_pro([AC_VALIDATE_CACHED_SYSTEM_TUPLE])AC_DIAGNOSE([obsolete], [The macro `AC_VALIDATE_CACHED_SYSTEM_TUPLE' is obsolete. -You should run autoupdate.])dnl -[]AC_PROVIDE([AC_VALIDATE_CACHED_SYSTEM_TUPLE])[]_m4_defun_epi([AC_VALIDATE_CACHED_SYSTEM_TUPLE]) -T12,505 -AC_EGREP_CPP_m4_defun_pro([AC_EGREP_CPP])AC_LANG_PREPROC_REQUIRE()dnl -AC_LANG_CONFTEST([AC_LANG_SOURCE([[$2]])]) -dnl eval is necessary to expand ac_cpp. -dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell. -if (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | -dnl Quote $1 to prevent m4 from eating character classes - egrep "[$1]" >/dev/null 2>&1; then - m4_default([$3], :) -m4_ifvaln([$4], [else - $4])dnl -fi -rm -f conftest* -[]AC_PROVIDE([AC_EGREP_CPP])[]_m4_defun_epi([AC_EGREP_CPP]) -T28,11 -m4_location(AS_DIRNAME_EXPR)m4sh.m4:284 -T29,17 -m4_location(AC_TRY_LINK_FUNC)acgeneral.m4:2511 -T26,16 -m4_location(AC_ST_BLKSIZE)acoldnames.m4:70 -T30,16 -m4_location(AC_PREFIX_DEFAULT)acgeneral.m4:616 -T27,11 -m4_location(_AS_CR_PREPARE)m4sh.m4:558 -T12,94 -_AC_LANG_SET_m4_defun_pro([_AC_LANG_SET])_AC_LANG_DISPATCH([AC_LANG], [$2])[]_m4_defun_epi([_AC_LANG_SET]) -T24,38 -AC_LANG_CALL(Fortran 77)AC_LANG_PROGRAM([$1], -[ call $2]) -T28,13 -m4_location(AC_LANG_PROGRAM)aclang.m4:308 -T12,510 -AC_SITE_LOAD# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - AC_MSG_NOTICE([loading site script $ac_site_file]) - cat "$ac_site_file" >&AS_MESSAGE_LOG_FD - . "$ac_site_file" - fi -done - -T21,17 -m4_location(_AC_EVAL)acgeneral.m4:2150 -T9,97 -AS_ESCAPEm4_patsubst([$1], - m4_ifval([$2], [[\([$2]\)]], [[\([\"$`]\)]]), - [\\\1]) -T16,221 -AC_CHAR_UNSIGNED_m4_defun_pro([AC_CHAR_UNSIGNED])AC_DIAGNOSE([obsolete], [The macro `AC_CHAR_UNSIGNED' is obsolete. -You should run autoupdate.])dnl -AC_C_CHAR_UNSIGNED($@)[]AC_PROVIDE([AC_CHAR_UNSIGNED])[]_m4_defun_epi([AC_CHAR_UNSIGNED]) -T27,18 -m4_location(AC_FUNC_MALLOC)acfunctions.m4:737 -T7,30 -m4_copym4_define([$2], m4_defn([$1])) -T26,16 -m4_location(AC_RETSIGTYPE)acoldnames.m4:65 -T22,13 -m4_location(AC_EXEEXT)aclang.m4:646 -T18,208 -_AC_LINK_FILES_CNT_m4_defun_pro([_AC_LINK_FILES_CNT])AC_DIAGNOSE([obsolete], [The macro `_AC_LINK_FILES_CNT' is obsolete. -You should run autoupdate.])dnl -0[]AC_PROVIDE([_AC_LINK_FILES_CNT])[]_m4_defun_epi([_AC_LINK_FILES_CNT]) -T16,40 -AC_LANG_CONFTESTcat >conftest.$ac_ext <<_ACEOF -$1 -_ACEOF -T25,18 -m4_location(AC_DYNIX_SEQ)acspecific.m4:1038 -T15,125 -AS_EXECUTABLE_P_m4_defun_pro([AS_EXECUTABLE_P])m4_require([_AS_TEST_PREPARE])dnl -$as_executable_p $1[]dnl -[]_m4_defun_epi([AS_EXECUTABLE_P]) -T27,106 -AC_LANG_PROGRAM(Fortran 77)m4_ifval([$1], - [m4_warn([syntax], [$0: ignoring PROLOGUE: $1])])dnl - program main -$2 - end -T23,19 -m4_location(AC_VPRINTF)acfunctions.m4:1603 -T26,17 -m4_location(AC_CHECK_DECL)acgeneral.m4:2913 -T9,6 -m4_dquote[[$*]] -T7,158 -AC_LANG_m4_defun_pro([AC_LANG])_AC_LANG_SET(m4_ifdef([_AC_LANG], [m4_defn([_AC_LANG])]), - [$1])dnl -m4_define([_AC_LANG], [$1])[]_m4_defun_epi([AC_LANG]) -T10,103 -m4_toupperm4_translit([$1], - [abcdefghijklmnopqrstuvwxyz], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ]) -T25,0 -m4_include(acspecific.m4) -T10,99 -_m4_shiftnm4_if([$1], 0, - [m4_shift($@)], - [_m4_shiftn(m4_eval([$1]-1), m4_shift(m4_shift($@)))]) -T24,705 -AC_LANG_FUNC_LINK_TRY(C)AC_LANG_PROGRAM( -[/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $1 (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $1 (); -char (*f) (); -], -[/* 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_$1) || defined (__stub___$1) -choke me -#else -f = $1; -#endif -]) -T30,14 -m4_location(AM_TYPE_PTRDIFF_T)actypes.m4:289 -T12,264 -AC_LANG(C++)ac_ext=cc -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AS_MESSAGE_LOG_FD' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -T30,17 -m4_location(AC_LIST_MEMBER_OF)acgeneral.m4:4512 -T18,236 -_AS_TR_CPP_PREPARE_m4_defun_pro([_AS_TR_CPP_PREPARE])m4_require([_AS_CR_PREPARE])dnl -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[[^_$as_cr_alnum]]%_%g" -[]_m4_defun_epi([_AS_TR_CPP_PREPARE]) -T9,63 -_AC_SUBSTm4_expand_once([m4_append([_AC_SUBST_SED_PROGRAM], -[$2 -])])dnl - -F7,6 -m4_exitm4exit -T17,124 -m4_include_uniquem4_ifdef([m4_include($1)], - [m4_warn([syntax], [file `$1' included several times])])dnl -m4_define([m4_include($1)]) -T16,2 -_m4_divert(BODY)40 -T11,1 -_AH_COUNTER0 -T23,114 -m4_expansion_stack_pushm4_pushdef([m4_expansion_stack], - [$1]m4_ifdef([m4_expansion_stack], [ -m4_defn([m4_expansion_stack])])) -T20,433 -AC_SYS_POSIX_TERMIOS_m4_defun_pro([AC_SYS_POSIX_TERMIOS])AC_CACHE_CHECK([POSIX termios], ac_cv_sys_posix_termios, -[AC_TRY_LINK([#include -#include -@%:@include ], - [/* SunOS 4.0.3 has termios.h but not the library calls. */ - tcgetattr(0, 0);], - ac_cv_sys_posix_termios=yes, - ac_cv_sys_posix_termios=no)]) -[]AC_PROVIDE([AC_SYS_POSIX_TERMIOS])[]_m4_defun_epi([AC_SYS_POSIX_TERMIOS]) -T19,133 -AC_LANG_COMPILER(C)_m4_defun_pro([AC_LANG_COMPILER(C)])AC_REQUIRE([AC_PROG_CC])[]AC_PROVIDE([AC_LANG_COMPILER(C)])[]_m4_defun_epi([AC_LANG_COMPILER(C)]) -T14,242 -AC_CHECK_PROGS_m4_defun_pro([AC_CHECK_PROGS])for ac_prog in $2 -do - AC_CHECK_PROG([$1], [$ac_prog], [$ac_prog], , [$4]) - test -n "$$1" && break -done -m4_ifvaln([$3], [test -n "$$1" || $1="$3"])[]AC_PROVIDE([AC_CHECK_PROGS])[]_m4_defun_epi([AC_CHECK_PROGS]) -T25,13 -m4_location(AC_LANG_PUSH)aclang.m4:142 -T19,248 -_AC_ARG_VAR_LDFLAGS_m4_defun_pro([_AC_ARG_VAR_LDFLAGS])AC_ARG_VAR([LDFLAGS], - [linker flags, e.g. -L if you have libraries in a - nonstandard directory ])[]AC_PROVIDE([_AC_ARG_VAR_LDFLAGS])[]_m4_defun_epi([_AC_ARG_VAR_LDFLAGS]) -T18,937 -AC_FUNC_UTIME_NULL_m4_defun_pro([AC_FUNC_UTIME_NULL])AC_CACHE_CHECK(whether utime accepts a null argument, ac_cv_func_utime_null, -[rm -f conftest.data; >conftest.data -# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. -AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], -[[struct stat s, t; - exit (!(stat ("conftest.data", &s) == 0 - && utime ("conftest.data", (long *)0) == 0 - && stat ("conftest.data", &t) == 0 - && t.st_mtime >= s.st_mtime - && t.st_mtime - s.st_mtime < 120));]])], - ac_cv_func_utime_null=yes, - ac_cv_func_utime_null=no, - ac_cv_func_utime_null=no) -rm -f core core.* *.core]) -if test $ac_cv_func_utime_null = yes; then - AC_DEFINE(HAVE_UTIME_NULL, 1, - [Define if `utime(file, NULL)' sets file's timestamp to the - present.]) -fi -rm -f conftest.data -[]AC_PROVIDE([AC_FUNC_UTIME_NULL])[]_m4_defun_epi([AC_FUNC_UTIME_NULL]) -T17,604 -AC_NO_EXECUTABLESm4_provide_ifelse([AC_NO_EXECUTABLES], - [m4_warn([syntax], [AC_NO_EXECUTABLES invoked multiple times])], - [_m4_defun_pro([AC_NO_EXECUTABLES])m4_divert_push([KILL]) - -AC_BEFORE([$0], [_AC_COMPILER_EXEEXT_WORKS]) -AC_BEFORE([$0], [_AC_COMPILER_EXEEXT]) - -m4_define([_AC_COMPILER_EXEEXT_WORKS], -[cross_compiling=maybe -]) - -m4_define([_AC_COMPILER_EXEEXT], -[EXEEXT= -]) - -m4_define([AC_LINK_IFELSE], -[AC_FATAL([All the tests involving linking were disabled by $0])]) - -m4_divert_pop()dnl -[]AC_PROVIDE([AC_NO_EXECUTABLES])[]_m4_defun_epi([AC_NO_EXECUTABLES])]) -T20,215 -AC_CHECK_TOOL_PREFIX_m4_defun_pro([AC_CHECK_TOOL_PREFIX])AC_DIAGNOSE([obsolete], [The macro `AC_CHECK_TOOL_PREFIX' is obsolete. -You should run autoupdate.])dnl -[]AC_PROVIDE([AC_CHECK_TOOL_PREFIX])[]_m4_defun_epi([AC_CHECK_TOOL_PREFIX]) -T9,186 -AC_INLINE_m4_defun_pro([AC_INLINE])AC_DIAGNOSE([obsolete], [The macro `AC_INLINE' is obsolete. -You should run autoupdate.])dnl -AC_C_INLINE($@)[]AC_PROVIDE([AC_INLINE])[]_m4_defun_epi([AC_INLINE]) -T33,13 -m4_location(_AC_ARG_VAR_CPPFLAGS)aclang.m4:820 -T18,240 -AC_LANG_PROGRAM(C)$1 -m4_ifdef([_AC_LANG_PROGRAM_C_F77_HOOKS], [_AC_LANG_PROGRAM_C_F77_HOOKS()])dnl -int -main () -{ -dnl Do *not* indent the following line: there may be CPP directives. -dnl Don't move the `;' right after for the same reason. -$2 - ; - return 0; -} -T24,0 -_AC_OUTPUT_COMMANDS_INIT -T12,478 -AC_XENIX_DIR_m4_defun_pro([AC_XENIX_DIR])AC_DIAGNOSE([obsolete], [The macro `AC_XENIX_DIR' is obsolete. -You should run autoupdate.])dnl -# You shouldn't need to depend upon XENIX. Remove this test if useless. -AC_MSG_CHECKING([for Xenix]) -AC_EGREP_CPP(yes, -[#if defined(M_XENIX) && !defined(M_UNIX) - yes -@%:@endif], - [AC_MSG_RESULT([yes]); XENIX=yes], - [AC_MSG_RESULT([no]); XENIX=]) - -AC_HEADER_DIRENT[]dnl -[]AC_PROVIDE([AC_XENIX_DIR])[]_m4_defun_epi([AC_XENIX_DIR]) -T18,238 -_m4_foreach_quotedm4_if($2, [()], , - [m4_define([$1], [m4_car_quoted$2])$3[]_m4_foreach_quoted([$1], - [(m4_shift$2)], - [$3])]) -T24,14 -m4_location(AC_PROG_CXX)aclang.m4:1180 -T9,380 -AS_TR_CPP_m4_defun_pro([AS_TR_CPP])m4_require([_$0_PREPARE])dnl -AS_LITERAL_IF([$1], - [m4_patsubst(m4_translit([[$1]], - [*abcdefghijklmnopqrstuvwxyz], - [PABCDEFGHIJKLMNOPQRSTUVWXYZ]), - [[^A-Z0-9_]], [_])], - [`echo "$1" | $as_tr_cpp`])[]_m4_defun_epi([AS_TR_CPP]) -T11,41 -AC_DIAGNOSEm4_warning_ifelse([$1], [_m4_warn([$2])]) -T27,13 -m4_location(AC_LANG_SOURCE)aclang.m4:298 -T30,13 -m4_location(AC_LANG_FORTRAN77)aclang.m4:264 -T27,17 -m4_location(AC_CHECK_DECLS)acgeneral.m4:2933 -T17,299 -AC_LANG_CALL(C++)AC_LANG_PROGRAM([$1 -m4_if([$2], [main], , -[/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $2 ();])], [$2 ();]) -T9,184 -AM_EXEEXT_m4_defun_pro([AM_EXEEXT])AC_DIAGNOSE([obsolete], [The macro `AM_EXEEXT' is obsolete. -You should run autoupdate.])dnl -AC_EXEEXT($@)[]AC_PROVIDE([AM_EXEEXT])[]_m4_defun_epi([AM_EXEEXT]) -T9,51 -m4_shiftnm4_assert(($1 >= 0) && ($# > $1))dnl -_m4_shiftn($@) -T14,125 -AC_TYPE_SIZE_T_m4_defun_pro([AC_TYPE_SIZE_T])AC_CHECK_TYPE(size_t, unsigned)[]AC_PROVIDE([AC_TYPE_SIZE_T])[]_m4_defun_epi([AC_TYPE_SIZE_T]) -T10,1512 -AC_PROG_CC_m4_defun_pro([AC_PROG_CC])AC_LANG_PUSH(C)dnl -AC_ARG_VAR([CC], [C compiler command])dnl -AC_ARG_VAR([CFLAGS], [C compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -_AC_ARG_VAR_CPPFLAGS()dnl -m4_ifval([$1], - [AC_CHECK_TOOLS(CC, [$1])], -[AC_CHECK_TOOL(CC, gcc) -if test -z "$CC"; then - AC_CHECK_TOOL(CC, cc) -fi -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) -fi -if test -z "$CC"; then - AC_CHECK_TOOLS(CC, cl) -fi -]) - -test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) - -# Provide some information about the compiler. -echo "$as_me:__oline__:" \ - "checking for _AC_LANG compiler version" >&AS_MESSAGE_LOG_FD -ac_compiler=`set X $ac_compile; echo $[2]` -_AC_EVAL([$ac_compiler --version &AS_MESSAGE_LOG_FD]) -_AC_EVAL([$ac_compiler -v &AS_MESSAGE_LOG_FD]) -_AC_EVAL([$ac_compiler -V &AS_MESSAGE_LOG_FD]) - -m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl -m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl -_AC_LANG_COMPILER_GNU -GCC=`test $ac_compiler_gnu = yes && echo yes` -_AC_PROG_CC_G -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -_AC_COMPILE_IFELSE([@%:@ifndef __cplusplus - choke me -@%:@endif], - [_AC_PROG_CXX_EXIT_DECLARATION]) -AC_LANG_POP(C)dnl -[]AC_PROVIDE([AC_PROG_CC])[]_m4_defun_epi([AC_PROG_CC]) -T29,58 -AC_LANG_BOOL_COMPILE_TRY(C++)AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@]) -T15,1079 -AC_FUNC_FNMATCH_m4_defun_pro([AC_FUNC_FNMATCH])AC_CACHE_CHECK([for working GNU-style fnmatch], - [ac_cv_func_fnmatch_works], -# Some versions of Solaris, SCO, and the GNU C Library -# have a broken or incompatible fnmatch. -# So we run a test program. If we are cross-compiling, take no chance. -# Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. -[AC_RUN_IFELSE([AC_LANG_PROGRAM([@%:@include ], - [exit (fnmatch ("a*", "abc", 0) != 0 - || fnmatch ("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH - || fnmatch ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0 - || fnmatch ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0 - || fnmatch ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);])], - [ac_cv_func_fnmatch_works=yes], - [ac_cv_func_fnmatch_works=no], - [ac_cv_func_fnmatch_works=no])]) -if test $ac_cv_func_fnmatch_works = yes; then - AC_DEFINE(HAVE_FNMATCH, 1, - [Define if your system has a working `fnmatch' function.]) -fi -[]AC_PROVIDE([AC_FUNC_FNMATCH])[]_m4_defun_epi([AC_FUNC_FNMATCH]) -T12,200 -AC_DYNIX_SEQ_m4_defun_pro([AC_DYNIX_SEQ])AC_DIAGNOSE([obsolete], [The macro `AC_DYNIX_SEQ' is obsolete. -You should run autoupdate.])dnl -AC_FUNC_GETMNTENT[]AC_PROVIDE([AC_DYNIX_SEQ])[]_m4_defun_epi([AC_DYNIX_SEQ]) -T27,1578 -AC_SYS_RESTARTABLE_SYSCALLS_m4_defun_pro([AC_SYS_RESTARTABLE_SYSCALLS])AC_DIAGNOSE([obsolete], -[$0: System call restartability is now typically set at runtime. -Remove this `AC_SYS_RESTARTABLE_SYSCALLS' -and adjust your code to use `sigaction' with `SA_RESTART' instead.])dnl -AC_REQUIRE([AC_HEADER_SYS_WAIT])dnl -AC_CHECK_HEADERS(unistd.h) -AC_CACHE_CHECK(for restartable system calls, ac_cv_sys_restartable_syscalls, -[AC_RUN_IFELSE([AC_LANG_SOURCE( -[/* Exit 0 (true) if wait returns something other than -1, - i.e. the pid of the child, which means that wait was restarted - after getting the signal. */ - -#include -#include -#if HAVE_UNISTD_H -# include -#endif -#if HAVE_SYS_WAIT_H -# include -#endif - -/* Some platforms explicitly require an extern "C" signal handler - when using C++. */ -#ifdef __cplusplus -extern "C" void ucatch (int dummy) { } -#else -void ucatch (dummy) int dummy; { } -#endif - -int -main () -{ - int i = fork (), status; - - if (i == 0) - { - sleep (3); - kill (getppid (), SIGINT); - sleep (3); - exit (0); - } - - signal (SIGINT, ucatch); - - status = wait (&i); - if (status == -1) - wait (&i); - - exit (status == -1); -}])], - [ac_cv_sys_restartable_syscalls=yes], - [ac_cv_sys_restartable_syscalls=no])]) -if test $ac_cv_sys_restartable_syscalls = yes; then - AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS, 1, - [Define if system calls automatically restart after interruption - by a signal.]) -fi -[]AC_PROVIDE([AC_SYS_RESTARTABLE_SYSCALLS])[]_m4_defun_epi([AC_SYS_RESTARTABLE_SYSCALLS]) -T15,0 -AC_LIST_HEADERS -T12,21 -AC_LANG_CASEm4_case(_AC_LANG, $@) -T36,17 -m4_location(AC_CONFIG_COMMANDS_POST)acgeneral.m4:3260 -T27,58 -AC_LANG_BOOL_COMPILE_TRY(C)AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@]) -T25,16 -m4_location(AC_ST_BLOCKS)acoldnames.m4:71 -T28,14 -m4_location(AC_PROG_F77_C_O)aclang.m4:1389 -T8,56 -AS_ERROR{ AS_MESSAGE([error: $1], [2]) - AS_EXIT([$2]); }[]dnl - -T21,747 -AC_FUNC_CLOSEDIR_VOID_m4_defun_pro([AC_FUNC_CLOSEDIR_VOID])AC_REQUIRE([AC_HEADER_DIRENT])dnl -AC_CACHE_CHECK([whether closedir returns void], - [ac_cv_func_closedir_void], -[AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT -#include <$ac_header_dirent> -#ifndef __cplusplus -int closedir (); -#endif -], - [[exit (closedir (opendir (".")) != 0);]])], - [ac_cv_func_closedir_void=no], - [ac_cv_func_closedir_void=yes], - [ac_cv_func_closedir_void=yes])]) -if test $ac_cv_func_closedir_void = yes; then - AC_DEFINE(CLOSEDIR_VOID, 1, - [Define if the `closedir' function returns void instead of `int'.]) -fi -[]AC_PROVIDE([AC_FUNC_CLOSEDIR_VOID])[]_m4_defun_epi([AC_FUNC_CLOSEDIR_VOID]) -T12,98 -AH_CHECK_LIBAH_TEMPLATE(AS_TR_CPP(HAVE_LIB$1), - [Define if you have the `]$1[' library (-l]$1[).]) -T23,181 -AH_CHECK_HEADERS_DIRENTAC_FOREACH([AC_Header], [$1], - [AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Header), - [Define if you have the <]AC_Header[> header file, and - it defines `DIR'.])]) -T25,17 -m4_location(AC_PROG_LN_S)acspecific.m4:277 -T31,443 -_AC_SYS_LARGEFILE_TEST_INCLUDES@%:@include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]];[]dnl - -T15,209 -AC_TEST_PROGRAM_m4_defun_pro([AC_TEST_PROGRAM])AC_DIAGNOSE([obsolete], [The macro `AC_TEST_PROGRAM' is obsolete. -You should run autoupdate.])dnl -AC_TRY_RUN($@)[]AC_PROVIDE([AC_TEST_PROGRAM])[]_m4_defun_epi([AC_TEST_PROGRAM]) -T27,16 -m4_location(AC_HEADER_STDC)acheaders.m4:284 -T18,153 -AC_DEFINE_UNQUOTEDAC_DEFINE_TRACE([$1])dnl -m4_ifval([$3], [_AH_TEMPLATE_OLD([$1], [$3])])dnl -cat >>confdefs.h <>$LEX_OUTPUT_ROOT.c -ac_save_LIBS=$LIBS -LIBS="$LIBS $LEXLIB" -AC_LINK_IFELSE([`cat $LEX_OUTPUT_ROOT.c`], ac_cv_prog_lex_yytext_pointer=yes) -LIBS=$ac_save_LIBS -rm -f "${LEX_OUTPUT_ROOT}.c" -]) -dnl -if test $ac_cv_prog_lex_yytext_pointer = yes; then - AC_DEFINE(YYTEXT_POINTER, 1, - [Define if `lex' declares `yytext' as a `char *' by default, - not a `char[]'.]) -fi - -T18,167 -AC_SHELL_PATH_WALKac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="m4_default([$1], [$PATH])" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $2 -done - -T17,1912 -_AC_PATH_X_DIRECT# Standard set of common directories for X headers. -# Check X11 before X11Rn because it is often a symlink to the current release. -ac_x_header_dirs=' -/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' - -if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for Intrinsic.h. - # First, try using that file with no special directory specified. - AC_PREPROC_IFELSE([AC_LANG_SOURCE([@%:@include ])], -[# We can compile using X headers with no special include directory. -ac_x_includes=], -[for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/X11/Intrinsic.h"; then - ac_x_includes=$ac_dir - break - fi -done]) -fi # $ac_x_includes = no - -if test "$ac_x_libraries" = no; then - # Check for the libraries. - # See if we find them without any special options. - # Don't add to $LIBS permanently. - ac_save_LIBS=$LIBS - LIBS="-lXt $LIBS" - AC_TRY_LINK([@%:@include ], [XtMalloc (0)], -[LIBS=$ac_save_LIBS -# We can link X programs with no special library path. -ac_x_libraries=], -[LIBS=$ac_save_LIBS -for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` -do - # Don't even attempt the hair of trying to link an X program! - for ac_extension in a so sl; do - if test -r $ac_dir/libXt.$ac_extension; then - ac_x_libraries=$ac_dir - break 2 - fi - done -done]) -fi # $ac_x_libraries = no - -F10,7 -m4_dumpdefdumpdef -T8,155 -m4_stripm4_patsubst(m4_patsubst(m4_patsubst([[[[$1]]]], - [[ ]+], [ ]), - [^\(..\) ], [\1]), - [ \(.\)$], [\1]) -T30,17 -m4_location(AC_PREFIX_PROGRAM)acgeneral.m4:2495 -T25,201 -_AC_COMPILER_EXEEXT_CROSS# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -AC_MSG_CHECKING([whether we are cross compiling]) -AC_MSG_RESULT([$cross_compiling]) - -T15,214 -AC_HEADER_CHECK_m4_defun_pro([AC_HEADER_CHECK])AC_DIAGNOSE([obsolete], [The macro `AC_HEADER_CHECK' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_HEADER($@)[]AC_PROVIDE([AC_HEADER_CHECK])[]_m4_defun_epi([AC_HEADER_CHECK]) -T13,117 -AC_TYPE_PID_T_m4_defun_pro([AC_TYPE_PID_T])AC_CHECK_TYPE(pid_t, int)[]AC_PROVIDE([AC_TYPE_PID_T])[]_m4_defun_epi([AC_TYPE_PID_T]) -T27,14 -m4_location(AC_PROG_CC_C_O)aclang.m4:1080 -T13,4 -m4_car_quoted[$1] -T13,259 -_AC_PROG_ECHOcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac -AC_SUBST(ECHO_C)dnl -AC_SUBST(ECHO_N)dnl -AC_SUBST(ECHO_T)dnl - -T14,1216 -AC_C_BIGENDIAN_m4_defun_pro([AC_C_BIGENDIAN])AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian, -[ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include -#include -], -[#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros -#endif -])], -[# It does; now see whether it defined to BIG_ENDIAN or not. -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include -#include -], [#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif -])], [ac_cv_c_bigendian=yes], - [ac_cv_c_bigendian=no])]) -if test $ac_cv_c_bigendian = unknown; then -AC_TRY_RUN( -[int -main () -{ - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long l; - char c[sizeof (long)]; - } u; - u.l = 1; - exit (u.c[sizeof (long) - 1] == 1); -}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes) -fi]) -if test $ac_cv_c_bigendian = yes; then - AC_DEFINE(WORDS_BIGENDIAN, 1, - [Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX).]) -fi -[]AC_PROVIDE([AC_C_BIGENDIAN])[]_m4_defun_epi([AC_C_BIGENDIAN]) -T13,384 -AC_CHECK_FUNC_m4_defun_pro([AC_CHECK_FUNC])AS_VAR_PUSHDEF([ac_var], [ac_cv_func_$1])dnl -AC_CACHE_CHECK([for $1], ac_var, -[AC_LINK_IFELSE([AC_LANG_FUNC_LINK_TRY([$1])], - [AS_VAR_SET(ac_var, yes)], - [AS_VAR_SET(ac_var, no)])]) -AS_IF([test AS_VAR_GET(ac_var) = yes], [$2], [$3])dnl -AS_VAR_POPDEF([ac_var])dnl -[]AC_PROVIDE([AC_CHECK_FUNC])[]_m4_defun_epi([AC_CHECK_FUNC]) -T14,338 -AC_CHECK_FILES_m4_defun_pro([AC_CHECK_FILES])AC_FOREACH([AC_FILE_NAME], [$1], - [AC_CHECK_FILE(AC_FILE_NAME, - [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_FILE_NAME), 1, - [Define if you have the file `]AC_File['.]) -$2], - [$3])])[]AC_PROVIDE([AC_CHECK_FILES])[]_m4_defun_epi([AC_CHECK_FILES]) -T25,18 -m4_location(AC_XENIX_DIR)acspecific.m4:1033 -T24,16 -m4_location(AC_CYGWIN32)acoldnames.m4:80 -T28,17 -m4_location(AC_EGREP_HEADER)acgeneral.m4:2699 -T15,299 -AC_LANG_CALL(C)AC_LANG_PROGRAM([$1 -m4_if([$2], [main], , -[/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $2 ();])], [$2 ();]) -T11,483 -AC_F77_FUNC_m4_defun_pro([AC_F77_FUNC])AC_REQUIRE([_AC_F77_NAME_MANGLING])dnl -case $ac_cv_f77_mangling in - upper*) ac_val="m4_toupper([$1])" ;; - lower*) ac_val="m4_tolower([$1])" ;; - *) ac_val="unknown" ;; -esac -case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac -m4_if(m4_index([$1],[_]),-1,[], -[case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac -]) -m4_default([$2],[$1])="$ac_val" -[]AC_PROVIDE([AC_F77_FUNC])[]_m4_defun_epi([AC_F77_FUNC]) -T24,18 -m4_location(AC_IRIX_SUN)acspecific.m4:1045 -T27,16 -m4_location(AC_GETGROUPS_T)acoldnames.m4:54 -T13,212 -_m4_defun_epim4_divert_pop()dnl -m4_if(_m4_divert_dump, _m4_divert_diversion, - [m4_undivert([GROW])dnl -m4_undefine([_m4_divert_dump])])dnl -m4_expansion_stack_pop()dnl -m4_popdef([_m4_expanding($1)])dnl -m4_provide([$1])dnl - -T17,221 -AC_PROGRAMS_CHECK_m4_defun_pro([AC_PROGRAMS_CHECK])AC_DIAGNOSE([obsolete], [The macro `AC_PROGRAMS_CHECK' is obsolete. -You should run autoupdate.])dnl -AC_CHECK_PROGS($@)[]AC_PROVIDE([AC_PROGRAMS_CHECK])[]_m4_defun_epi([AC_PROGRAMS_CHECK]) -T15,1824 -AC_F77_WRAPPERS_m4_defun_pro([AC_F77_WRAPPERS])AC_REQUIRE([_AC_F77_NAME_MANGLING])dnl -AH_TEMPLATE([F77_FUNC], - [Define to a macro mangling the given C identifier (in lower and upper - case), which must not contain underscores, for linking with Fortran.])dnl -AH_TEMPLATE([F77_FUNC_], - [As F77_FUNC, but for C identifiers containing underscores.])dnl -case $ac_cv_f77_mangling in - "lower case, no underscore, no extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [name]) - AC_DEFINE([F77_FUNC_(name,NAME)], [name]) ;; - "lower case, no underscore, extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [name]) - AC_DEFINE([F77_FUNC_(name,NAME)], [name ## _]) ;; - "lower case, underscore, no extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [name ## _]) - AC_DEFINE([F77_FUNC_(name,NAME)], [name ## _]) ;; - "lower case, underscore, extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [name ## _]) - AC_DEFINE([F77_FUNC_(name,NAME)], [name ## __]) ;; - "upper case, no underscore, no extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [NAME]) - AC_DEFINE([F77_FUNC_(name,NAME)], [NAME]) ;; - "upper case, no underscore, extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [NAME]) - AC_DEFINE([F77_FUNC_(name,NAME)], [NAME ## _]) ;; - "upper case, underscore, no extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [NAME ## _]) - AC_DEFINE([F77_FUNC_(name,NAME)], [NAME ## _]) ;; - "upper case, underscore, extra underscore") - AC_DEFINE([F77_FUNC(name,NAME)], [NAME ## _]) - AC_DEFINE([F77_FUNC_(name,NAME)], [NAME ## __]) ;; - *) - AC_MSG_WARN([unknown Fortran 77 name-mangling scheme]) - ;; -esac -[]AC_PROVIDE([AC_F77_WRAPPERS])[]_m4_defun_epi([AC_F77_WRAPPERS]) -T36,13 -m4_location(AC_LANG_PREPROC_REQUIRE)aclang.m4:575 -T25,13 -m4_location(_AC_LANG_SET)aclang.m4:124 -T22,1 -_m4_divert(PARSE_ARGS)4 -T17,807 -_AC_CONFIG_UNIQUEm4_divert_push([KILL]) -AC_FOREACH([AC_File], [$1], -[m4_pushdef([AC_Dest], m4_patsubst(AC_File, [:.*])) -AC_CONFIG_IF_MEMBER(AC_Dest, [AC_LIST_HEADERS], - [AC_FATAL(`AC_Dest' [is already registered with AC_CONFIG_HEADER or AC_CONFIG_HEADERS.])]) - AC_CONFIG_IF_MEMBER(AC_Dest, [AC_LIST_LINKS], - [AC_FATAL(`AC_Dest' [is already registered with AC_CONFIG_LINKS.])]) - AC_CONFIG_IF_MEMBER(AC_Dest, [_AC_LIST_SUBDIRS], - [AC_FATAL(`AC_Dest' [is already registered with AC_CONFIG_SUBDIRS.])]) - AC_CONFIG_IF_MEMBER(AC_Dest, [AC_LIST_COMMANDS], - [AC_FATAL(`AC_Dest' [is already registered with AC_CONFIG_COMMANDS.])]) - AC_CONFIG_IF_MEMBER(AC_Dest, [AC_LIST_FILES], - [AC_FATAL(`AC_Dest' [is already registered with AC_CONFIG_FILES or AC_OUTPUT.])]) -m4_popdef([AC_Dest])]) -m4_divert_pop([KILL])dnl - -T27,203 -AC_LANG_PREPROC(Fortran 77)_m4_defun_pro([AC_LANG_PREPROC(Fortran 77)])m4_warn([syntax], - [$0: No preprocessor defined for ]_AC_LANG)[]AC_PROVIDE([AC_LANG_PREPROC(Fortran 77)])[]_m4_defun_epi([AC_LANG_PREPROC(Fortran 77)]) -T13,42 -AS_VAR_SET_IFAS_IF([AS_VAR_TEST_SET([$1])], [$2], [$3]) -T23,1441 -AC_FUNC_SELECT_ARGTYPES_m4_defun_pro([AC_FUNC_SELECT_ARGTYPES])AC_CHECK_HEADERS(sys/select.h sys/socket.h) -AC_CACHE_CHECK([types of arguments for select], -[ac_cv_func_select_args], -[for ac_arg234 in 'fd_set *' 'int *' 'void *'; do - for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do - for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( -[AC_INCLUDES_DEFAULT -#if HAVE_SYS_SELECT_H -# include -#endif -#if HAVE_SYS_SOCKET_H -# include -#endif -], - [extern int select ($ac_arg1, - $ac_arg234, $ac_arg234, $ac_arg234, - $ac_arg5);])], - [ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3]) - done - done -done -# Provide a safe default value. -: ${ac_cv_func_select_args='int,int *,struct timeval *'} -]) -ac_save_IFS=$IFS; IFS=',' -set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` -IFS=$ac_save_IFS -shift -AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG1, $[1], - [Define to the type of arg 1 for `select'.]) -AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG234, ($[2]), - [Define to the type of args 2, 3 and 4 for `select'.]) -AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG5, ($[3]), - [Define to the type of arg 5 for `select'.]) -rm -f conftest* -[]AC_PROVIDE([AC_FUNC_SELECT_ARGTYPES])[]_m4_defun_epi([AC_FUNC_SELECT_ARGTYPES]) -T6,259 -AC_RSH_m4_defun_pro([AC_RSH])AC_DIAGNOSE([obsolete], [The macro `AC_RSH' is obsolete. -You should run autoupdate.])dnl -AC_DIAGNOSE([obsolete], [$0: is no longer supported. -Remove this warning when you adjust the code.])[]AC_PROVIDE([AC_RSH])[]_m4_defun_epi([AC_RSH]) -T22,16 -m4_location(AC_PREFIX)acoldnames.m4:32 -T22,13 -m4_location(AC_OBJEXT)aclang.m4:647 -T15,133 -_m4_dumpdefs_upm4_ifdef([$1], - [m4_pushdef([_m4_dumpdefs], m4_defn([$1]))dnl -m4_dumpdef([$1])dnl -m4_popdef([$1])dnl -_m4_dumpdefs_up([$1])]) -T18,3048 -_AC_OUTPUT_SUBDIRS -# -# CONFIG_SUBDIRS section. -# -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=*) - ;; - --config-cache | -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_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - test -d $srcdir/$ac_subdir || continue - - AC_MSG_NOTICE([configuring in $ac_subdir]) - case $srcdir in - .) ;; - *) AS_MKDIR_P(["./$ac_subdir"]) - if test -d ./$ac_subdir; then :; - else - AC_MSG_ERROR([cannot create `pwd`/$ac_subdir]) - fi - ;; - esac - - ac_popdir=`pwd` - cd $ac_subdir - - # A "../" for each directory in /$ac_subdir. - ac_dots=`echo $ac_subdir | - sed 's,^\./,,;s,[[^/]]$,&/,;s,[[^/]]*/,../,g'` - - case $srcdir in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - [[\\/]]* | ?:[[\\/]]* ) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_subdir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure.gnu; then - ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'" - elif test -f $ac_sub_srcdir/configure; then - ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'" - elif test -f $ac_sub_srcdir/configure.in; then - ac_sub_configure=$ac_configure - else - AC_MSG_WARN([no configuration information is in $ac_subdir]) - 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 - - AC_MSG_NOTICE([running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir]) - # The eval makes quoting arguments work. - eval $ac_sub_configure $ac_sub_configure_args \ - --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir || - AC_MSG_ERROR([$ac_sub_configure failed for $ac_subdir]) - fi - - cd $ac_popdir - done -fi - -T10,52 -AC_FOREACHm4_foreach([$1], m4_split(m4_normalize([$2])), [$3]) -T14,254 -AS_DIRNAME_SED_m4_defun_pro([AS_DIRNAME_SED])echo X[]$1 | - sed ['/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'][]_m4_defun_epi([AS_DIRNAME_SED]) -D-1,0 - -# End of frozen state file diff --git a/autoconf/config.guess b/autoconf/config.guess index 1c1090c..1127162 100755 --- a/autoconf/config.guess +++ b/autoconf/config.guess @@ -1,9 +1,9 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -timestamp='2002-01-02' +timestamp='2003-10-07' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ timestamp='2002-01-02' # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -# Originally written by Per Bothner . +# Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # @@ -88,30 +88,42 @@ if test $# != 0; then exit 1 fi +trap 'exit 1' 1 2 15 -dummy=dummy-$$ -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. -# CC_FOR_BUILD -- compiler used by this script. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. -set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int dummy(){}" > $dummy.c ; - for c in cc gcc c89 ; do - ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; - if test $? = 0 ; then +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; - rm -f $dummy.c $dummy.o $dummy.rel ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac' +esac ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -138,9 +150,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". - UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \ - UNAME_MACHINE_ARCH=unknown + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; @@ -166,7 +180,18 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # The OS release - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. @@ -215,65 +240,52 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` fi + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - cat <$dummy.s - .data -\$Lformat: - .byte 37,100,45,37,120,10,0 # "%d-%x\n" - - .text - .globl main - .align 4 - .ent main -main: - .frame \$30,16,\$26,0 - ldgp \$29,0(\$27) - .prologue 1 - .long 0x47e03d80 # implver \$0 - lda \$2,-1 - .long 0x47e20c21 # amask \$2,\$1 - lda \$16,\$Lformat - mov \$0,\$17 - not \$1,\$18 - jsr \$26,printf - ldgp \$29,0(\$26) - mov 0,\$16 - jsr \$26,exit - .end main -EOF - eval $set_cc_for_build - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - case `./$dummy` in - 0-0) - UNAME_MACHINE="alpha" - ;; - 1-0) - UNAME_MACHINE="alphaev5" - ;; - 1-1) - UNAME_MACHINE="alphaev56" - ;; - 1-101) - UNAME_MACHINE="alphapca56" - ;; - 2-303) - UNAME_MACHINE="alphaev6" - ;; - 2-307) - UNAME_MACHINE="alphaev67" - ;; - 2-1307) - UNAME_MACHINE="alphaev68" - ;; - esac - fi - rm -f $dummy.s $dummy echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit 0 ;; + Alpha*:OpenVMS:*:*) + echo alpha-hp-vms + exit 0 ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead @@ -312,6 +324,13 @@ EOF NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit 0 ;; + DRS?6000:UNIX_SV:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7 && exit 0 ;; + esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; @@ -340,7 +359,7 @@ EOF echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) @@ -418,15 +437,20 @@ EOF exit (-1); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy \ - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm -f $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + $CC_FOR_BUILD -o $dummy $dummy.c \ + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && exit 0 echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit 0 ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; @@ -499,8 +523,7 @@ EOF exit(0); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 @@ -509,7 +532,7 @@ EOF fi exit 0 ;; *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else @@ -598,11 +621,21 @@ EOF exit (0); } EOF - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi - rm -f $dummy.c $dummy + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + # avoid double evaluation of $set_cc_for_build + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; ia64:HP-UX:*:*) @@ -636,8 +669,7 @@ EOF exit (0); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) @@ -683,9 +715,6 @@ EOF C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; - CRAY*X-MP:*:*:*) - echo xmp-cray-unicos - exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; @@ -698,18 +727,15 @@ EOF CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; - CRAY*T3D:*:*:*) - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; - CRAY-2:*:*:*) - echo cray2-cray-unicos - exit 0 ;; + *:UNICOS/mp:*:*) + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` @@ -726,7 +752,21 @@ EOF echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + # Determine whether the default compiler uses glibc. + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #if __GLIBC__ >= 2 + LIBC=gnu + #else + LIBC= + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + # GNU/KFreeBSD systems have a "k" prefix to indicate we are using + # FreeBSD's kernel, but not the complete OS. + case ${LIBC} in gnu) kernel_only='k' ;; esac + echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin @@ -737,14 +777,17 @@ EOF i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit 0 ;; - x86:Interix*:3*) - echo i386-pc-interix3 + x86:Interix*:[34]*) + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + exit 0 ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks exit 0 ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? - echo i386-pc-interix + echo i586-pc-interix exit 0 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin @@ -756,16 +799,24 @@ EOF echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) + # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit 0 ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit 0 ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit 0 ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux + echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu @@ -776,19 +827,37 @@ EOF #undef CPU #undef mips #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif - #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - rm -f $dummy.c - test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu @@ -824,6 +893,9 @@ EOF s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit 0 ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; @@ -837,7 +909,8 @@ EOF # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. - ld_supported_targets=`cd /; ld --help 2>&1 \ + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// @@ -849,7 +922,7 @@ EOF ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; + exit 0 ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit 0 ;; @@ -874,11 +947,17 @@ EOF LIBC=gnulibc1 # endif #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else LIBC=gnuaout #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - rm -f $dummy.c test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; @@ -896,6 +975,23 @@ EOF # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit 0 ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -917,22 +1013,19 @@ EOF UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit 0 ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about @@ -956,9 +1049,15 @@ EOF # "miniframe" echo m68010-convergent-sysv exit 0 ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit 0 ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit 0 ;; M68*:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` @@ -975,9 +1074,6 @@ EOF mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; @@ -1049,6 +1145,9 @@ EOF SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit 0 ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit 0 ;; @@ -1056,18 +1155,24 @@ EOF echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Darwin:*:*) - echo `uname -p`-apple-darwin${UNAME_RELEASE} + case `uname -p` in + *86) UNAME_PROCESSOR=i686 ;; + powerpc) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit 0 ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) - if test "${UNAME_MACHINE}" = "x86pc"; then + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi - echo `uname -p`-${UNAME_MACHINE}-nto-qnx + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit 0 ;; *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; - NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) + NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) @@ -1090,11 +1195,6 @@ EOF fi echo ${UNAME_MACHINE}-unknown-plan9 exit 0 ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit 0 ;; @@ -1113,11 +1213,8 @@ EOF *:ITS:*:*) echo pdp10-unknown-its exit 0 ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} exit 0 ;; esac @@ -1239,8 +1336,7 @@ main () } EOF -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 -rm -f $dummy.c $dummy +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 # Apollos put the system type in the environment. diff --git a/autoconf/config.sub b/autoconf/config.sub index 1657334..79657cd 100755 --- a/autoconf/config.sub +++ b/autoconf/config.sub @@ -1,9 +1,9 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -timestamp='2002-01-02' +timestamp='2003-10-07' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -118,7 +118,7 @@ esac # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) + nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -228,28 +228,42 @@ case $basic_machine in | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | c4x | clipper \ - | d10v | d30v | dsp16xx \ - | fr30 \ + | d10v | d30v | dlx | dsp16xx \ + | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ | m32r | m68000 | m68k | m88k | mcore \ - | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ - | mips64vr4100 | mips64vr4100el | mips64vr4300 \ - | mips64vr4300el | mips64vr5000 | mips64vr5000el \ - | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ - | mipsisa32 \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | msp430 \ | ns16k | ns32k \ - | openrisc \ + | openrisc | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | sh | sh[34] | sh[34]eb | shbe | shle \ - | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \ + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ | strongarm \ - | tahoe | thumb | tic80 | tron \ + | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xstormy16 | xtensa \ @@ -281,37 +295,53 @@ case $basic_machine in | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armv*-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c54x-* \ - | clipper-* | cray2-* | cydra-* \ - | d10v-* | d30v-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | fx80-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ | m32r-* \ - | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | mcore-* \ - | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ - | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ - | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | msp430-* \ + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \ - | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ | xtensa-* \ | ymp-* \ | z8k-*) @@ -346,6 +376,9 @@ case $basic_machine in basic_machine=a29k-none os=-bsd ;; + amd64) + basic_machine=x86_64-pc + ;; amdahl) basic_machine=580-amdahl os=-sysv @@ -377,6 +410,10 @@ case $basic_machine in basic_machine=ns32k-sequent os=-dynix ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; convex-c1) basic_machine=c1-convex os=-bsd @@ -397,16 +434,8 @@ case $basic_machine in basic_machine=c38-convex os=-bsd ;; - cray | ymp) - basic_machine=ymp-cray - os=-unicos - ;; - cray2) - basic_machine=cray2-cray - os=-unicos - ;; - [cjt]90) - basic_machine=${basic_machine}-cray + cray | j90) + basic_machine=j90-cray os=-unicos ;; crds | unos) @@ -609,14 +638,6 @@ case $basic_machine in basic_machine=m68k-atari os=-mint ;; - mipsel*-linux*) - basic_machine=mipsel-unknown - os=-linux-gnu - ;; - mips*-linux*) - basic_machine=mips-unknown - os=-linux-gnu - ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; @@ -707,6 +728,10 @@ case $basic_machine in np1) basic_machine=np1-gould ;; + nv1) + basic_machine=nv1-cray + os=-unicosmp + ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -714,6 +739,10 @@ case $basic_machine in basic_machine=hppa1.1-oki os=-proelf ;; + or32 | or32-*) + basic_machine=or32-unknown + os=-coff + ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose @@ -736,49 +765,55 @@ case $basic_machine in pbb) basic_machine=m68k-tti ;; - pc532 | pc532-*) + pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; - pentiumpro | p6 | 6x86 | athlon) + pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; - pentiumii | pentium2) + pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; + pentium4) + basic_machine=i786-pc + ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; - pentiumii-* | pentium2-*) + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown - ;; + ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown - ;; + ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown - ;; + ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown - ;; + ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; @@ -809,6 +844,16 @@ case $basic_machine in basic_machine=a29k-amd os=-udi ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; sequent) basic_machine=i386-sequent ;; @@ -816,6 +861,9 @@ case $basic_machine in basic_machine=sh-hitachi os=-hms ;; + sh64) + basic_machine=sh64-unknown + ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks @@ -883,13 +931,25 @@ case $basic_machine in os=-dynix ;; t3e) - basic_machine=t3e-cray + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; tx39) basic_machine=mipstx39-unknown ;; @@ -924,8 +984,8 @@ case $basic_machine in os=-vms ;; vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; + basic_machine=f301-fujitsu + ;; vxworks960) basic_machine=i960-wrs os=-vxworks @@ -946,17 +1006,13 @@ case $basic_machine in basic_machine=hppa1.1-winbond os=-proelf ;; - windows32) - basic_machine=i386-pc - os=-windows32-msvcrt + xps | xps100) + basic_machine=xps100-honeywell ;; - xmp) - basic_machine=xmp-cray + ymp) + basic_machine=ymp-cray os=-unicos ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim @@ -977,13 +1033,6 @@ case $basic_machine in op60c) basic_machine=hppa1.1-oki ;; - mips) - if [ x$os = x-linux-gnu ]; then - basic_machine=mips-unknown - else - basic_machine=mips-mips - fi - ;; romp) basic_machine=romp-ibm ;; @@ -1003,13 +1052,16 @@ case $basic_machine in we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh3eb | sh4eb) + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; + sh64) + basic_machine=sh64-unknown + ;; sparc | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; - cydra) + cydra) basic_machine=cydra-cydrome ;; orion) @@ -1024,10 +1076,6 @@ case $basic_machine in pmac | pmac-mpw) basic_machine=powerpc-apple ;; - c4x*) - basic_machine=c4x-none - os=-coff - ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; @@ -1083,17 +1131,19 @@ case $os in | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ + | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*) + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1105,8 +1155,10 @@ case $os in ;; esac ;; + -nto-qnx*) + ;; -nto*) - os=-nto-qnx + os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ @@ -1115,6 +1167,9 @@ case $os in -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; @@ -1154,8 +1209,11 @@ case $os in -ctix* | -uts*) os=-sysv ;; + -nova*) + os=-rtmk-nova + ;; -ns2 ) - os=-nextstep2 + os=-nextstep2 ;; -nsk*) os=-nsk @@ -1194,8 +1252,14 @@ case $os in -xenix) os=-xenix ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos ;; -none) ;; @@ -1228,11 +1292,14 @@ case $basic_machine in arm*-semi) os=-aout ;; + c4x-* | tic4x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; - pdp11-*) + pdp11-*) os=-none ;; *-dec | vax-*) @@ -1259,6 +1326,9 @@ case $basic_machine in mips*-*) os=-elf ;; + or32-*) + os=-coff + ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; @@ -1322,19 +1392,19 @@ case $basic_machine in *-next) os=-nextstep3 ;; - *-gould) + *-gould) os=-sysv ;; - *-highlevel) + *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; - *-sgi) + *-sgi) os=-irix ;; - *-siemens) + *-siemens) os=-sysv4 ;; *-masscomp) @@ -1406,7 +1476,7 @@ case $basic_machine in -ptx*) vendor=sequent ;; - -vxsim* | -vxworks*) + -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) diff --git a/autoconf/ltmain.sh b/autoconf/ltmain.sh index 6e5bf36..7e0c9f4 100644 --- a/autoconf/ltmain.sh +++ b/autoconf/ltmain.sh @@ -49,14 +49,14 @@ EOF fi # The name of this program. -progname=`$echo "$0" | sed 's%^.*/%%'` +progname=`$echo "$0" | ${SED} 's%^.*/%%'` modename="$progname" # Constants. PROGRAM=ltmain.sh PACKAGE=libtool -VERSION=1.4.2 -TIMESTAMP=" (1.922.2.53 2001/09/11 03:18:52)" +VERSION=1.4.3 +TIMESTAMP=" (1.922.2.110 2002/10/23 01:39:54)" default_mode= help="Try \`$progname --help' for more information." @@ -67,10 +67,19 @@ rm="rm -f" # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' +Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' -SP2NL='tr \040 \012' -NL2SP='tr \015\012 \040\040' +# test EBCDIC or ASCII +case `echo A|od -x` in + *[Cc]1*) # EBCDIC based system + SP2NL="tr '\100' '\n'" + NL2SP="tr '\r\n' '\100\100'" + ;; + *) # Assume ASCII based system + SP2NL="tr '\040' '\012'" + NL2SP="tr '\015\012' '\040\040'" + ;; +esac # NLS nuisances. # Only set LANG and LC_ALL to C if already set. @@ -144,7 +153,7 @@ do ;; --config) - sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 exit 0 ;; @@ -177,6 +186,8 @@ do --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; + --preserve-dup-deps) duplicate_deps="yes" ;; + --quiet | --silent) show=: ;; @@ -215,7 +226,7 @@ if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then case $nonopt in - *cc | *++ | gcc* | *-gcc*) + *cc | *++ | gcc* | *-gcc* | xlc*) mode=link for arg do @@ -467,7 +478,7 @@ if test -z "$show_help"; then pic_mode=default ;; esac - if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi @@ -992,7 +1003,7 @@ compiler." # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in - no/*-*-irix*) + no/*-*-irix* | no/*-*-nonstopux*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; @@ -1043,14 +1054,14 @@ compiler." # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; - *-*-openbsd*) + *-*-openbsd* | *-*-freebsd*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in - *-*-openbsd*) + *-*-openbsd* | *-*-freebsd*) # Do not include libc_r directly, use -pthread flag. continue ;; @@ -1330,9 +1341,11 @@ compiler." # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do - case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac + if test "X$duplicate_deps" = "Xyes" ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi libs="$libs $deplib" done deplibs= @@ -1461,10 +1474,12 @@ compiler." lib) if test "$deplibs_check_method" != pass_all; then echo - echo "*** Warning: This library needs some functionality provided by $deplib." + echo "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not used here." else echo echo "*** Warning: Linking the shared library $output against the" @@ -1508,7 +1523,7 @@ compiler." fi # Check to see that this really is a libtool archive. - if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit 1 @@ -1555,9 +1570,11 @@ compiler." tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi tmp_libs="$tmp_libs $deplib" done elif test $linkmode != prog && test $linkmode != lib; then @@ -1680,9 +1697,11 @@ compiler." # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi tmp_libs="$tmp_libs $deplib" done # for deplib continue @@ -1766,8 +1785,8 @@ compiler." # Make a new name for the extract_expsyms_cmds to use soroot="$soname" - soname=`echo $soroot | sed -e 's/^.*\///'` - newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a" + soname=`echo $soroot | ${SED} -e 's/^.*\///'` + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : @@ -1926,13 +1945,14 @@ compiler." # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo - echo "*** Warning: This library needs some functionality provided by $lib." + echo "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then - echo "*** Therefore, libtool will create a static module, that should work " - echo "*** as long as the dlopening application is linked with the -dlopen flag." + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" @@ -1981,9 +2001,11 @@ compiler." tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi tmp_libs="$tmp_libs $deplib" done @@ -2009,7 +2031,7 @@ compiler." if grep "^installed=no" $deplib > /dev/null; then path="-L$absdir/$objdir" else - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit 1 @@ -2273,16 +2295,21 @@ compiler." versuffix=".$current"; ;; - irix) + irix | nonstopux) major=`expr $current - $age + 1` - verstring="sgi$major.$revision" + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test $loop != 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` - verstring="sgi$major.$iface:$verstring" + verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. @@ -2296,7 +2323,7 @@ compiler." ;; osf) - major=`expr $current - $age` + major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" @@ -2388,9 +2415,9 @@ compiler." # Eliminate all temporary directories. for path in $notinst_path; do - lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'` - deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'` - dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'` + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'` + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'` + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` done if test -n "$xrpath"; then @@ -2441,7 +2468,7 @@ compiler." *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; - *-*-openbsd*) + *-*-openbsd* | *-*-freebsd*) # Do not include libc due to us having libc/libc_r. ;; *) @@ -2502,18 +2529,20 @@ EOF else droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $i." + echo "*** Warning: dynamic linker does not accept needed library $i." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which I believe you do not have" + echo "*** because a test_compile did reveal that the linker did not use it for" + echo "*** its dynamic dependency list that programs get resolved with at runtime." fi else newdeplibs="$newdeplibs $i" fi done else - # Error occured in the first compile. Let's try to salvage the situation: - # Compile a seperate program for each library. + # Error occured in the first compile. Let's try to salvage + # the situation: Compile a separate program for each library. for i in $deplibs; do name="`expr $i : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. @@ -2532,10 +2561,12 @@ EOF else droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $i." + echo "*** Warning: dynamic linker does not accept needed library $i." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which you do not appear to have" + echo "*** because a test_compile did reveal that the linker did not use this one" + echo "*** as a dynamic dependency that programs can get resolved with at runtime." fi else droppeddeps=yes @@ -2574,14 +2605,14 @@ EOF # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | sed 's/.* -> //'` + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ - | sed 10q \ + | ${SED} 10q \ | egrep "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" @@ -2592,10 +2623,17 @@ EOF if test -n "$a_deplib" ; then droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $a_deplib." + echo "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + echo "*** with $libname but no candidates were found. (...for file magic test)" + else + echo "*** with $libname and none of the candidates passed a file format test" + echo "*** using a file magic. Last file checked: $potlib" + fi fi else # Add a -L argument. @@ -2614,8 +2652,9 @@ EOF for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check below in file_magic test if eval echo \"$potent_lib\" 2>/dev/null \ - | sed 10q \ + | ${SED} 10q \ | egrep "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" @@ -2626,10 +2665,17 @@ EOF if test -n "$a_deplib" ; then droppeddeps=yes echo - echo "*** Warning: This library needs some functionality provided by $a_deplib." + echo "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + echo "*** with $libname but no candidates were found. (...for regex pattern test)" + else + echo "*** with $libname and none of the candidates passed a file format test" + echo "*** using a regex pattern. Last file checked: $potlib" + fi fi else # Add a -L argument. @@ -2894,7 +2940,18 @@ EOF if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval cmds=\"$archive_expsym_cmds\" else + save_deplibs="$deplibs" + for conv in $convenience; do + tmp_deplibs= + for test_deplib in $deplibs; do + if test "$test_deplib" != "$conv"; then + tmp_deplibs="$tmp_deplibs $test_deplib" + fi + done + deplibs="$tmp_deplibs" + done eval cmds=\"$archive_cmds\" + deplibs="$save_deplibs" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do @@ -3093,7 +3150,7 @@ EOF prog) case $host in - *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;; + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 @@ -3115,6 +3172,13 @@ EOF # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + case $host in + *darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + ;; + esac ;; esac @@ -3281,9 +3345,9 @@ extern \"C\" { if test -z "$export_symbols"; then export_symbols="$output_objdir/$output.exp" $run $rm $export_symbols - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' else - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' fi @@ -3291,7 +3355,7 @@ extern \"C\" { for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" - name=`echo "$arg" | sed -e 's%^.*/%%'` + name=`echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval 'echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done @@ -3306,7 +3370,13 @@ extern \"C\" { fi # Try sorting and uniquifying the output. - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then + if grep -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S @@ -3528,7 +3598,7 @@ static const void *lt_preloaded_setup() { relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done - relink_command="cd `pwd`; $relink_command" + relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi @@ -3548,7 +3618,7 @@ static const void *lt_preloaded_setup() { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in - *.exe) output=`echo $output|sed 's,.exe$,,'` ;; + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in @@ -3572,7 +3642,7 @@ static const void *lt_preloaded_setup() { # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' +Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout @@ -3610,7 +3680,7 @@ else test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\` + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` @@ -3623,7 +3693,7 @@ else fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. @@ -3637,7 +3707,7 @@ else progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\ + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" @@ -3683,7 +3753,7 @@ else $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed + # The second colon is a workaround for a bug in BeOS R4 ${SED} $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var @@ -3858,7 +3928,7 @@ fi\ fi done # Quote the link command for shipping. - relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args" + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` # Only create the output if not a dry run. @@ -3875,7 +3945,7 @@ fi\ case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit 1 @@ -3889,7 +3959,7 @@ fi\ newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit 1 @@ -3900,7 +3970,7 @@ fi\ newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit 1 @@ -4124,7 +4194,7 @@ relink_command=\"$relink_command\"" *.la) # Check to see that this really is a libtool archive. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 @@ -4273,19 +4343,27 @@ relink_command=\"$relink_command\"" fi # Do a test to see if this is really a libtool program. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + case $host in + *cygwin*|*mingw*) + wrapper=`echo $file | ${SED} -e 's,.exe$,,'` + ;; + *) + wrapper=$file + ;; + esac + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # If there is no directory component, then add one. case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; + */* | *\\*) . $wrapper ;; + *) . ./$wrapper ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit 1 fi @@ -4310,8 +4388,8 @@ relink_command=\"$relink_command\"" relink_command= # If there is no directory component, then add one. case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; + */* | *\\*) . $wrapper ;; + *) . ./$wrapper ;; esac outputname= @@ -4359,7 +4437,7 @@ relink_command=\"$relink_command\"" destfile=$destfile.exe ;; *:*.exe) - destfile=`echo $destfile | sed -e 's,.exe$,,'` + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; @@ -4507,7 +4585,7 @@ relink_command=\"$relink_command\"" case $file in *.la) # Check to see that this really is a libtool archive. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 @@ -4578,7 +4656,7 @@ relink_command=\"$relink_command\"" -*) ;; *) # Do a test to see if this is really a libtool program. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; @@ -4610,7 +4688,7 @@ relink_command=\"$relink_command\"" fi # Now prepare to actually exec the command. - exec_cmd='"$cmd"$args' + exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then @@ -4687,7 +4765,7 @@ relink_command=\"$relink_command\"" case $name in *.la) # Possibly a libtool archive, so verify it. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. @@ -4742,7 +4820,7 @@ relink_command=\"$relink_command\"" *) # Do a test to see if this is a libtool program. if test $mode = clean && - (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$file diff --git a/configure.ac b/configure.ac index 3640b8e..a52b58c 100644 --- a/configure.ac +++ b/configure.ac @@ -51,9 +51,9 @@ AC_PROG_CXXCPP dnl sets variable CXXCPP CL_AS_UNDERSCORE dnl sets variable AS_UNDERSCORE, DEFS ASM_UNDERSCORE -CL_PROG_RANLIB +AC_PROG_RANLIB dnl sets variable RANLIB -CL_PROG_INSTALL +AC_PROG_INSTALL dnl sets variables INSTALL, INSTALL_DATA, INSTALL_PROGRAM dnl dnl check for host type @@ -65,7 +65,6 @@ CL_CANONICAL_HOST_CPU dnl dnl check for build configuration dnl - dnl libcln depends on libm PACKAGE=cln dnl libtool wants PACKAGE AC_PROG_LIBTOOL @@ -80,7 +79,7 @@ dnl CL_CURRENT and set CL_REVISION to 0, dnl * if any functions/classes have been added, increment CL_AGE, dnl * if backwards compatibility has been broken, set CL_AGE to 0. CL_CURRENT=2 -CL_REVISION=4 +CL_REVISION=5 CL_AGE=0 dnl make substitutions AC_SUBST(CL_CURRENT) @@ -89,7 +88,7 @@ AC_SUBST(CL_AGE) dnl release version CL_VERSION_MAJOR=1 CL_VERSION_MINOR=1 -CL_VERSION_PATCHLEVEL=5 +CL_VERSION_PATCHLEVEL=6 dnl release version for cln/config.h, so it can be tested by the preprocessor AC_DEFINE_UNQUOTED(CL_VERSION_MAJOR, $CL_VERSION_MAJOR) AC_DEFINE_UNQUOTED(CL_VERSION_MINOR, $CL_VERSION_MINOR) @@ -104,20 +103,16 @@ dnl checks for compiler characteristics dnl AC_LANG_CPLUSPLUS dnl -CL_BOOL - dnl DEFS HAVE_BOOL, bool CL_LONGLONG dnl DEFS HAVE_LONGLONG CL_LONGDOUBLE dnl DEFS HAVE_LONGDOUBLE -CL_TEMPLATE_NULL - dnl DEFS HAVE_TEMPLATE_NULL CL_GLOBAL_CONSTRUCTORS dnl DEFS CL_GLOBAL_CONSTRUCTOR_PREFIX, CL_GLOBAL_DESTRUCTOR_PREFIX dnl dnl checks for header files dnl -CL_UNISTD_H +AC_CHECK_HEADERS([unistd.h]) dnl DEFS HAVE_UNISTD_H if exist unistd.h dnl dnl checks for typedefs @@ -131,8 +126,6 @@ CL_FPU_CONTROL dnl DEFS HAVE_FPU_CONTROL_T, HAVE_SETFPUCW CL_GETTIMEOFDAY dnl DEFS HAVE_GETTIMEOFDAY, GETTIMEOFDAY_DOTS, GETTIMEOFDAY_TZP_T -CL_FTIME - dnl DEFS HAVE_FTIME CL_TIMES_CLOCK dnl DEFS HAVE_TIMES_CLOCK CL_RUSAGE @@ -142,7 +135,7 @@ CL_PERROR dnl dnl checks for compiler characteristics dnl -CL_CHAR_UNSIGNED +AC_C_CHAR_UNSIGNED dnl DEFS __CHAR_UNSIGNED__ if char is unsigned test -d 'include/cln' || mkdir -p 'include/cln' CL_MACHINE([integer types and behaviour],${srcdir}/autoconf/intparam.c,include/cln/intparam.h,cl_cv_file_intparam_h) diff --git a/include/cln/GV_integer.h b/include/cln/GV_integer.h index e79d3dd..712c0bd 100644 --- a/include/cln/GV_integer.h +++ b/include/cln/GV_integer.h @@ -13,9 +13,7 @@ namespace cln { // A vector of integers is *not* just a normal vector of numbers (the vectorops // support the maxbits() operation), but we treat can it like this nevertheless. -#ifdef HAVE_TEMPLATE_NULL template <> -#endif struct cl_heap_GV : cl_heap { cl_GV_inner v; // here room for the elements diff --git a/include/cln/GV_modinteger.h b/include/cln/GV_modinteger.h index ac4aa97..4dc7ccb 100644 --- a/include/cln/GV_modinteger.h +++ b/include/cln/GV_modinteger.h @@ -11,9 +11,7 @@ namespace cln { // A vector of modular integers (over the same modular integer ring) // is just a normal vector of integers, with maxbits() operation. -#ifdef HAVE_TEMPLATE_NULL template <> -#endif struct cl_heap_GV<_cl_MI> : cl_heap { cl_GV_inner<_cl_MI> v; // here room for the elements diff --git a/include/cln/config.h.in b/include/cln/config.h.in index f4e9a9b..a126631 100644 --- a/include/cln/config.h.in +++ b/include/cln/config.h.in @@ -71,12 +71,6 @@ /* compiler characteristics */ -/* CL_BOOL */ -/* Define if your compiler understands the bool type. */ -#undef HAVE_BOOL -/* Define this as `int' if your compiler doesn't understand the bool type. */ -#undef bool - /* CL_LONGLONG */ /* Define if your compiler supports the `long long' type. */ #undef HAVE_LONGLONG @@ -85,10 +79,6 @@ /* Define if your compiler supports the `long double' type. */ #undef HAVE_LONGDOUBLE -/* CL_TEMPLATE_NULL */ -/* Define if your compiler supports the `template <>' syntax. */ -#undef HAVE_TEMPLATE_NULL - /* header files */ diff --git a/include/cln/modules.h b/include/cln/modules.h index c9cedb9..8555c32 100644 --- a/include/cln/modules.h +++ b/include/cln/modules.h @@ -7,7 +7,7 @@ // specified in C++. AIX 4 has a linker which apparently does order // the modules according to dependencies, so that low-level modules // will be initialized earlier than the high-level modules which depend -// on them. I have a patch for GNU ld that does the same thing. +// on them. I (Bruno) have a patch for GNU ld that does the same thing. // // But for now, I take a half-automatic approach to the correct module // ordering problem: PROVIDE/REQUIRE, as in Common Lisp. diff --git a/autoconf/acinclude.m4 b/m4/gmp.m4 similarity index 71% rename from autoconf/acinclude.m4 rename to m4/gmp.m4 index a74892e..4ce5c35 100644 --- a/autoconf/acinclude.m4 +++ b/m4/gmp.m4 @@ -1,4 +1,16 @@ -# Is the gmp header file new enough? (should be implemented with an argument) +dnl -*- Autoconf -*- +dnl Copyright (C) 1993-2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl From Richard B. Kreckel. + +AC_PREREQ(2.13) + +dnl Is the gmp header file new enough? (should be implemented with an argument) AC_DEFUN(CL_GMP_H_VERSION, [AC_CACHE_CHECK([for recent enough gmp.h], cl_cv_new_gmp_h, [ AC_TRY_CPP([#include @@ -8,7 +20,7 @@ AC_DEFUN(CL_GMP_H_VERSION, cl_cv_new_gmp_h="yes", cl_cv_new_gmp_h="no") ])])dnl -# Does libgmp provide some functionality introduced in version 3.0? +dnl Does libgmp provide some functionality introduced in version 3.0? AC_DEFUN(CL_GMP_CHECK, [AC_CACHE_CHECK([for working libgmp], cl_cv_new_libgmp, [ SAVELIBS=$LIBS @@ -17,7 +29,7 @@ AC_DEFUN(CL_GMP_CHECK, cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) ])]) -# What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) +dnl What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) AC_DEFUN(CL_GMP_SET_UINTD, [AC_CACHE_CHECK([how large gmp demands uintD to be], cl_cv_gmp_set_uintd, [ AC_TRY_RUN([#include diff --git a/src/base/cl_base_config.h.in b/src/base/cl_base_config.h.in index a5759e7..f4c9b7c 100644 --- a/src/base/cl_base_config.h.in +++ b/src/base/cl_base_config.h.in @@ -16,13 +16,9 @@ /* Define as the type of `tzp' in gettimeofday() declaration. */ #undef GETTIMEOFDAY_TZP_T -/* CL_FTIME */ -/* Define if you have the ftime() function. */ -#undef HAVE_FTIME - /* CL_TIMES_CLOCK */ /* Define if you have the times() function and it returns the real time, - but don't have the gettimeofday() or ftime() function. */ + but don't have the gettimeofday() function. */ #undef HAVE_TIMES_CLOCK diff --git a/src/base/random/cl_random_from.cc b/src/base/random/cl_random_from.cc index f73b035..546bd3e 100644 --- a/src/base/random/cl_random_from.cc +++ b/src/base/random/cl_random_from.cc @@ -34,22 +34,6 @@ inline uint32 get_seed (void) return cln::highlow32(tv.tv_sec,tv.tv_usec); // 16+16 zufällige Bits } -#elif defined(HAVE_FTIME) - -#include -#ifdef _WIN32 - extern "C" void ftime (struct timeb * tp); -#else - extern "C" int ftime (struct timeb * tp); -#endif - -inline uint32 get_seed (void) -{ - var struct timeb tb; - ftime(&tb); - return (tb.time << 10) | tb.millitm; // 22+10 zufällige Bits -} - #elif defined(HAVE_TIMES_CLOCK) #include diff --git a/src/timing/cl_t_config.h.in b/src/timing/cl_t_config.h.in index 25d9f27..a1a0fa1 100644 --- a/src/timing/cl_t_config.h.in +++ b/src/timing/cl_t_config.h.in @@ -16,13 +16,9 @@ /* Define as the type of `tzp' in gettimeofday() declaration. */ #undef GETTIMEOFDAY_TZP_T -/* CL_FTIME */ -/* Define if you have the ftime() function. */ -#undef HAVE_FTIME - /* CL_TIMES_CLOCK */ /* Define if you have the times() function and it returns the real time, - but don't have the gettimeofday() or ftime() function. */ + but don't have the gettimeofday() function. */ #undef HAVE_TIMES_CLOCK /* CL_RUSAGE */ diff --git a/src/timing/cl_t_current.cc b/src/timing/cl_t_current.cc index c46a09a..de1cdc4 100644 --- a/src/timing/cl_t_current.cc +++ b/src/timing/cl_t_current.cc @@ -19,13 +19,6 @@ #else extern "C" int gettimeofday (struct timeval * tp, GETTIMEOFDAY_TZP_T tzp); #endif -#elif defined(HAVE_FTIME) - #include - #ifdef _WIN32 - extern "C" void ftime (struct timeb * tp); - #else - extern "C" int ftime (struct timeb * tp); - #endif #else #include #endif @@ -49,12 +42,6 @@ const cl_timespec cl_current_time () return cl_timespec(tv.tv_sec, tv.tv_usec * (1000000000/1000000) ); -#elif defined(HAVE_FTIME) - var struct timeb timebuf; - ftime(&timebuf); - return cl_timespec(timebuf.time, - (uintL)timebuf.millitm * (1000000000/1000) - ); #else return cl_timespec(time(NULL),0); #endif -- 2.45.1