source: gsdl/trunk/common-src/configure@ 16593

Last change on this file since 16593 was 16593, checked in by oranfry, 16 years ago

In configure.in [ -d module] changed to test -d module to fix loss of [ ] in configure problem

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