source: main/trunk/greenstone2/configure@ 24363

Last change on this file since 24363 was 23802, checked in by ak19, 13 years ago

Added enable/disable-wvware flag to affected configure and Makefiles files in build-src, build-src/packages and top-level GS2, so we can turn off wvware compiling (such as for 64 bit Mac OS Snow Leopard Update 3 machines - MacOS 10.6.3 and over). By default wvware compilation is enabled.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 241.0 KB
RevLine 
[562]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[23802]3# Generated by GNU Autoconf 2.59.
[562]4#
[23802]5# Copyright (C) 2003 Free Software Foundation, Inc.
[562]6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
[23802]8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
[562]11
[23802]12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
[8756]14 emulate sh
15 NULLCMD=:
[23802]16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
[8756]17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
[23802]19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
[8756]21fi
[23802]22DUALCASE=1; export DUALCASE # for MKS sh
[8756]23
[23802]24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
[8756]27else
[23802]28 as_unset=false
[8756]29fi
30
31
[23802]32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
[8756]34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
[23802]39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
[8756]43do
[23802]44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
[8756]46 else
[23802]47 $as_unset $as_var
[8756]48 fi
[23802]49done
[8756]50
[23802]51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
[8756]53 as_expr=expr
54else
55 as_expr=false
56fi
57
[23802]58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
[8756]59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
[23802]65# Name of the executable.
66as_me=`$as_basename "$0" ||
[8756]67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
[23802]69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
[8756]76
[23802]77
78# PATH needs CR, and LINENO needs CR and PATH.
[20853]79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
[8756]85
[23802]86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
[8756]98
[23802]99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
[8756]165 sed '
166 N
[23802]167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
[8756]170 t loop
[23802]171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
[8756]173 ' >$as_me.lineno &&
[23802]174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
[8756]177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
[23802]180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
[8756]182 # Exit status is that of the last command.
183 exit
184}
185
[23802]186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
[8756]192esac
193
[23802]194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
[8756]196else
[23802]197 as_expr=false
[8756]198fi
[23802]199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
[22378]209 as_ln_s='ln -s'
[20853]210 fi
[23802]211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
[8756]213else
214 as_ln_s='cp -p'
215fi
[23802]216rm -f conf$$ conf$$.exe conf$$.file
[8756]217
218if mkdir -p . 2>/dev/null; then
[23802]219 as_mkdir_p=:
[8756]220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
[23802]225as_executable_p="test -f"
[8756]226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
[23802]234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
[8756]239
[23802]240# CDPATH.
241$as_unset CDPATH
242
243
[8756]244# Name of the host.
[23802]245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
[8756]246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
[23802]249exec 6>&1
250
[8756]251#
252# Initializations.
253#
[562]254ac_default_prefix=/usr/local
[8756]255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
[23802]260SHELL=${CONFIG_SHELL-/bin/sh}
[562]261
[23802]262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
[8756]267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
[23802]277#if HAVE_SYS_TYPES_H
[8756]278# include <sys/types.h>
279#endif
[23802]280#if HAVE_SYS_STAT_H
[8756]281# include <sys/stat.h>
282#endif
[23802]283#if STDC_HEADERS
[8756]284# include <stdlib.h>
285# include <stddef.h>
286#else
[23802]287# if HAVE_STDLIB_H
[8756]288# include <stdlib.h>
289# endif
290#endif
[23802]291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
[8756]293# include <memory.h>
294# endif
295# include <string.h>
296#endif
[23802]297#if HAVE_STRINGS_H
[8756]298# include <strings.h>
299#endif
[23802]300#if HAVE_INTTYPES_H
[8756]301# include <inttypes.h>
[23802]302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
[8756]306#endif
[23802]307#if HAVE_UNISTD_H
[8756]308# include <unistd.h>
309#endif"
310
[23802]311ac_subdirs_all="$ac_subdirs_all common-src"
312ac_subdirs_all="$ac_subdirs_all build-src"
313ac_subdirs_all="$ac_subdirs_all runtime-src"
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR ENABLE_JAVA USE_Z3950 USE_YAZ USE_WVWARE USE_JDBM USE_GDBM ENABLE_ACCENTFOLD USE_SQLITE USE_APACHE_HTTPD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
[8756]315ac_subst_files=''
316
[562]317# Initialize some variables set by options.
[8756]318ac_init_help=
319ac_init_version=false
[562]320# The variables have the same names as the options, with
321# dashes changed to underlines.
[8756]322cache_file=/dev/null
[562]323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
[8756]336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
[562]342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
[23802]345datadir='${prefix}/share'
[562]346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
[23802]349libdir='${exec_prefix}/lib'
[562]350includedir='${prefix}/include'
351oldincludedir='/usr/include'
[23802]352infodir='${prefix}/info'
353mandir='${prefix}/man'
[562]354
355ac_prev=
356for ac_option
357do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
[23802]360 eval "$ac_prev=\$ac_option"
[562]361 ac_prev=
362 continue
363 fi
364
[23802]365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
[562]366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
[23802]369 case $ac_option in
[562]370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
[8756]374 bindir=$ac_optarg ;;
[562]375
376 -build | --build | --buil | --bui | --bu)
[8756]377 ac_prev=build_alias ;;
[562]378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
[8756]379 build_alias=$ac_optarg ;;
[562]380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
[8756]386 cache_file=$ac_optarg ;;
[562]387
[8756]388 --config-cache | -C)
389 cache_file=config.cache ;;
390
[23802]391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
[562]392 ac_prev=datadir ;;
[23802]393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
[8756]395 datadir=$ac_optarg ;;
[562]396
397 -disable-* | --disable-*)
[23802]398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
[562]399 # Reject names that are not valid shell variable names.
[23802]400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
[562]405
406 -enable-* | --enable-*)
[23802]407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
[562]408 # Reject names that are not valid shell variable names.
[23802]409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
[20853]416 esac
[23802]417 eval "enable_$ac_feature='$ac_optarg'" ;;
[562]418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
[8756]426 exec_prefix=$ac_optarg ;;
[562]427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
[8756]432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
[562]438
439 -host | --host | --hos | --ho)
[8756]440 ac_prev=host_alias ;;
[562]441 -host=* | --host=* | --hos=* | --ho=*)
[8756]442 host_alias=$ac_optarg ;;
[562]443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
[8756]449 includedir=$ac_optarg ;;
[562]450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
[8756]454 infodir=$ac_optarg ;;
[562]455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
[8756]459 libdir=$ac_optarg ;;
[562]460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
[8756]466 libexecdir=$ac_optarg ;;
[562]467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
[23802]469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
[562]471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
[23802]473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
[8756]475 localstatedir=$ac_optarg ;;
[562]476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
[8756]480 mandir=$ac_optarg ;;
[562]481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
[8756]487 | --no-cr | --no-c | -n)
[562]488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
[8756]501 oldincludedir=$ac_optarg ;;
[562]502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
[8756]506 prefix=$ac_optarg ;;
[562]507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
[8756]513 program_prefix=$ac_optarg ;;
[562]514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
[8756]520 program_suffix=$ac_optarg ;;
[562]521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
[8756]537 program_transform_name=$ac_optarg ;;
[562]538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
[8756]547 sbindir=$ac_optarg ;;
[562]548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
[8756]558 sharedstatedir=$ac_optarg ;;
[562]559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
[8756]563 site=$ac_optarg ;;
[562]564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
[8756]568 srcdir=$ac_optarg ;;
[562]569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
[8756]575 sysconfdir=$ac_optarg ;;
[562]576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
[8756]578 ac_prev=target_alias ;;
[562]579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
[8756]580 target_alias=$ac_optarg ;;
[562]581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
[8756]585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
[562]587
588 -with-* | --with-*)
[23802]589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
[562]590 # Reject names that are not valid shell variable names.
[23802]591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
[20853]598 esac
[23802]599 eval "with_$ac_package='$ac_optarg'" ;;
[562]600
601 -without-* | --without-*)
[23802]602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
[562]603 # Reject names that are not valid shell variable names.
[23802]604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
[562]609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
[8756]619 x_includes=$ac_optarg ;;
[562]620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
[8756]626 x_libraries=$ac_optarg ;;
[562]627
[23802]628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
[562]631 ;;
632
[8756]633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
[23802]636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
[8756]641 export $ac_envvar ;;
642
[562]643 *)
[8756]644 # FIXME: should be removed in autoconf 3.0.
[23802]645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
[8756]646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
[23802]647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
[8756]648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
[562]649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
[8756]655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
[23802]656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
[562]658fi
659
[23802]660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
[8756]668 esac
[23802]669done
[8200]670
[23802]671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
[20853]674do
[23802]675 eval ac_val=$`echo $ac_var`
[20853]676 case $ac_val in
[23802]677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
[20853]680 esac
681done
682
[8756]683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
[562]689
[8756]690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
[23802]694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
[8756]696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
[562]700
[8756]701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
[562]703
[8756]704test "$silent" = yes && exec 6>/dev/null
705
706
[562]707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
[23802]710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
[562]723 srcdir=$ac_confdir
[23802]724 if test ! -r $srcdir/$ac_unique_file; then
[562]725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
[23802]730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
[20842]738fi
[23802]739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
[562]783
[8756]784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791\`configure' configures this package to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE. See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
[23802]805 -q, --quiet, --silent do not print \`checking...' messages
[8756]806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810
[23802]811_ACEOF
812
813 cat <<_ACEOF
[8756]814Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
[23802]816 [$ac_default_prefix]
[8756]817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[23802]818 [PREFIX]
[8756]819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
[23802]828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
[8756]840_ACEOF
841
842 cat <<\_ACEOF
843
844System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 --target=TARGET configure for building compilers for TARGET [HOST]
848_ACEOF
849fi
850
851if test -n "$ac_init_help"; then
852
853 cat <<\_ACEOF
854
855Optional Features:
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-corba Enable CORBA support
[23356]859 --disable-java Disable Java compilation
[8756]860 --enable-z3950 Enable Z39.50 client support
[15816]861 --disable-yaz Disable YAZ compilation
[23802]862 --disable-wvware Disable wvWare compilation
[23356]863 --disable-jdbm Disable JDBM compilation
864 --disable-gdbm Disable GDBM compilation
[15816]865 --disable-accentfold Disable Accent Folding for MGPP
[16288]866 --disable-sqlite Disable SQLite support
[23356]867 --enable-apache-httpd Enable Apache httpd support
868 --enable-jni Enable JNI compilation
869 --disable-mg Disable MG compilation
870 --disable-mgpp Disable MGPP compilation
[21330]871 --disable-lucene Disable Lucene compilation
[8756]872
873Optional Packages:
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-micodir Use installed MICO directory
877 --with-dmalloc use dmalloc, as in
878 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
879 --with-regex use older regex in lieu of GNU rx for matching
880
881Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
[23802]886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
[8756]888 CXX C++ compiler command
889 CXXFLAGS C++ compiler flags
890 CPP C preprocessor
891
892Use these variables to override the choices made by `configure' or to help
893it to find libraries and programs with nonstandard names/locations.
894
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
[23802]900 ac_popdir=`pwd`
[8756]901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
[23802]902 test -d $ac_dir || continue
[8756]903 ac_builddir=.
904
[23802]905if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910 ac_dir_suffix= ac_top_builddir=
911fi
[8756]912
913case $srcdir in
[23802]914 .) # No --srcdir option. We are building in place.
[8756]915 ac_srcdir=.
[23802]916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
[8756]922 ac_srcdir=$srcdir$ac_dir_suffix;
[23802]923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
[8756]927esac
928
[23802]929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966esac
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
[8756]980 else
[23802]981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd $ac_popdir
[8756]984 done
985fi
986
[23802]987test -n "$ac_init_help" && exit 0
[8756]988if $ac_init_version; then
989 cat <<\_ACEOF
990
[23802]991Copyright (C) 2003 Free Software Foundation, Inc.
[8756]992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
[23802]995 exit 0
[8756]996fi
[23802]997exec 5>config.log
998cat >&5 <<_ACEOF
[8756]999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by $as_me, which was
[23802]1003generated by GNU Autoconf 2.59. Invocation command line was
[8756]1004
1005 $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
[23802]1026hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
[8756]1027/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
[23802]1038 echo "PATH: $as_dir"
1039done
[8756]1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
[23802]1061ac_sep=
[8756]1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
[23802]1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
[8756]1074 esac
1075 case $ac_pass in
[23802]1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
[8756]1077 2)
[23802]1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
[8756]1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
[23802]1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
[8756]1097 ;;
1098 esac
1099 done
1100done
[23802]1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
[8756]1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log. We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
[23802]1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
[8756]1109trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
[23802]1114 cat <<\_ASBOX
1115## ---------------- ##
[8756]1116## Cache variables. ##
[23802]1117## ---------------- ##
1118_ASBOX
[8756]1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
[23802]1121{
[8756]1122 (set) 2>&1 |
[23802]1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
[8756]1125 sed -n \
[23802]1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
[8756]1129 *)
[23802]1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
[8756]1132 ;;
[23802]1133 esac;
1134}
[8756]1135 echo
1136
[23802]1137 cat <<\_ASBOX
1138## ----------------- ##
[8756]1139## Output variables. ##
[23802]1140## ----------------- ##
1141_ASBOX
[8756]1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
[23802]1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
[8756]1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
[23802]1151 cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
[8756]1156 echo
1157 for ac_var in $ac_subst_files
1158 do
[23802]1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
[8756]1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
[23802]1166 cat <<\_ASBOX
1167## ----------- ##
[8756]1168## confdefs.h. ##
[23802]1169## ----------- ##
1170_ASBOX
[8756]1171 echo
[23802]1172 sed "/^$/d" confdefs.h | sort
[8756]1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
[23802]1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
[8756]1178 } >&5
[23802]1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
[8756]1181 exit $exit_status
[23802]1182 ' 0
[8756]1183for ac_signal in 1 2 13 15; do
[23802]1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
[8756]1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
[23802]1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
[8756]1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
[23802]1199
[8756]1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
[23802]1204
[8756]1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
[23802]1209
[8756]1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
[23802]1214
[8756]1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
[23802]1221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
[562]1228fi
[23802]1229for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
[8756]1233 sed 's/^/| /' "$ac_site_file" >&5
[23802]1234 . "$ac_site_file"
[562]1235 fi
1236done
1237
1238if test -r "$cache_file"; then
[23802]1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
[8756]1244 case $cache_file in
[23802]1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
[8756]1247 esac
1248 fi
[562]1249else
[23802]1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
[8756]1252 >$cache_file
[562]1253fi
1254
[8756]1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
[23802]1258for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
[8756]1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
[23802]1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
[8756]1264 case $ac_old_set,$ac_new_set in
1265 set,)
[23802]1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
[8756]1268 ac_cache_corrupted=: ;;
1269 ,set)
[23802]1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
[8756]1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
[23802]1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
[8756]1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
[23802]1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
[8756]1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
[23802]1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
[8756]1295 esac
1296 fi
1297done
1298if $ac_cache_corrupted; then
[23802]1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
[8756]1304fi
1305
[20853]1306ac_ext=c
1307ac_cpp='$CPP $CPPFLAGS'
1308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
[562]1311
1312
1313
[8200]1314
[23802]1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 ac_config_headers="$ac_config_headers config.h"
1331
1332
[562]1333PACKAGE=gsdl
[23356]1334VERSION=2.x-svn
[8756]1335cat >>confdefs.h <<_ACEOF
[562]1336#define PACKAGE "$PACKAGE"
[8756]1337_ACEOF
[562]1338
[8756]1339cat >>confdefs.h <<_ACEOF
[562]1340#define VERSION "$VERSION"
[8756]1341_ACEOF
[562]1342
[8200]1343
1344
1345
[18487]1346
[567]1347USE_FASTCGI=0
1348if test USE_FASTCGI = 1; then
[23802]1349cat >>confdefs.h <<\_ACEOF
1350#define USE_FASTCGI 1
1351_ACEOF
[567]1352
[8200]1353
[3631]1354fi
[567]1355
[3631]1356if test USE_LANGACTION = 1; then
[23802]1357cat >>confdefs.h <<\_ACEOF
1358#define USE_LANGACTION 1
1359_ACEOF
[3631]1360
[8200]1361
[567]1362fi
1363
[23802]1364# Check whether --enable-corba or --disable-corba was given.
1365if test "${enable_corba+set}" = set; then
1366 enableval="$enable_corba"
1367 USE_CORBA=$enableval
[1860]1368else
[21724]1369 USE_CORBA=no
[23802]1370fi;
[21724]1371if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
1372 USE_CORBA=1
[23802]1373 cat >>confdefs.h <<\_ACEOF
1374#define USE_CORBA
1375_ACEOF
[1860]1376
[21724]1377else
1378 USE_CORBA=0
1379fi
[8200]1380
1381
[8756]1382
[23802]1383# Check whether --with-micodir or --without-micodir was given.
1384if test "${with_micodir+set}" = set; then
1385 withval="$with_micodir"
1386 MICO_DIR=$withval
[1860]1387else
[2471]1388 MICO_DIR="default"
[23802]1389fi;
[8756]1390cat >>confdefs.h <<_ACEOF
[2297]1391#define MICO_DIR "$MICO_DIR"
[8756]1392_ACEOF
[1860]1393
[8200]1394
1395
[23802]1396# Check whether --enable-java or --disable-java was given.
1397if test "${enable_java+set}" = set; then
1398 enableval="$enable_java"
1399 ENABLE_JAVA=$enableval
[23356]1400else
1401 ENABLE_JAVA=yes
[23802]1402fi;
[23356]1403if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
1404 ENABLE_JAVA=1
1405 if test "x$JAVA_HOME" != "x" ; then
1406 echo "Detected JAVA_HOME is set, however this will not be used during compilation"
1407 echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
1408 echo "and JAVA respectively"
1409 export JAVA_HOME=
1410 fi
1411else
1412 ENABLE_JAVA=0
1413fi
1414
1415
[23802]1416# Check whether --enable-z3950 or --disable-z3950 was given.
1417if test "${enable_z3950+set}" = set; then
1418 enableval="$enable_z3950"
1419 USE_Z3950=$enableval
[1938]1420else
[21724]1421 USE_Z3950=no
[23802]1422fi;
[21724]1423if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
1424 USE_Z3950=1
[23802]1425 cat >>confdefs.h <<\_ACEOF
1426#define USE_Z3950
1427_ACEOF
[1938]1428
[21724]1429else
1430 USE_Z3950=0
[2297]1431fi
[1938]1432
[21724]1433
[23802]1434# Check whether --enable-yaz or --disable-yaz was given.
1435if test "${enable_yaz+set}" = set; then
1436 enableval="$enable_yaz"
1437 USE_YAZ=$enableval
[12492]1438else
[21724]1439 USE_YAZ=yes
[23802]1440fi;
[21724]1441if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
[12492]1442 USE_YAZ=1
[23802]1443 cat >>confdefs.h <<\_ACEOF
1444#define USE_YAZ
1445_ACEOF
[8756]1446
[21724]1447else
1448 USE_YAZ=0
1449fi
[12492]1450
1451
[23802]1452# Check whether --enable-wvware or --disable-wvware was given.
1453if test "${enable_wvware+set}" = set; then
1454 enableval="$enable_wvware"
1455 USE_WVWARE=$enableval
[22058]1456else
[23802]1457 USE_WVWARE=yes
1458fi;
1459if test $USE_WVWARE = "yes" -o $USE_WVWARE = "1" ; then
1460 USE_WVWARE=1
1461 cat >>confdefs.h <<\_ACEOF
1462#define USE_WVWARE
1463_ACEOF
1464
1465else
1466 USE_WVWARE=0
[22378]1467fi
1468
[23802]1469
1470# Check whether --enable-jdbm or --disable-jdbm was given.
1471if test "${enable_jdbm+set}" = set; then
1472 enableval="$enable_jdbm"
1473 USE_JDBM=$enableval
1474else
1475 USE_JDBM=yes
1476fi;
[23356]1477if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
[22058]1478 USE_JDBM=1
[23802]1479 cat >>confdefs.h <<\_ACEOF
1480#define USE_JDBM
1481_ACEOF
[22058]1482
1483else
1484 USE_JDBM=0
1485fi
1486
1487
[23802]1488# Check whether --enable-gdbm or --disable-gdbm was given.
1489if test "${enable_gdbm+set}" = set; then
1490 enableval="$enable_gdbm"
1491 USE_GDBM=$enableval
[22058]1492else
1493 USE_GDBM=yes
[23802]1494fi;
[22058]1495if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
1496 USE_GDBM=1
[23802]1497 cat >>confdefs.h <<\_ACEOF
1498#define USE_GDBM
1499_ACEOF
[22058]1500
1501else
1502 USE_GDBM=0
1503fi
1504
1505
[23802]1506# Check whether --enable-accentfold or --disable-accentfold was given.
1507if test "${enable_accentfold+set}" = set; then
1508 enableval="$enable_accentfold"
1509 ENABLE_ACCENTFOLD=$enableval
[12922]1510else
[21724]1511 ENABLE_ACCENTFOLD=yes
[23802]1512fi;
[21724]1513if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
[12922]1514 ENABLE_ACCENTFOLD=1
[23802]1515 cat >>confdefs.h <<\_ACEOF
1516#define ENABLE_ACCENTFOLD
1517_ACEOF
[12922]1518
[21724]1519else
1520 ENABLE_ACCENTFOLD=0
1521fi
[12922]1522
[15901]1523
[23802]1524# Check whether --enable-sqlite or --disable-sqlite was given.
1525if test "${enable_sqlite+set}" = set; then
1526 enableval="$enable_sqlite"
1527 USE_SQLITE=$enableval
[16288]1528else
[21724]1529 USE_SQLITE=yes
[23802]1530fi;
[21724]1531if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
[15794]1532 USE_SQLITE=1
[23802]1533 cat >>confdefs.h <<\_ACEOF
1534#define USE_SQLITE
1535_ACEOF
[12922]1536
[21724]1537else
1538 USE_SQLITE=0
1539fi
[15794]1540
[15901]1541
[21377]1542if test -d runtime-src; then
[23802]1543 # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
1544if test "${enable_apache_httpd+set}" = set; then
1545 enableval="$enable_apache_httpd"
1546 USE_APACHE_HTTPD=$enableval
[19263]1547else
[21724]1548 USE_APACHE_HTTPD=no
[23802]1549fi;
[21724]1550 if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
1551 USE_APACHE_HTTPD=1
[23802]1552 cat >>confdefs.h <<\_ACEOF
1553#define USE_APACHE_HTTPD
1554_ACEOF
[18487]1555
[21724]1556 else
1557 USE_APACHE_HTTPD=0
1558 fi
[18487]1559
[21377]1560fi
[18487]1561
[23802]1562# Check whether --enable-jni or --disable-jni was given.
1563if test "${enable_jni+set}" = set; then
1564 enableval="$enable_jni"
1565 ENABLE_JNI=$enableval
[21366]1566else
1567 ENABLE_JNI=no
[23802]1568fi;
[23356]1569if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
[21366]1570 ENABLE_JNI=1
[23802]1571 cat >>confdefs.h <<\_ACEOF
1572#define ENABLE_JNI
1573_ACEOF
[18487]1574
[21366]1575else
1576 ENABLE_JNI=0
1577fi
1578
1579
[23802]1580# Check whether --enable-mg or --disable-mg was given.
1581if test "${enable_mg+set}" = set; then
1582 enableval="$enable_mg"
1583 ENABLE_MG=$enableval
[21330]1584else
1585 ENABLE_MG=yes
[23802]1586fi;
[21330]1587if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
1588 ENABLE_MG=1
[23802]1589 cat >>confdefs.h <<\_ACEOF
1590#define ENABLE_MG
1591_ACEOF
[21330]1592
1593 else
1594 ENABLE_MG=0
1595 fi
1596
1597
1598
[23802]1599# Check whether --enable-mgpp or --disable-mgpp was given.
1600if test "${enable_mgpp+set}" = set; then
1601 enableval="$enable_mgpp"
1602 ENABLE_MGPP=$enableval
[21330]1603else
1604 ENABLE_MGPP=yes
[23802]1605fi;
[21330]1606if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
1607 ENABLE_MGPP=1
[23802]1608 cat >>confdefs.h <<\_ACEOF
1609#define ENABLE_MGPP
1610_ACEOF
[21330]1611
1612else
1613 ENABLE_MGPP=0
1614fi
1615
1616
[23802]1617# Check whether --enable-lucene or --disable-lucene was given.
1618if test "${enable_lucene+set}" = set; then
1619 enableval="$enable_lucene"
1620 ENABLE_LUCENE=$enableval
[21330]1621else
1622 ENABLE_LUCENE=yes
[23802]1623fi;
[23356]1624if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
[21330]1625 ENABLE_LUCENE=1
[23802]1626 cat >>confdefs.h <<\_ACEOF
1627#define ENABLE_LUCENE
1628_ACEOF
[21330]1629
1630else
1631 ENABLE_LUCENE=0
1632fi
1633
1634
1635
[14169]1636LDFLAGS=$LDFLAGS
[15551]1637
[1722]1638if test -z "$CFLAGS"; then
[794]1639CFLAGS=-O2
[1722]1640fi
[576]1641
1642
[15551]1643
[8756]1644ac_ext=c
1645ac_cpp='$CPP $CPPFLAGS'
1646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651set dummy ${ac_tool_prefix}gcc; ac_word=$2
[23802]1652echo "$as_me:$LINENO: checking for $ac_word" >&5
1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]1656else
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1659else
1660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661for as_dir in $PATH
1662do
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
[23802]1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]1667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
[23802]1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]1669 break 2
1670 fi
1671done
[23802]1672done
[8756]1673
1674fi
1675fi
1676CC=$ac_cv_prog_CC
1677if test -n "$CC"; then
[23802]1678 echo "$as_me:$LINENO: result: $CC" >&5
1679echo "${ECHO_T}$CC" >&6
[8756]1680else
[23802]1681 echo "$as_me:$LINENO: result: no" >&5
1682echo "${ECHO_T}no" >&6
[8756]1683fi
1684
1685fi
1686if test -z "$ac_cv_prog_CC"; then
1687 ac_ct_CC=$CC
1688 # Extract the first word of "gcc", so it can be a program name with args.
[562]1689set dummy gcc; ac_word=$2
[23802]1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]1694else
[8756]1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
[23802]1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]1705 ac_cv_prog_ac_ct_CC="gcc"
[23802]1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]1707 break 2
1708 fi
1709done
[23802]1710done
[8756]1711
1712fi
1713fi
1714ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715if test -n "$ac_ct_CC"; then
[23802]1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717echo "${ECHO_T}$ac_ct_CC" >&6
[8756]1718else
[23802]1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
[8756]1721fi
1722
[23802]1723 CC=$ac_ct_CC
[8756]1724else
1725 CC="$ac_cv_prog_CC"
1726fi
1727
1728if test -z "$CC"; then
[23802]1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
[8756]1731set dummy ${ac_tool_prefix}cc; ac_word=$2
[23802]1732echo "$as_me:$LINENO: checking for $ac_word" >&5
1733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]1736else
[562]1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1739else
[8756]1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
[23802]1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]1747 ac_cv_prog_CC="${ac_tool_prefix}cc"
[23802]1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]1749 break 2
1750 fi
1751done
[23802]1752done
[8756]1753
[562]1754fi
1755fi
[8756]1756CC=$ac_cv_prog_CC
[562]1757if test -n "$CC"; then
[23802]1758 echo "$as_me:$LINENO: result: $CC" >&5
1759echo "${ECHO_T}$CC" >&6
[562]1760else
[23802]1761 echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
[562]1763fi
1764
[23802]1765fi
1766if test -z "$ac_cv_prog_CC"; then
1767 ac_ct_CC=$CC
1768 # Extract the first word of "cc", so it can be a program name with args.
1769set dummy cc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1788 fi
1789done
1790done
[22378]1791
[8756]1792fi
[23802]1793fi
1794ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797echo "${ECHO_T}$ac_ct_CC" >&6
1798else
1799 echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803 CC=$ac_ct_CC
1804else
1805 CC="$ac_cv_prog_CC"
1806fi
1807
1808fi
[562]1809if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811set dummy cc; ac_word=$2
[23802]1812echo "$as_me:$LINENO: checking for $ac_word" >&5
1813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]1816else
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1819else
1820 ac_prog_rejected=no
[8756]1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
[23802]1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]1828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829 ac_prog_rejected=yes
1830 continue
1831 fi
1832 ac_cv_prog_CC="cc"
[23802]1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]1834 break 2
1835 fi
1836done
[23802]1837done
[8756]1838
[562]1839if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1842 shift
[8756]1843 if test $# != 0; then
[562]1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1847 shift
[8756]1848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
[562]1849 fi
1850fi
1851fi
1852fi
[8756]1853CC=$ac_cv_prog_CC
[562]1854if test -n "$CC"; then
[23802]1855 echo "$as_me:$LINENO: result: $CC" >&5
1856echo "${ECHO_T}$CC" >&6
[562]1857else
[23802]1858 echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
[562]1860fi
1861
[8756]1862fi
1863if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
[23802]1865 for ac_prog in cl
[8756]1866 do
1867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
[23802]1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]1873else
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1876else
[8756]1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
[23802]1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]1884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
[23802]1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]1886 break 2
1887 fi
1888done
[23802]1889done
[8756]1890
[562]1891fi
1892fi
[8756]1893CC=$ac_cv_prog_CC
[562]1894if test -n "$CC"; then
[23802]1895 echo "$as_me:$LINENO: result: $CC" >&5
1896echo "${ECHO_T}$CC" >&6
[562]1897else
[23802]1898 echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
[562]1900fi
[8756]1901
1902 test -n "$CC" && break
1903 done
1904fi
1905if test -z "$CC"; then
1906 ac_ct_CC=$CC
[23802]1907 for ac_prog in cl
[8756]1908do
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910set dummy $ac_prog; ac_word=$2
[23802]1911echo "$as_me:$LINENO: checking for $ac_word" >&5
1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]1915else
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918else
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
[23802]1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]1926 ac_cv_prog_ac_ct_CC="$ac_prog"
[23802]1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]1928 break 2
[8200]1929 fi
[8756]1930done
[23802]1931done
[8756]1932
[562]1933fi
[8756]1934fi
1935ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936if test -n "$ac_ct_CC"; then
[23802]1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938echo "${ECHO_T}$ac_ct_CC" >&6
[8756]1939else
[23802]1940 echo "$as_me:$LINENO: result: no" >&5
1941echo "${ECHO_T}no" >&6
[8756]1942fi
[562]1943
[8756]1944 test -n "$ac_ct_CC" && break
1945done
[562]1946
[23802]1947 CC=$ac_ct_CC
[8756]1948fi
[562]1949
[8756]1950fi
[562]1951
1952
[23802]1953test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: no acceptable C compiler found in \$PATH
1956See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
[8756]1958
1959# Provide some information about the compiler.
[23802]1960echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962ac_compiler=`set X $ac_compile; echo $2`
1963{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
[8756]1965 ac_status=$?
[23802]1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
[8756]1978
[23802]1979cat >conftest.$ac_ext <<_ACEOF
1980/* confdefs.h. */
1981_ACEOF
1982cat confdefs.h >>conftest.$ac_ext
1983cat >>conftest.$ac_ext <<_ACEOF
[8756]1984/* end confdefs.h. */
1985
1986int
1987main ()
1988{
1989
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994ac_clean_files_save=$ac_clean_files
[23802]1995ac_clean_files="$ac_clean_files a.out a.exe b.out"
[8756]1996# Try to create an executable without -o first, disregard a.out.
1997# It will help us diagnose broken compilers, and finding out an intuition
1998# of exeext.
[23802]1999echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2000echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2001ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2002if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2003 (eval $ac_link_default) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; then
2007 # Find the output, starting from the most likely. This scheme is
2008# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2009# resort.
[20853]2010
[23802]2011# Be careful to initialize this variable, since it used to be cached.
2012# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2013ac_cv_exeext=
2014# b.out is created by i960 compilers.
2015for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
[8756]2016do
2017 test -f "$ac_file" || continue
2018 case $ac_file in
[23802]2019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
[8756]2020 ;;
[23802]2021 conftest.$ac_ext )
2022 # This is the source file.
2023 ;;
[8756]2024 [ab].out )
2025 # We found the default executable, but exeext='' is most
2026 # certainly right.
2027 break;;
2028 *.* )
[23802]2029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2030 # FIXME: I believe we export ac_cv_exeext for Libtool,
2031 # but it would be cool to find out if it's true. Does anybody
2032 # maintain Libtool? --akim.
2033 export ac_cv_exeext
[8756]2034 break;;
2035 * )
2036 break;;
2037 esac
2038done
2039else
[23802]2040 echo "$as_me: failed program was:" >&5
[8756]2041sed 's/^/| /' conftest.$ac_ext >&5
2042
[23802]2043{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: C compiler cannot create executables
2046See \`config.log' for more details." >&2;}
2047 { (exit 77); exit 77; }; }
[8756]2048fi
[23802]2049
[8756]2050ac_exeext=$ac_cv_exeext
[23802]2051echo "$as_me:$LINENO: result: $ac_file" >&5
2052echo "${ECHO_T}$ac_file" >&6
[8756]2053
[23802]2054# Check the compiler produces executables we can run. If not, either
2055# the compiler is broken, or we cross compile.
2056echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2057echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2058# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2059# If not cross compiling, check that we can run a simple program.
2060if test "$cross_compiling" != yes; then
2061 if { ac_try='./$ac_file'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 cross_compiling=no
2068 else
2069 if test "$cross_compiling" = maybe; then
2070 cross_compiling=yes
2071 else
2072 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: cannot run C compiled programs.
2076If you meant to cross compile, use \`--host'.
2077See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080 fi
2081fi
2082echo "$as_me:$LINENO: result: yes" >&5
2083echo "${ECHO_T}yes" >&6
2084
2085rm -f a.out a.exe conftest$ac_cv_exeext b.out
[8756]2086ac_clean_files=$ac_clean_files_save
[23802]2087# Check the compiler produces executables we can run. If not, either
2088# the compiler is broken, or we cross compile.
2089echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2090echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2091echo "$as_me:$LINENO: result: $cross_compiling" >&5
2092echo "${ECHO_T}$cross_compiling" >&6
2093
2094echo "$as_me:$LINENO: checking for suffix of executables" >&5
2095echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2097 (eval $ac_link) 2>&5
[8756]2098 ac_status=$?
[23802]2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; then
[8756]2101 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2102# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2103# work properly (i.e., refer to `conftest.exe'), while it won't with
2104# `rm'.
2105for ac_file in conftest.exe conftest conftest.*; do
2106 test -f "$ac_file" || continue
2107 case $ac_file in
[23802]2108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
[8756]2109 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
[23802]2110 export ac_cv_exeext
[8756]2111 break;;
2112 * ) break;;
2113 esac
2114done
2115else
[23802]2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2117See \`config.log' for more details." >&5
2118echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2119See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
[562]2121fi
2122
[23802]2123rm -f conftest$ac_cv_exeext
2124echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2125echo "${ECHO_T}$ac_cv_exeext" >&6
2126
[8756]2127rm -f conftest.$ac_ext
2128EXEEXT=$ac_cv_exeext
2129ac_exeext=$EXEEXT
[23802]2130echo "$as_me:$LINENO: checking for suffix of object files" >&5
2131echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2132if test "${ac_cv_objext+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135 cat >conftest.$ac_ext <<_ACEOF
2136/* confdefs.h. */
[22378]2137_ACEOF
[23802]2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
[8756]2140/* end confdefs.h. */
2141
2142int
2143main ()
2144{
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150rm -f conftest.o conftest.obj
[23802]2151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
[8756]2153 ac_status=$?
[23802]2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
[8756]2157 case $ac_file in
[23802]2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
[8756]2159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2160 break;;
2161 esac
2162done
[562]2163else
[23802]2164 echo "$as_me: failed program was:" >&5
[8756]2165sed 's/^/| /' conftest.$ac_ext >&5
2166
[23802]2167{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2168See \`config.log' for more details." >&5
2169echo "$as_me: error: cannot compute suffix of object files: cannot compile
2170See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
[562]2172fi
[23802]2173
[8756]2174rm -f conftest.$ac_cv_objext conftest.$ac_ext
[562]2175fi
[23802]2176echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2177echo "${ECHO_T}$ac_cv_objext" >&6
[8756]2178OBJEXT=$ac_cv_objext
2179ac_objext=$OBJEXT
[23802]2180echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2181echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2182if test "${ac_cv_c_compiler_gnu+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]2184else
[23802]2185 cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
[8756]2190/* end confdefs.h. */
[562]2191
[8756]2192int
2193main ()
2194{
2195#ifndef __GNUC__
2196 choke me
2197#endif
[562]2198
[8756]2199 ;
2200 return 0;
2201}
2202_ACEOF
[23802]2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
[8756]2225 ac_compiler_gnu=yes
[562]2226else
[23802]2227 echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230ac_compiler_gnu=no
[562]2231fi
[23802]2232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[8756]2233ac_cv_c_compiler_gnu=$ac_compiler_gnu
[562]2234
[8756]2235fi
[23802]2236echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238GCC=`test $ac_compiler_gnu = yes && echo yes`
[8756]2239ac_test_CFLAGS=${CFLAGS+set}
2240ac_save_CFLAGS=$CFLAGS
[23802]2241CFLAGS="-g"
2242echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244if test "${ac_cv_prog_cc_g+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]2246else
[23802]2247 cat >conftest.$ac_ext <<_ACEOF
2248/* confdefs.h. */
2249_ACEOF
2250cat confdefs.h >>conftest.$ac_ext
2251cat >>conftest.$ac_ext <<_ACEOF
[8756]2252/* end confdefs.h. */
2253
2254int
2255main ()
2256{
2257
2258 ;
2259 return 0;
2260}
2261_ACEOF
[23802]2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2265 ac_status=$?
2266 grep -v '^ *+' conftest.er1 >conftest.err
2267 rm -f conftest.er1
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
[562]2284 ac_cv_prog_cc_g=yes
2285else
[23802]2286 echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
[8200]2288
[23802]2289ac_cv_prog_cc_g=no
[562]2290fi
[23802]2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[8756]2292fi
[23802]2293echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
[562]2295if test "$ac_test_CFLAGS" = set; then
[8756]2296 CFLAGS=$ac_save_CFLAGS
[562]2297elif test $ac_cv_prog_cc_g = yes; then
2298 if test "$GCC" = yes; then
2299 CFLAGS="-g -O2"
2300 else
2301 CFLAGS="-g"
2302 fi
2303else
2304 if test "$GCC" = yes; then
2305 CFLAGS="-O2"
2306 else
2307 CFLAGS=
2308 fi
2309fi
[23802]2310echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]2314else
[23802]2315 ac_cv_prog_cc_stdc=no
[8756]2316ac_save_CC=$CC
[23802]2317cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h. */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
[8756]2322/* end confdefs.h. */
2323#include <stdarg.h>
2324#include <stdio.h>
2325#include <sys/types.h>
2326#include <sys/stat.h>
2327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2328struct buf { int x; };
2329FILE * (*rcsopen) (struct buf *, struct stat *, int);
2330static char *e (p, i)
2331 char **p;
2332 int i;
2333{
2334 return p[i];
2335}
2336static char *f (char * (*g) (char **, int), char **p, ...)
2337{
2338 char *s;
2339 va_list v;
2340 va_start (v,p);
2341 s = g (p, va_arg (v,int));
2342 va_end (v);
2343 return s;
2344}
[8200]2345
[8756]2346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2347 function prototypes and stuff, but not '\xHH' hex character constants.
2348 These don't provoke an error unfortunately, instead are silently treated
[23802]2349 as 'x'. The following induces an error, until -std1 is added to get
[8756]2350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2351 array size at least. It's necessary to write '\x00'==0 to get something
[23802]2352 that's true only with -std1. */
[8756]2353int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2354
2355int test (int i, double x);
2356struct s1 {int (*f) (int a);};
2357struct s2 {int (*f) (double a);};
2358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359int argc;
2360char **argv;
2361int
2362main ()
2363{
2364return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2365 ;
2366 return 0;
2367}
2368_ACEOF
[23802]2369# Don't try gcc -ansi; that turns off useful extensions and
2370# breaks some systems' header files.
2371# AIX -qlanglvl=ansi
2372# Ultrix and OSF/1 -std1
2373# HP-UX 10.20 and later -Ae
2374# HP-UX older versions -Aa -D_HPUX_SOURCE
2375# SVR4 -Xc -D__EXTENSIONS__
2376for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
[562]2377do
[8756]2378 CC="$ac_save_CC $ac_arg"
[23802]2379 rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_prog_cc_stdc=$ac_arg
2402break
2403else
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
[562]2407fi
[23802]2408rm -f conftest.err conftest.$ac_objext
[8756]2409done
[23802]2410rm -f conftest.$ac_ext conftest.$ac_objext
[8756]2411CC=$ac_save_CC
2412
[562]2413fi
[23802]2414
2415case "x$ac_cv_prog_cc_stdc" in
2416 x|xno)
2417 echo "$as_me:$LINENO: result: none needed" >&5
2418echo "${ECHO_T}none needed" >&6 ;;
[8756]2419 *)
[23802]2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2421echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2422 CC="$CC $ac_cv_prog_cc_stdc" ;;
[8756]2423esac
2424
[23802]2425# Some people use a C++ compiler to compile C. Since we use `exit',
2426# in C++ we need to declare it. In case someone uses the same compiler
2427# for both compiling C and C++ we need to have the C++ compiler decide
2428# the declaration of exit, since it's the most demanding environment.
2429cat >conftest.$ac_ext <<_ACEOF
2430#ifndef __cplusplus
2431 choke me
2432#endif
2433_ACEOF
2434rm -f conftest.$ac_objext
2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 for ac_declaration in \
2457 '' \
2458 'extern "C" void std::exit (int) throw (); using std::exit;' \
2459 'extern "C" void std::exit (int); using std::exit;' \
2460 'extern "C" void exit (int) throw ();' \
2461 'extern "C" void exit (int);' \
2462 'void exit (int);'
2463do
2464 cat >conftest.$ac_ext <<_ACEOF
2465/* confdefs.h. */
2466_ACEOF
2467cat confdefs.h >>conftest.$ac_ext
2468cat >>conftest.$ac_ext <<_ACEOF
2469/* end confdefs.h. */
2470$ac_declaration
2471#include <stdlib.h>
2472int
2473main ()
2474{
2475exit (42);
2476 ;
2477 return 0;
2478}
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>conftest.er1
2483 ac_status=$?
2484 grep -v '^ *+' conftest.er1 >conftest.err
2485 rm -f conftest.er1
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -z "$ac_c_werror_flag"
2490 || test ! -s conftest.err'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2502 :
2503else
2504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507continue
[20853]2508fi
[23802]2509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
2516$ac_declaration
2517int
2518main ()
2519{
2520exit (42);
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 break
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
[20853]2551
[23802]2552fi
2553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554done
2555rm -f conftest*
2556if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2560fi
2561
2562else
2563 echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[8756]2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
[8200]2573
[23802]2574ac_ext=cc
[8200]2575ac_cpp='$CXXCPP $CPPFLAGS'
[8756]2576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
[23802]2579if test -n "$ac_tool_prefix"; then
2580 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
[8756]2581 do
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
[23802]2584echo "$as_me:$LINENO: checking for $ac_word" >&5
2585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586if test "${ac_cv_prog_CXX+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]2588else
2589 if test -n "$CXX"; then
2590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
[23802]2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]2599 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
[23802]2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]2601 break 2
2602 fi
2603done
[23802]2604done
[8200]2605
[8756]2606fi
2607fi
2608CXX=$ac_cv_prog_CXX
2609if test -n "$CXX"; then
[23802]2610 echo "$as_me:$LINENO: result: $CXX" >&5
2611echo "${ECHO_T}$CXX" >&6
[8756]2612else
[23802]2613 echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6
[8756]2615fi
[8200]2616
[8756]2617 test -n "$CXX" && break
2618 done
2619fi
2620if test -z "$CXX"; then
2621 ac_ct_CXX=$CXX
[23802]2622 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
[8756]2623do
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625set dummy $ac_prog; ac_word=$2
[23802]2626echo "$as_me:$LINENO: checking for $ac_word" >&5
2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]2630else
2631 if test -n "$ac_ct_CXX"; then
2632 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
[23802]2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]2641 ac_cv_prog_ac_ct_CXX="$ac_prog"
[23802]2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]2643 break 2
2644 fi
2645done
[23802]2646done
[8200]2647
[8756]2648fi
2649fi
2650ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2651if test -n "$ac_ct_CXX"; then
[23802]2652 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2653echo "${ECHO_T}$ac_ct_CXX" >&6
[3631]2654else
[23802]2655 echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6
[3631]2657fi
[562]2658
[8756]2659 test -n "$ac_ct_CXX" && break
2660done
[23802]2661test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
[8756]2662
[23802]2663 CXX=$ac_ct_CXX
[3631]2664fi
[562]2665
[23802]2666
[8756]2667# Provide some information about the compiler.
[23802]2668echo "$as_me:$LINENO:" \
2669 "checking for C++ compiler version" >&5
2670ac_compiler=`set X $ac_compile; echo $2`
2671{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2672 (eval $ac_compiler --version </dev/null >&5) 2>&5
[8756]2673 ac_status=$?
[23802]2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2677 (eval $ac_compiler -v </dev/null >&5) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2682 (eval $ac_compiler -V </dev/null >&5) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
[8756]2686
[23802]2687echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2688echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2689if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
[3631]2691else
[23802]2692 cat >conftest.$ac_ext <<_ACEOF
2693/* confdefs.h. */
2694_ACEOF
2695cat confdefs.h >>conftest.$ac_ext
2696cat >>conftest.$ac_ext <<_ACEOF
[8756]2697/* end confdefs.h. */
2698
2699int
2700main ()
2701{
2702#ifndef __GNUC__
2703 choke me
[3631]2704#endif
[8756]2705
2706 ;
2707 return 0;
2708}
2709_ACEOF
[23802]2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_cxx_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
[8756]2732 ac_compiler_gnu=yes
[8200]2733else
[23802]2734 echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737ac_compiler_gnu=no
[8200]2738fi
[23802]2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[8756]2740ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2741
[8200]2742fi
[23802]2743echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2744echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2745GXX=`test $ac_compiler_gnu = yes && echo yes`
[8756]2746ac_test_CXXFLAGS=${CXXFLAGS+set}
2747ac_save_CXXFLAGS=$CXXFLAGS
[23802]2748CXXFLAGS="-g"
2749echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2750echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2751if test "${ac_cv_prog_cxx_g+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]2753else
[23802]2754 cat >conftest.$ac_ext <<_ACEOF
2755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
[8756]2759/* end confdefs.h. */
[3631]2760
[8756]2761int
2762main ()
2763{
[8200]2764
[8756]2765 ;
2766 return 0;
2767}
2768_ACEOF
[23802]2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_cxx_werror_flag"
2779 || test ! -s conftest.err'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
[562]2791 ac_cv_prog_cxx_g=yes
2792else
[23802]2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796ac_cv_prog_cxx_g=no
2797fi
2798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799fi
2800echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2801echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2802if test "$ac_test_CXXFLAGS" = set; then
2803 CXXFLAGS=$ac_save_CXXFLAGS
2804elif test $ac_cv_prog_cxx_g = yes; then
2805 if test "$GXX" = yes; then
2806 CXXFLAGS="-g -O2"
2807 else
2808 CXXFLAGS="-g"
2809 fi
2810else
2811 if test "$GXX" = yes; then
2812 CXXFLAGS="-O2"
2813 else
2814 CXXFLAGS=
2815 fi
2816fi
2817for ac_declaration in \
2818 '' \
2819 'extern "C" void std::exit (int) throw (); using std::exit;' \
2820 'extern "C" void std::exit (int); using std::exit;' \
2821 'extern "C" void exit (int) throw ();' \
2822 'extern "C" void exit (int);' \
2823 'void exit (int);'
2824do
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
[22378]2830/* end confdefs.h. */
[23802]2831$ac_declaration
2832#include <stdlib.h>
[8756]2833int
2834main ()
2835{
[23802]2836exit (42);
[8756]2837 ;
2838 return 0;
2839}
2840_ACEOF
[23802]2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_cxx_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 :
2864else
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
[22378]2867
[23802]2868continue
2869fi
2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
[22378]2876/* end confdefs.h. */
[23802]2877$ac_declaration
[8756]2878int
2879main ()
2880{
[23802]2881exit (42);
[8756]2882 ;
2883 return 0;
2884}
2885_ACEOF
[23802]2886rm -f conftest.$ac_objext
2887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_cxx_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 break
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
[22378]2913fi
[23802]2914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915done
2916rm -f conftest*
2917if test -n "$ac_declaration"; then
2918 echo '#ifdef __cplusplus' >>confdefs.h
2919 echo $ac_declaration >>confdefs.h
2920 echo '#endif' >>confdefs.h
[22378]2921fi
[23802]2922
[8756]2923ac_ext=c
2924ac_cpp='$CPP $CPPFLAGS'
2925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
2929for ac_prog in gawk mawk nawk awk
[3063]2930do
[8756]2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
[687]2932set dummy $ac_prog; ac_word=$2
[23802]2933echo "$as_me:$LINENO: checking for $ac_word" >&5
2934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935if test "${ac_cv_prog_AWK+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]2937else
2938 if test -n "$AWK"; then
2939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2940else
[8756]2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
[23802]2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]2948 ac_cv_prog_AWK="$ac_prog"
[23802]2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]2950 break 2
2951 fi
2952done
[23802]2953done
[8756]2954
[687]2955fi
2956fi
[8756]2957AWK=$ac_cv_prog_AWK
[687]2958if test -n "$AWK"; then
[23802]2959 echo "$as_me:$LINENO: result: $AWK" >&5
2960echo "${ECHO_T}$AWK" >&6
[687]2961else
[23802]2962 echo "$as_me:$LINENO: result: no" >&5
2963echo "${ECHO_T}no" >&6
[687]2964fi
2965
[8756]2966 test -n "$AWK" && break
[687]2967done
2968
2969for ac_prog in 'bison -y' byacc
2970do
[8756]2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
[687]2972set dummy $ac_prog; ac_word=$2
[23802]2973echo "$as_me:$LINENO: checking for $ac_word" >&5
2974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975if test "${ac_cv_prog_YACC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]2977else
2978 if test -n "$YACC"; then
2979 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2980else
[8756]2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
[23802]2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]2988 ac_cv_prog_YACC="$ac_prog"
[23802]2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]2990 break 2
2991 fi
2992done
[23802]2993done
[8756]2994
[687]2995fi
2996fi
[8756]2997YACC=$ac_cv_prog_YACC
[687]2998if test -n "$YACC"; then
[23802]2999 echo "$as_me:$LINENO: result: $YACC" >&5
3000echo "${ECHO_T}$YACC" >&6
[687]3001else
[23802]3002 echo "$as_me:$LINENO: result: no" >&5
3003echo "${ECHO_T}no" >&6
[687]3004fi
3005
[8756]3006 test -n "$YACC" && break
[687]3007done
3008test -n "$YACC" || YACC="yacc"
3009
[703]3010ac_aux_dir=
[23802]3011for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3012 if test -f $ac_dir/install-sh; then
[23356]3013 ac_aux_dir=$ac_dir
3014 ac_install_sh="$ac_aux_dir/install-sh -c"
3015 break
[23802]3016 elif test -f $ac_dir/install.sh; then
[23356]3017 ac_aux_dir=$ac_dir
3018 ac_install_sh="$ac_aux_dir/install.sh -c"
3019 break
[23802]3020 elif test -f $ac_dir/shtool; then
[23356]3021 ac_aux_dir=$ac_dir
3022 ac_install_sh="$ac_aux_dir/shtool install -c"
3023 break
3024 fi
[703]3025done
3026if test -z "$ac_aux_dir"; then
[23802]3027 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3028echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3029 { (exit 1); exit 1; }; }
[703]3030fi
[23802]3031ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3032ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3033ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
[703]3034
[8756]3035# Make sure we can run config.sub.
[23802]3036$ac_config_sub sun4 >/dev/null 2>&1 ||
3037 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3038echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3039 { (exit 1); exit 1; }; }
[2279]3040
[23802]3041echo "$as_me:$LINENO: checking build system type" >&5
3042echo $ECHO_N "checking build system type... $ECHO_C" >&6
3043if test "${ac_cv_build+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]3045else
[23802]3046 ac_cv_build_alias=$build_alias
3047test -z "$ac_cv_build_alias" &&
3048 ac_cv_build_alias=`$ac_config_guess`
3049test -z "$ac_cv_build_alias" &&
3050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3051echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3052 { (exit 1); exit 1; }; }
3053ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3054 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3055echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3056 { (exit 1); exit 1; }; }
[2279]3057
3058fi
[23802]3059echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3060echo "${ECHO_T}$ac_cv_build" >&6
[8756]3061build=$ac_cv_build
[23802]3062build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3063build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3064build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
[2279]3065
3066
[23802]3067echo "$as_me:$LINENO: checking host system type" >&5
3068echo $ECHO_N "checking host system type... $ECHO_C" >&6
3069if test "${ac_cv_host+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]3071else
[23802]3072 ac_cv_host_alias=$host_alias
3073test -z "$ac_cv_host_alias" &&
3074 ac_cv_host_alias=$ac_cv_build_alias
3075ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3076 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3077echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3078 { (exit 1); exit 1; }; }
[2279]3079
[8756]3080fi
[23802]3081echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3082echo "${ECHO_T}$ac_cv_host" >&6
[8756]3083host=$ac_cv_host
[23802]3084host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3085host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3086host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
[8200]3087
3088
[23802]3089echo "$as_me:$LINENO: checking target system type" >&5
3090echo $ECHO_N "checking target system type... $ECHO_C" >&6
3091if test "${ac_cv_target+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]3093else
[23802]3094 ac_cv_target_alias=$target_alias
3095test "x$ac_cv_target_alias" = "x" &&
3096 ac_cv_target_alias=$ac_cv_host_alias
3097ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3098 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3099echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3100 { (exit 1); exit 1; }; }
[8200]3101
[8756]3102fi
[23802]3103echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3104echo "${ECHO_T}$ac_cv_target" >&6
[8756]3105target=$ac_cv_target
[23802]3106target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3107target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3108target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
[8200]3109
3110
[8756]3111# The aliases save the names the user supplied, while $host etc.
3112# will get canonicalized.
3113test -n "$target_alias" &&
[2279]3114 test "$program_prefix$program_suffix$program_transform_name" = \
3115 NONENONEs,x,x, &&
3116 program_prefix=${target_alias}-
[703]3117# Find a good install program. We prefer a C program (faster),
3118# so one script is as good as another. But avoid the broken or
3119# incompatible versions:
3120# SysV /etc/install, /usr/sbin/install
3121# SunOS /usr/etc/install
3122# IRIX /sbin/install
3123# AIX /bin/install
[8756]3124# AmigaOS /C/install, which installs bootblocks on floppy discs
[703]3125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3126# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
[8756]3128# OS/2's system install, which has a completely different semantic
[703]3129# ./install, which can be erroneously created by make from ./install.sh.
[23802]3130echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3131echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
[703]3132if test -z "$INSTALL"; then
[23802]3133if test "${ac_cv_path_install+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
[703]3135else
[8756]3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
[23802]3141 # Account for people who put trailing slashes in PATH elements.
3142case $as_dir/ in
3143 ./ | .// | /cC/* | \
[8756]3144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
[23802]3145 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
[8756]3146 /usr/ucb/* ) ;;
3147 *)
3148 # OSF1 and SCO ODT 3.0 have their own names for install.
3149 # Don't use installbsd from OSF since it installs stuff as root
3150 # by default.
3151 for ac_prog in ginstall scoinst install; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
[23802]3153 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
[703]3154 if test $ac_prog = install &&
[8756]3155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
[703]3156 # AIX install. It has an incompatible calling convention.
3157 :
[8756]3158 elif test $ac_prog = install &&
3159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3160 # program-specific install script used by HP pwplus--don't use.
3161 :
[703]3162 else
[23802]3163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3164 break 3
[703]3165 fi
3166 fi
3167 done
[8756]3168 done
3169 ;;
3170esac
[23802]3171done
[703]3172
[8756]3173
[703]3174fi
3175 if test "${ac_cv_path_install+set}" = set; then
[8756]3176 INSTALL=$ac_cv_path_install
[703]3177 else
[23802]3178 # As a last resort, use the slow shell script. We don't cache a
3179 # path for INSTALL within a source directory, because that will
[703]3180 # break other packages using the cache if that directory is
[23802]3181 # removed, or if the path is relative.
[8756]3182 INSTALL=$ac_install_sh
[703]3183 fi
3184fi
[23802]3185echo "$as_me:$LINENO: result: $INSTALL" >&5
3186echo "${ECHO_T}$INSTALL" >&6
[703]3187
3188# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3189# It thinks the first close brace ends the variable substitution.
3190test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3191
[8756]3192test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
[703]3193
3194test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3195
[23802]3196echo "$as_me:$LINENO: checking whether ln -s works" >&5
3197echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
[8756]3198LN_S=$as_ln_s
3199if test "$LN_S" = "ln -s"; then
[23802]3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
[562]3202else
[23802]3203 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3204echo "${ECHO_T}no, using $LN_S" >&6
[562]3205fi
3206
[23802]3207echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3208echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3209set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3210if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]3212else
[8756]3213 cat >conftest.make <<\_ACEOF
[562]3214all:
[23802]3215 @echo 'ac_maketemp="$(MAKE)"'
[8756]3216_ACEOF
[23802]3217# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3218eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3219if test -n "$ac_maketemp"; then
3220 eval ac_cv_prog_make_${ac_make}_set=yes
3221else
3222 eval ac_cv_prog_make_${ac_make}_set=no
3223fi
[8756]3224rm -f conftest.make
[562]3225fi
[23802]3226if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
[562]3229 SET_MAKE=
3230else
[23802]3231 echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6
[562]3233 SET_MAKE="MAKE=${MAKE-make}"
3234fi
3235
[8756]3236if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}ranlib; ac_word=$2
[23802]3239echo "$as_me:$LINENO: checking for $ac_word" >&5
3240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241if test "${ac_cv_prog_RANLIB+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]3243else
3244 if test -n "$RANLIB"; then
3245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3246else
[8756]3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
[23802]3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]3254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
[23802]3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]3256 break 2
3257 fi
3258done
[23802]3259done
[8756]3260
[562]3261fi
3262fi
[8756]3263RANLIB=$ac_cv_prog_RANLIB
[562]3264if test -n "$RANLIB"; then
[23802]3265 echo "$as_me:$LINENO: result: $RANLIB" >&5
3266echo "${ECHO_T}$RANLIB" >&6
[562]3267else
[23802]3268 echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
[562]3270fi
3271
[8756]3272fi
3273if test -z "$ac_cv_prog_RANLIB"; then
3274 ac_ct_RANLIB=$RANLIB
3275 # Extract the first word of "ranlib", so it can be a program name with args.
3276set dummy ranlib; ac_word=$2
[23802]3277echo "$as_me:$LINENO: checking for $ac_word" >&5
3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
[8756]3281else
3282 if test -n "$ac_ct_RANLIB"; then
3283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
[23802]3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[8756]3292 ac_cv_prog_ac_ct_RANLIB="ranlib"
[23802]3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
[8756]3294 break 2
3295 fi
3296done
[23802]3297done
[562]3298
[23802]3299 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
[8756]3300fi
3301fi
3302ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3303if test -n "$ac_ct_RANLIB"; then
[23802]3304 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3305echo "${ECHO_T}$ac_ct_RANLIB" >&6
[8756]3306else
[23802]3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
[8756]3309fi
3310
[23802]3311 RANLIB=$ac_ct_RANLIB
[8756]3312else
3313 RANLIB="$ac_cv_prog_RANLIB"
3314fi
3315
3316
[23802]3317echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
3318echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
[15551]3319arch_64bit=no
3320case "$host_cpu" in
3321x86_64) arch_64bit=yes ;;
3322esac
3323
3324if test "$arch_64bit" = yes; then
[23802]3325 echo "$as_me:$LINENO: result: yes" >&5
3326echo "${ECHO_T}yes" >&6
[15551]3327 if test -z "$COMPAT32BITFLAGS" ; then
[22378]3328 if test "$ENABLE_MG" = "1" -o "$ENABLE_MGPP" = "1" ; then
3329 COMPAT32BITFLAGS="-m32"
3330 fi
[15551]3331 fi
3332else
[23802]3333 echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6
[15551]3335 if test -z "$COMPAT32BITFLAGS" ; then
3336 COMPAT32BITFLAGS=
3337 fi
3338fi
[21432]3339
[15551]3340export COMPAT32BITFLAGS
3341
3342
3343
[2173]3344#moved CORBA MICO directory test to get version of MICO
3345if test $USE_CORBA = 1; then
3346
[2213]3347if test $MICO_DIR = "default"; then
[2173]3348#do something
3349MICO_INC="-I packages/mico/mico/include"
3350else
3351#build the micotest program
3352MICO_INC= ""
3353if test $MICO_DIR != yes; then
3354MICO_INC="-I $MICO_DIR"
3355fi
3356fi
3357
3358#get MICO_VER value
3359sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
3360sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
[2214]3361MICO_VER=`./micotest` || MICO_VER=2.3.5
[2173]3362sh -c "rm micotest"
3363sh -c "rm micotest.o"
3364
3365#do test of MICO_VER
3366if test MICO_VER != 0; then
[23802]3367cat >>confdefs.h <<\_ACEOF
3368#define MICO_VER 1
3369_ACEOF
[2173]3370
[8200]3371
[2173]3372fi
3373#end USE_CORBA test
3374fi
3375
[8756]3376
3377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
[23802]3382echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3383echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
[687]3384# On Suns, sometimes $CPP names a directory.
3385if test -n "$CPP" && test -d "$CPP"; then
3386 CPP=
3387fi
3388if test -z "$CPP"; then
[23802]3389 if test "${ac_cv_prog_CPP+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]3391else
[8756]3392 # Double quotes because CPP needs to be expanded
3393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3394 do
3395 ac_preproc_ok=false
3396for ac_c_preproc_warn_flag in '' yes
3397do
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
[687]3402 # On the NeXT, cc -E runs the code through the compiler's parser,
[8756]3403 # not just through cpp. "Syntax error" is here to catch this case.
[23802]3404 cat >conftest.$ac_ext <<_ACEOF
3405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
[8756]3409/* end confdefs.h. */
3410#ifdef __STDC__
3411# include <limits.h>
3412#else
3413# include <assert.h>
3414#endif
3415 Syntax error
3416_ACEOF
[23802]3417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 else
3429 ac_cpp_err=
3430 fi
3431else
3432 ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
3435 :
3436else
3437 echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
[22378]3439
[8756]3440 # Broken: fails on valid input.
3441continue
3442fi
[23802]3443rm -f conftest.err conftest.$ac_ext
[8756]3444
[23802]3445 # OK, works on sane cases. Now check whether non-existent headers
[8756]3446 # can be detected and how.
[23802]3447 cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
[8756]3452/* end confdefs.h. */
3453#include <ac_nonexistent.h>
3454_ACEOF
[23802]3455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } >/dev/null; then
3463 if test -s conftest.err; then
3464 ac_cpp_err=$ac_c_preproc_warn_flag
3465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 else
3467 ac_cpp_err=
3468 fi
3469else
3470 ac_cpp_err=yes
3471fi
3472if test -z "$ac_cpp_err"; then
[8756]3473 # Broken: success on invalid input.
3474continue
3475else
[23802]3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
[8756]3479 # Passes both tests.
3480ac_preproc_ok=:
3481break
3482fi
[23802]3483rm -f conftest.err conftest.$ac_ext
[8756]3484
3485done
3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
[23802]3487rm -f conftest.err conftest.$ac_ext
3488if $ac_preproc_ok; then
[8756]3489 break
3490fi
3491
3492 done
3493 ac_cv_prog_CPP=$CPP
3494
3495fi
3496 CPP=$ac_cv_prog_CPP
3497else
3498 ac_cv_prog_CPP=$CPP
3499fi
[23802]3500echo "$as_me:$LINENO: result: $CPP" >&5
3501echo "${ECHO_T}$CPP" >&6
[8756]3502ac_preproc_ok=false
3503for ac_c_preproc_warn_flag in '' yes
3504do
3505 # Use a header file that comes with gcc, so configuring glibc
3506 # with a fresh cross-compiler works.
3507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508 # <limits.h> exists even on freestanding compilers.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
[23802]3511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
[8756]3516/* end confdefs.h. */
3517#ifdef __STDC__
3518# include <limits.h>
3519#else
3520# include <assert.h>
3521#endif
3522 Syntax error
3523_ACEOF
[23802]3524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3537 fi
3538else
3539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
3542 :
3543else
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
[22378]3546
[8756]3547 # Broken: fails on valid input.
3548continue
[687]3549fi
[23802]3550rm -f conftest.err conftest.$ac_ext
[8756]3551
[23802]3552 # OK, works on sane cases. Now check whether non-existent headers
[8756]3553 # can be detected and how.
[23802]3554 cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
[8756]3559/* end confdefs.h. */
3560#include <ac_nonexistent.h>
3561_ACEOF
[23802]3562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 else
3574 ac_cpp_err=
3575 fi
3576else
3577 ac_cpp_err=yes
3578fi
3579if test -z "$ac_cpp_err"; then
[8756]3580 # Broken: success on invalid input.
3581continue
3582else
[23802]3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
[8756]3586 # Passes both tests.
3587ac_preproc_ok=:
3588break
[687]3589fi
[23802]3590rm -f conftest.err conftest.$ac_ext
[8756]3591
3592done
3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
[23802]3594rm -f conftest.err conftest.$ac_ext
3595if $ac_preproc_ok; then
3596 :
[8756]3597else
[23802]3598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3599See \`config.log' for more details." >&5
3600echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3601See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
[8200]3603fi
[8756]3604
3605ac_ext=c
3606ac_cpp='$CPP $CPPFLAGS'
3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
3611
[23802]3612echo "$as_me:$LINENO: checking for egrep" >&5
3613echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3614if test "${ac_cv_prog_egrep+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]3616else
[23802]3617 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3618 then ac_cv_prog_egrep='grep -E'
3619 else ac_cv_prog_egrep='egrep'
[8756]3620 fi
[23802]3621fi
3622echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3623echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3624 EGREP=$ac_cv_prog_egrep
[687]3625
[23802]3626
3627
3628echo "$as_me:$LINENO: checking for AIX" >&5
3629echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3630cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636#ifdef _AIX
3637 yes
3638#endif
3639
3640_ACEOF
3641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 $EGREP "yes" >/dev/null 2>&1; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645cat >>confdefs.h <<\_ACEOF
3646#define _ALL_SOURCE 1
3647_ACEOF
3648
[687]3649else
[23802]3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
[687]3652fi
[23802]3653rm -f conftest*
[687]3654
[8200]3655
[23802]3656echo "$as_me:$LINENO: checking for library containing strerror" >&5
3657echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3658if test "${ac_cv_search_strerror+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 ac_func_search_save_LIBS=$LIBS
3662ac_cv_search_strerror=no
3663cat >conftest.$ac_ext <<_ACEOF
3664/* confdefs.h. */
3665_ACEOF
3666cat confdefs.h >>conftest.$ac_ext
3667cat >>conftest.$ac_ext <<_ACEOF
3668/* end confdefs.h. */
[687]3669
[23802]3670/* Override any gcc2 internal prototype to avoid an error. */
3671#ifdef __cplusplus
3672extern "C"
3673#endif
3674/* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3676char strerror ();
3677int
3678main ()
3679{
3680strerror ();
3681 ;
3682 return 0;
3683}
3684_ACEOF
3685rm -f conftest.$ac_objext conftest$ac_exeext
3686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3687 (eval $ac_link) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest$ac_exeext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_search_strerror="none required"
[687]3708else
[23802]3709 echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
[8756]3711
[23802]3712fi
3713rm -f conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
3715if test "$ac_cv_search_strerror" = no; then
3716 for ac_lib in cposix; do
3717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3718 cat >conftest.$ac_ext <<_ACEOF
3719/* confdefs.h. */
3720_ACEOF
3721cat confdefs.h >>conftest.$ac_ext
3722cat >>conftest.$ac_ext <<_ACEOF
3723/* end confdefs.h. */
3724
3725/* Override any gcc2 internal prototype to avoid an error. */
3726#ifdef __cplusplus
3727extern "C"
3728#endif
3729/* We use char because int might match the return type of a gcc2
3730 builtin and then its argument prototype would still apply. */
3731char strerror ();
3732int
3733main ()
3734{
3735strerror ();
3736 ;
3737 return 0;
3738}
3739_ACEOF
3740rm -f conftest.$ac_objext conftest$ac_exeext
3741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742 (eval $ac_link) 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -z "$ac_c_werror_flag"
3750 || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 (eval $ac_try) 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest$ac_exeext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 ac_cv_search_strerror="-l$ac_lib"
3763break
[687]3764else
[23802]3765 echo "$as_me: failed program was:" >&5
3766sed 's/^/| /' conftest.$ac_ext >&5
3767
[8756]3768fi
[23802]3769rm -f conftest.err conftest.$ac_objext \
3770 conftest$ac_exeext conftest.$ac_ext
3771 done
3772fi
3773LIBS=$ac_func_search_save_LIBS
3774fi
3775echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3776echo "${ECHO_T}$ac_cv_search_strerror" >&6
3777if test "$ac_cv_search_strerror" != no; then
3778 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
[8756]3779
3780fi
3781
[23802]3782echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3784if test "${ac_cv_header_stdc+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]3786else
[23802]3787 cat >conftest.$ac_ext <<_ACEOF
3788/* confdefs.h. */
3789_ACEOF
3790cat confdefs.h >>conftest.$ac_ext
3791cat >>conftest.$ac_ext <<_ACEOF
[8756]3792/* end confdefs.h. */
3793#include <stdlib.h>
3794#include <stdarg.h>
3795#include <string.h>
3796#include <float.h>
3797
3798int
3799main ()
3800{
3801
3802 ;
3803 return 0;
3804}
3805_ACEOF
[23802]3806rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
[8756]3828 ac_cv_header_stdc=yes
3829else
[23802]3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833ac_cv_header_stdc=no
[687]3834fi
[23802]3835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[8756]3836
3837if test $ac_cv_header_stdc = yes; then
3838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
[23802]3839 cat >conftest.$ac_ext <<_ACEOF
3840/* confdefs.h. */
3841_ACEOF
3842cat confdefs.h >>conftest.$ac_ext
3843cat >>conftest.$ac_ext <<_ACEOF
[8756]3844/* end confdefs.h. */
3845#include <string.h>
3846
3847_ACEOF
3848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]3849 $EGREP "memchr" >/dev/null 2>&1; then
3850 :
[8756]3851else
3852 ac_cv_header_stdc=no
3853fi
[8200]3854rm -f conftest*
[8756]3855
[687]3856fi
[8756]3857
3858if test $ac_cv_header_stdc = yes; then
3859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
[23802]3860 cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
[8756]3865/* end confdefs.h. */
3866#include <stdlib.h>
3867
3868_ACEOF
3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]3870 $EGREP "free" >/dev/null 2>&1; then
3871 :
[8756]3872else
3873 ac_cv_header_stdc=no
3874fi
3875rm -f conftest*
3876
3877fi
3878
3879if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
[23802]3881 if test "$cross_compiling" = yes; then
[8756]3882 :
3883else
[23802]3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
[8756]3889/* end confdefs.h. */
3890#include <ctype.h>
3891#if ((' ' & 0x0FF) == 0x020)
3892# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3893# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3894#else
3895# define ISLOWER(c) \
3896 (('a' <= (c) && (c) <= 'i') \
3897 || ('j' <= (c) && (c) <= 'r') \
3898 || ('s' <= (c) && (c) <= 'z'))
3899# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3900#endif
3901
3902#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3903int
3904main ()
3905{
3906 int i;
3907 for (i = 0; i < 256; i++)
3908 if (XOR (islower (i), ISLOWER (i))
3909 || toupper (i) != TOUPPER (i))
[23802]3910 exit(2);
3911 exit (0);
[8756]3912}
3913_ACEOF
[23802]3914rm -f conftest$ac_exeext
3915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 :
3926else
3927 echo "$as_me: program exited with status $ac_status" >&5
3928echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
[22378]3930
[23802]3931( exit $ac_status )
3932ac_cv_header_stdc=no
[8756]3933fi
[23802]3934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
[8756]3935fi
3936fi
3937fi
[23802]3938echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3939echo "${ECHO_T}$ac_cv_header_stdc" >&6
[8756]3940if test $ac_cv_header_stdc = yes; then
3941
[23802]3942cat >>confdefs.h <<\_ACEOF
3943#define STDC_HEADERS 1
3944_ACEOF
[8756]3945
3946fi
3947
3948# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3949
3950
3951
3952
3953
3954
3955
3956
3957
[23802]3958for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3959 inttypes.h stdint.h unistd.h
3960do
3961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3962echo "$as_me:$LINENO: checking for $ac_header" >&5
3963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3964if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966else
3967 cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
3973$ac_includes_default
[22378]3974
[23802]3975#include <$ac_header>
3976_ACEOF
3977rm -f conftest.$ac_objext
3978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_c_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 eval "$as_ac_Header=yes"
4000else
4001 echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
[22378]4003
[23802]4004eval "$as_ac_Header=no"
4005fi
4006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007fi
4008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010if test `eval echo '${'$as_ac_Header'}'` = yes; then
4011 cat >>confdefs.h <<_ACEOF
4012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4013_ACEOF
[22378]4014
[23802]4015fi
[22378]4016
[23802]4017done
[22378]4018
4019
[23802]4020if test "${ac_cv_header_minix_config_h+set}" = set; then
4021 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4022echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4023if test "${ac_cv_header_minix_config_h+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025fi
4026echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4027echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
[8756]4028else
[23802]4029 # Is the header compilable?
4030echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4031echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4032cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
[8756]4037/* end confdefs.h. */
[23802]4038$ac_includes_default
4039#include <minix/config.h>
4040_ACEOF
4041rm -f conftest.$ac_objext
4042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>conftest.er1
4044 ac_status=$?
4045 grep -v '^ *+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -z "$ac_c_werror_flag"
4051 || test ! -s conftest.err'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_header_compiler=yes
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
[8756]4067
[23802]4068ac_header_compiler=no
4069fi
4070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4072echo "${ECHO_T}$ac_header_compiler" >&6
[22378]4073
[23802]4074# Is the header present?
4075echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4076echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4077cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
[8756]4079_ACEOF
[23802]4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083#include <minix/config.h>
4084_ACEOF
4085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4098 fi
[8756]4099else
[23802]4100 ac_cpp_err=yes
[8756]4101fi
[23802]4102if test -z "$ac_cpp_err"; then
4103 ac_header_preproc=yes
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_header_preproc=no
[8756]4109fi
[23802]4110rm -f conftest.err conftest.$ac_ext
4111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4112echo "${ECHO_T}$ac_header_preproc" >&6
[8756]4113
[23802]4114# So? What about this header?
4115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4116 yes:no: )
4117 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4118echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4120echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4121 ac_header_preproc=yes
4122 ;;
4123 no:yes:* )
4124 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4125echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4126 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4127echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4128 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4129echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4130 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4131echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4132 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4133echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4135echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4136 (
4137 cat <<\_ASBOX
4138## ------------------------------------------ ##
4139## Report this to the AC_PACKAGE_NAME lists. ##
4140## ------------------------------------------ ##
4141_ASBOX
4142 ) |
4143 sed "s/^/$as_me: WARNING: /" >&2
4144 ;;
4145esac
4146echo "$as_me:$LINENO: checking for minix/config.h" >&5
4147echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4148if test "${ac_cv_header_minix_config_h+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150else
4151 ac_cv_header_minix_config_h=$ac_header_preproc
4152fi
4153echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4154echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
[8756]4155
[23802]4156fi
4157if test $ac_cv_header_minix_config_h = yes; then
4158 MINIX=yes
4159else
4160 MINIX=
4161fi
[8756]4162
4163
[23802]4164if test "$MINIX" = yes; then
[22378]4165
[23802]4166cat >>confdefs.h <<\_ACEOF
4167#define _POSIX_SOURCE 1
4168_ACEOF
[22378]4169
4170
[23802]4171cat >>confdefs.h <<\_ACEOF
4172#define _POSIX_1_SOURCE 2
4173_ACEOF
[8756]4174
[23802]4175
4176cat >>confdefs.h <<\_ACEOF
4177#define _MINIX 1
[8756]4178_ACEOF
4179
4180fi
4181
[23802]4182echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4183echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4184if test "${ac_cv_prog_cc_stdc+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
[700]4186else
4187 ac_cv_prog_cc_stdc=no
4188ac_save_CFLAGS="$CFLAGS"
4189# Don't try gcc -ansi; that turns off useful extensions and
4190# breaks some systems' header files.
4191# AIX -qlanglvl=ansi
4192# Ultrix and OSF/1 -std1
4193# HP-UX -Aa -D_HPUX_SOURCE
4194# SVR4 -Xc
4195for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
4196do
4197 CFLAGS="$ac_save_CFLAGS $ac_arg"
[23802]4198 cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
[8756]4203/* end confdefs.h. */
[700]4204#if !defined(__STDC__) || __STDC__ != 1
4205choke me
[8756]4206#endif
[700]4207
[8756]4208int
4209main ()
4210{
[700]4211int test (int i, double x);
4212struct s1 {int (*f) (int a);};
4213struct s2 {int (*f) (double a);};
[8756]4214 ;
4215 return 0;
4216}
4217_ACEOF
[23802]4218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
[700]4240 ac_cv_prog_cc_stdc="$ac_arg"; break
[23802]4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
[700]4245fi
[23802]4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[700]4247done
4248CFLAGS="$ac_save_CFLAGS"
4249
4250fi
4251
[23802]4252echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4253echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
[700]4254case "x$ac_cv_prog_cc_stdc" in
4255 x|xno) ;;
4256 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
4257esac
4258
[8200]4259
[23802]4260echo "$as_me:$LINENO: checking for function prototypes" >&5
4261echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
[700]4262if test "$ac_cv_prog_cc_stdc" != no; then
[23802]4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
4265 cat >>confdefs.h <<\_ACEOF
4266#define PROTOTYPES 1
4267_ACEOF
[700]4268
4269 U= ANSI2KNR=
4270else
[23802]4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
[700]4273 U=_ ANSI2KNR=ansi2knr
4274fi
4275
[23802]4276echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4277echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4278if test "${ac_cv_c_const+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]4280else
[23802]4281 cat >conftest.$ac_ext <<_ACEOF
4282/* confdefs.h. */
4283_ACEOF
4284cat confdefs.h >>conftest.$ac_ext
4285cat >>conftest.$ac_ext <<_ACEOF
[8756]4286/* end confdefs.h. */
[8200]4287
[8756]4288int
4289main ()
4290{
4291/* FIXME: Include the comments suggested by Paul. */
4292#ifndef __cplusplus
4293 /* Ultrix mips cc rejects this. */
4294 typedef int charset[2];
[23802]4295 const charset x;
[8756]4296 /* SunOS 4.1.1 cc rejects this. */
[23802]4297 char const *const *ccp;
4298 char **p;
[8756]4299 /* NEC SVR4.0.2 mips cc rejects this. */
4300 struct point {int x, y;};
4301 static struct point const zero = {0,0};
4302 /* AIX XL C 1.02.0.0 rejects this.
4303 It does not let you subtract one const X* pointer from another in
4304 an arm of an if-expression whose if-part is not a constant
4305 expression */
4306 const char *g = "string";
[23802]4307 ccp = &g + (g ? g-g : 0);
[8756]4308 /* HPUX 7.0 cc rejects these. */
[23802]4309 ++ccp;
4310 p = (char**) ccp;
4311 ccp = (char const *const *) p;
[8756]4312 { /* SCO 3.2v4 cc rejects this. */
4313 char *t;
4314 char const *s = 0 ? (char *) 0 : (char const *) 0;
[8200]4315
[8756]4316 *t++ = 0;
4317 }
4318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4319 int x[] = {25, 17};
4320 const int *foo = &x[0];
4321 ++foo;
4322 }
4323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4324 typedef const int *iptr;
4325 iptr p = 0;
4326 ++p;
4327 }
4328 { /* AIX XL C 1.02.0.0 rejects this saying
4329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4330 struct s { int j; const int *ap[3]; };
4331 struct s *b; b->j = 5;
4332 }
4333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4334 const int foo = 10;
4335 }
4336#endif
[8200]4337
[8756]4338 ;
4339 return 0;
[3631]4340}
[8756]4341_ACEOF
[23802]4342rm -f conftest.$ac_objext
4343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
[687]4364 ac_cv_c_const=yes
4365else
[23802]4366 echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369ac_cv_c_const=no
[687]4370fi
[23802]4371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]4372fi
[23802]4373echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4374echo "${ECHO_T}$ac_cv_c_const" >&6
[3631]4375if test $ac_cv_c_const = no; then
[687]4376
[23802]4377cat >>confdefs.h <<\_ACEOF
4378#define const
4379_ACEOF
[8756]4380
[687]4381fi
4382
[23802]4383echo "$as_me:$LINENO: checking for off_t" >&5
4384echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4385if test "${ac_cv_type_off_t+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394$ac_includes_default
4395int
4396main ()
4397{
4398if ((off_t *) 0)
4399 return 0;
4400if (sizeof (off_t))
4401 return 0;
4402 ;
4403 return 0;
4404}
4405_ACEOF
4406rm -f conftest.$ac_objext
4407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_type_off_t=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
[687]4432
[23802]4433ac_cv_type_off_t=no
4434fi
4435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
4437echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4438echo "${ECHO_T}$ac_cv_type_off_t" >&6
4439if test $ac_cv_type_off_t = yes; then
4440 :
[687]4441else
4442
[8756]4443cat >>confdefs.h <<_ACEOF
[23802]4444#define off_t long
[8756]4445_ACEOF
[687]4446
4447fi
[8200]4448
[23802]4449echo "$as_me:$LINENO: checking for size_t" >&5
4450echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4451if test "${ac_cv_type_size_t+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454 cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h. */
4460$ac_includes_default
4461int
4462main ()
4463{
4464if ((size_t *) 0)
4465 return 0;
4466if (sizeof (size_t))
4467 return 0;
4468 ;
4469 return 0;
4470}
4471_ACEOF
4472rm -f conftest.$ac_objext
4473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_type_size_t=yes
4495else
4496 echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
[8200]4498
[23802]4499ac_cv_type_size_t=no
4500fi
4501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4502fi
4503echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4504echo "${ECHO_T}$ac_cv_type_size_t" >&6
4505if test $ac_cv_type_size_t = yes; then
4506 :
[687]4507else
[8200]4508
[8756]4509cat >>confdefs.h <<_ACEOF
[23802]4510#define size_t unsigned
[8756]4511_ACEOF
[687]4512
4513fi
4514
[23802]4515echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4516echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4517if test "${ac_cv_header_time+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]4519else
[23802]4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
[8756]4525/* end confdefs.h. */
[687]4526#include <sys/types.h>
4527#include <sys/time.h>
4528#include <time.h>
[8756]4529
4530int
4531main ()
4532{
4533if ((struct tm *) 0)
4534return 0;
4535 ;
4536 return 0;
4537}
4538_ACEOF
[23802]4539rm -f conftest.$ac_objext
4540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
[687]4561 ac_cv_header_time=yes
4562else
[23802]4563 echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566ac_cv_header_time=no
[687]4567fi
[23802]4568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]4569fi
[23802]4570echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4571echo "${ECHO_T}$ac_cv_header_time" >&6
[8756]4572if test $ac_cv_header_time = yes; then
[8200]4573
[23802]4574cat >>confdefs.h <<\_ACEOF
4575#define TIME_WITH_SYS_TIME 1
4576_ACEOF
[687]4577
4578fi
4579
[23802]4580echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4581echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4582if test "${ac_cv_struct_tm+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]4584else
[23802]4585 cat >conftest.$ac_ext <<_ACEOF
4586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
[8756]4590/* end confdefs.h. */
[687]4591#include <sys/types.h>
4592#include <time.h>
[8756]4593
4594int
4595main ()
4596{
[23802]4597struct tm *tp; tp->tm_sec;
[8756]4598 ;
4599 return 0;
4600}
4601_ACEOF
[23802]4602rm -f conftest.$ac_objext
4603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
[687]4624 ac_cv_struct_tm=time.h
4625else
[23802]4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629ac_cv_struct_tm=sys/time.h
[687]4630fi
[23802]4631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]4632fi
[23802]4633echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4634echo "${ECHO_T}$ac_cv_struct_tm" >&6
[8756]4635if test $ac_cv_struct_tm = sys/time.h; then
[8200]4636
[23802]4637cat >>confdefs.h <<\_ACEOF
4638#define TM_IN_SYS_TIME 1
4639_ACEOF
[687]4640
4641fi
4642
[8200]4643
[687]4644if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
[23802]4645cat >conftest.$ac_ext <<_ACEOF
4646/* confdefs.h. */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
[8756]4650/* end confdefs.h. */
[687]4651#include <stdio.h>
4652
[8756]4653int
4654main ()
4655{
4656 FILE *rubbish = popen("yes", "r");
4657 ;
4658 return 0;
4659}
4660_ACEOF
[23802]4661rm -f conftest.$ac_objext
4662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 :
4684else
4685 echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
[22378]4687
[23802]4688CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
[687]4689fi
[23802]4690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]4691fi
4692
[8200]4693
[23802]4694
4695echo "$as_me:$LINENO: checking for main in -lg" >&5
4696echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
4697if test "${ac_cv_lib_g_main+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]4699else
[8756]4700 ac_check_lib_save_LIBS=$LIBS
[562]4701LIBS="-lg $LIBS"
[23802]4702cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
[8756]4707/* end confdefs.h. */
[562]4708
[8756]4709
4710int
4711main ()
4712{
[23802]4713main ();
[8756]4714 ;
4715 return 0;
4716}
4717_ACEOF
[23802]4718rm -f conftest.$ac_objext conftest$ac_exeext
4719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -z "$ac_c_werror_flag"
4728 || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
[8756]4740 ac_cv_lib_g_main=yes
[562]4741else
[23802]4742 echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745ac_cv_lib_g_main=no
[562]4746fi
[23802]4747rm -f conftest.err conftest.$ac_objext \
4748 conftest$ac_exeext conftest.$ac_ext
[8756]4749LIBS=$ac_check_lib_save_LIBS
4750fi
[23802]4751echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
4752echo "${ECHO_T}$ac_cv_lib_g_main" >&6
4753if test $ac_cv_lib_g_main = yes; then
[8756]4754 cat >>confdefs.h <<_ACEOF
4755#define HAVE_LIBG 1
4756_ACEOF
[562]4757
4758 LIBS="-lg $LIBS"
4759
4760fi
[8756]4761ac_cv_lib_g=ac_cv_lib_g_main
[562]4762
[23802]4763
4764echo "$as_me:$LINENO: checking for main in -lm" >&5
4765echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4766if test "${ac_cv_lib_m_main+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]4768else
[8756]4769 ac_check_lib_save_LIBS=$LIBS
4770LIBS="-lm $LIBS"
[23802]4771cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h. */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
[8756]4776/* end confdefs.h. */
[8200]4777
[562]4778
[8756]4779int
4780main ()
4781{
[23802]4782main ();
[8756]4783 ;
4784 return 0;
4785}
4786_ACEOF
[23802]4787rm -f conftest.$ac_objext conftest$ac_exeext
4788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
[8756]4809 ac_cv_lib_m_main=yes
[8200]4810else
[23802]4811 echo "$as_me: failed program was:" >&5
4812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814ac_cv_lib_m_main=no
[562]4815fi
[23802]4816rm -f conftest.err conftest.$ac_objext \
4817 conftest$ac_exeext conftest.$ac_ext
[8756]4818LIBS=$ac_check_lib_save_LIBS
[562]4819fi
[23802]4820echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4821echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4822if test $ac_cv_lib_m_main = yes; then
[8756]4823 cat >>confdefs.h <<_ACEOF
4824#define HAVE_LIBM 1
4825_ACEOF
[562]4826
4827 LIBS="-lm $LIBS"
4828
4829fi
[8756]4830ac_cv_lib_m=ac_cv_lib_m_main
[562]4831
[23802]4832
4833echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
4834echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
4835if test "${ac_cv_lib_crypt_main+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]4837else
[8756]4838 ac_check_lib_save_LIBS=$LIBS
4839LIBS="-lcrypt $LIBS"
[23802]4840cat >conftest.$ac_ext <<_ACEOF
4841/* confdefs.h. */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
[8756]4845/* end confdefs.h. */
[562]4846
[8756]4847
4848int
4849main ()
4850{
[23802]4851main ();
[8756]4852 ;
4853 return 0;
4854}
4855_ACEOF
[23802]4856rm -f conftest.$ac_objext conftest$ac_exeext
4857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4858 (eval $ac_link) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest$ac_exeext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
[8756]4878 ac_cv_lib_crypt_main=yes
[562]4879else
[23802]4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883ac_cv_lib_crypt_main=no
[562]4884fi
[23802]4885rm -f conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
[8756]4887LIBS=$ac_check_lib_save_LIBS
4888fi
[23802]4889echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
4890echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
4891if test $ac_cv_lib_crypt_main = yes; then
[8756]4892 cat >>confdefs.h <<_ACEOF
4893#define HAVE_LIBCRYPT 1
4894_ACEOF
[562]4895
[8756]4896 LIBS="-lcrypt $LIBS"
[562]4897
4898fi
[8756]4899ac_cv_lib_crypt=ac_cv_lib_crypt_main
[562]4900
[20842]4901#if test $ENABLE_ACCENTFOLD = 1; then
4902#AC_HAVE_LIBRARY(iconv)
4903#fi
[562]4904
[23802]4905
4906
4907
4908
4909
[687]4910ac_header_dirent=no
[8756]4911for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
[23802]4912 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4913echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4914echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4915if eval "test \"\${$as_ac_Header+set}\" = set"; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]4917else
[23802]4918 cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h. */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
[8756]4923/* end confdefs.h. */
[687]4924#include <sys/types.h>
4925#include <$ac_hdr>
[8756]4926
4927int
4928main ()
4929{
4930if ((DIR *) 0)
4931return 0;
4932 ;
4933 return 0;
4934}
4935_ACEOF
[23802]4936rm -f conftest.$ac_objext
4937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest.$ac_objext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
[8756]4958 eval "$as_ac_Header=yes"
[562]4959else
[23802]4960 echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963eval "$as_ac_Header=no"
[687]4964fi
[23802]4965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]4966fi
[23802]4967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969if test `eval echo '${'$as_ac_Header'}'` = yes; then
[8756]4970 cat >>confdefs.h <<_ACEOF
[23802]4971#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
[8756]4972_ACEOF
4973
4974ac_header_dirent=$ac_hdr; break
[687]4975fi
[8756]4976
[687]4977done
4978# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4979if test $ac_header_dirent = dirent.h; then
[23802]4980 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4981echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4982if test "${ac_cv_search_opendir+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]4984else
[8756]4985 ac_func_search_save_LIBS=$LIBS
[23802]4986ac_cv_search_opendir=no
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h. */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
[8756]4992/* end confdefs.h. */
4993
[23802]4994/* Override any gcc2 internal prototype to avoid an error. */
[8756]4995#ifdef __cplusplus
4996extern "C"
4997#endif
[23802]4998/* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */
[8756]5000char opendir ();
5001int
5002main ()
5003{
[23802]5004opendir ();
[8756]5005 ;
5006 return 0;
5007}
5008_ACEOF
[23802]5009rm -f conftest.$ac_objext conftest$ac_exeext
5010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_search_opendir="none required"
5032else
5033 echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036fi
5037rm -f conftest.err conftest.$ac_objext \
5038 conftest$ac_exeext conftest.$ac_ext
5039if test "$ac_cv_search_opendir" = no; then
5040 for ac_lib in dir; do
[22378]5041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
[23802]5042 cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
[8200]5048
[23802]5049/* Override any gcc2 internal prototype to avoid an error. */
5050#ifdef __cplusplus
5051extern "C"
5052#endif
5053/* We use char because int might match the return type of a gcc2
5054 builtin and then its argument prototype would still apply. */
5055char opendir ();
5056int
5057main ()
5058{
5059opendir ();
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064rm -f conftest.$ac_objext conftest$ac_exeext
5065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066 (eval $ac_link) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest$ac_exeext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_search_opendir="-l$ac_lib"
5087break
[8200]5088else
[23802]5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
[687]5092fi
[23802]5093rm -f conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5095 done
5096fi
[8756]5097LIBS=$ac_func_search_save_LIBS
5098fi
[23802]5099echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5100echo "${ECHO_T}$ac_cv_search_opendir" >&6
5101if test "$ac_cv_search_opendir" != no; then
5102 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
[687]5103
[8756]5104fi
5105
[687]5106else
[23802]5107 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5108echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5109if test "${ac_cv_search_opendir+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]5111else
[8756]5112 ac_func_search_save_LIBS=$LIBS
[23802]5113ac_cv_search_opendir=no
5114cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h. */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
[8756]5119/* end confdefs.h. */
5120
[23802]5121/* Override any gcc2 internal prototype to avoid an error. */
[8756]5122#ifdef __cplusplus
5123extern "C"
5124#endif
[23802]5125/* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
[8756]5127char opendir ();
5128int
5129main ()
5130{
[23802]5131opendir ();
[8756]5132 ;
5133 return 0;
5134}
5135_ACEOF
[23802]5136rm -f conftest.$ac_objext conftest$ac_exeext
5137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -z "$ac_c_werror_flag"
5146 || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest$ac_exeext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_search_opendir="none required"
5159else
5160 echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163fi
5164rm -f conftest.err conftest.$ac_objext \
5165 conftest$ac_exeext conftest.$ac_ext
5166if test "$ac_cv_search_opendir" = no; then
5167 for ac_lib in x; do
[22378]5168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
[23802]5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
[8200]5175
[23802]5176/* Override any gcc2 internal prototype to avoid an error. */
5177#ifdef __cplusplus
5178extern "C"
5179#endif
5180/* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5182char opendir ();
5183int
5184main ()
5185{
5186opendir ();
5187 ;
5188 return 0;
5189}
5190_ACEOF
5191rm -f conftest.$ac_objext conftest$ac_exeext
5192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -z "$ac_c_werror_flag"
5201 || test ! -s conftest.err'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest$ac_exeext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 (eval $ac_try) 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_search_opendir="-l$ac_lib"
5214break
[8200]5215else
[23802]5216 echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
[562]5219fi
[23802]5220rm -f conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 done
5223fi
[8756]5224LIBS=$ac_func_search_save_LIBS
5225fi
[23802]5226echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5227echo "${ECHO_T}$ac_cv_search_opendir" >&6
5228if test "$ac_cv_search_opendir" != no; then
5229 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
[562]5230
[687]5231fi
5232
[8756]5233fi
5234
[23802]5235echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237if test "${ac_cv_header_stdc+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]5239else
[23802]5240 cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
[8756]5245/* end confdefs.h. */
[562]5246#include <stdlib.h>
5247#include <stdarg.h>
5248#include <string.h>
5249#include <float.h>
[8756]5250
5251int
5252main ()
5253{
5254
5255 ;
5256 return 0;
5257}
5258_ACEOF
[23802]5259rm -f conftest.$ac_objext
5260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
[562]5281 ac_cv_header_stdc=yes
5282else
[23802]5283 echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286ac_cv_header_stdc=no
[562]5287fi
[23802]5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[562]5289
5290if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
[23802]5292 cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h. */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
[8756]5297/* end confdefs.h. */
[562]5298#include <string.h>
[8756]5299
5300_ACEOF
[562]5301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5302 $EGREP "memchr" >/dev/null 2>&1; then
5303 :
[562]5304else
5305 ac_cv_header_stdc=no
5306fi
5307rm -f conftest*
5308
5309fi
5310
5311if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
[23802]5313 cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h. */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
[8756]5318/* end confdefs.h. */
[562]5319#include <stdlib.h>
[8756]5320
5321_ACEOF
[562]5322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5323 $EGREP "free" >/dev/null 2>&1; then
5324 :
[562]5325else
5326 ac_cv_header_stdc=no
5327fi
5328rm -f conftest*
5329
5330fi
5331
5332if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
[23802]5334 if test "$cross_compiling" = yes; then
[562]5335 :
5336else
[23802]5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
[8756]5342/* end confdefs.h. */
[562]5343#include <ctype.h>
[8756]5344#if ((' ' & 0x0FF) == 0x020)
5345# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347#else
5348# define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353#endif
5354
[8200]5355#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
[8756]5356int
5357main ()
5358{
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
[23802]5363 exit(2);
5364 exit (0);
[8756]5365}
5366_ACEOF
[23802]5367rm -f conftest$ac_exeext
5368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 :
5379else
5380 echo "$as_me: program exited with status $ac_status" >&5
5381echo "$as_me: failed program was:" >&5
5382sed 's/^/| /' conftest.$ac_ext >&5
[22378]5383
[23802]5384( exit $ac_status )
5385ac_cv_header_stdc=no
[562]5386fi
[23802]5387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
[562]5388fi
5389fi
5390fi
[23802]5391echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5392echo "${ECHO_T}$ac_cv_header_stdc" >&6
[8756]5393if test $ac_cv_header_stdc = yes; then
[8200]5394
[23802]5395cat >>confdefs.h <<\_ACEOF
5396#define STDC_HEADERS 1
5397_ACEOF
[562]5398
5399fi
5400
[23802]5401
5402
5403
5404
5405
5406
5407
5408
5409
[10181]5410for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
[23802]5411do
5412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5413if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414 echo "$as_me:$LINENO: checking for $ac_header" >&5
5415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5416if eval "test \"\${$as_ac_Header+set}\" = set"; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418fi
5419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421else
5422 # Is the header compilable?
5423echo "$as_me:$LINENO: checking $ac_header usability" >&5
5424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5425cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431$ac_includes_default
5432#include <$ac_header>
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag"
5444 || test ! -s conftest.err'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_header_compiler=yes
5457else
5458 echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461ac_header_compiler=no
5462fi
5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465echo "${ECHO_T}$ac_header_compiler" >&6
5466
5467# Is the header present?
5468echo "$as_me:$LINENO: checking $ac_header presence" >&5
5469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5470cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h. */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
5475/* end confdefs.h. */
5476#include <$ac_header>
5477_ACEOF
5478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } >/dev/null; then
5486 if test -s conftest.err; then
5487 ac_cpp_err=$ac_c_preproc_warn_flag
5488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5489 else
5490 ac_cpp_err=
5491 fi
5492else
5493 ac_cpp_err=yes
5494fi
5495if test -z "$ac_cpp_err"; then
5496 ac_header_preproc=yes
5497else
5498 echo "$as_me: failed program was:" >&5
5499sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_header_preproc=no
5502fi
5503rm -f conftest.err conftest.$ac_ext
5504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505echo "${ECHO_T}$ac_header_preproc" >&6
5506
5507# So? What about this header?
5508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5509 yes:no: )
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514 ac_header_preproc=yes
5515 ;;
5516 no:yes:* )
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5529 (
5530 cat <<\_ASBOX
5531## ------------------------------------------ ##
5532## Report this to the AC_PACKAGE_NAME lists. ##
5533## ------------------------------------------ ##
5534_ASBOX
5535 ) |
5536 sed "s/^/$as_me: WARNING: /" >&2
5537 ;;
5538esac
5539echo "$as_me:$LINENO: checking for $ac_header" >&5
5540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544 eval "$as_ac_Header=\$ac_header_preproc"
5545fi
5546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548
5549fi
5550if test `eval echo '${'$as_ac_Header'}'` = yes; then
[8756]5551 cat >>confdefs.h <<_ACEOF
[23802]5552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
[8756]5553_ACEOF
5554
5555fi
5556
[562]5557done
5558
[23802]5559cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
[8756]5564/* end confdefs.h. */
[687]5565#include <stdio.h>
[8756]5566
5567_ACEOF
[687]5568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5569 $EGREP "fread" >/dev/null 2>&1; then
5570 cat >>confdefs.h <<\_ACEOF
5571#define HAVE_FREAD_DECL 1
5572_ACEOF
[562]5573
[687]5574fi
5575rm -f conftest*
5576
[23802]5577cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h. */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
[8756]5582/* end confdefs.h. */
[687]5583#include <stdio.h>
[8756]5584
5585_ACEOF
[687]5586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5587 $EGREP "fgetc" >/dev/null 2>&1; then
5588 cat >>confdefs.h <<\_ACEOF
5589#define HAVE_FGETC_DECL 1
5590_ACEOF
[687]5591
5592fi
5593rm -f conftest*
5594
[23802]5595cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
[8756]5600/* end confdefs.h. */
[687]5601#include <sys/procfs.h>
[8756]5602
5603_ACEOF
[687]5604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5605 $EGREP "pr_brksize" >/dev/null 2>&1; then
5606 cat >>confdefs.h <<\_ACEOF
5607#define HAVE_PR_BRKSIZE 1
5608_ACEOF
[687]5609
5610fi
5611rm -f conftest*
5612
[8200]5613
[687]5614# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5615# for constant arguments. Useless!
[23802]5616echo "$as_me:$LINENO: checking for working alloca.h" >&5
5617echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5618if test "${ac_cv_working_alloca_h+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]5620else
[23802]5621 cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
[8756]5626/* end confdefs.h. */
[687]5627#include <alloca.h>
[8756]5628int
5629main ()
5630{
5631char *p = (char *) alloca (2 * sizeof (int));
5632 ;
5633 return 0;
5634}
5635_ACEOF
[23802]5636rm -f conftest.$ac_objext conftest$ac_exeext
5637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
[8756]5658 ac_cv_working_alloca_h=yes
[562]5659else
[23802]5660 echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663ac_cv_working_alloca_h=no
[562]5664fi
[23802]5665rm -f conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
[562]5667fi
[23802]5668echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5669echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
[8756]5670if test $ac_cv_working_alloca_h = yes; then
[562]5671
[23802]5672cat >>confdefs.h <<\_ACEOF
5673#define HAVE_ALLOCA_H 1
5674_ACEOF
[562]5675
5676fi
5677
[23802]5678echo "$as_me:$LINENO: checking for alloca" >&5
5679echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5680if test "${ac_cv_func_alloca_works+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
[562]5682else
[23802]5683 cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
[8756]5688/* end confdefs.h. */
[687]5689#ifdef __GNUC__
5690# define alloca __builtin_alloca
5691#else
5692# ifdef _MSC_VER
5693# include <malloc.h>
5694# define alloca _alloca
5695# else
[23802]5696# if HAVE_ALLOCA_H
[687]5697# include <alloca.h>
5698# else
5699# ifdef _AIX
5700 #pragma alloca
5701# else
5702# ifndef alloca /* predefined by HP cc +Olibcalls */
5703char *alloca ();
5704# endif
5705# endif
5706# endif
5707# endif
5708#endif
5709
[8756]5710int
5711main ()
5712{
5713char *p = (char *) alloca (1);
5714 ;
5715 return 0;
5716}
5717_ACEOF
[23802]5718rm -f conftest.$ac_objext conftest$ac_exeext
5719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -z "$ac_c_werror_flag"
5728 || test ! -s conftest.err'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest$ac_exeext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
[687]5740 ac_cv_func_alloca_works=yes
[562]5741else
[23802]5742 echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745ac_cv_func_alloca_works=no
[562]5746fi
[23802]5747rm -f conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
[562]5749fi
[23802]5750echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5751echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
[562]5752
[687]5753if test $ac_cv_func_alloca_works = yes; then
[8756]5754
[23802]5755cat >>confdefs.h <<\_ACEOF
5756#define HAVE_ALLOCA 1
5757_ACEOF
[562]5758
[8756]5759else
5760 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5761# that cause trouble. Some versions do not even contain alloca or
5762# contain a buggy version. If you still want to use their alloca,
5763# use ar to extract alloca.o from them instead of compiling alloca.c.
[8200]5764
[23802]5765ALLOCA=alloca.$ac_objext
[8756]5766
[23802]5767cat >>confdefs.h <<\_ACEOF
5768#define C_ALLOCA 1
5769_ACEOF
[562]5770
[8200]5771
[23802]5772echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5773echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5774if test "${ac_cv_os_cray+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]5776else
[23802]5777 cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h. */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
[8756]5782/* end confdefs.h. */
[23802]5783#if defined(CRAY) && ! defined(CRAY2)
[687]5784webecray
5785#else
5786wenotbecray
5787#endif
[562]5788
[8756]5789_ACEOF
[687]5790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5791 $EGREP "webecray" >/dev/null 2>&1; then
[687]5792 ac_cv_os_cray=yes
5793else
5794 ac_cv_os_cray=no
5795fi
5796rm -f conftest*
[562]5797
[687]5798fi
[23802]5799echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5800echo "${ECHO_T}$ac_cv_os_cray" >&6
[687]5801if test $ac_cv_os_cray = yes; then
[8756]5802 for ac_func in _getb67 GETB67 getb67; do
[23802]5803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5804echo "$as_me:$LINENO: checking for $ac_func" >&5
5805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5806if eval "test \"\${$as_ac_var+set}\" = set"; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h. */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h. */
5815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5817#define $ac_func innocuous_$ac_func
[8756]5818
[23802]5819/* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func (); below.
5821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822 <limits.h> exists even on freestanding compilers. */
5823
5824#ifdef __STDC__
5825# include <limits.h>
5826#else
5827# include <assert.h>
5828#endif
5829
5830#undef $ac_func
5831
5832/* Override any gcc2 internal prototype to avoid an error. */
5833#ifdef __cplusplus
5834extern "C"
5835{
5836#endif
5837/* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5839char $ac_func ();
5840/* The GNU C library defines this for functions which it implements
5841 to always fail with ENOSYS. Some functions are actually named
5842 something starting with __ and the normal name is an alias. */
5843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5844choke me
5845#else
5846char (*f) () = $ac_func;
5847#endif
5848#ifdef __cplusplus
5849}
5850#endif
5851
5852int
5853main ()
5854{
5855return f != $ac_func;
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext conftest$ac_exeext
5861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862 (eval $ac_link) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest$ac_exeext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 eval "$as_ac_var=yes"
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887eval "$as_ac_var=no"
5888fi
5889rm -f conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
5891fi
5892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5894if test `eval echo '${'$as_ac_var'}'` = yes; then
5895
[8756]5896cat >>confdefs.h <<_ACEOF
[687]5897#define CRAY_STACKSEG_END $ac_func
[8756]5898_ACEOF
[562]5899
[8756]5900 break
[687]5901fi
[562]5902
[8756]5903 done
[687]5904fi
5905
[23802]5906echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5907echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5908if test "${ac_cv_c_stack_direction+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]5910else
[23802]5911 if test "$cross_compiling" = yes; then
[687]5912 ac_cv_c_stack_direction=0
5913else
[23802]5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
[8756]5919/* end confdefs.h. */
5920int
[687]5921find_stack_direction ()
5922{
5923 static char *addr = 0;
5924 auto char dummy;
5925 if (addr == 0)
5926 {
5927 addr = &dummy;
5928 return find_stack_direction ();
5929 }
5930 else
5931 return (&dummy > addr) ? 1 : -1;
5932}
[8756]5933
5934int
[687]5935main ()
5936{
[23802]5937 exit (find_stack_direction () < 0);
[687]5938}
[8756]5939_ACEOF
[23802]5940rm -f conftest$ac_exeext
5941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
[687]5951 ac_cv_c_stack_direction=1
[562]5952else
[23802]5953 echo "$as_me: program exited with status $ac_status" >&5
5954echo "$as_me: failed program was:" >&5
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
5957( exit $ac_status )
5958ac_cv_c_stack_direction=-1
[562]5959fi
[23802]5960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
[687]5961fi
[23802]5962fi
5963echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5964echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
[22378]5965
[8756]5966cat >>confdefs.h <<_ACEOF
[687]5967#define STACK_DIRECTION $ac_cv_c_stack_direction
[8756]5968_ACEOF
[687]5969
[8756]5970
[687]5971fi
5972
[8756]5973if test $ac_cv_c_compiler_gnu = yes; then
[23802]5974 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5975echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5976if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]5978else
5979 ac_pattern="Autoconf.*'x'"
[23802]5980 cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
[8756]5985/* end confdefs.h. */
[687]5986#include <sgtty.h>
5987Autoconf TIOCGETP
[8756]5988_ACEOF
[687]5989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]5990 $EGREP "$ac_pattern" >/dev/null 2>&1; then
[687]5991 ac_cv_prog_gcc_traditional=yes
5992else
5993 ac_cv_prog_gcc_traditional=no
5994fi
[562]5995rm -f conftest*
[687]5996
[8200]5997
[687]5998 if test $ac_cv_prog_gcc_traditional = no; then
[23802]5999 cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
[8756]6004/* end confdefs.h. */
[687]6005#include <termio.h>
6006Autoconf TCGETA
[8756]6007_ACEOF
[687]6008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[23802]6009 $EGREP "$ac_pattern" >/dev/null 2>&1; then
[687]6010 ac_cv_prog_gcc_traditional=yes
[562]6011fi
[687]6012rm -f conftest*
[562]6013
[687]6014 fi
6015fi
[23802]6016echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6017echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
[687]6018 if test $ac_cv_prog_gcc_traditional = yes; then
6019 CC="$CC -traditional"
6020 fi
6021fi
6022
[23802]6023echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6024echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6025if test "${ac_cv_type_signal+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]6027else
[23802]6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
[8756]6033/* end confdefs.h. */
[687]6034#include <sys/types.h>
6035#include <signal.h>
[23802]6036#ifdef signal
6037# undef signal
6038#endif
6039#ifdef __cplusplus
6040extern "C" void (*signal (int, void (*)(int)))(int);
6041#else
6042void (*signal ()) ();
6043#endif
[562]6044
[8756]6045int
6046main ()
6047{
[23802]6048int i;
[8756]6049 ;
6050 return 0;
6051}
6052_ACEOF
[23802]6053rm -f conftest.$ac_objext
6054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_type_signal=void
[22378]6076else
[23802]6077 echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080ac_cv_type_signal=int
[562]6081fi
[23802]6082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[562]6083fi
[23802]6084echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6085echo "${ECHO_T}$ac_cv_type_signal" >&6
[562]6086
[8756]6087cat >>confdefs.h <<_ACEOF
[687]6088#define RETSIGTYPE $ac_cv_type_signal
[8756]6089_ACEOF
[562]6090
[8200]6091
[23802]6092
[8756]6093for ac_func in vprintf
[23802]6094do
6095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6096echo "$as_me:$LINENO: checking for $ac_func" >&5
6097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6098if eval "test \"\${$as_ac_var+set}\" = set"; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6109#define $ac_func innocuous_$ac_func
6110
6111/* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func (); below.
6113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6114 <limits.h> exists even on freestanding compilers. */
6115
6116#ifdef __STDC__
6117# include <limits.h>
6118#else
6119# include <assert.h>
6120#endif
6121
6122#undef $ac_func
6123
6124/* Override any gcc2 internal prototype to avoid an error. */
6125#ifdef __cplusplus
6126extern "C"
6127{
6128#endif
6129/* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6131char $ac_func ();
6132/* The GNU C library defines this for functions which it implements
6133 to always fail with ENOSYS. Some functions are actually named
6134 something starting with __ and the normal name is an alias. */
6135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6136choke me
6137#else
6138char (*f) () = $ac_func;
6139#endif
6140#ifdef __cplusplus
6141}
6142#endif
6143
6144int
6145main ()
6146{
6147return f != $ac_func;
6148 ;
6149 return 0;
6150}
6151_ACEOF
6152rm -f conftest.$ac_objext conftest$ac_exeext
6153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag"
6162 || test ! -s conftest.err'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 eval "$as_ac_var=yes"
6175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179eval "$as_ac_var=no"
6180fi
6181rm -f conftest.err conftest.$ac_objext \
6182 conftest$ac_exeext conftest.$ac_ext
6183fi
6184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6186if test `eval echo '${'$as_ac_var'}'` = yes; then
[8756]6187 cat >>confdefs.h <<_ACEOF
[23802]6188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
[8756]6189_ACEOF
[8200]6190
[23802]6191echo "$as_me:$LINENO: checking for _doprnt" >&5
6192echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6193if test "${ac_cv_func__doprnt+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h. */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h. */
6202/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6204#define _doprnt innocuous__doprnt
[8200]6205
[23802]6206/* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char _doprnt (); below.
6208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6209 <limits.h> exists even on freestanding compilers. */
[8756]6210
[23802]6211#ifdef __STDC__
6212# include <limits.h>
6213#else
6214# include <assert.h>
6215#endif
6216
6217#undef _doprnt
6218
6219/* Override any gcc2 internal prototype to avoid an error. */
6220#ifdef __cplusplus
6221extern "C"
6222{
6223#endif
6224/* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6226char _doprnt ();
6227/* The GNU C library defines this for functions which it implements
6228 to always fail with ENOSYS. Some functions are actually named
6229 something starting with __ and the normal name is an alias. */
6230#if defined (__stub__doprnt) || defined (__stub____doprnt)
6231choke me
6232#else
6233char (*f) () = _doprnt;
6234#endif
6235#ifdef __cplusplus
6236}
6237#endif
6238
6239int
6240main ()
6241{
6242return f != _doprnt;
6243 ;
6244 return 0;
6245}
6246_ACEOF
6247rm -f conftest.$ac_objext conftest$ac_exeext
6248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag"
6257 || test ! -s conftest.err'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 ac_cv_func__doprnt=yes
6270else
6271 echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274ac_cv_func__doprnt=no
[562]6275fi
[23802]6276rm -f conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6278fi
6279echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6280echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6281if test $ac_cv_func__doprnt = yes; then
[562]6282
[23802]6283cat >>confdefs.h <<\_ACEOF
6284#define HAVE_DOPRNT 1
6285_ACEOF
6286
[562]6287fi
[23802]6288
6289fi
[8756]6290done
[562]6291
[8756]6292
[23802]6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
[788]6303for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
[23802]6304do
6305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6306echo "$as_me:$LINENO: checking for $ac_func" >&5
6307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6308if eval "test \"\${$as_ac_var+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6319#define $ac_func innocuous_$ac_func
6320
6321/* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char $ac_func (); below.
6323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324 <limits.h> exists even on freestanding compilers. */
6325
6326#ifdef __STDC__
6327# include <limits.h>
6328#else
6329# include <assert.h>
6330#endif
6331
6332#undef $ac_func
6333
6334/* Override any gcc2 internal prototype to avoid an error. */
6335#ifdef __cplusplus
6336extern "C"
6337{
6338#endif
6339/* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341char $ac_func ();
6342/* The GNU C library defines this for functions which it implements
6343 to always fail with ENOSYS. Some functions are actually named
6344 something starting with __ and the normal name is an alias. */
6345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6346choke me
6347#else
6348char (*f) () = $ac_func;
6349#endif
6350#ifdef __cplusplus
6351}
6352#endif
6353
6354int
6355main ()
6356{
6357return f != $ac_func;
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext conftest$ac_exeext
6363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag"
6372 || test ! -s conftest.err'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 eval "$as_ac_var=yes"
6385else
6386 echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389eval "$as_ac_var=no"
6390fi
6391rm -f conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393fi
6394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6396if test `eval echo '${'$as_ac_var'}'` = yes; then
[8756]6397 cat >>confdefs.h <<_ACEOF
[23802]6398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
[8756]6399_ACEOF
[8200]6400
[687]6401fi
6402done
6403
[8200]6404
[23802]6405
6406
6407for ac_func in ftruncate strstr strcasecmp
6408do
6409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6410echo "$as_me:$LINENO: checking for $ac_func" >&5
6411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6412if eval "test \"\${$as_ac_var+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
[687]6414else
[23802]6415 cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h. */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h. */
6421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6423#define $ac_func innocuous_$ac_func
[8756]6424
[23802]6425/* System header to define __stub macros and hopefully few prototypes,
6426 which can conflict with char $ac_func (); below.
6427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428 <limits.h> exists even on freestanding compilers. */
[687]6429
[23802]6430#ifdef __STDC__
6431# include <limits.h>
6432#else
6433# include <assert.h>
6434#endif
[8200]6435
[23802]6436#undef $ac_func
6437
6438/* Override any gcc2 internal prototype to avoid an error. */
6439#ifdef __cplusplus
6440extern "C"
6441{
6442#endif
6443/* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6445char $ac_func ();
6446/* The GNU C library defines this for functions which it implements
6447 to always fail with ENOSYS. Some functions are actually named
6448 something starting with __ and the normal name is an alias. */
6449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6450choke me
6451#else
6452char (*f) () = $ac_func;
6453#endif
6454#ifdef __cplusplus
6455}
6456#endif
6457
6458int
6459main ()
6460{
6461return f != $ac_func;
6462 ;
6463 return 0;
6464}
6465_ACEOF
6466rm -f conftest.$ac_objext conftest$ac_exeext
6467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6468 (eval $ac_link) 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -z "$ac_c_werror_flag"
6476 || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 eval "$as_ac_var=yes"
[23356]6489else
[23802]6490 echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
[8200]6492
[23802]6493eval "$as_ac_var=no"
[23356]6494fi
[23802]6495rm -f conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6500if test `eval echo '${'$as_ac_var'}'` = yes; then
6501 cat >>confdefs.h <<_ACEOF
6502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6503_ACEOF
[23356]6504
6505else
[23802]6506 case $LIBOBJS in
6507 "$ac_func.$ac_objext" | \
6508 *" $ac_func.$ac_objext" | \
6509 "$ac_func.$ac_objext "* | \
6510 *" $ac_func.$ac_objext "* ) ;;
6511 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
[23356]6512esac
6513
6514fi
[23802]6515done
[23356]6516
6517
6518
[23802]6519echo "$as_me:$LINENO: checking for textdomain" >&5
6520echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6521if test "${ac_cv_func_textdomain+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6532#define textdomain innocuous_textdomain
[8756]6533
[23802]6534/* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char textdomain (); below.
6536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6537 <limits.h> exists even on freestanding compilers. */
6538
6539#ifdef __STDC__
6540# include <limits.h>
6541#else
6542# include <assert.h>
6543#endif
6544
6545#undef textdomain
6546
6547/* Override any gcc2 internal prototype to avoid an error. */
6548#ifdef __cplusplus
6549extern "C"
6550{
6551#endif
6552/* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6554char textdomain ();
6555/* The GNU C library defines this for functions which it implements
6556 to always fail with ENOSYS. Some functions are actually named
6557 something starting with __ and the normal name is an alias. */
6558#if defined (__stub_textdomain) || defined (__stub___textdomain)
6559choke me
6560#else
6561char (*f) () = textdomain;
6562#endif
6563#ifdef __cplusplus
6564}
6565#endif
6566
6567int
6568main ()
6569{
6570return f != textdomain;
6571 ;
6572 return 0;
6573}
6574_ACEOF
6575rm -f conftest.$ac_objext conftest$ac_exeext
6576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -z "$ac_c_werror_flag"
6585 || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest$ac_exeext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 ac_cv_func_textdomain=yes
6598else
6599 echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602ac_cv_func_textdomain=no
[3705]6603fi
[23802]6604rm -f conftest.err conftest.$ac_objext \
6605 conftest$ac_exeext conftest.$ac_ext
6606fi
6607echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6608echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6609if test $ac_cv_func_textdomain = yes; then
6610 cat >>confdefs.h <<\_ACEOF
6611#define ENABLE_NLS 1
6612_ACEOF
[8200]6613
[23802]6614fi
[3705]6615
[23802]6616
[687]6617# *** Custom checking (based on GNU tar configure.in) ***
6618# ---------------------------------------------------------------------------
[23802]6619echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
6620echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
[687]6621if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
[23802]6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 case $LIBOBJS in
6625 "gmalloc.$ac_objext" | \
6626 *" gmalloc.$ac_objext" | \
6627 "gmalloc.$ac_objext "* | \
[8756]6628 *" gmalloc.$ac_objext "* ) ;;
[23802]6629 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
[8756]6630esac
6631
[23802]6632 cat >>confdefs.h <<\_ACEOF
6633#define HAVE_VALLOC 1
6634_ACEOF
[687]6635
6636else
[23802]6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639
6640for ac_func in valloc
6641do
6642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6643echo "$as_me:$LINENO: checking for $ac_func" >&5
6644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6645if eval "test \"\${$as_ac_var+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647else
6648 cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
6654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6656#define $ac_func innocuous_$ac_func
6657
6658/* System header to define __stub macros and hopefully few prototypes,
6659 which can conflict with char $ac_func (); below.
6660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6661 <limits.h> exists even on freestanding compilers. */
6662
6663#ifdef __STDC__
6664# include <limits.h>
6665#else
6666# include <assert.h>
6667#endif
6668
6669#undef $ac_func
6670
6671/* Override any gcc2 internal prototype to avoid an error. */
6672#ifdef __cplusplus
6673extern "C"
6674{
6675#endif
6676/* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678char $ac_func ();
6679/* The GNU C library defines this for functions which it implements
6680 to always fail with ENOSYS. Some functions are actually named
6681 something starting with __ and the normal name is an alias. */
6682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6683choke me
6684#else
6685char (*f) () = $ac_func;
6686#endif
6687#ifdef __cplusplus
6688}
6689#endif
6690
6691int
6692main ()
6693{
6694return f != $ac_func;
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
6700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_c_werror_flag"
6709 || test ! -s conftest.err'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest$ac_exeext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_var=yes"
6722else
6723 echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726eval "$as_ac_var=no"
6727fi
6728rm -f conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
6730fi
6731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6733if test `eval echo '${'$as_ac_var'}'` = yes; then
[8756]6734 cat >>confdefs.h <<_ACEOF
[23802]6735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
[8756]6736_ACEOF
[8200]6737
[687]6738fi
6739done
6740
6741fi
6742
[8200]6743# we cannot generate static libraries under Darwin
[23802]6744echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
6745echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
[8200]6746if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
[23802]6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
[8200]6749 STATIC=""
6750else
[23802]6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
[8200]6753 STATIC="-static "
6754fi
[3631]6755
[8200]6756
[23802]6757echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6758echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
[8756]6759
[23802]6760# Check whether --with-dmalloc or --without-dmalloc was given.
6761if test "${with_dmalloc+set}" = set; then
6762 withval="$with_dmalloc"
6763 if test "$withval" = yes; then
6764 echo "$as_me:$LINENO: result: yes" >&5
6765echo "${ECHO_T}yes" >&6
6766 cat >>confdefs.h <<\_ACEOF
6767#define WITH_DMALLOC 1
6768_ACEOF
[687]6769
[700]6770 LIBS="$LIBS -ldmalloc"
6771 LDFLAGS="$LDFLAGS -g"
6772else
[23802]6773 echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6
[700]6775fi
6776else
[23802]6777 echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6
6779fi;
[700]6780
[23802]6781echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
6782echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
[700]6783
[23802]6784# Check whether --with-regex or --without-regex was given.
6785if test "${with_regex+set}" = set; then
6786 withval="$with_regex"
6787 if test "$withval" = yes; then
[700]6788 ac_with_regex=1
[23802]6789 echo "$as_me:$LINENO: result: regex" >&5
6790echo "${ECHO_T}regex" >&6
6791 cat >>confdefs.h <<\_ACEOF
6792#define WITH_REGEX 1
6793_ACEOF
[700]6794
[23802]6795 case $LIBOBJS in
6796 "regex.$ac_objext" | \
6797 *" regex.$ac_objext" | \
6798 "regex.$ac_objext "* | \
[8756]6799 *" regex.$ac_objext "* ) ;;
[23802]6800 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
[8756]6801esac
6802
[700]6803fi
[23802]6804fi;
[700]6805if test -z "$ac_with_regex"; then
[23802]6806 echo "$as_me:$LINENO: result: rx" >&5
6807echo "${ECHO_T}rx" >&6
6808 echo "$as_me:$LINENO: checking for re_rx_search" >&5
6809echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
6810if test "${ac_cv_func_re_rx_search+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h. */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h. */
6819/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
6820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6821#define re_rx_search innocuous_re_rx_search
[8756]6822
[23802]6823/* System header to define __stub macros and hopefully few prototypes,
6824 which can conflict with char re_rx_search (); below.
6825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826 <limits.h> exists even on freestanding compilers. */
6827
6828#ifdef __STDC__
6829# include <limits.h>
6830#else
6831# include <assert.h>
6832#endif
6833
6834#undef re_rx_search
6835
6836/* Override any gcc2 internal prototype to avoid an error. */
6837#ifdef __cplusplus
6838extern "C"
6839{
6840#endif
6841/* We use char because int might match the return type of a gcc2
6842 builtin and then its argument prototype would still apply. */
6843char re_rx_search ();
6844/* The GNU C library defines this for functions which it implements
6845 to always fail with ENOSYS. Some functions are actually named
6846 something starting with __ and the normal name is an alias. */
6847#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
6848choke me
6849#else
6850char (*f) () = re_rx_search;
6851#endif
6852#ifdef __cplusplus
6853}
6854#endif
6855
6856int
6857main ()
6858{
6859return f != re_rx_search;
6860 ;
6861 return 0;
6862}
6863_ACEOF
6864rm -f conftest.$ac_objext conftest$ac_exeext
6865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866 (eval $ac_link) 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -z "$ac_c_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try='test -s conftest$ac_exeext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_cv_func_re_rx_search=yes
[700]6887else
[23802]6888 echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891ac_cv_func_re_rx_search=no
6892fi
6893rm -f conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895fi
6896echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
6897echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
6898if test $ac_cv_func_re_rx_search = yes; then
6899 :
6900else
6901 case $LIBOBJS in
6902 "rx.$ac_objext" | \
6903 *" rx.$ac_objext" | \
6904 "rx.$ac_objext "* | \
[8756]6905 *" rx.$ac_objext "* ) ;;
[23802]6906 *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
[8756]6907esac
6908
[700]6909fi
6910
6911fi
6912
[8200]6913
[687]6914# ---------------------------------------------------------------------------
6915if test "$ac_cv_func_alloca" = 'no'; then
[23802]6916 case $LIBOBJS in
6917 "xmalloc.$ac_objext" | \
6918 *" xmalloc.$ac_objext" | \
6919 "xmalloc.$ac_objext "* | \
[8756]6920 *" xmalloc.$ac_objext "* ) ;;
[23802]6921 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
[8756]6922esac
6923
[23802]6924 case $LIBOBJS in
6925 "error.$ac_objext" | \
6926 *" error.$ac_objext" | \
6927 "error.$ac_objext "* | \
[8756]6928 *" error.$ac_objext "* ) ;;
[23802]6929 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
[8756]6930esac
6931
[687]6932fi
6933
[8200]6934
[687]6935# ---------------------------------------------------------------------------
6936
[23802]6937ac_ext=cc
[687]6938ac_cpp='$CXXCPP $CPPFLAGS'
[8756]6939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
[687]6942
[8200]6943
[23802]6944echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
6945echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
[687]6946success="no"
6947pl_path="$PATH"
6948IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
6949for pl_dir in $pl_path; do
6950 test -z "$pl_dir" && pl_dir=.
6951 if test -x $pl_dir/perl; then
6952 success="yes"
6953 break
6954 fi
6955done
6956IFS="$pl_save_ifs"
6957
6958if test $success = "yes"; then
6959try=`perl configtest.pl` || try="0"
6960try=`expr $try \> 5.000`
6961if test $try = "1"; then
[23802]6962echo "$as_me:$LINENO: result: \"yes\"" >&5
6963echo "${ECHO_T}\"yes\"" >&6
[687]6964else
6965success="no"
6966fi
6967fi
6968
6969if test $success = "no"; then
[23802]6970echo "$as_me:$LINENO: result: \"no\"" >&5
6971echo "${ECHO_T}\"no\"" >&6
6972{ { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
6973echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
6974 { (exit 1); exit 1; }; }
[687]6975fi
6976
6977success=no
[23802]6978echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
6979echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
[687]6980
[18214]6981
[23802]6982cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h. */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
[8756]6987/* end confdefs.h. */
[687]6988#include <vector>
6989
[8756]6990int
6991main ()
6992{
[687]6993
[8756]6994 ;
6995 return 0;
6996}
6997_ACEOF
[23802]6998rm -f conftest.$ac_objext
6999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_cxx_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
[687]7020 success=yes
[23802]7021else
7022 echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
[687]7025fi
[23802]7026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]7027
7028if test $success = "no"; then
[23802]7029cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
[8756]7034/* end confdefs.h. */
[687]7035#include <vector.h>
7036
[8756]7037int
7038main ()
7039{
[687]7040
[8756]7041 ;
7042 return 0;
7043}
7044_ACEOF
[23802]7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_cxx_werror_flag"
7055 || test ! -s conftest.err'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; } &&
7061 { ac_try='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
[687]7067 success="yes"
[23802]7068else
7069 echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
[687]7072fi
[23802]7073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]7074fi
7075
7076if test $success = "no"; then
[23802]7077cat >conftest.$ac_ext <<_ACEOF
7078/* confdefs.h. */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
[8756]7082/* end confdefs.h. */
[687]7083#include <ospace\\std\\vector>
7084
[8756]7085int
7086main ()
7087{
[687]7088
[8756]7089 ;
7090 return 0;
7091}
7092_ACEOF
[23802]7093rm -f conftest.$ac_objext
7094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -z "$ac_cxx_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
[687]7115 success="yes"
[23802]7116else
7117 echo "$as_me: failed program was:" >&5
7118sed 's/^/| /' conftest.$ac_ext >&5
7119
[687]7120fi
[23802]7121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[687]7122fi
7123
7124if test $success = yes; then
[23802]7125echo "$as_me:$LINENO: result: \"no\"" >&5
7126echo "${ECHO_T}\"no\"" >&6
[687]7127else
[23802]7128echo "$as_me:$LINENO: result: \"yes\"" >&5
7129echo "${ECHO_T}\"yes\"" >&6
7130{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
7131echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
7132 { (exit 1); exit 1; }; }
[687]7133fi
7134
[2950]7135gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
[2951]7136# check for running bash under cygwin
7137 if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
7138 then
7139 gsdlos=windows
7140 fi
[687]7141
[8200]7142
[10856]7143# check for endianness
[23802]7144echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7145echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7146if test "${ac_cv_c_bigendian+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
[10856]7148else
[23802]7149 # See if sys/param.h defines the BYTE_ORDER macro.
7150cat >conftest.$ac_ext <<_ACEOF
7151/* confdefs.h. */
[10856]7152_ACEOF
[23802]7153cat confdefs.h >>conftest.$ac_ext
7154cat >>conftest.$ac_ext <<_ACEOF
[10856]7155/* end confdefs.h. */
7156#include <sys/types.h>
[23802]7157#include <sys/param.h>
[10856]7158
7159int
7160main ()
7161{
[23802]7162#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7163 bogus endian macros
7164#endif
[10856]7165
7166 ;
7167 return 0;
7168}
7169_ACEOF
[23802]7170rm -f conftest.$ac_objext
7171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_cxx_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
[10856]7192 # It does; now see whether it defined to BIG_ENDIAN or not.
[23802]7193cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
[10856]7198/* end confdefs.h. */
7199#include <sys/types.h>
[23802]7200#include <sys/param.h>
[10856]7201
7202int
7203main ()
7204{
7205#if BYTE_ORDER != BIG_ENDIAN
[23802]7206 not big endian
7207#endif
[10856]7208
7209 ;
7210 return 0;
7211}
7212_ACEOF
[23802]7213rm -f conftest.$ac_objext
7214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_cxx_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
[10856]7235 ac_cv_c_bigendian=yes
7236else
[23802]7237 echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240ac_cv_c_bigendian=no
[10856]7241fi
[23802]7242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243else
7244 echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
[10856]7246
[23802]7247# It does not; compile a test program.
7248if test "$cross_compiling" = yes; then
7249 # try to guess the endianness by grepping values into an object file
7250 ac_cv_c_bigendian=unknown
7251 cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h. */
[10856]7253_ACEOF
[23802]7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
[10856]7256/* end confdefs.h. */
[23802]7257short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7258short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7259void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7260short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7261short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7262void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
[10856]7263int
7264main ()
7265{
[23802]7266 _ascii (); _ebcdic ();
[10856]7267 ;
7268 return 0;
7269}
7270_ACEOF
[23802]7271rm -f conftest.$ac_objext
7272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_cxx_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
[10856]7294 ac_cv_c_bigendian=yes
7295fi
[23802]7296if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7297 if test "$ac_cv_c_bigendian" = unknown; then
7298 ac_cv_c_bigendian=no
7299 else
7300 # finding both strings is unlikely to happen, but who knows?
7301 ac_cv_c_bigendian=unknown
7302 fi
[10856]7303fi
[23802]7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
[10856]7307
7308fi
[23802]7309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[10856]7310else
[23802]7311 cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
[10856]7316/* end confdefs.h. */
7317int
7318main ()
7319{
[23802]7320 /* Are we little or big endian? From Harbison&Steele. */
7321 union
7322 {
7323 long l;
7324 char c[sizeof (long)];
7325 } u;
7326 u.l = 1;
7327 exit (u.c[sizeof (long) - 1] == 1);
[10856]7328}
7329_ACEOF
[23802]7330rm -f conftest$ac_exeext
7331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332 (eval $ac_link) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
[10856]7341 ac_cv_c_bigendian=no
7342else
[23802]7343 echo "$as_me: program exited with status $ac_status" >&5
7344echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
7347( exit $ac_status )
7348ac_cv_c_bigendian=yes
[10856]7349fi
[23802]7350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
[10856]7351fi
7352fi
[23802]7353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354fi
7355echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7356echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7357case $ac_cv_c_bigendian in
7358 yes)
[10856]7359
[23802]7360cat >>confdefs.h <<\_ACEOF
7361#define WORDS_BIGENDIAN 1
7362_ACEOF
7363 ;;
7364 no)
7365 ;;
7366 *)
7367 { { echo "$as_me:$LINENO: error: unknown endianness
7368presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7369echo "$as_me: error: unknown endianness
7370presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7371 { (exit 1); exit 1; }; } ;;
7372esac
[10856]7373
[687]7374# ---------------------------------------------------------------------------
7375if test "$ac_cv_func_alloca" = 'no'; then
[23802]7376 case $LIBOBJS in
7377 "xmalloc.o.$ac_objext" | \
7378 *" xmalloc.o.$ac_objext" | \
7379 "xmalloc.o.$ac_objext "* | \
[8756]7380 *" xmalloc.o.$ac_objext "* ) ;;
[23802]7381 *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
[8756]7382esac
7383
[23802]7384 case $LIBOBJS in
7385 "error.$ac_objext" | \
7386 *" error.$ac_objext" | \
7387 "error.$ac_objext "* | \
[8756]7388 *" error.$ac_objext "* ) ;;
[23802]7389 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
[8756]7390esac
7391
[687]7392fi
7393
[3063]7394# ---------------------------------------------------------------------------
[687]7395
[3063]7396moduleDirs=""
7397MODULEDIRS=""
[16619]7398if test -d modules ; then
[15300]7399 for x in `find modules -mindepth 1 -maxdepth 2`; do
7400 if test -d "$x"; then
7401 d="$x/Makefile.in"
7402 if test -e "$d"; then
7403 moduleDirs="$moduleDirs $x/Makefile"
7404 MODULEDIRS="$MODULEDIRS $x"
7405 fi
[3063]7406 fi
[15300]7407 done
7408 echo "Making $moduleDirs in modules directory"
[3063]7409
[15300]7410fi
[8200]7411
[15300]7412
[687]7413# ---------------------------------------------------------------------------
[1675]7414
[13777]7415# indexers needs a bindir option to get the binaries into the right place
7416gsdlprefix=`pwd`
[19264]7417ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
[20853]7418
7419
[21377]7420subdirs="$subdirs common-src"
[8756]7421
[23802]7422
7423
[21377]7424subdirs="$subdirs build-src"
7425
7426
[3063]7427# the list of folders in the src folder
[16572]7428srclist="common-src/Makefile \
[21377]7429 build-src/Makefile"
7430
7431if test -d runtime-src; then
7432
[23802]7433
7434subdirs="$subdirs runtime-src"
7435
[21377]7436 srclist="$srclist \
[16572]7437 runtime-src/Makefile"
[21377]7438fi
[3063]7439
[23802]7440 ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
[8756]7441cat >confcache <<\_ACEOF
[562]7442# This file is a shell script that caches the results of configure
7443# tests run on this system so they can be shared between configure
[8756]7444# scripts and configure runs, see configure's option --config-cache.
7445# It is not useful on other systems. If it contains results you don't
7446# want to keep, you may remove or edit it.
[562]7447#
[8756]7448# config.status only pays attention to the cache file if you give it
7449# the --recheck option to rerun configure.
[562]7450#
[8756]7451# `ac_cv_env_foo' variables (set or unset) will be overridden when
7452# loading this file, other *unset* `ac_cv_foo' will be assigned the
7453# following values.
7454
7455_ACEOF
7456
[562]7457# The following way of writing the cache mishandles newlines in values,
7458# but we know of no workaround that is simple, portable, and efficient.
[23802]7459# So, don't put newlines in cache variables' values.
[562]7460# Ultrix sh set writes to stderr and can't be redirected directly,
7461# and sets the high bit in the cache file unless we assign to the vars.
[23802]7462{
[8756]7463 (set) 2>&1 |
[23802]7464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7465 *ac_space=\ *)
7466 # `set' does not quote correctly, so add quotes (double-quote
7467 # substitution turns \\\\ into \\, and sed turns \\ into \).
[8756]7468 sed -n \
7469 "s/'/'\\\\''/g;
7470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
[23802]7471 ;;
[8756]7472 *)
7473 # `set' quotes correctly as required by POSIX, so do not add quotes.
[23802]7474 sed -n \
7475 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
[8756]7476 ;;
[23802]7477 esac;
7478} |
[8756]7479 sed '
7480 t clear
[23802]7481 : clear
[8756]7482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7483 t end
[23802]7484 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7485 : end' >>confcache
7486if diff $cache_file confcache >/dev/null 2>&1; then :; else
7487 if test -w $cache_file; then
7488 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
[8756]7489 cat confcache >$cache_file
[562]7490 else
[23802]7491 echo "not updating unwritable cache $cache_file"
[562]7492 fi
7493fi
7494rm -f confcache
7495
7496test "x$prefix" = xNONE && prefix=$ac_default_prefix
7497# Let make expand exec_prefix.
7498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7499
[23802]7500# VPATH may cause trouble with some makes, so we remove $(srcdir),
7501# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7502# trailing colons and then remove the whole line if VPATH becomes empty
7503# (actually we leave an empty line to preserve line numbers).
7504if test "x$srcdir" = x.; then
7505 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7506s/:*\$(srcdir):*/:/;
7507s/:*\${srcdir}:*/:/;
7508s/:*@srcdir@:*/:/;
7509s/^\([^=]*=[ ]*\):*/\1/;
7510s/:*$//;
7511s/^[^=]*=[ ]*$//;
7512}'
7513fi
7514
[687]7515DEFS=-DHAVE_CONFIG_H
[562]7516
[8756]7517ac_libobjs=
7518ac_ltlibobjs=
7519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7520 # 1. Remove the extension, and $U if already installed.
[23802]7521 ac_i=`echo "$ac_i" |
7522 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7523 # 2. Add them.
7524 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7525 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
[8756]7526done
7527LIBOBJS=$ac_libobjs
7528
7529LTLIBOBJS=$ac_ltlibobjs
7530
7531
7532
[562]7533: ${CONFIG_STATUS=./config.status}
[8756]7534ac_clean_files_save=$ac_clean_files
7535ac_clean_files="$ac_clean_files $CONFIG_STATUS"
[23802]7536{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7537echo "$as_me: creating $CONFIG_STATUS" >&6;}
7538cat >$CONFIG_STATUS <<_ACEOF
[8756]7539#! $SHELL
7540# Generated by $as_me.
[562]7541# Run this file to recreate the current configuration.
7542# Compiler output produced by configure, useful for debugging
[8756]7543# configure, is in config.log if it exists.
[562]7544
[8756]7545debug=false
7546ac_cs_recheck=false
7547ac_cs_silent=false
7548SHELL=\${CONFIG_SHELL-$SHELL}
[23802]7549_ACEOF
[8756]7550
[23802]7551cat >>$CONFIG_STATUS <<\_ACEOF
7552## --------------------- ##
7553## M4sh Initialization. ##
7554## --------------------- ##
7555
7556# Be Bourne compatible
7557if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
[8756]7558 emulate sh
7559 NULLCMD=:
[23802]7560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
[8756]7561 # is contrary to our usage. Disable this feature.
7562 alias -g '${1+"$@"}'='"$@"'
[23802]7563elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7564 set -o posix
[8756]7565fi
[23802]7566DUALCASE=1; export DUALCASE # for MKS sh
[8756]7567
[23802]7568# Support unset when possible.
7569if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7570 as_unset=unset
[8756]7571else
[23802]7572 as_unset=false
[8756]7573fi
7574
7575
[23802]7576# Work around bugs in pre-3.0 UWIN ksh.
7577$as_unset ENV MAIL MAILPATH
[8756]7578PS1='$ '
7579PS2='> '
7580PS4='+ '
7581
7582# NLS nuisances.
[23802]7583for as_var in \
7584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7586 LC_TELEPHONE LC_TIME
7587do
7588 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7589 eval $as_var=C; export $as_var
7590 else
7591 $as_unset $as_var
[8756]7592 fi
[23802]7593done
[562]7594
[23802]7595# Required to use basename.
7596if expr a : '\(a\)' >/dev/null 2>&1; then
[8756]7597 as_expr=expr
7598else
7599 as_expr=false
7600fi
[562]7601
[23802]7602if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
[8756]7603 as_basename=basename
7604else
7605 as_basename=false
7606fi
[562]7607
7608
[23802]7609# Name of the executable.
7610as_me=`$as_basename "$0" ||
[8756]7611$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7612 X"$0" : 'X\(//\)$' \| \
[23802]7613 X"$0" : 'X\(/\)$' \| \
7614 . : '\(.\)' 2>/dev/null ||
7615echo X/"$0" |
7616 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7617 /^X\/\(\/\/\)$/{ s//\1/; q; }
7618 /^X\/\(\/\).*/{ s//\1/; q; }
7619 s/.*/./; q'`
[3631]7620
[23802]7621
7622# PATH needs CR, and LINENO needs CR and PATH.
[20853]7623# Avoid depending upon Character Ranges.
7624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7627as_cr_digits='0123456789'
7628as_cr_alnum=$as_cr_Letters$as_cr_digits
[8756]7629
[23802]7630# The user is always right.
7631if test "${PATH_SEPARATOR+set}" != set; then
7632 echo "#! /bin/sh" >conf$$.sh
7633 echo "exit 0" >>conf$$.sh
7634 chmod +x conf$$.sh
7635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7636 PATH_SEPARATOR=';'
7637 else
7638 PATH_SEPARATOR=:
7639 fi
7640 rm -f conf$$.sh
7641fi
7642
7643
7644 as_lineno_1=$LINENO
7645 as_lineno_2=$LINENO
7646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7647 test "x$as_lineno_1" != "x$as_lineno_2" &&
7648 test "x$as_lineno_3" = "x$as_lineno_2" || {
7649 # Find who we are. Look in the path if we contain no path at all
7650 # relative or not.
7651 case $0 in
7652 *[\\/]* ) as_myself=$0 ;;
7653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7659done
7660
7661 ;;
7662 esac
7663 # We did not find ourselves, most probably we were run as `sh COMMAND'
7664 # in which case we are not to be found in the path.
7665 if test "x$as_myself" = x; then
7666 as_myself=$0
7667 fi
7668 if test ! -f "$as_myself"; then
7669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7670echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7671 { (exit 1); exit 1; }; }
7672 fi
7673 case $CONFIG_SHELL in
7674 '')
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for as_base in sh bash ksh sh5; do
7681 case $as_dir in
7682 /*)
7683 if ("$as_dir/$as_base" -c '
7684 as_lineno_1=$LINENO
7685 as_lineno_2=$LINENO
7686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7687 test "x$as_lineno_1" != "x$as_lineno_2" &&
7688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7689 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7690 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7691 CONFIG_SHELL=$as_dir/$as_base
7692 export CONFIG_SHELL
7693 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7694 fi;;
7695 esac
7696 done
7697done
7698;;
7699 esac
7700
7701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7702 # uniformly replaced by the line number. The first 'sed' inserts a
7703 # line-number line before each line; the second 'sed' does the real
7704 # work. The second script uses 'N' to pair each line-number line
7705 # with the numbered line, and appends trailing '-' during
7706 # substitution so that $LINENO is not a special case at line end.
7707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7708 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7709 sed '=' <$as_myself |
7710 sed '
7711 N
7712 s,$,-,
7713 : loop
7714 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7715 t loop
7716 s,-$,,
7717 s,^['$as_cr_digits']*\n,,
7718 ' >$as_me.lineno &&
7719 chmod +x $as_me.lineno ||
7720 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7721echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7722 { (exit 1); exit 1; }; }
7723
7724 # Don't try to exec as it changes $[0], causing all sort of problems
7725 # (the dirname of $[0] is not the place where we might find the
7726 # original and so on. Autoconf is especially sensible to this).
7727 . ./$as_me.lineno
7728 # Exit status is that of the last command.
7729 exit
7730}
7731
7732
7733case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7734 *c*,-n*) ECHO_N= ECHO_C='
7735' ECHO_T=' ' ;;
7736 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7737 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
[8756]7738esac
7739
[23802]7740if expr a : '\(a\)' >/dev/null 2>&1; then
7741 as_expr=expr
[8756]7742else
[23802]7743 as_expr=false
[8756]7744fi
[23802]7745
7746rm -f conf$$ conf$$.exe conf$$.file
7747echo >conf$$.file
7748if ln -s conf$$.file conf$$ 2>/dev/null; then
7749 # We could just check for DJGPP; but this test a) works b) is more generic
7750 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7751 if test -f conf$$.exe; then
7752 # Don't use ln at all; we don't have any links
7753 as_ln_s='cp -p'
7754 else
[22378]7755 as_ln_s='ln -s'
[20853]7756 fi
[23802]7757elif ln conf$$.file conf$$ 2>/dev/null; then
7758 as_ln_s=ln
[8756]7759else
7760 as_ln_s='cp -p'
7761fi
[23802]7762rm -f conf$$ conf$$.exe conf$$.file
[8756]7763
7764if mkdir -p . 2>/dev/null; then
[23802]7765 as_mkdir_p=:
[8756]7766else
7767 test -d ./-p && rmdir ./-p
7768 as_mkdir_p=false
7769fi
7770
[23802]7771as_executable_p="test -f"
[8756]7772
7773# Sed expression to map a string onto a valid CPP name.
7774as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7775
7776# Sed expression to map a string onto a valid variable name.
7777as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7778
7779
[23802]7780# IFS
7781# We need space, tab and new line, in precisely that order.
7782as_nl='
7783'
7784IFS=" $as_nl"
7785
7786# CDPATH.
7787$as_unset CDPATH
7788
[8756]7789exec 6>&1
7790
[23802]7791# Open the log real soon, to keep \$[0] and so on meaningful, and to
[8756]7792# report actual input values of CONFIG_FILES etc. instead of their
[23802]7793# values after options handling. Logging --version etc. is OK.
7794exec 5>>config.log
7795{
7796 echo
7797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7798## Running $as_me. ##
7799_ASBOX
7800} >&5
7801cat >&5 <<_CSEOF
7802
[8756]7803This file was extended by $as_me, which was
[23802]7804generated by GNU Autoconf 2.59. Invocation command line was
[8756]7805
7806 CONFIG_FILES = $CONFIG_FILES
7807 CONFIG_HEADERS = $CONFIG_HEADERS
7808 CONFIG_LINKS = $CONFIG_LINKS
7809 CONFIG_COMMANDS = $CONFIG_COMMANDS
7810 $ $0 $@
7811
[23802]7812_CSEOF
7813echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7814echo >&5
[8756]7815_ACEOF
7816
[23802]7817# Files that config.status was made for.
7818if test -n "$ac_config_files"; then
7819 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7820fi
[8756]7821
[23802]7822if test -n "$ac_config_headers"; then
7823 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7824fi
[8756]7825
[23802]7826if test -n "$ac_config_links"; then
7827 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7828fi
[20853]7829
[23802]7830if test -n "$ac_config_commands"; then
7831 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7832fi
[20853]7833
[23802]7834cat >>$CONFIG_STATUS <<\_ACEOF
[20853]7835
[8756]7836ac_cs_usage="\
[23802]7837\`$as_me' instantiates files from templates according to the
7838current configuration.
[8756]7839
[23802]7840Usage: $0 [OPTIONS] [FILE]...
[8756]7841
7842 -h, --help print this help, then exit
[23802]7843 -V, --version print version number, then exit
7844 -q, --quiet do not print progress messages
[8756]7845 -d, --debug don't remove temporary files
7846 --recheck update $as_me by reconfiguring in the same conditions
[23802]7847 --file=FILE[:TEMPLATE]
7848 instantiate the configuration file FILE
7849 --header=FILE[:TEMPLATE]
7850 instantiate the configuration header FILE
[8756]7851
7852Configuration files:
7853$config_files
7854
7855Configuration headers:
7856$config_headers
7857
[23802]7858Report bugs to <[email protected]>."
7859_ACEOF
[22378]7860
[23802]7861cat >>$CONFIG_STATUS <<_ACEOF
[8756]7862ac_cs_version="\\
7863config.status
[23802]7864configured by $0, generated by GNU Autoconf 2.59,
7865 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
[8756]7866
[23802]7867Copyright (C) 2003 Free Software Foundation, Inc.
[8756]7868This config.status script is free software; the Free Software Foundation
7869gives unlimited permission to copy, distribute and modify it."
[23802]7870srcdir=$srcdir
7871INSTALL="$INSTALL"
[8756]7872_ACEOF
7873
[23802]7874cat >>$CONFIG_STATUS <<\_ACEOF
7875# If no file are specified by the user, then we need to provide default
7876# value. By we need to know if files were specified by the user.
[8756]7877ac_need_defaults=:
7878while test $# != 0
7879do
7880 case $1 in
[23802]7881 --*=*)
7882 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7883 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
[8756]7884 ac_shift=:
7885 ;;
[23802]7886 -*)
[8756]7887 ac_option=$1
7888 ac_optarg=$2
7889 ac_shift=shift
7890 ;;
[23802]7891 *) # This is not an option, so the user has probably given explicit
7892 # arguments.
7893 ac_option=$1
7894 ac_need_defaults=false;;
[8756]7895 esac
7896
7897 case $ac_option in
7898 # Handling of the options.
[23802]7899_ACEOF
7900cat >>$CONFIG_STATUS <<\_ACEOF
[8756]7901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7902 ac_cs_recheck=: ;;
[23802]7903 --version | --vers* | -V )
7904 echo "$ac_cs_version"; exit 0 ;;
7905 --he | --h)
7906 # Conflict between --help and --header
7907 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7908Try \`$0 --help' for more information." >&5
7909echo "$as_me: error: ambiguous option: $1
7910Try \`$0 --help' for more information." >&2;}
7911 { (exit 1); exit 1; }; };;
7912 --help | --hel | -h )
7913 echo "$ac_cs_usage"; exit 0 ;;
7914 --debug | --d* | -d )
[8756]7915 debug=: ;;
7916 --file | --fil | --fi | --f )
7917 $ac_shift
[23802]7918 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
[8756]7919 ac_need_defaults=false;;
7920 --header | --heade | --head | --hea )
7921 $ac_shift
[23802]7922 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
[8756]7923 ac_need_defaults=false;;
7924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7926 ac_cs_silent=: ;;
7927
7928 # This is an error.
[23802]7929 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7930Try \`$0 --help' for more information." >&5
7931echo "$as_me: error: unrecognized option: $1
7932Try \`$0 --help' for more information." >&2;}
7933 { (exit 1); exit 1; }; } ;;
[8756]7934
[23802]7935 *) ac_config_targets="$ac_config_targets $1" ;;
[8756]7936
7937 esac
7938 shift
[8200]7939done
[8756]7940
7941ac_configure_extra_args=
7942
7943if $ac_cs_silent; then
7944 exec 6>/dev/null
7945 ac_configure_extra_args="$ac_configure_extra_args --silent"
[8200]7946fi
[562]7947
[8756]7948_ACEOF
[23802]7949cat >>$CONFIG_STATUS <<_ACEOF
[8756]7950if \$ac_cs_recheck; then
[23802]7951 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7952 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
[8756]7953fi
[8200]7954
[8756]7955_ACEOF
7956
7957
[20853]7958
[23802]7959
7960
7961cat >>$CONFIG_STATUS <<\_ACEOF
[8756]7962for ac_config_target in $ac_config_targets
7963do
[23802]7964 case "$ac_config_target" in
7965 # Handling of arguments.
7966 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7967 "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
7968 "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
7969 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7970 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7971echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7972 { (exit 1); exit 1; }; };;
[562]7973 esac
[8756]7974done
[562]7975
[8756]7976# If the user did not use the arguments to specify the items to instantiate,
7977# then the envvar interface is used. Set only those that are not.
7978# We use the long form for the default assignment because of an extremely
7979# bizarre bug on SunOS 4.1.3.
7980if $ac_need_defaults; then
7981 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7982 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7983fi
[8200]7984
[8756]7985# Have a temporary directory for convenience. Make it in the build tree
[23802]7986# simply because there is no reason to put it here, and in addition,
[8756]7987# creating and moving files from /tmp can sometimes cause problems.
[23802]7988# Create a temporary directory, and hook for its removal unless debugging.
[8756]7989$debug ||
7990{
[23802]7991 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7992 trap '{ (exit 1); exit 1; }' 1 2 13 15
[8756]7993}
[23802]7994
[8756]7995# Create a (secure) tmp directory for tmp files.
7996
7997{
[23802]7998 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
[8756]7999 test -n "$tmp" && test -d "$tmp"
8000} ||
8001{
[23802]8002 tmp=./confstat$$-$RANDOM
8003 (umask 077 && mkdir $tmp)
8004} ||
[8756]8005{
[23802]8006 echo "$me: cannot create a temporary directory in ." >&2
8007 { (exit 1); exit 1; }
8008}
[22378]8009
8010_ACEOF
[8756]8011
[23802]8012cat >>$CONFIG_STATUS <<_ACEOF
[22378]8013
[23802]8014#
8015# CONFIG_FILES section.
8016#
[22378]8017
[23802]8018# No need to generate the scripts if there are no CONFIG_FILES.
8019# This happens for instance when ./config.status config.h
8020if test -n "\$CONFIG_FILES"; then
8021 # Protect against being on the right side of a sed subst in config.status.
8022 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8023 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8024s,@SHELL@,$SHELL,;t t
8025s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8026s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8027s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8028s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8029s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8030s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8031s,@exec_prefix@,$exec_prefix,;t t
8032s,@prefix@,$prefix,;t t
8033s,@program_transform_name@,$program_transform_name,;t t
8034s,@bindir@,$bindir,;t t
8035s,@sbindir@,$sbindir,;t t
8036s,@libexecdir@,$libexecdir,;t t
8037s,@datadir@,$datadir,;t t
8038s,@sysconfdir@,$sysconfdir,;t t
8039s,@sharedstatedir@,$sharedstatedir,;t t
8040s,@localstatedir@,$localstatedir,;t t
8041s,@libdir@,$libdir,;t t
8042s,@includedir@,$includedir,;t t
8043s,@oldincludedir@,$oldincludedir,;t t
8044s,@infodir@,$infodir,;t t
8045s,@mandir@,$mandir,;t t
8046s,@build_alias@,$build_alias,;t t
8047s,@host_alias@,$host_alias,;t t
8048s,@target_alias@,$target_alias,;t t
8049s,@DEFS@,$DEFS,;t t
8050s,@ECHO_C@,$ECHO_C,;t t
8051s,@ECHO_N@,$ECHO_N,;t t
8052s,@ECHO_T@,$ECHO_T,;t t
8053s,@LIBS@,$LIBS,;t t
8054s,@PACKAGE@,$PACKAGE,;t t
8055s,@VERSION@,$VERSION,;t t
8056s,@USE_FASTCGI@,$USE_FASTCGI,;t t
8057s,@USE_LANGACTION@,$USE_LANGACTION,;t t
8058s,@USE_CORBA@,$USE_CORBA,;t t
8059s,@MICO_DIR@,$MICO_DIR,;t t
8060s,@ENABLE_JAVA@,$ENABLE_JAVA,;t t
8061s,@USE_Z3950@,$USE_Z3950,;t t
8062s,@USE_YAZ@,$USE_YAZ,;t t
8063s,@USE_WVWARE@,$USE_WVWARE,;t t
8064s,@USE_JDBM@,$USE_JDBM,;t t
8065s,@USE_GDBM@,$USE_GDBM,;t t
8066s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
8067s,@USE_SQLITE@,$USE_SQLITE,;t t
8068s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
8069s,@ENABLE_JNI@,$ENABLE_JNI,;t t
8070s,@ENABLE_MG@,$ENABLE_MG,;t t
8071s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
8072s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
8073s,@LDFLAGS@,$LDFLAGS,;t t
8074s,@CFLAGS@,$CFLAGS,;t t
8075s,@CC@,$CC,;t t
8076s,@CPPFLAGS@,$CPPFLAGS,;t t
8077s,@ac_ct_CC@,$ac_ct_CC,;t t
8078s,@EXEEXT@,$EXEEXT,;t t
8079s,@OBJEXT@,$OBJEXT,;t t
8080s,@CXX@,$CXX,;t t
8081s,@CXXFLAGS@,$CXXFLAGS,;t t
8082s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8083s,@AWK@,$AWK,;t t
8084s,@YACC@,$YACC,;t t
8085s,@build@,$build,;t t
8086s,@build_cpu@,$build_cpu,;t t
8087s,@build_vendor@,$build_vendor,;t t
8088s,@build_os@,$build_os,;t t
8089s,@host@,$host,;t t
8090s,@host_cpu@,$host_cpu,;t t
8091s,@host_vendor@,$host_vendor,;t t
8092s,@host_os@,$host_os,;t t
8093s,@target@,$target,;t t
8094s,@target_cpu@,$target_cpu,;t t
8095s,@target_vendor@,$target_vendor,;t t
8096s,@target_os@,$target_os,;t t
8097s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8098s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8099s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8100s,@LN_S@,$LN_S,;t t
8101s,@SET_MAKE@,$SET_MAKE,;t t
8102s,@RANLIB@,$RANLIB,;t t
8103s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8104s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
8105s,@MICO_VER@,$MICO_VER,;t t
8106s,@CPP@,$CPP,;t t
8107s,@EGREP@,$EGREP,;t t
8108s,@U@,$U,;t t
8109s,@ANSI2KNR@,$ANSI2KNR,;t t
8110s,@ALLOCA@,$ALLOCA,;t t
8111s,@LIBOBJS@,$LIBOBJS,;t t
8112s,@STATIC@,$STATIC,;t t
8113s,@gsdlos@,$gsdlos,;t t
8114s,@MODULEDIRS@,$MODULEDIRS,;t t
8115s,@subdirs@,$subdirs,;t t
8116s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8117CEOF
[20853]8118
[8756]8119_ACEOF
8120
[23802]8121 cat >>$CONFIG_STATUS <<\_ACEOF
8122 # Split the substitutions into bite-sized pieces for seds with
8123 # small command number limits, like on Digital OSF/1 and HP-UX.
8124 ac_max_sed_lines=48
8125 ac_sed_frag=1 # Number of current file.
8126 ac_beg=1 # First line for current file.
8127 ac_end=$ac_max_sed_lines # Line after last line for current file.
8128 ac_more_lines=:
8129 ac_sed_cmds=
8130 while $ac_more_lines; do
8131 if test $ac_beg -gt 1; then
8132 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8133 else
8134 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8135 fi
8136 if test ! -s $tmp/subs.frag; then
8137 ac_more_lines=false
8138 else
8139 # The purpose of the label and of the branching condition is to
8140 # speed up the sed processing (if there are no `@' at all, there
8141 # is no need to browse any of the substitutions).
8142 # These are the two extra sed commands mentioned above.
8143 (echo ':t
8144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8145 if test -z "$ac_sed_cmds"; then
8146 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8147 else
8148 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8149 fi
8150 ac_sed_frag=`expr $ac_sed_frag + 1`
8151 ac_beg=$ac_end
8152 ac_end=`expr $ac_end + $ac_max_sed_lines`
8153 fi
8154 done
8155 if test -z "$ac_sed_cmds"; then
8156 ac_sed_cmds=cat
[562]8157 fi
[23802]8158fi # test -n "$CONFIG_FILES"
[562]8159
[8756]8160_ACEOF
[23802]8161cat >>$CONFIG_STATUS <<\_ACEOF
8162for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8164 case $ac_file in
8165 - | *:- | *:-:* ) # input from stdin
8166 cat >$tmp/stdin
8167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8171 * ) ac_file_in=$ac_file.in ;;
[562]8172 esac
8173
[23802]8174 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8175 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
[8756]8176$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8177 X"$ac_file" : 'X\(//\)[^/]' \| \
8178 X"$ac_file" : 'X\(//\)$' \| \
[23802]8179 X"$ac_file" : 'X\(/\)' \| \
8180 . : '\(.\)' 2>/dev/null ||
8181echo X"$ac_file" |
8182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8184 /^X\(\/\/\)$/{ s//\1/; q; }
8185 /^X\(\/\).*/{ s//\1/; q; }
8186 s/.*/./; q'`
8187 { if $as_mkdir_p; then
8188 mkdir -p "$ac_dir"
8189 else
8190 as_dir="$ac_dir"
8191 as_dirs=
8192 while test ! -d "$as_dir"; do
8193 as_dirs="$as_dir $as_dirs"
8194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8196 X"$as_dir" : 'X\(//\)[^/]' \| \
8197 X"$as_dir" : 'X\(//\)$' \| \
8198 X"$as_dir" : 'X\(/\)' \| \
8199 . : '\(.\)' 2>/dev/null ||
8200echo X"$as_dir" |
8201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8203 /^X\(\/\/\)$/{ s//\1/; q; }
8204 /^X\(\/\).*/{ s//\1/; q; }
8205 s/.*/./; q'`
8206 done
8207 test ! -n "$as_dirs" || mkdir $as_dirs
8208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8209echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8210 { (exit 1); exit 1; }; }; }
8211
[8756]8212 ac_builddir=.
8213
[23802]8214if test "$ac_dir" != .; then
8215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8216 # A "../" for each directory in $ac_dir_suffix.
8217 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8218else
8219 ac_dir_suffix= ac_top_builddir=
8220fi
[8756]8221
8222case $srcdir in
[23802]8223 .) # No --srcdir option. We are building in place.
[8756]8224 ac_srcdir=.
[23802]8225 if test -z "$ac_top_builddir"; then
8226 ac_top_srcdir=.
8227 else
8228 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8229 fi ;;
8230 [\\/]* | ?:[\\/]* ) # Absolute path.
[8756]8231 ac_srcdir=$srcdir$ac_dir_suffix;
[23802]8232 ac_top_srcdir=$srcdir ;;
8233 *) # Relative path.
8234 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8235 ac_top_srcdir=$ac_top_builddir$srcdir ;;
[8756]8236esac
8237
[23802]8238# Do not use `cd foo && pwd` to compute absolute paths, because
8239# the directories may not exist.
8240case `pwd` in
8241.) ac_abs_builddir="$ac_dir";;
8242*)
8243 case "$ac_dir" in
8244 .) ac_abs_builddir=`pwd`;;
8245 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8246 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8247 esac;;
8248esac
8249case $ac_abs_builddir in
8250.) ac_abs_top_builddir=${ac_top_builddir}.;;
8251*)
8252 case ${ac_top_builddir}. in
8253 .) ac_abs_top_builddir=$ac_abs_builddir;;
8254 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8255 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8256 esac;;
8257esac
8258case $ac_abs_builddir in
8259.) ac_abs_srcdir=$ac_srcdir;;
8260*)
8261 case $ac_srcdir in
8262 .) ac_abs_srcdir=$ac_abs_builddir;;
8263 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8264 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8265 esac;;
8266esac
8267case $ac_abs_builddir in
8268.) ac_abs_top_srcdir=$ac_top_srcdir;;
8269*)
8270 case $ac_top_srcdir in
8271 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8272 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8273 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8274 esac;;
8275esac
[8756]8276
8277
8278 case $INSTALL in
8279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
[23802]8280 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
[8200]8281 esac
[562]8282
[23802]8283 if test x"$ac_file" != x-; then
8284 { echo "$as_me:$LINENO: creating $ac_file" >&5
8285echo "$as_me: creating $ac_file" >&6;}
8286 rm -f "$ac_file"
8287 fi
8288 # Let's still pretend it is `configure' which instantiates (i.e., don't
8289 # use $as_me), people would be surprised to read:
8290 # /* config.h. Generated by config.status. */
8291 if test x"$ac_file" = x-; then
8292 configure_input=
8293 else
8294 configure_input="$ac_file. "
8295 fi
8296 configure_input=$configure_input"Generated from `echo $ac_file_in |
8297 sed 's,.*/,,'` by configure."
8298
8299 # First look for the input files in the build tree, otherwise in the
8300 # src tree.
8301 ac_file_inputs=`IFS=:
8302 for f in $ac_file_in; do
8303 case $f in
8304 -) echo $tmp/stdin ;;
8305 [\\/$]*)
8306 # Absolute (can't be DOS-style, as IFS=:)
8307 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8308echo "$as_me: error: cannot find input file: $f" >&2;}
8309 { (exit 1); exit 1; }; }
8310 echo "$f";;
8311 *) # Relative
8312 if test -f "$f"; then
8313 # Build tree
8314 echo "$f"
8315 elif test -f "$srcdir/$f"; then
8316 # Source tree
8317 echo "$srcdir/$f"
8318 else
8319 # /dev/null tree
8320 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8321echo "$as_me: error: cannot find input file: $f" >&2;}
8322 { (exit 1); exit 1; }; }
8323 fi;;
8324 esac
8325 done` || { (exit 1); exit 1; }
[22378]8326_ACEOF
[23802]8327cat >>$CONFIG_STATUS <<_ACEOF
8328 sed "$ac_vpsub
[8756]8329$extrasub
8330_ACEOF
[23802]8331cat >>$CONFIG_STATUS <<\_ACEOF
[8756]8332:t
8333/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
[23802]8334s,@configure_input@,$configure_input,;t t
8335s,@srcdir@,$ac_srcdir,;t t
8336s,@abs_srcdir@,$ac_abs_srcdir,;t t
8337s,@top_srcdir@,$ac_top_srcdir,;t t
8338s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8339s,@builddir@,$ac_builddir,;t t
8340s,@abs_builddir@,$ac_abs_builddir,;t t
8341s,@top_builddir@,$ac_top_builddir,;t t
8342s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8343s,@INSTALL@,$ac_INSTALL,;t t
8344" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8345 rm -f $tmp/stdin
8346 if test x"$ac_file" != x-; then
8347 mv $tmp/out $ac_file
8348 else
8349 cat $tmp/out
8350 rm -f $tmp/out
8351 fi
[8756]8352
[23802]8353done
8354_ACEOF
8355cat >>$CONFIG_STATUS <<\_ACEOF
[8756]8356
[23802]8357#
8358# CONFIG_HEADER section.
8359#
8360
8361# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8362# NAME is the cpp macro being defined and VALUE is the value it is being given.
8363#
8364# ac_d sets the value in "#define NAME VALUE" lines.
8365ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8366ac_dB='[ ].*$,\1#\2'
8367ac_dC=' '
8368ac_dD=',;t'
8369# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8370ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8371ac_uB='$,\1#\2define\3'
8372ac_uC=' '
8373ac_uD=',;t'
8374
8375for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
[8756]8377 case $ac_file in
[23802]8378 - | *:- | *:-:* ) # input from stdin
8379 cat >$tmp/stdin
8380 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8382 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8384 * ) ac_file_in=$ac_file.in ;;
8385 esac
8386
8387 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8388echo "$as_me: creating $ac_file" >&6;}
8389
8390 # First look for the input files in the build tree, otherwise in the
8391 # src tree.
8392 ac_file_inputs=`IFS=:
8393 for f in $ac_file_in; do
8394 case $f in
8395 -) echo $tmp/stdin ;;
8396 [\\/$]*)
8397 # Absolute (can't be DOS-style, as IFS=:)
8398 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8399echo "$as_me: error: cannot find input file: $f" >&2;}
8400 { (exit 1); exit 1; }; }
8401 # Do quote $f, to prevent DOS paths from being IFS'd.
8402 echo "$f";;
8403 *) # Relative
8404 if test -f "$f"; then
8405 # Build tree
8406 echo "$f"
8407 elif test -f "$srcdir/$f"; then
8408 # Source tree
8409 echo "$srcdir/$f"
8410 else
8411 # /dev/null tree
8412 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8413echo "$as_me: error: cannot find input file: $f" >&2;}
8414 { (exit 1); exit 1; }; }
8415 fi;;
8416 esac
8417 done` || { (exit 1); exit 1; }
8418 # Remove the trailing spaces.
8419 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8420
8421_ACEOF
8422
8423# Transform confdefs.h into two sed scripts, `conftest.defines' and
8424# `conftest.undefs', that substitutes the proper values into
8425# config.h.in to produce config.h. The first handles `#define'
8426# templates, and the second `#undef' templates.
8427# And first: Protect against being on the right side of a sed subst in
8428# config.status. Protect against being in an unquoted here document
8429# in config.status.
8430rm -f conftest.defines conftest.undefs
8431# Using a here document instead of a string reduces the quoting nightmare.
8432# Putting comments in sed scripts is not portable.
8433#
8434# `end' is used to avoid that the second main sed command (meant for
8435# 0-ary CPP macros) applies to n-ary macro definitions.
8436# See the Autoconf documentation for `clear'.
8437cat >confdef2sed.sed <<\_ACEOF
8438s/[\\&,]/\\&/g
8439s,[\\$`],\\&,g
8440t clear
8441: clear
8442s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8443t end
8444s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8445: end
8446_ACEOF
8447# If some macros were called several times there might be several times
8448# the same #defines, which is useless. Nevertheless, we may not want to
8449# sort them, since we want the *last* AC-DEFINE to be honored.
8450uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8451sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8452rm -f confdef2sed.sed
8453
8454# This sed command replaces #undef with comments. This is necessary, for
8455# example, in the case of _POSIX_SOURCE, which is predefined and required
8456# on some systems where configure will not decide to define it.
8457cat >>conftest.undefs <<\_ACEOF
8458s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8459_ACEOF
8460
8461# Break up conftest.defines because some shells have a limit on the size
8462# of here documents, and old seds have small limits too (100 cmds).
8463echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8464echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8465echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8466echo ' :' >>$CONFIG_STATUS
8467rm -f conftest.tail
8468while grep . conftest.defines >/dev/null
8469do
8470 # Write a limited-size here document to $tmp/defines.sed.
8471 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8472 # Speed up: don't consider the non `#define' lines.
8473 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8474 # Work around the forget-to-reset-the-flag bug.
8475 echo 't clr' >>$CONFIG_STATUS
8476 echo ': clr' >>$CONFIG_STATUS
8477 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8478 echo 'CEOF
8479 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8480 rm -f $tmp/in
8481 mv $tmp/out $tmp/in
8482' >>$CONFIG_STATUS
8483 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8484 rm -f conftest.defines
8485 mv conftest.tail conftest.defines
8486done
8487rm -f conftest.defines
8488echo ' fi # grep' >>$CONFIG_STATUS
8489echo >>$CONFIG_STATUS
8490
8491# Break up conftest.undefs because some shells have a limit on the size
8492# of here documents, and old seds have small limits too (100 cmds).
8493echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8494rm -f conftest.tail
8495while grep . conftest.undefs >/dev/null
8496do
8497 # Write a limited-size here document to $tmp/undefs.sed.
8498 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8499 # Speed up: don't consider the non `#undef'
8500 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8501 # Work around the forget-to-reset-the-flag bug.
8502 echo 't clr' >>$CONFIG_STATUS
8503 echo ': clr' >>$CONFIG_STATUS
8504 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8505 echo 'CEOF
8506 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8507 rm -f $tmp/in
8508 mv $tmp/out $tmp/in
8509' >>$CONFIG_STATUS
8510 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8511 rm -f conftest.undefs
8512 mv conftest.tail conftest.undefs
8513done
8514rm -f conftest.undefs
8515
8516cat >>$CONFIG_STATUS <<\_ACEOF
8517 # Let's still pretend it is `configure' which instantiates (i.e., don't
8518 # use $as_me), people would be surprised to read:
8519 # /* config.h. Generated by config.status. */
8520 if test x"$ac_file" = x-; then
8521 echo "/* Generated by configure. */" >$tmp/config.h
8522 else
8523 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8524 fi
8525 cat $tmp/in >>$tmp/config.h
8526 rm -f $tmp/in
[8756]8527 if test x"$ac_file" != x-; then
[23802]8528 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8529 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8530echo "$as_me: $ac_file is unchanged" >&6;}
[8756]8531 else
[23802]8532 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8533$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8534 X"$ac_file" : 'X\(//\)[^/]' \| \
8535 X"$ac_file" : 'X\(//\)$' \| \
8536 X"$ac_file" : 'X\(/\)' \| \
8537 . : '\(.\)' 2>/dev/null ||
8538echo X"$ac_file" |
8539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8541 /^X\(\/\/\)$/{ s//\1/; q; }
8542 /^X\(\/\).*/{ s//\1/; q; }
8543 s/.*/./; q'`
8544 { if $as_mkdir_p; then
8545 mkdir -p "$ac_dir"
8546 else
8547 as_dir="$ac_dir"
8548 as_dirs=
8549 while test ! -d "$as_dir"; do
8550 as_dirs="$as_dir $as_dirs"
8551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8553 X"$as_dir" : 'X\(//\)[^/]' \| \
8554 X"$as_dir" : 'X\(//\)$' \| \
8555 X"$as_dir" : 'X\(/\)' \| \
8556 . : '\(.\)' 2>/dev/null ||
8557echo X"$as_dir" |
8558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8560 /^X\(\/\/\)$/{ s//\1/; q; }
8561 /^X\(\/\).*/{ s//\1/; q; }
8562 s/.*/./; q'`
8563 done
8564 test ! -n "$as_dirs" || mkdir $as_dirs
8565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8566echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8567 { (exit 1); exit 1; }; }; }
8568
8569 rm -f $ac_file
8570 mv $tmp/config.h $ac_file
[687]8571 fi
[8756]8572 else
[23802]8573 cat $tmp/config.h
8574 rm -f $tmp/config.h
[687]8575 fi
[23802]8576done
8577_ACEOF
[8200]8578
[23802]8579cat >>$CONFIG_STATUS <<\_ACEOF
[687]8580
[23802]8581{ (exit 0); exit 0; }
[8756]8582_ACEOF
[23802]8583chmod +x $CONFIG_STATUS
[8756]8584ac_clean_files=$ac_clean_files_save
[562]8585
[8756]8586
8587# configure is writing to config.log, and then calls config.status.
8588# config.status does its own redirection, appending to config.log.
8589# Unfortunately, on DOS this fails, as config.log is still kept open
8590# by configure, so config.status won't be able to write to it; its
8591# output is simply discarded. So we exec the FD to /dev/null,
8592# effectively closing config.log, so it can be properly (re)opened and
8593# appended to by config.status. When coming back to configure, we
8594# need to make the FD available again.
8595if test "$no_create" != yes; then
8596 ac_cs_success=:
8597 ac_config_status_args=
8598 test "$silent" = yes &&
8599 ac_config_status_args="$ac_config_status_args --quiet"
8600 exec 5>/dev/null
8601 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8602 exec 5>>config.log
8603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8604 # would make configure fail if this is the last instruction.
[23802]8605 $ac_cs_success || { (exit 1); exit 1; }
[8756]8606fi
8607
8608#
8609# CONFIG_SUBDIRS section.
8610#
[1675]8611if test "$no_recursion" != yes; then
[562]8612
[23802]8613 # Remove --cache-file and --srcdir arguments so they do not pile up.
[1675]8614 ac_sub_configure_args=
8615 ac_prev=
[23802]8616 for ac_arg in $ac_configure_args; do
[1675]8617 if test -n "$ac_prev"; then
8618 ac_prev=
8619 continue
8620 fi
[8756]8621 case $ac_arg in
[1675]8622 -cache-file | --cache-file | --cache-fil | --cache-fi \
8623 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8624 ac_prev=cache_file ;;
8625 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
[8756]8626 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8627 | --c=*)
[1675]8628 ;;
[8756]8629 --config-cache | -C)
8630 ;;
[1675]8631 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8632 ac_prev=srcdir ;;
8633 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8634 ;;
[8756]8635 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8636 ac_prev=prefix ;;
8637 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8638 ;;
[23802]8639 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
[1675]8640 esac
8641 done
[562]8642
[8756]8643 # Always prepend --prefix to ensure using the same prefix
8644 # in subdir configurations.
[23802]8645 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
[1570]8646
[8756]8647 ac_popdir=`pwd`
8648 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8649
[1675]8650 # Do not complain, so a configure script can configure whichever
8651 # parts of a large source tree are present.
[23802]8652 test -d $srcdir/$ac_dir || continue
[1675]8653
[23802]8654 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8655echo "$as_me: configuring in $ac_dir" >&6;}
8656 { if $as_mkdir_p; then
8657 mkdir -p "$ac_dir"
8658 else
8659 as_dir="$ac_dir"
8660 as_dirs=
8661 while test ! -d "$as_dir"; do
8662 as_dirs="$as_dir $as_dirs"
8663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8665 X"$as_dir" : 'X\(//\)[^/]' \| \
8666 X"$as_dir" : 'X\(//\)$' \| \
8667 X"$as_dir" : 'X\(/\)' \| \
8668 . : '\(.\)' 2>/dev/null ||
8669echo X"$as_dir" |
8670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8672 /^X\(\/\/\)$/{ s//\1/; q; }
8673 /^X\(\/\).*/{ s//\1/; q; }
8674 s/.*/./; q'`
8675 done
8676 test ! -n "$as_dirs" || mkdir $as_dirs
8677 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8678echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8679 { (exit 1); exit 1; }; }; }
8680
[8756]8681 ac_builddir=.
[1675]8682
[23802]8683if test "$ac_dir" != .; then
8684 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8685 # A "../" for each directory in $ac_dir_suffix.
8686 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8687else
8688 ac_dir_suffix= ac_top_builddir=
8689fi
[1675]8690
[8756]8691case $srcdir in
[23802]8692 .) # No --srcdir option. We are building in place.
[8756]8693 ac_srcdir=.
[23802]8694 if test -z "$ac_top_builddir"; then
8695 ac_top_srcdir=.
8696 else
8697 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8698 fi ;;
8699 [\\/]* | ?:[\\/]* ) # Absolute path.
[8756]8700 ac_srcdir=$srcdir$ac_dir_suffix;
[23802]8701 ac_top_srcdir=$srcdir ;;
8702 *) # Relative path.
8703 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8704 ac_top_srcdir=$ac_top_builddir$srcdir ;;
[8756]8705esac
[1675]8706
[23802]8707# Do not use `cd foo && pwd` to compute absolute paths, because
8708# the directories may not exist.
8709case `pwd` in
8710.) ac_abs_builddir="$ac_dir";;
8711*)
8712 case "$ac_dir" in
8713 .) ac_abs_builddir=`pwd`;;
8714 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8715 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8716 esac;;
8717esac
8718case $ac_abs_builddir in
8719.) ac_abs_top_builddir=${ac_top_builddir}.;;
8720*)
8721 case ${ac_top_builddir}. in
8722 .) ac_abs_top_builddir=$ac_abs_builddir;;
8723 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8724 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8725 esac;;
8726esac
8727case $ac_abs_builddir in
8728.) ac_abs_srcdir=$ac_srcdir;;
8729*)
8730 case $ac_srcdir in
8731 .) ac_abs_srcdir=$ac_abs_builddir;;
8732 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8733 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8734 esac;;
8735esac
8736case $ac_abs_builddir in
8737.) ac_abs_top_srcdir=$ac_top_srcdir;;
8738*)
8739 case $ac_top_srcdir in
8740 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8741 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8742 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8743 esac;;
8744esac
[1675]8745
[8756]8746
[23802]8747 cd $ac_dir
8748
[1675]8749 # Check for guested configure; otherwise get Cygnus style configure.
[23802]8750 if test -f $ac_srcdir/configure.gnu; then
8751 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8752 elif test -f $ac_srcdir/configure; then
8753 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8754 elif test -f $ac_srcdir/configure.in; then
8755 ac_sub_configure=$ac_configure
[1675]8756 else
[23802]8757 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8758echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
[1675]8759 ac_sub_configure=
8760 fi
8761
8762 # The recursion is here.
8763 if test -n "$ac_sub_configure"; then
8764 # Make the cache file name correct relative to the subdirectory.
[8756]8765 case $cache_file in
8766 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
[23802]8767 *) # Relative path.
8768 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
[1675]8769 esac
8770
[23802]8771 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8772echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
[1675]8773 # The eval makes quoting arguments work.
[23802]8774 eval $ac_sub_configure $ac_sub_configure_args \
8775 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8776 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8777echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8778 { (exit 1); exit 1; }; }
[1675]8779 fi
8780
[23802]8781 cd $ac_popdir
[1675]8782 done
8783fi
8784
[8200]8785
8786
Note: See TracBrowser for help on using the repository browser.