source: tags/gsdl-2_70u-distribution/gsdl/configure@ 11745

Last change on this file since 11745 was 11489, checked in by shaoqun, 18 years ago

set LDFLAGS=

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