source: main/trunk/greenstone2/common-src/configure@ 21869

Last change on this file since 21869 was 21440, checked in by ak19, 14 years ago

MICO_DIR should be set to withval not enableval, this was already corrected in the toplevel configure file previously.

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