source: gsdl/trunk/runtime-src/configure@ 16572

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

Renaming of gs2build to build-src, gs2common to common-src etc.

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