source: gsdl/trunk/configure@ 15551

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

Introduction of COMPAT32BITFLAGS to confirugre and Makefile.in files to help compile Greenstone on a 64-bit machine

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