source: gsdl/trunk/configure@ 18192

Last change on this file since 18192 was 16619, checked in by davidb, 16 years ago

change of [ -d .. ] to test -d ...

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