root/main/trunk/gs2build/configure @ 21434

Revision 21434, 238.6 KB (checked in by davidb, 11 years ago)

Extra logic to COMPAT32BIT flag added for when mg and mgpp not enabled

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