root/main/trunk/greenstone2/runtime-src/configure @ 24958

Revision 24958, 254.1 KB (checked in by ak19, 8 years ago)

First commit to do with Greenstone's support for RSS. Committing Dr Bainbridge's code which was already working for windows. This has now been tested on Linux, where it can be got to work with changes to zextra.dm and base.dm and if the rss-items.rdf file generated by the update to BasePlugout? is moved to the index folder). The next set of commits will make the way rssaction.cpp accesses the rss-items.rdf file independent of where the GS server is located, with changes to the protocol class.

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