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

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

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

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