root/gsdl/trunk/runtime-src/configure @ 20848

Revision 20848, 235.5 KB (checked in by oranfry, 10 years ago)

more changes to use our own libiconv

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