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

Last change on this file since 21409 was 21409, checked in by davidb, 13 years ago

Introduction of --enable-jdbm flag

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