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

Last change on this file since 22460 was 22058, checked in by ak19, 14 years ago

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

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