source: trunk/gsdl/configure@ 8756

Last change on this file since 8756 was 8756, checked in by jrm21, 17 years ago

fixes for autoconf v2.59, remove libstdc++ from ACLIBS since we don't
want it passed to $CC for c things like mg

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 233.5 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
5142for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
5143do
5144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5145if eval "test \"\${$as_ac_Header+set}\" = set"; then
5146 echo "$as_me:$LINENO: checking for $ac_header" >&5
5147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5148if eval "test \"\${$as_ac_Header+set}\" = set"; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150fi
5151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5153else
5154 # Is the header compilable?
5155echo "$as_me:$LINENO: checking $ac_header usability" >&5
5156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5157cat >conftest.$ac_ext <<_ACEOF
5158/* confdefs.h. */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h. */
5163$ac_includes_default
5164#include <$ac_header>
5165_ACEOF
5166rm -f conftest.$ac_objext
5167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168 (eval $ac_compile) 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try='test -z "$ac_c_werror_flag"
5176 || test ! -s conftest.err'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_header_compiler=yes
5189else
5190 echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193ac_header_compiler=no
5194fi
5195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5197echo "${ECHO_T}$ac_header_compiler" >&6
5198
5199# Is the header present?
5200echo "$as_me:$LINENO: checking $ac_header presence" >&5
5201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5202cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h. */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h. */
5208#include <$ac_header>
5209_ACEOF
5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } >/dev/null; then
5218 if test -s conftest.err; then
5219 ac_cpp_err=$ac_c_preproc_warn_flag
5220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5221 else
5222 ac_cpp_err=
5223 fi
5224else
5225 ac_cpp_err=yes
5226fi
5227if test -z "$ac_cpp_err"; then
5228 ac_header_preproc=yes
5229else
5230 echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 ac_header_preproc=no
5234fi
5235rm -f conftest.err conftest.$ac_ext
5236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5237echo "${ECHO_T}$ac_header_preproc" >&6
5238
5239# So? What about this header?
5240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5241 yes:no: )
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5246 ac_header_preproc=yes
5247 ;;
5248 no:yes:* )
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5252echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5256echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5261 (
5262 cat <<\_ASBOX
5263## ------------------------------------------ ##
5264## Report this to the AC_PACKAGE_NAME lists. ##
5265## ------------------------------------------ ##
5266_ASBOX
5267 ) |
5268 sed "s/^/$as_me: WARNING: /" >&2
5269 ;;
5270esac
5271echo "$as_me:$LINENO: checking for $ac_header" >&5
5272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5273if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276 eval "$as_ac_Header=\$ac_header_preproc"
5277fi
5278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5280
5281fi
5282if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285_ACEOF
5286
5287fi
5288
5289done
5290
5291cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297#include <stdio.h>
5298
5299_ACEOF
5300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301 $EGREP "fread" >/dev/null 2>&1; then
5302 cat >>confdefs.h <<\_ACEOF
5303#define HAVE_FREAD_DECL 1
5304_ACEOF
5305
5306fi
5307rm -f conftest*
5308
5309cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315#include <stdio.h>
5316
5317_ACEOF
5318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 $EGREP "fgetc" >/dev/null 2>&1; then
5320 cat >>confdefs.h <<\_ACEOF
5321#define HAVE_FGETC_DECL 1
5322_ACEOF
5323
5324fi
5325rm -f conftest*
5326
5327cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333#include <sys/procfs.h>
5334
5335_ACEOF
5336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "pr_brksize" >/dev/null 2>&1; then
5338 cat >>confdefs.h <<\_ACEOF
5339#define HAVE_PR_BRKSIZE 1
5340_ACEOF
5341
5342fi
5343rm -f conftest*
5344
5345
5346# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5347# for constant arguments. Useless!
5348echo "$as_me:$LINENO: checking for working alloca.h" >&5
5349echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5350if test "${ac_cv_working_alloca_h+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h. */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h. */
5359#include <alloca.h>
5360int
5361main ()
5362{
5363char *p = (char *) alloca (2 * sizeof (int));
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest.$ac_objext conftest$ac_exeext
5369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest$ac_exeext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_working_alloca_h=yes
5391else
5392 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395ac_cv_working_alloca_h=no
5396fi
5397rm -f conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399fi
5400echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5401echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5402if test $ac_cv_working_alloca_h = yes; then
5403
5404cat >>confdefs.h <<\_ACEOF
5405#define HAVE_ALLOCA_H 1
5406_ACEOF
5407
5408fi
5409
5410echo "$as_me:$LINENO: checking for alloca" >&5
5411echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5412if test "${ac_cv_func_alloca_works+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414else
5415 cat >conftest.$ac_ext <<_ACEOF
5416/* confdefs.h. */
5417_ACEOF
5418cat confdefs.h >>conftest.$ac_ext
5419cat >>conftest.$ac_ext <<_ACEOF
5420/* end confdefs.h. */
5421#ifdef __GNUC__
5422# define alloca __builtin_alloca
5423#else
5424# ifdef _MSC_VER
5425# include <malloc.h>
5426# define alloca _alloca
5427# else
5428# if HAVE_ALLOCA_H
5429# include <alloca.h>
5430# else
5431# ifdef _AIX
5432 #pragma alloca
5433# else
5434# ifndef alloca /* predefined by HP cc +Olibcalls */
5435char *alloca ();
5436# endif
5437# endif
5438# endif
5439# endif
5440#endif
5441
5442int
5443main ()
5444{
5445char *p = (char *) alloca (1);
5446 ;
5447 return 0;
5448}
5449_ACEOF
5450rm -f conftest.$ac_objext conftest$ac_exeext
5451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag"
5460 || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 (eval $ac_try) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_func_alloca_works=yes
5473else
5474 echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477ac_cv_func_alloca_works=no
5478fi
5479rm -f conftest.err conftest.$ac_objext \
5480 conftest$ac_exeext conftest.$ac_ext
5481fi
5482echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5483echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5484
5485if test $ac_cv_func_alloca_works = yes; then
5486
5487cat >>confdefs.h <<\_ACEOF
5488#define HAVE_ALLOCA 1
5489_ACEOF
5490
5491else
5492 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5493# that cause trouble. Some versions do not even contain alloca or
5494# contain a buggy version. If you still want to use their alloca,
5495# use ar to extract alloca.o from them instead of compiling alloca.c.
5496
5497ALLOCA=alloca.$ac_objext
5498
5499cat >>confdefs.h <<\_ACEOF
5500#define C_ALLOCA 1
5501_ACEOF
5502
5503
5504echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5505echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5506if test "${ac_cv_os_cray+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509 cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515#if defined(CRAY) && ! defined(CRAY2)
5516webecray
5517#else
5518wenotbecray
5519#endif
5520
5521_ACEOF
5522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523 $EGREP "webecray" >/dev/null 2>&1; then
5524 ac_cv_os_cray=yes
5525else
5526 ac_cv_os_cray=no
5527fi
5528rm -f conftest*
5529
5530fi
5531echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5532echo "${ECHO_T}$ac_cv_os_cray" >&6
5533if test $ac_cv_os_cray = yes; then
5534 for ac_func in _getb67 GETB67 getb67; do
5535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5536echo "$as_me:$LINENO: checking for $ac_func" >&5
5537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5538if eval "test \"\${$as_ac_var+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
5547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5549#define $ac_func innocuous_$ac_func
5550
5551/* System header to define __stub macros and hopefully few prototypes,
5552 which can conflict with char $ac_func (); below.
5553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554 <limits.h> exists even on freestanding compilers. */
5555
5556#ifdef __STDC__
5557# include <limits.h>
5558#else
5559# include <assert.h>
5560#endif
5561
5562#undef $ac_func
5563
5564/* Override any gcc2 internal prototype to avoid an error. */
5565#ifdef __cplusplus
5566extern "C"
5567{
5568#endif
5569/* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5571char $ac_func ();
5572/* The GNU C library defines this for functions which it implements
5573 to always fail with ENOSYS. Some functions are actually named
5574 something starting with __ and the normal name is an alias. */
5575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5576choke me
5577#else
5578char (*f) () = $ac_func;
5579#endif
5580#ifdef __cplusplus
5581}
5582#endif
5583
5584int
5585main ()
5586{
5587return f != $ac_func;
5588 ;
5589 return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext conftest$ac_exeext
5593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest$ac_exeext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 eval "$as_ac_var=yes"
5615else
5616 echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
5619eval "$as_ac_var=no"
5620fi
5621rm -f conftest.err conftest.$ac_objext \
5622 conftest$ac_exeext conftest.$ac_ext
5623fi
5624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5626if test `eval echo '${'$as_ac_var'}'` = yes; then
5627
5628cat >>confdefs.h <<_ACEOF
5629#define CRAY_STACKSEG_END $ac_func
5630_ACEOF
5631
5632 break
5633fi
5634
5635 done
5636fi
5637
5638echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5639echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5640if test "${ac_cv_c_stack_direction+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643 if test "$cross_compiling" = yes; then
5644 ac_cv_c_stack_direction=0
5645else
5646 cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
5652int
5653find_stack_direction ()
5654{
5655 static char *addr = 0;
5656 auto char dummy;
5657 if (addr == 0)
5658 {
5659 addr = &dummy;
5660 return find_stack_direction ();
5661 }
5662 else
5663 return (&dummy > addr) ? 1 : -1;
5664}
5665
5666int
5667main ()
5668{
5669 exit (find_stack_direction () < 0);
5670}
5671_ACEOF
5672rm -f conftest$ac_exeext
5673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_c_stack_direction=1
5684else
5685 echo "$as_me: program exited with status $ac_status" >&5
5686echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689( exit $ac_status )
5690ac_cv_c_stack_direction=-1
5691fi
5692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5693fi
5694fi
5695echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5696echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5697
5698cat >>confdefs.h <<_ACEOF
5699#define STACK_DIRECTION $ac_cv_c_stack_direction
5700_ACEOF
5701
5702
5703fi
5704
5705if test $ac_cv_c_compiler_gnu = yes; then
5706 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5707echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5708if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 ac_pattern="Autoconf.*'x'"
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718#include <sgtty.h>
5719Autoconf TIOCGETP
5720_ACEOF
5721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5723 ac_cv_prog_gcc_traditional=yes
5724else
5725 ac_cv_prog_gcc_traditional=no
5726fi
5727rm -f conftest*
5728
5729
5730 if test $ac_cv_prog_gcc_traditional = no; then
5731 cat >conftest.$ac_ext <<_ACEOF
5732/* confdefs.h. */
5733_ACEOF
5734cat confdefs.h >>conftest.$ac_ext
5735cat >>conftest.$ac_ext <<_ACEOF
5736/* end confdefs.h. */
5737#include <termio.h>
5738Autoconf TCGETA
5739_ACEOF
5740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5741 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5742 ac_cv_prog_gcc_traditional=yes
5743fi
5744rm -f conftest*
5745
5746 fi
5747fi
5748echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5749echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5750 if test $ac_cv_prog_gcc_traditional = yes; then
5751 CC="$CC -traditional"
5752 fi
5753fi
5754
5755echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5756echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5757if test "${ac_cv_type_signal+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
5766#include <sys/types.h>
5767#include <signal.h>
5768#ifdef signal
5769# undef signal
5770#endif
5771#ifdef __cplusplus
5772extern "C" void (*signal (int, void (*)(int)))(int);
5773#else
5774void (*signal ()) ();
5775#endif
5776
5777int
5778main ()
5779{
5780int i;
5781 ;
5782 return 0;
5783}
5784_ACEOF
5785rm -f conftest.$ac_objext
5786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -z "$ac_c_werror_flag"
5795 || test ! -s conftest.err'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; } &&
5801 { ac_try='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 ac_cv_type_signal=void
5808else
5809 echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812ac_cv_type_signal=int
5813fi
5814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5815fi
5816echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5817echo "${ECHO_T}$ac_cv_type_signal" >&6
5818
5819cat >>confdefs.h <<_ACEOF
5820#define RETSIGTYPE $ac_cv_type_signal
5821_ACEOF
5822
5823
5824
5825for ac_func in vprintf
5826do
5827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5828echo "$as_me:$LINENO: checking for $ac_func" >&5
5829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5830if eval "test \"\${$as_ac_var+set}\" = set"; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
5839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5841#define $ac_func innocuous_$ac_func
5842
5843/* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func (); below.
5845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846 <limits.h> exists even on freestanding compilers. */
5847
5848#ifdef __STDC__
5849# include <limits.h>
5850#else
5851# include <assert.h>
5852#endif
5853
5854#undef $ac_func
5855
5856/* Override any gcc2 internal prototype to avoid an error. */
5857#ifdef __cplusplus
5858extern "C"
5859{
5860#endif
5861/* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5863char $ac_func ();
5864/* The GNU C library defines this for functions which it implements
5865 to always fail with ENOSYS. Some functions are actually named
5866 something starting with __ and the normal name is an alias. */
5867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5868choke me
5869#else
5870char (*f) () = $ac_func;
5871#endif
5872#ifdef __cplusplus
5873}
5874#endif
5875
5876int
5877main ()
5878{
5879return f != $ac_func;
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884rm -f conftest.$ac_objext conftest$ac_exeext
5885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 eval "$as_ac_var=yes"
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911eval "$as_ac_var=no"
5912fi
5913rm -f conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5915fi
5916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5918if test `eval echo '${'$as_ac_var'}'` = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5921_ACEOF
5922
5923echo "$as_me:$LINENO: checking for _doprnt" >&5
5924echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5925if test "${ac_cv_func__doprnt+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5936#define _doprnt innocuous__doprnt
5937
5938/* System header to define __stub macros and hopefully few prototypes,
5939 which can conflict with char _doprnt (); below.
5940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5941 <limits.h> exists even on freestanding compilers. */
5942
5943#ifdef __STDC__
5944# include <limits.h>
5945#else
5946# include <assert.h>
5947#endif
5948
5949#undef _doprnt
5950
5951/* Override any gcc2 internal prototype to avoid an error. */
5952#ifdef __cplusplus
5953extern "C"
5954{
5955#endif
5956/* We use char because int might match the return type of a gcc2
5957 builtin and then its argument prototype would still apply. */
5958char _doprnt ();
5959/* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962#if defined (__stub__doprnt) || defined (__stub____doprnt)
5963choke me
5964#else
5965char (*f) () = _doprnt;
5966#endif
5967#ifdef __cplusplus
5968}
5969#endif
5970
5971int
5972main ()
5973{
5974return f != _doprnt;
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979rm -f conftest.$ac_objext conftest$ac_exeext
5980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag"
5989 || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_func__doprnt=yes
6002else
6003 echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006ac_cv_func__doprnt=no
6007fi
6008rm -f conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010fi
6011echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6012echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6013if test $ac_cv_func__doprnt = yes; then
6014
6015cat >>confdefs.h <<\_ACEOF
6016#define HAVE_DOPRNT 1
6017_ACEOF
6018
6019fi
6020
6021fi
6022done
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
6036do
6037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6038echo "$as_me:$LINENO: checking for $ac_func" >&5
6039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6040if eval "test \"\${$as_ac_var+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6051#define $ac_func innocuous_$ac_func
6052
6053/* System header to define __stub macros and hopefully few prototypes,
6054 which can conflict with char $ac_func (); below.
6055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6056 <limits.h> exists even on freestanding compilers. */
6057
6058#ifdef __STDC__
6059# include <limits.h>
6060#else
6061# include <assert.h>
6062#endif
6063
6064#undef $ac_func
6065
6066/* Override any gcc2 internal prototype to avoid an error. */
6067#ifdef __cplusplus
6068extern "C"
6069{
6070#endif
6071/* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6073char $ac_func ();
6074/* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6078choke me
6079#else
6080char (*f) () = $ac_func;
6081#endif
6082#ifdef __cplusplus
6083}
6084#endif
6085
6086int
6087main ()
6088{
6089return f != $ac_func;
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094rm -f conftest.$ac_objext conftest$ac_exeext
6095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 eval "$as_ac_var=yes"
6117else
6118 echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121eval "$as_ac_var=no"
6122fi
6123rm -f conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125fi
6126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6128if test `eval echo '${'$as_ac_var'}'` = yes; then
6129 cat >>confdefs.h <<_ACEOF
6130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6131_ACEOF
6132
6133fi
6134done
6135
6136
6137
6138
6139for ac_func in ftruncate strstr strcasecmp
6140do
6141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6142echo "$as_me:$LINENO: checking for $ac_func" >&5
6143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6144if eval "test \"\${$as_ac_var+set}\" = set"; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6155#define $ac_func innocuous_$ac_func
6156
6157/* System header to define __stub macros and hopefully few prototypes,
6158 which can conflict with char $ac_func (); below.
6159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160 <limits.h> exists even on freestanding compilers. */
6161
6162#ifdef __STDC__
6163# include <limits.h>
6164#else
6165# include <assert.h>
6166#endif
6167
6168#undef $ac_func
6169
6170/* Override any gcc2 internal prototype to avoid an error. */
6171#ifdef __cplusplus
6172extern "C"
6173{
6174#endif
6175/* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6177char $ac_func ();
6178/* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6182choke me
6183#else
6184char (*f) () = $ac_func;
6185#endif
6186#ifdef __cplusplus
6187}
6188#endif
6189
6190int
6191main ()
6192{
6193return f != $ac_func;
6194 ;
6195 return 0;
6196}
6197_ACEOF
6198rm -f conftest.$ac_objext conftest$ac_exeext
6199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 eval "$as_ac_var=yes"
6221else
6222 echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225eval "$as_ac_var=no"
6226fi
6227rm -f conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229fi
6230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6232if test `eval echo '${'$as_ac_var'}'` = yes; then
6233 cat >>confdefs.h <<_ACEOF
6234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6235_ACEOF
6236
6237else
6238 case $LIBOBJS in
6239 "$ac_func.$ac_objext" | \
6240 *" $ac_func.$ac_objext" | \
6241 "$ac_func.$ac_objext "* | \
6242 *" $ac_func.$ac_objext "* ) ;;
6243 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6244esac
6245
6246fi
6247done
6248
6249
6250
6251echo "$as_me:$LINENO: checking for textdomain" >&5
6252echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6253if test "${ac_cv_func_textdomain+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256 cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6264#define textdomain innocuous_textdomain
6265
6266/* System header to define __stub macros and hopefully few prototypes,
6267 which can conflict with char textdomain (); below.
6268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6269 <limits.h> exists even on freestanding compilers. */
6270
6271#ifdef __STDC__
6272# include <limits.h>
6273#else
6274# include <assert.h>
6275#endif
6276
6277#undef textdomain
6278
6279/* Override any gcc2 internal prototype to avoid an error. */
6280#ifdef __cplusplus
6281extern "C"
6282{
6283#endif
6284/* We use char because int might match the return type of a gcc2
6285 builtin and then its argument prototype would still apply. */
6286char textdomain ();
6287/* The GNU C library defines this for functions which it implements
6288 to always fail with ENOSYS. Some functions are actually named
6289 something starting with __ and the normal name is an alias. */
6290#if defined (__stub_textdomain) || defined (__stub___textdomain)
6291choke me
6292#else
6293char (*f) () = textdomain;
6294#endif
6295#ifdef __cplusplus
6296}
6297#endif
6298
6299int
6300main ()
6301{
6302return f != textdomain;
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307rm -f conftest.$ac_objext conftest$ac_exeext
6308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6309 (eval $ac_link) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest$ac_exeext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_cv_func_textdomain=yes
6330else
6331 echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334ac_cv_func_textdomain=no
6335fi
6336rm -f conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338fi
6339echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6340echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6341if test $ac_cv_func_textdomain = yes; then
6342 cat >>confdefs.h <<\_ACEOF
6343#define ENABLE_NLS 1
6344_ACEOF
6345
6346fi
6347
6348
6349# *** Custom checking (based on GNU tar configure.in) ***
6350# ---------------------------------------------------------------------------
6351echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
6352echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
6353if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 case $LIBOBJS in
6357 "gmalloc.$ac_objext" | \
6358 *" gmalloc.$ac_objext" | \
6359 "gmalloc.$ac_objext "* | \
6360 *" gmalloc.$ac_objext "* ) ;;
6361 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
6362esac
6363
6364 cat >>confdefs.h <<\_ACEOF
6365#define HAVE_VALLOC 1
6366_ACEOF
6367
6368else
6369 echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6
6371
6372for ac_func in valloc
6373do
6374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6375echo "$as_me:$LINENO: checking for $ac_func" >&5
6376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6377if eval "test \"\${$as_ac_var+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 cat >conftest.$ac_ext <<_ACEOF
6381/* confdefs.h. */
6382_ACEOF
6383cat confdefs.h >>conftest.$ac_ext
6384cat >>conftest.$ac_ext <<_ACEOF
6385/* end confdefs.h. */
6386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6388#define $ac_func innocuous_$ac_func
6389
6390/* System header to define __stub macros and hopefully few prototypes,
6391 which can conflict with char $ac_func (); below.
6392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 <limits.h> exists even on freestanding compilers. */
6394
6395#ifdef __STDC__
6396# include <limits.h>
6397#else
6398# include <assert.h>
6399#endif
6400
6401#undef $ac_func
6402
6403/* Override any gcc2 internal prototype to avoid an error. */
6404#ifdef __cplusplus
6405extern "C"
6406{
6407#endif
6408/* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6410char $ac_func ();
6411/* The GNU C library defines this for functions which it implements
6412 to always fail with ENOSYS. Some functions are actually named
6413 something starting with __ and the normal name is an alias. */
6414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6415choke me
6416#else
6417char (*f) () = $ac_func;
6418#endif
6419#ifdef __cplusplus
6420}
6421#endif
6422
6423int
6424main ()
6425{
6426return f != $ac_func;
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext conftest$ac_exeext
6432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 eval "$as_ac_var=yes"
6454else
6455 echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458eval "$as_ac_var=no"
6459fi
6460rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6465if test `eval echo '${'$as_ac_var'}'` = yes; then
6466 cat >>confdefs.h <<_ACEOF
6467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6468_ACEOF
6469
6470fi
6471done
6472
6473fi
6474
6475# we cannot generate static libraries under Darwin
6476echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
6477echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
6478if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480echo "${ECHO_T}yes" >&6
6481 STATIC=""
6482else
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
6485 STATIC="-static "
6486fi
6487
6488
6489echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6490echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6491
6492# Check whether --with-dmalloc or --without-dmalloc was given.
6493if test "${with_dmalloc+set}" = set; then
6494 withval="$with_dmalloc"
6495 if test "$withval" = yes; then
6496 echo "$as_me:$LINENO: result: yes" >&5
6497echo "${ECHO_T}yes" >&6
6498 cat >>confdefs.h <<\_ACEOF
6499#define WITH_DMALLOC 1
6500_ACEOF
6501
6502 LIBS="$LIBS -ldmalloc"
6503 LDFLAGS="$LDFLAGS -g"
6504else
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507fi
6508else
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511fi;
6512
6513echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
6514echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
6515
6516# Check whether --with-regex or --without-regex was given.
6517if test "${with_regex+set}" = set; then
6518 withval="$with_regex"
6519 if test "$withval" = yes; then
6520 ac_with_regex=1
6521 echo "$as_me:$LINENO: result: regex" >&5
6522echo "${ECHO_T}regex" >&6
6523 cat >>confdefs.h <<\_ACEOF
6524#define WITH_REGEX 1
6525_ACEOF
6526
6527 case $LIBOBJS in
6528 "regex.$ac_objext" | \
6529 *" regex.$ac_objext" | \
6530 "regex.$ac_objext "* | \
6531 *" regex.$ac_objext "* ) ;;
6532 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
6533esac
6534
6535fi
6536fi;
6537if test -z "$ac_with_regex"; then
6538 echo "$as_me:$LINENO: result: rx" >&5
6539echo "${ECHO_T}rx" >&6
6540 echo "$as_me:$LINENO: checking for re_rx_search" >&5
6541echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
6542if test "${ac_cv_func_re_rx_search+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
6552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6553#define re_rx_search innocuous_re_rx_search
6554
6555/* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char re_rx_search (); below.
6557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6558 <limits.h> exists even on freestanding compilers. */
6559
6560#ifdef __STDC__
6561# include <limits.h>
6562#else
6563# include <assert.h>
6564#endif
6565
6566#undef re_rx_search
6567
6568/* Override any gcc2 internal prototype to avoid an error. */
6569#ifdef __cplusplus
6570extern "C"
6571{
6572#endif
6573/* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575char re_rx_search ();
6576/* The GNU C library defines this for functions which it implements
6577 to always fail with ENOSYS. Some functions are actually named
6578 something starting with __ and the normal name is an alias. */
6579#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
6580choke me
6581#else
6582char (*f) () = re_rx_search;
6583#endif
6584#ifdef __cplusplus
6585}
6586#endif
6587
6588int
6589main ()
6590{
6591return f != re_rx_search;
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext conftest$ac_exeext
6597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_func_re_rx_search=yes
6619else
6620 echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623ac_cv_func_re_rx_search=no
6624fi
6625rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627fi
6628echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
6629echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
6630if test $ac_cv_func_re_rx_search = yes; then
6631 :
6632else
6633 case $LIBOBJS in
6634 "rx.$ac_objext" | \
6635 *" rx.$ac_objext" | \
6636 "rx.$ac_objext "* | \
6637 *" rx.$ac_objext "* ) ;;
6638 *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
6639esac
6640
6641fi
6642
6643fi
6644
6645
6646# ---------------------------------------------------------------------------
6647if test "$ac_cv_func_alloca" = 'no'; then
6648 case $LIBOBJS in
6649 "xmalloc.$ac_objext" | \
6650 *" xmalloc.$ac_objext" | \
6651 "xmalloc.$ac_objext "* | \
6652 *" xmalloc.$ac_objext "* ) ;;
6653 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
6654esac
6655
6656 case $LIBOBJS in
6657 "error.$ac_objext" | \
6658 *" error.$ac_objext" | \
6659 "error.$ac_objext "* | \
6660 *" error.$ac_objext "* ) ;;
6661 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
6662esac
6663
6664fi
6665
6666
6667# ---------------------------------------------------------------------------
6668
6669ac_ext=cc
6670ac_cpp='$CXXCPP $CPPFLAGS'
6671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6674
6675
6676
6677echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
6678echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
6679if test ! -z "$gdbmdir" ; then
6680 # look in given directory for header file
6681 if test -r $gdbmdir/include/gdbm.h ; then
6682 GDBM_INCLUDE="-I$gdbmdir/include" ;
6683 elif test -r $gdbmdir/gdbm.h ; then
6684 GDBM_INCLUDE="-I$gdbmdir" ;
6685 fi
6686
6687 # look in given directory for library
6688 if test -r $gdbmdir/libgdbm.a ; then
6689 GDBM_LIBPATH="-L$gdbmdir" ;
6690 elif test -r $gdbmdir/lib/libgdbm.a ; then
6691 GDBM_LIBPATH="-L$gdbmdir/lib" ;
6692 elif test -r $gdbmdir/.libs/libgdbm.a ; then
6693 GDBM_LIBPATH="-L$gdbmdir/.libs" ;
6694 fi
6695
6696 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
6697 echo "$as_me:$LINENO: result: $gdbmdir" >&5
6698echo "${ECHO_T}$gdbmdir" >&6 ;
6699 else
6700 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
6701echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
6702 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
6703echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
6704 fi
6705fi
6706
6707# look in default path and in /usr/local
6708if test -z "$GDBM_INCLUDE" ; then
6709 # try in system directory
6710
6711cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
6717#include <gdbm.h>
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727rm -f conftest.$ac_objext
6728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -z "$ac_cxx_werror_flag"
6737 || test ! -s conftest.err'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 success=yes
6750else
6751 echo "$as_me: failed program was:" >&5
6752sed 's/^/| /' conftest.$ac_ext >&5
6753
6754success=no
6755
6756fi
6757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758
6759 if test $success = "no"; then
6760# last chance - look in /usr/local (eg FreeBSD)
6761 GDBM_LIBPATH=-L/usr/local/lib
6762 GDBM_INCLUDE=-I/usr/local/include
6763 ac_save_CXXFLAGS="$CXXFLAGS"
6764 ac_save_LIBS="$LIBS"
6765 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
6766 LIBS="$LIBS -L/usr/local/lib -lgdbm"
6767 cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773#include <gdbm.h>
6774#include <stdio.h>
6775
6776int
6777main ()
6778{
6779printf("%s",gdbm_version);
6780 ;
6781 return 0;
6782}
6783_ACEOF
6784rm -f conftest.$ac_objext conftest$ac_exeext
6785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786 (eval $ac_link) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_cxx_werror_flag"
6794 || test ! -s conftest.err'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; } &&
6800 { ac_try='test -s conftest$ac_exeext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 success=/usr/local
6807else
6808 echo "$as_me: failed program was:" >&5
6809sed 's/^/| /' conftest.$ac_ext >&5
6810
6811success=no
6812
6813fi
6814rm -f conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 CXXFLAGS=$ac_save_CXXFLAGS
6817 LIBS=$ac_save_LIBS
6818 fi
6819
6820 echo "$as_me:$LINENO: result: $success" >&5
6821echo "${ECHO_T}$success" >&6
6822 if test $success = "no"; then
6823 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
6824echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
6825 { (exit 1); exit 1; }; }
6826 fi
6827fi
6828cat >>confdefs.h <<\_ACEOF
6829#define HAVE_LIBGDBM 1
6830_ACEOF
6831
6832
6833
6834
6835
6836echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
6837echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
6838success="no"
6839pl_path="$PATH"
6840IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
6841for pl_dir in $pl_path; do
6842 test -z "$pl_dir" && pl_dir=.
6843 if test -x $pl_dir/perl; then
6844 success="yes"
6845 break
6846 fi
6847done
6848IFS="$pl_save_ifs"
6849
6850if test $success = "yes"; then
6851try=`perl configtest.pl` || try="0"
6852try=`expr $try \> 5.000`
6853if test $try = "1"; then
6854echo "$as_me:$LINENO: result: \"yes\"" >&5
6855echo "${ECHO_T}\"yes\"" >&6
6856else
6857success="no"
6858fi
6859fi
6860
6861if test $success = "no"; then
6862echo "$as_me:$LINENO: result: \"no\"" >&5
6863echo "${ECHO_T}\"no\"" >&6
6864{ { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
6865echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
6866 { (exit 1); exit 1; }; }
6867fi
6868
6869success=no
6870echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
6871echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
6872
6873cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
6879#include <vector>
6880
6881int
6882main ()
6883{
6884
6885 ;
6886 return 0;
6887}
6888_ACEOF
6889rm -f conftest.$ac_objext
6890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -z "$ac_cxx_werror_flag"
6899 || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 success=yes
6912else
6913 echo "$as_me: failed program was:" >&5
6914sed 's/^/| /' conftest.$ac_ext >&5
6915
6916fi
6917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918
6919if test $success = "no"; then
6920cat >conftest.$ac_ext <<_ACEOF
6921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
6926#include <vector.h>
6927
6928int
6929main ()
6930{
6931
6932 ;
6933 return 0;
6934}
6935_ACEOF
6936rm -f conftest.$ac_objext
6937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_cxx_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 success="yes"
6959else
6960 echo "$as_me: failed program was:" >&5
6961sed 's/^/| /' conftest.$ac_ext >&5
6962
6963fi
6964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6965fi
6966
6967if test $success = "no"; then
6968cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974#include <ospace\\std\\vector>
6975
6976int
6977main ()
6978{
6979
6980 ;
6981 return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_cxx_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 success="yes"
7007else
7008 echo "$as_me: failed program was:" >&5
7009sed 's/^/| /' conftest.$ac_ext >&5
7010
7011fi
7012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7013fi
7014
7015if test $success = yes; then
7016echo "$as_me:$LINENO: result: \"no\"" >&5
7017echo "${ECHO_T}\"no\"" >&6
7018else
7019echo "$as_me:$LINENO: result: \"yes\"" >&5
7020echo "${ECHO_T}\"yes\"" >&6
7021{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
7022echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
7023 { (exit 1); exit 1; }; }
7024fi
7025
7026gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
7027# check for running bash under cygwin
7028 if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
7029 then
7030 gsdlos=windows
7031 fi
7032
7033
7034# ---------------------------------------------------------------------------
7035if test "$ac_cv_func_alloca" = 'no'; then
7036 case $LIBOBJS in
7037 "xmalloc.o.$ac_objext" | \
7038 *" xmalloc.o.$ac_objext" | \
7039 "xmalloc.o.$ac_objext "* | \
7040 *" xmalloc.o.$ac_objext "* ) ;;
7041 *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
7042esac
7043
7044 case $LIBOBJS in
7045 "error.$ac_objext" | \
7046 *" error.$ac_objext" | \
7047 "error.$ac_objext "* | \
7048 *" error.$ac_objext "* ) ;;
7049 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
7050esac
7051
7052fi
7053
7054# ---------------------------------------------------------------------------
7055
7056moduleDirs=""
7057MODULEDIRS=""
7058for x in `find modules -mindepth 1 -maxdepth 2`; do
7059 if test -d "$x"; then
7060 d="$x/Makefile.in"
7061 if test -e "$d"; then
7062 moduleDirs="$moduleDirs $x/Makefile"
7063 MODULEDIRS="$MODULEDIRS $x"
7064 fi
7065 fi
7066done
7067echo "Making$moduleDirs in modules directory"
7068
7069
7070# ---------------------------------------------------------------------------
7071
7072
7073subdirs="$subdirs packages"
7074
7075
7076# the list of folders in the src folder
7077srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
7078 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
7079 src/oaiservr/Makefile src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
7080
7081 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"
7082cat >confcache <<\_ACEOF
7083# This file is a shell script that caches the results of configure
7084# tests run on this system so they can be shared between configure
7085# scripts and configure runs, see configure's option --config-cache.
7086# It is not useful on other systems. If it contains results you don't
7087# want to keep, you may remove or edit it.
7088#
7089# config.status only pays attention to the cache file if you give it
7090# the --recheck option to rerun configure.
7091#
7092# `ac_cv_env_foo' variables (set or unset) will be overridden when
7093# loading this file, other *unset* `ac_cv_foo' will be assigned the
7094# following values.
7095
7096_ACEOF
7097
7098# The following way of writing the cache mishandles newlines in values,
7099# but we know of no workaround that is simple, portable, and efficient.
7100# So, don't put newlines in cache variables' values.
7101# Ultrix sh set writes to stderr and can't be redirected directly,
7102# and sets the high bit in the cache file unless we assign to the vars.
7103{
7104 (set) 2>&1 |
7105 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7106 *ac_space=\ *)
7107 # `set' does not quote correctly, so add quotes (double-quote
7108 # substitution turns \\\\ into \\, and sed turns \\ into \).
7109 sed -n \
7110 "s/'/'\\\\''/g;
7111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7112 ;;
7113 *)
7114 # `set' quotes correctly as required by POSIX, so do not add quotes.
7115 sed -n \
7116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7117 ;;
7118 esac;
7119} |
7120 sed '
7121 t clear
7122 : clear
7123 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7124 t end
7125 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7126 : end' >>confcache
7127if diff $cache_file confcache >/dev/null 2>&1; then :; else
7128 if test -w $cache_file; then
7129 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7130 cat confcache >$cache_file
7131 else
7132 echo "not updating unwritable cache $cache_file"
7133 fi
7134fi
7135rm -f confcache
7136
7137test "x$prefix" = xNONE && prefix=$ac_default_prefix
7138# Let make expand exec_prefix.
7139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7140
7141# VPATH may cause trouble with some makes, so we remove $(srcdir),
7142# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7143# trailing colons and then remove the whole line if VPATH becomes empty
7144# (actually we leave an empty line to preserve line numbers).
7145if test "x$srcdir" = x.; then
7146 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7147s/:*\$(srcdir):*/:/;
7148s/:*\${srcdir}:*/:/;
7149s/:*@srcdir@:*/:/;
7150s/^\([^=]*=[ ]*\):*/\1/;
7151s/:*$//;
7152s/^[^=]*=[ ]*$//;
7153}'
7154fi
7155
7156DEFS=-DHAVE_CONFIG_H
7157
7158ac_libobjs=
7159ac_ltlibobjs=
7160for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7161 # 1. Remove the extension, and $U if already installed.
7162 ac_i=`echo "$ac_i" |
7163 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7164 # 2. Add them.
7165 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7166 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7167done
7168LIBOBJS=$ac_libobjs
7169
7170LTLIBOBJS=$ac_ltlibobjs
7171
7172
7173
7174: ${CONFIG_STATUS=./config.status}
7175ac_clean_files_save=$ac_clean_files
7176ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7177{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7178echo "$as_me: creating $CONFIG_STATUS" >&6;}
7179cat >$CONFIG_STATUS <<_ACEOF
7180#! $SHELL
7181# Generated by $as_me.
7182# Run this file to recreate the current configuration.
7183# Compiler output produced by configure, useful for debugging
7184# configure, is in config.log if it exists.
7185
7186debug=false
7187ac_cs_recheck=false
7188ac_cs_silent=false
7189SHELL=\${CONFIG_SHELL-$SHELL}
7190_ACEOF
7191
7192cat >>$CONFIG_STATUS <<\_ACEOF
7193## --------------------- ##
7194## M4sh Initialization. ##
7195## --------------------- ##
7196
7197# Be Bourne compatible
7198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7199 emulate sh
7200 NULLCMD=:
7201 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7202 # is contrary to our usage. Disable this feature.
7203 alias -g '${1+"$@"}'='"$@"'
7204elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7205 set -o posix
7206fi
7207DUALCASE=1; export DUALCASE # for MKS sh
7208
7209# Support unset when possible.
7210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7211 as_unset=unset
7212else
7213 as_unset=false
7214fi
7215
7216
7217# Work around bugs in pre-3.0 UWIN ksh.
7218$as_unset ENV MAIL MAILPATH
7219PS1='$ '
7220PS2='> '
7221PS4='+ '
7222
7223# NLS nuisances.
7224for as_var in \
7225 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7226 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7227 LC_TELEPHONE LC_TIME
7228do
7229 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7230 eval $as_var=C; export $as_var
7231 else
7232 $as_unset $as_var
7233 fi
7234done
7235
7236# Required to use basename.
7237if expr a : '\(a\)' >/dev/null 2>&1; then
7238 as_expr=expr
7239else
7240 as_expr=false
7241fi
7242
7243if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7244 as_basename=basename
7245else
7246 as_basename=false
7247fi
7248
7249
7250# Name of the executable.
7251as_me=`$as_basename "$0" ||
7252$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7253 X"$0" : 'X\(//\)$' \| \
7254 X"$0" : 'X\(/\)$' \| \
7255 . : '\(.\)' 2>/dev/null ||
7256echo X/"$0" |
7257 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7258 /^X\/\(\/\/\)$/{ s//\1/; q; }
7259 /^X\/\(\/\).*/{ s//\1/; q; }
7260 s/.*/./; q'`
7261
7262
7263# PATH needs CR, and LINENO needs CR and PATH.
7264# Avoid depending upon Character Ranges.
7265as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7266as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7267as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7268as_cr_digits='0123456789'
7269as_cr_alnum=$as_cr_Letters$as_cr_digits
7270
7271# The user is always right.
7272if test "${PATH_SEPARATOR+set}" != set; then
7273 echo "#! /bin/sh" >conf$$.sh
7274 echo "exit 0" >>conf$$.sh
7275 chmod +x conf$$.sh
7276 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7277 PATH_SEPARATOR=';'
7278 else
7279 PATH_SEPARATOR=:
7280 fi
7281 rm -f conf$$.sh
7282fi
7283
7284
7285 as_lineno_1=$LINENO
7286 as_lineno_2=$LINENO
7287 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7288 test "x$as_lineno_1" != "x$as_lineno_2" &&
7289 test "x$as_lineno_3" = "x$as_lineno_2" || {
7290 # Find who we are. Look in the path if we contain no path at all
7291 # relative or not.
7292 case $0 in
7293 *[\\/]* ) as_myself=$0 ;;
7294 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7300done
7301
7302 ;;
7303 esac
7304 # We did not find ourselves, most probably we were run as `sh COMMAND'
7305 # in which case we are not to be found in the path.
7306 if test "x$as_myself" = x; then
7307 as_myself=$0
7308 fi
7309 if test ! -f "$as_myself"; then
7310 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7311echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7312 { (exit 1); exit 1; }; }
7313 fi
7314 case $CONFIG_SHELL in
7315 '')
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for as_base in sh bash ksh sh5; do
7322 case $as_dir in
7323 /*)
7324 if ("$as_dir/$as_base" -c '
7325 as_lineno_1=$LINENO
7326 as_lineno_2=$LINENO
7327 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7328 test "x$as_lineno_1" != "x$as_lineno_2" &&
7329 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7330 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7331 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7332 CONFIG_SHELL=$as_dir/$as_base
7333 export CONFIG_SHELL
7334 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7335 fi;;
7336 esac
7337 done
7338done
7339;;
7340 esac
7341
7342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7343 # uniformly replaced by the line number. The first 'sed' inserts a
7344 # line-number line before each line; the second 'sed' does the real
7345 # work. The second script uses 'N' to pair each line-number line
7346 # with the numbered line, and appends trailing '-' during
7347 # substitution so that $LINENO is not a special case at line end.
7348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7349 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7350 sed '=' <$as_myself |
7351 sed '
7352 N
7353 s,$,-,
7354 : loop
7355 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7356 t loop
7357 s,-$,,
7358 s,^['$as_cr_digits']*\n,,
7359 ' >$as_me.lineno &&
7360 chmod +x $as_me.lineno ||
7361 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7362echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7363 { (exit 1); exit 1; }; }
7364
7365 # Don't try to exec as it changes $[0], causing all sort of problems
7366 # (the dirname of $[0] is not the place where we might find the
7367 # original and so on. Autoconf is especially sensible to this).
7368 . ./$as_me.lineno
7369 # Exit status is that of the last command.
7370 exit
7371}
7372
7373
7374case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7375 *c*,-n*) ECHO_N= ECHO_C='
7376' ECHO_T=' ' ;;
7377 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7378 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7379esac
7380
7381if expr a : '\(a\)' >/dev/null 2>&1; then
7382 as_expr=expr
7383else
7384 as_expr=false
7385fi
7386
7387rm -f conf$$ conf$$.exe conf$$.file
7388echo >conf$$.file
7389if ln -s conf$$.file conf$$ 2>/dev/null; then
7390 # We could just check for DJGPP; but this test a) works b) is more generic
7391 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7392 if test -f conf$$.exe; then
7393 # Don't use ln at all; we don't have any links
7394 as_ln_s='cp -p'
7395 else
7396 as_ln_s='ln -s'
7397 fi
7398elif ln conf$$.file conf$$ 2>/dev/null; then
7399 as_ln_s=ln
7400else
7401 as_ln_s='cp -p'
7402fi
7403rm -f conf$$ conf$$.exe conf$$.file
7404
7405if mkdir -p . 2>/dev/null; then
7406 as_mkdir_p=:
7407else
7408 test -d ./-p && rmdir ./-p
7409 as_mkdir_p=false
7410fi
7411
7412as_executable_p="test -f"
7413
7414# Sed expression to map a string onto a valid CPP name.
7415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7416
7417# Sed expression to map a string onto a valid variable name.
7418as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7419
7420
7421# IFS
7422# We need space, tab and new line, in precisely that order.
7423as_nl='
7424'
7425IFS=" $as_nl"
7426
7427# CDPATH.
7428$as_unset CDPATH
7429
7430exec 6>&1
7431
7432# Open the log real soon, to keep \$[0] and so on meaningful, and to
7433# report actual input values of CONFIG_FILES etc. instead of their
7434# values after options handling. Logging --version etc. is OK.
7435exec 5>>config.log
7436{
7437 echo
7438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7439## Running $as_me. ##
7440_ASBOX
7441} >&5
7442cat >&5 <<_CSEOF
7443
7444This file was extended by $as_me, which was
7445generated by GNU Autoconf 2.59. Invocation command line was
7446
7447 CONFIG_FILES = $CONFIG_FILES
7448 CONFIG_HEADERS = $CONFIG_HEADERS
7449 CONFIG_LINKS = $CONFIG_LINKS
7450 CONFIG_COMMANDS = $CONFIG_COMMANDS
7451 $ $0 $@
7452
7453_CSEOF
7454echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7455echo >&5
7456_ACEOF
7457
7458# Files that config.status was made for.
7459if test -n "$ac_config_files"; then
7460 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7461fi
7462
7463if test -n "$ac_config_headers"; then
7464 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7465fi
7466
7467if test -n "$ac_config_links"; then
7468 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7469fi
7470
7471if test -n "$ac_config_commands"; then
7472 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7473fi
7474
7475cat >>$CONFIG_STATUS <<\_ACEOF
7476
7477ac_cs_usage="\
7478\`$as_me' instantiates files from templates according to the
7479current configuration.
7480
7481Usage: $0 [OPTIONS] [FILE]...
7482
7483 -h, --help print this help, then exit
7484 -V, --version print version number, then exit
7485 -q, --quiet do not print progress messages
7486 -d, --debug don't remove temporary files
7487 --recheck update $as_me by reconfiguring in the same conditions
7488 --file=FILE[:TEMPLATE]
7489 instantiate the configuration file FILE
7490 --header=FILE[:TEMPLATE]
7491 instantiate the configuration header FILE
7492
7493Configuration files:
7494$config_files
7495
7496Configuration headers:
7497$config_headers
7498
7499Report bugs to <bug-autoconf@gnu.org>."
7500_ACEOF
7501
7502cat >>$CONFIG_STATUS <<_ACEOF
7503ac_cs_version="\\
7504config.status
7505configured by $0, generated by GNU Autoconf 2.59,
7506 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7507
7508Copyright (C) 2003 Free Software Foundation, Inc.
7509This config.status script is free software; the Free Software Foundation
7510gives unlimited permission to copy, distribute and modify it."
7511srcdir=$srcdir
7512INSTALL="$INSTALL"
7513_ACEOF
7514
7515cat >>$CONFIG_STATUS <<\_ACEOF
7516# If no file are specified by the user, then we need to provide default
7517# value. By we need to know if files were specified by the user.
7518ac_need_defaults=:
7519while test $# != 0
7520do
7521 case $1 in
7522 --*=*)
7523 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7524 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7525 ac_shift=:
7526 ;;
7527 -*)
7528 ac_option=$1
7529 ac_optarg=$2
7530 ac_shift=shift
7531 ;;
7532 *) # This is not an option, so the user has probably given explicit
7533 # arguments.
7534 ac_option=$1
7535 ac_need_defaults=false;;
7536 esac
7537
7538 case $ac_option in
7539 # Handling of the options.
7540_ACEOF
7541cat >>$CONFIG_STATUS <<\_ACEOF
7542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7543 ac_cs_recheck=: ;;
7544 --version | --vers* | -V )
7545 echo "$ac_cs_version"; exit 0 ;;
7546 --he | --h)
7547 # Conflict between --help and --header
7548 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7549Try \`$0 --help' for more information." >&5
7550echo "$as_me: error: ambiguous option: $1
7551Try \`$0 --help' for more information." >&2;}
7552 { (exit 1); exit 1; }; };;
7553 --help | --hel | -h )
7554 echo "$ac_cs_usage"; exit 0 ;;
7555 --debug | --d* | -d )
7556 debug=: ;;
7557 --file | --fil | --fi | --f )
7558 $ac_shift
7559 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7560 ac_need_defaults=false;;
7561 --header | --heade | --head | --hea )
7562 $ac_shift
7563 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7564 ac_need_defaults=false;;
7565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7567 ac_cs_silent=: ;;
7568
7569 # This is an error.
7570 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7571Try \`$0 --help' for more information." >&5
7572echo "$as_me: error: unrecognized option: $1
7573Try \`$0 --help' for more information." >&2;}
7574 { (exit 1); exit 1; }; } ;;
7575
7576 *) ac_config_targets="$ac_config_targets $1" ;;
7577
7578 esac
7579 shift
7580done
7581
7582ac_configure_extra_args=
7583
7584if $ac_cs_silent; then
7585 exec 6>/dev/null
7586 ac_configure_extra_args="$ac_configure_extra_args --silent"
7587fi
7588
7589_ACEOF
7590cat >>$CONFIG_STATUS <<_ACEOF
7591if \$ac_cs_recheck; then
7592 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7593 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7594fi
7595
7596_ACEOF
7597
7598
7599
7600
7601
7602cat >>$CONFIG_STATUS <<\_ACEOF
7603for ac_config_target in $ac_config_targets
7604do
7605 case "$ac_config_target" in
7606 # Handling of arguments.
7607 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
7608 "packages/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
7609 "packages/mg/src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
7610 "packages/mg/src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
7611 "packages/mg/src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
7612 "packages/mg/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
7613 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7614 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7615 "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
7616 "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
7617 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7619echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7620 { (exit 1); exit 1; }; };;
7621 esac
7622done
7623
7624# If the user did not use the arguments to specify the items to instantiate,
7625# then the envvar interface is used. Set only those that are not.
7626# We use the long form for the default assignment because of an extremely
7627# bizarre bug on SunOS 4.1.3.
7628if $ac_need_defaults; then
7629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7631fi
7632
7633# Have a temporary directory for convenience. Make it in the build tree
7634# simply because there is no reason to put it here, and in addition,
7635# creating and moving files from /tmp can sometimes cause problems.
7636# Create a temporary directory, and hook for its removal unless debugging.
7637$debug ||
7638{
7639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7640 trap '{ (exit 1); exit 1; }' 1 2 13 15
7641}
7642
7643# Create a (secure) tmp directory for tmp files.
7644
7645{
7646 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7647 test -n "$tmp" && test -d "$tmp"
7648} ||
7649{
7650 tmp=./confstat$$-$RANDOM
7651 (umask 077 && mkdir $tmp)
7652} ||
7653{
7654 echo "$me: cannot create a temporary directory in ." >&2
7655 { (exit 1); exit 1; }
7656}
7657
7658_ACEOF
7659
7660cat >>$CONFIG_STATUS <<_ACEOF
7661
7662#
7663# CONFIG_FILES section.
7664#
7665
7666# No need to generate the scripts if there are no CONFIG_FILES.
7667# This happens for instance when ./config.status config.h
7668if test -n "\$CONFIG_FILES"; then
7669 # Protect against being on the right side of a sed subst in config.status.
7670 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7671 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7672s,@SHELL@,$SHELL,;t t
7673s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7674s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7675s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7676s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7677s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7678s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7679s,@exec_prefix@,$exec_prefix,;t t
7680s,@prefix@,$prefix,;t t
7681s,@program_transform_name@,$program_transform_name,;t t
7682s,@bindir@,$bindir,;t t
7683s,@sbindir@,$sbindir,;t t
7684s,@libexecdir@,$libexecdir,;t t
7685s,@datadir@,$datadir,;t t
7686s,@sysconfdir@,$sysconfdir,;t t
7687s,@sharedstatedir@,$sharedstatedir,;t t
7688s,@localstatedir@,$localstatedir,;t t
7689s,@libdir@,$libdir,;t t
7690s,@includedir@,$includedir,;t t
7691s,@oldincludedir@,$oldincludedir,;t t
7692s,@infodir@,$infodir,;t t
7693s,@mandir@,$mandir,;t t
7694s,@build_alias@,$build_alias,;t t
7695s,@host_alias@,$host_alias,;t t
7696s,@target_alias@,$target_alias,;t t
7697s,@DEFS@,$DEFS,;t t
7698s,@ECHO_C@,$ECHO_C,;t t
7699s,@ECHO_N@,$ECHO_N,;t t
7700s,@ECHO_T@,$ECHO_T,;t t
7701s,@LIBS@,$LIBS,;t t
7702s,@PACKAGE@,$PACKAGE,;t t
7703s,@VERSION@,$VERSION,;t t
7704s,@USE_FASTCGI@,$USE_FASTCGI,;t t
7705s,@USE_LANGACTION@,$USE_LANGACTION,;t t
7706s,@USE_CORBA@,$USE_CORBA,;t t
7707s,@MICO_DIR@,$MICO_DIR,;t t
7708s,@USE_Z3950@,$USE_Z3950,;t t
7709s,@CFLAGS@,$CFLAGS,;t t
7710s,@CC@,$CC,;t t
7711s,@LDFLAGS@,$LDFLAGS,;t t
7712s,@CPPFLAGS@,$CPPFLAGS,;t t
7713s,@ac_ct_CC@,$ac_ct_CC,;t t
7714s,@EXEEXT@,$EXEEXT,;t t
7715s,@OBJEXT@,$OBJEXT,;t t
7716s,@CXX@,$CXX,;t t
7717s,@CXXFLAGS@,$CXXFLAGS,;t t
7718s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7719s,@AWK@,$AWK,;t t
7720s,@YACC@,$YACC,;t t
7721s,@build@,$build,;t t
7722s,@build_cpu@,$build_cpu,;t t
7723s,@build_vendor@,$build_vendor,;t t
7724s,@build_os@,$build_os,;t t
7725s,@host@,$host,;t t
7726s,@host_cpu@,$host_cpu,;t t
7727s,@host_vendor@,$host_vendor,;t t
7728s,@host_os@,$host_os,;t t
7729s,@target@,$target,;t t
7730s,@target_cpu@,$target_cpu,;t t
7731s,@target_vendor@,$target_vendor,;t t
7732s,@target_os@,$target_os,;t t
7733s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7734s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7735s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7736s,@LN_S@,$LN_S,;t t
7737s,@SET_MAKE@,$SET_MAKE,;t t
7738s,@RANLIB@,$RANLIB,;t t
7739s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7740s,@MICO_VER@,$MICO_VER,;t t
7741s,@CPP@,$CPP,;t t
7742s,@EGREP@,$EGREP,;t t
7743s,@U@,$U,;t t
7744s,@ANSI2KNR@,$ANSI2KNR,;t t
7745s,@ALLOCA@,$ALLOCA,;t t
7746s,@LIBOBJS@,$LIBOBJS,;t t
7747s,@STATIC@,$STATIC,;t t
7748s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
7749s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
7750s,@gsdlos@,$gsdlos,;t t
7751s,@MODULEDIRS@,$MODULEDIRS,;t t
7752s,@subdirs@,$subdirs,;t t
7753s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7754CEOF
7755
7756_ACEOF
7757
7758 cat >>$CONFIG_STATUS <<\_ACEOF
7759 # Split the substitutions into bite-sized pieces for seds with
7760 # small command number limits, like on Digital OSF/1 and HP-UX.
7761 ac_max_sed_lines=48
7762 ac_sed_frag=1 # Number of current file.
7763 ac_beg=1 # First line for current file.
7764 ac_end=$ac_max_sed_lines # Line after last line for current file.
7765 ac_more_lines=:
7766 ac_sed_cmds=
7767 while $ac_more_lines; do
7768 if test $ac_beg -gt 1; then
7769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7770 else
7771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7772 fi
7773 if test ! -s $tmp/subs.frag; then
7774 ac_more_lines=false
7775 else
7776 # The purpose of the label and of the branching condition is to
7777 # speed up the sed processing (if there are no `@' at all, there
7778 # is no need to browse any of the substitutions).
7779 # These are the two extra sed commands mentioned above.
7780 (echo ':t
7781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7782 if test -z "$ac_sed_cmds"; then
7783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7784 else
7785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7786 fi
7787 ac_sed_frag=`expr $ac_sed_frag + 1`
7788 ac_beg=$ac_end
7789 ac_end=`expr $ac_end + $ac_max_sed_lines`
7790 fi
7791 done
7792 if test -z "$ac_sed_cmds"; then
7793 ac_sed_cmds=cat
7794 fi
7795fi # test -n "$CONFIG_FILES"
7796
7797_ACEOF
7798cat >>$CONFIG_STATUS <<\_ACEOF
7799for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7801 case $ac_file in
7802 - | *:- | *:-:* ) # input from stdin
7803 cat >$tmp/stdin
7804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7808 * ) ac_file_in=$ac_file.in ;;
7809 esac
7810
7811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7813$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7814 X"$ac_file" : 'X\(//\)[^/]' \| \
7815 X"$ac_file" : 'X\(//\)$' \| \
7816 X"$ac_file" : 'X\(/\)' \| \
7817 . : '\(.\)' 2>/dev/null ||
7818echo X"$ac_file" |
7819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7821 /^X\(\/\/\)$/{ s//\1/; q; }
7822 /^X\(\/\).*/{ s//\1/; q; }
7823 s/.*/./; q'`
7824 { if $as_mkdir_p; then
7825 mkdir -p "$ac_dir"
7826 else
7827 as_dir="$ac_dir"
7828 as_dirs=
7829 while test ! -d "$as_dir"; do
7830 as_dirs="$as_dir $as_dirs"
7831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7833 X"$as_dir" : 'X\(//\)[^/]' \| \
7834 X"$as_dir" : 'X\(//\)$' \| \
7835 X"$as_dir" : 'X\(/\)' \| \
7836 . : '\(.\)' 2>/dev/null ||
7837echo X"$as_dir" |
7838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7840 /^X\(\/\/\)$/{ s//\1/; q; }
7841 /^X\(\/\).*/{ s//\1/; q; }
7842 s/.*/./; q'`
7843 done
7844 test ! -n "$as_dirs" || mkdir $as_dirs
7845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7846echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7847 { (exit 1); exit 1; }; }; }
7848
7849 ac_builddir=.
7850
7851if test "$ac_dir" != .; then
7852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7853 # A "../" for each directory in $ac_dir_suffix.
7854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7855else
7856 ac_dir_suffix= ac_top_builddir=
7857fi
7858
7859case $srcdir in
7860 .) # No --srcdir option. We are building in place.
7861 ac_srcdir=.
7862 if test -z "$ac_top_builddir"; then
7863 ac_top_srcdir=.
7864 else
7865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7866 fi ;;
7867 [\\/]* | ?:[\\/]* ) # Absolute path.
7868 ac_srcdir=$srcdir$ac_dir_suffix;
7869 ac_top_srcdir=$srcdir ;;
7870 *) # Relative path.
7871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7873esac
7874
7875# Do not use `cd foo && pwd` to compute absolute paths, because
7876# the directories may not exist.
7877case `pwd` in
7878.) ac_abs_builddir="$ac_dir";;
7879*)
7880 case "$ac_dir" in
7881 .) ac_abs_builddir=`pwd`;;
7882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7884 esac;;
7885esac
7886case $ac_abs_builddir in
7887.) ac_abs_top_builddir=${ac_top_builddir}.;;
7888*)
7889 case ${ac_top_builddir}. in
7890 .) ac_abs_top_builddir=$ac_abs_builddir;;
7891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7893 esac;;
7894esac
7895case $ac_abs_builddir in
7896.) ac_abs_srcdir=$ac_srcdir;;
7897*)
7898 case $ac_srcdir in
7899 .) ac_abs_srcdir=$ac_abs_builddir;;
7900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7902 esac;;
7903esac
7904case $ac_abs_builddir in
7905.) ac_abs_top_srcdir=$ac_top_srcdir;;
7906*)
7907 case $ac_top_srcdir in
7908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7911 esac;;
7912esac
7913
7914
7915 case $INSTALL in
7916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7917 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7918 esac
7919
7920 if test x"$ac_file" != x-; then
7921 { echo "$as_me:$LINENO: creating $ac_file" >&5
7922echo "$as_me: creating $ac_file" >&6;}
7923 rm -f "$ac_file"
7924 fi
7925 # Let's still pretend it is `configure' which instantiates (i.e., don't
7926 # use $as_me), people would be surprised to read:
7927 # /* config.h. Generated by config.status. */
7928 if test x"$ac_file" = x-; then
7929 configure_input=
7930 else
7931 configure_input="$ac_file. "
7932 fi
7933 configure_input=$configure_input"Generated from `echo $ac_file_in |
7934 sed 's,.*/,,'` by configure."
7935
7936 # First look for the input files in the build tree, otherwise in the
7937 # src tree.
7938 ac_file_inputs=`IFS=:
7939 for f in $ac_file_in; do
7940 case $f in
7941 -) echo $tmp/stdin ;;
7942 [\\/$]*)
7943 # Absolute (can't be DOS-style, as IFS=:)
7944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7945echo "$as_me: error: cannot find input file: $f" >&2;}
7946 { (exit 1); exit 1; }; }
7947 echo "$f";;
7948 *) # Relative
7949 if test -f "$f"; then
7950 # Build tree
7951 echo "$f"
7952 elif test -f "$srcdir/$f"; then
7953 # Source tree
7954 echo "$srcdir/$f"
7955 else
7956 # /dev/null tree
7957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7958echo "$as_me: error: cannot find input file: $f" >&2;}
7959 { (exit 1); exit 1; }; }
7960 fi;;
7961 esac
7962 done` || { (exit 1); exit 1; }
7963_ACEOF
7964cat >>$CONFIG_STATUS <<_ACEOF
7965 sed "$ac_vpsub
7966$extrasub
7967_ACEOF
7968cat >>$CONFIG_STATUS <<\_ACEOF
7969:t
7970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7971s,@configure_input@,$configure_input,;t t
7972s,@srcdir@,$ac_srcdir,;t t
7973s,@abs_srcdir@,$ac_abs_srcdir,;t t
7974s,@top_srcdir@,$ac_top_srcdir,;t t
7975s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7976s,@builddir@,$ac_builddir,;t t
7977s,@abs_builddir@,$ac_abs_builddir,;t t
7978s,@top_builddir@,$ac_top_builddir,;t t
7979s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7980s,@INSTALL@,$ac_INSTALL,;t t
7981" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7982 rm -f $tmp/stdin
7983 if test x"$ac_file" != x-; then
7984 mv $tmp/out $ac_file
7985 else
7986 cat $tmp/out
7987 rm -f $tmp/out
7988 fi
7989
7990done
7991_ACEOF
7992cat >>$CONFIG_STATUS <<\_ACEOF
7993
7994#
7995# CONFIG_HEADER section.
7996#
7997
7998# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7999# NAME is the cpp macro being defined and VALUE is the value it is being given.
8000#
8001# ac_d sets the value in "#define NAME VALUE" lines.
8002ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8003ac_dB='[ ].*$,\1#\2'
8004ac_dC=' '
8005ac_dD=',;t'
8006# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8007ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8008ac_uB='$,\1#\2define\3'
8009ac_uC=' '
8010ac_uD=',;t'
8011
8012for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8014 case $ac_file in
8015 - | *:- | *:-:* ) # input from stdin
8016 cat >$tmp/stdin
8017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8021 * ) ac_file_in=$ac_file.in ;;
8022 esac
8023
8024 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8025echo "$as_me: creating $ac_file" >&6;}
8026
8027 # First look for the input files in the build tree, otherwise in the
8028 # src tree.
8029 ac_file_inputs=`IFS=:
8030 for f in $ac_file_in; do
8031 case $f in
8032 -) echo $tmp/stdin ;;
8033 [\\/$]*)
8034 # Absolute (can't be DOS-style, as IFS=:)
8035 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8036echo "$as_me: error: cannot find input file: $f" >&2;}
8037 { (exit 1); exit 1; }; }
8038 # Do quote $f, to prevent DOS paths from being IFS'd.
8039 echo "$f";;
8040 *) # Relative
8041 if test -f "$f"; then
8042 # Build tree
8043 echo "$f"
8044 elif test -f "$srcdir/$f"; then
8045 # Source tree
8046 echo "$srcdir/$f"
8047 else
8048 # /dev/null tree
8049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8050echo "$as_me: error: cannot find input file: $f" >&2;}
8051 { (exit 1); exit 1; }; }
8052 fi;;
8053 esac
8054 done` || { (exit 1); exit 1; }
8055 # Remove the trailing spaces.
8056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8057
8058_ACEOF
8059
8060# Transform confdefs.h into two sed scripts, `conftest.defines' and
8061# `conftest.undefs', that substitutes the proper values into
8062# config.h.in to produce config.h. The first handles `#define'
8063# templates, and the second `#undef' templates.
8064# And first: Protect against being on the right side of a sed subst in
8065# config.status. Protect against being in an unquoted here document
8066# in config.status.
8067rm -f conftest.defines conftest.undefs
8068# Using a here document instead of a string reduces the quoting nightmare.
8069# Putting comments in sed scripts is not portable.
8070#
8071# `end' is used to avoid that the second main sed command (meant for
8072# 0-ary CPP macros) applies to n-ary macro definitions.
8073# See the Autoconf documentation for `clear'.
8074cat >confdef2sed.sed <<\_ACEOF
8075s/[\\&,]/\\&/g
8076s,[\\$`],\\&,g
8077t clear
8078: clear
8079s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8080t end
8081s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8082: end
8083_ACEOF
8084# If some macros were called several times there might be several times
8085# the same #defines, which is useless. Nevertheless, we may not want to
8086# sort them, since we want the *last* AC-DEFINE to be honored.
8087uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8088sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8089rm -f confdef2sed.sed
8090
8091# This sed command replaces #undef with comments. This is necessary, for
8092# example, in the case of _POSIX_SOURCE, which is predefined and required
8093# on some systems where configure will not decide to define it.
8094cat >>conftest.undefs <<\_ACEOF
8095s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8096_ACEOF
8097
8098# Break up conftest.defines because some shells have a limit on the size
8099# of here documents, and old seds have small limits too (100 cmds).
8100echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8101echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8102echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8103echo ' :' >>$CONFIG_STATUS
8104rm -f conftest.tail
8105while grep . conftest.defines >/dev/null
8106do
8107 # Write a limited-size here document to $tmp/defines.sed.
8108 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8109 # Speed up: don't consider the non `#define' lines.
8110 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8111 # Work around the forget-to-reset-the-flag bug.
8112 echo 't clr' >>$CONFIG_STATUS
8113 echo ': clr' >>$CONFIG_STATUS
8114 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8115 echo 'CEOF
8116 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8117 rm -f $tmp/in
8118 mv $tmp/out $tmp/in
8119' >>$CONFIG_STATUS
8120 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8121 rm -f conftest.defines
8122 mv conftest.tail conftest.defines
8123done
8124rm -f conftest.defines
8125echo ' fi # grep' >>$CONFIG_STATUS
8126echo >>$CONFIG_STATUS
8127
8128# Break up conftest.undefs because some shells have a limit on the size
8129# of here documents, and old seds have small limits too (100 cmds).
8130echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8131rm -f conftest.tail
8132while grep . conftest.undefs >/dev/null
8133do
8134 # Write a limited-size here document to $tmp/undefs.sed.
8135 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8136 # Speed up: don't consider the non `#undef'
8137 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8138 # Work around the forget-to-reset-the-flag bug.
8139 echo 't clr' >>$CONFIG_STATUS
8140 echo ': clr' >>$CONFIG_STATUS
8141 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8142 echo 'CEOF
8143 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8144 rm -f $tmp/in
8145 mv $tmp/out $tmp/in
8146' >>$CONFIG_STATUS
8147 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8148 rm -f conftest.undefs
8149 mv conftest.tail conftest.undefs
8150done
8151rm -f conftest.undefs
8152
8153cat >>$CONFIG_STATUS <<\_ACEOF
8154 # Let's still pretend it is `configure' which instantiates (i.e., don't
8155 # use $as_me), people would be surprised to read:
8156 # /* config.h. Generated by config.status. */
8157 if test x"$ac_file" = x-; then
8158 echo "/* Generated by configure. */" >$tmp/config.h
8159 else
8160 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8161 fi
8162 cat $tmp/in >>$tmp/config.h
8163 rm -f $tmp/in
8164 if test x"$ac_file" != x-; then
8165 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8166 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8167echo "$as_me: $ac_file is unchanged" >&6;}
8168 else
8169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8170$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8171 X"$ac_file" : 'X\(//\)[^/]' \| \
8172 X"$ac_file" : 'X\(//\)$' \| \
8173 X"$ac_file" : 'X\(/\)' \| \
8174 . : '\(.\)' 2>/dev/null ||
8175echo X"$ac_file" |
8176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8178 /^X\(\/\/\)$/{ s//\1/; q; }
8179 /^X\(\/\).*/{ s//\1/; q; }
8180 s/.*/./; q'`
8181 { if $as_mkdir_p; then
8182 mkdir -p "$ac_dir"
8183 else
8184 as_dir="$ac_dir"
8185 as_dirs=
8186 while test ! -d "$as_dir"; do
8187 as_dirs="$as_dir $as_dirs"
8188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8190 X"$as_dir" : 'X\(//\)[^/]' \| \
8191 X"$as_dir" : 'X\(//\)$' \| \
8192 X"$as_dir" : 'X\(/\)' \| \
8193 . : '\(.\)' 2>/dev/null ||
8194echo X"$as_dir" |
8195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8197 /^X\(\/\/\)$/{ s//\1/; q; }
8198 /^X\(\/\).*/{ s//\1/; q; }
8199 s/.*/./; q'`
8200 done
8201 test ! -n "$as_dirs" || mkdir $as_dirs
8202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8203echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8204 { (exit 1); exit 1; }; }; }
8205
8206 rm -f $ac_file
8207 mv $tmp/config.h $ac_file
8208 fi
8209 else
8210 cat $tmp/config.h
8211 rm -f $tmp/config.h
8212 fi
8213done
8214_ACEOF
8215
8216cat >>$CONFIG_STATUS <<\_ACEOF
8217
8218{ (exit 0); exit 0; }
8219_ACEOF
8220chmod +x $CONFIG_STATUS
8221ac_clean_files=$ac_clean_files_save
8222
8223
8224# configure is writing to config.log, and then calls config.status.
8225# config.status does its own redirection, appending to config.log.
8226# Unfortunately, on DOS this fails, as config.log is still kept open
8227# by configure, so config.status won't be able to write to it; its
8228# output is simply discarded. So we exec the FD to /dev/null,
8229# effectively closing config.log, so it can be properly (re)opened and
8230# appended to by config.status. When coming back to configure, we
8231# need to make the FD available again.
8232if test "$no_create" != yes; then
8233 ac_cs_success=:
8234 ac_config_status_args=
8235 test "$silent" = yes &&
8236 ac_config_status_args="$ac_config_status_args --quiet"
8237 exec 5>/dev/null
8238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8239 exec 5>>config.log
8240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8241 # would make configure fail if this is the last instruction.
8242 $ac_cs_success || { (exit 1); exit 1; }
8243fi
8244
8245#
8246# CONFIG_SUBDIRS section.
8247#
8248if test "$no_recursion" != yes; then
8249
8250 # Remove --cache-file and --srcdir arguments so they do not pile up.
8251 ac_sub_configure_args=
8252 ac_prev=
8253 for ac_arg in $ac_configure_args; do
8254 if test -n "$ac_prev"; then
8255 ac_prev=
8256 continue
8257 fi
8258 case $ac_arg in
8259 -cache-file | --cache-file | --cache-fil | --cache-fi \
8260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8261 ac_prev=cache_file ;;
8262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8264 | --c=*)
8265 ;;
8266 --config-cache | -C)
8267 ;;
8268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8269 ac_prev=srcdir ;;
8270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8271 ;;
8272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8273 ac_prev=prefix ;;
8274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8275 ;;
8276 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8277 esac
8278 done
8279
8280 # Always prepend --prefix to ensure using the same prefix
8281 # in subdir configurations.
8282 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8283
8284 ac_popdir=`pwd`
8285 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8286
8287 # Do not complain, so a configure script can configure whichever
8288 # parts of a large source tree are present.
8289 test -d $srcdir/$ac_dir || continue
8290
8291 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8292echo "$as_me: configuring in $ac_dir" >&6;}
8293 { if $as_mkdir_p; then
8294 mkdir -p "$ac_dir"
8295 else
8296 as_dir="$ac_dir"
8297 as_dirs=
8298 while test ! -d "$as_dir"; do
8299 as_dirs="$as_dir $as_dirs"
8300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8302 X"$as_dir" : 'X\(//\)[^/]' \| \
8303 X"$as_dir" : 'X\(//\)$' \| \
8304 X"$as_dir" : 'X\(/\)' \| \
8305 . : '\(.\)' 2>/dev/null ||
8306echo X"$as_dir" |
8307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8309 /^X\(\/\/\)$/{ s//\1/; q; }
8310 /^X\(\/\).*/{ s//\1/; q; }
8311 s/.*/./; q'`
8312 done
8313 test ! -n "$as_dirs" || mkdir $as_dirs
8314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8316 { (exit 1); exit 1; }; }; }
8317
8318 ac_builddir=.
8319
8320if test "$ac_dir" != .; then
8321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8322 # A "../" for each directory in $ac_dir_suffix.
8323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8324else
8325 ac_dir_suffix= ac_top_builddir=
8326fi
8327
8328case $srcdir in
8329 .) # No --srcdir option. We are building in place.
8330 ac_srcdir=.
8331 if test -z "$ac_top_builddir"; then
8332 ac_top_srcdir=.
8333 else
8334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8335 fi ;;
8336 [\\/]* | ?:[\\/]* ) # Absolute path.
8337 ac_srcdir=$srcdir$ac_dir_suffix;
8338 ac_top_srcdir=$srcdir ;;
8339 *) # Relative path.
8340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8342esac
8343
8344# Do not use `cd foo && pwd` to compute absolute paths, because
8345# the directories may not exist.
8346case `pwd` in
8347.) ac_abs_builddir="$ac_dir";;
8348*)
8349 case "$ac_dir" in
8350 .) ac_abs_builddir=`pwd`;;
8351 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8352 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8353 esac;;
8354esac
8355case $ac_abs_builddir in
8356.) ac_abs_top_builddir=${ac_top_builddir}.;;
8357*)
8358 case ${ac_top_builddir}. in
8359 .) ac_abs_top_builddir=$ac_abs_builddir;;
8360 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8361 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8362 esac;;
8363esac
8364case $ac_abs_builddir in
8365.) ac_abs_srcdir=$ac_srcdir;;
8366*)
8367 case $ac_srcdir in
8368 .) ac_abs_srcdir=$ac_abs_builddir;;
8369 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8370 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8371 esac;;
8372esac
8373case $ac_abs_builddir in
8374.) ac_abs_top_srcdir=$ac_top_srcdir;;
8375*)
8376 case $ac_top_srcdir in
8377 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8378 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8379 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8380 esac;;
8381esac
8382
8383
8384 cd $ac_dir
8385
8386 # Check for guested configure; otherwise get Cygnus style configure.
8387 if test -f $ac_srcdir/configure.gnu; then
8388 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8389 elif test -f $ac_srcdir/configure; then
8390 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8391 elif test -f $ac_srcdir/configure.in; then
8392 ac_sub_configure=$ac_configure
8393 else
8394 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8395echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8396 ac_sub_configure=
8397 fi
8398
8399 # The recursion is here.
8400 if test -n "$ac_sub_configure"; then
8401 # Make the cache file name correct relative to the subdirectory.
8402 case $cache_file in
8403 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8404 *) # Relative path.
8405 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8406 esac
8407
8408 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8409echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8410 # The eval makes quoting arguments work.
8411 eval $ac_sub_configure $ac_sub_configure_args \
8412 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8413 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8414echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8415 { (exit 1); exit 1; }; }
8416 fi
8417
8418 cd $ac_popdir
8419 done
8420fi
8421
8422
8423
Note: See TracBrowser for help on using the repository browser.