source: main/trunk/greenstone2/build-src/configure@ 21432

Last change on this file since 21432 was 21432, checked in by davidb, 14 years ago

Update to use of -m32, which is activated when compiling on a 64-bit machine. The requirement for needing to using -m32 is mg and mg++ (which currently only work with 32-bit sized data-types). If both --disable-mg and --disable-mgpp are specified this means that we don't need to use -m32. Configure files updated to detect this and 'cancel' the -m32 flag.

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