root/main/trunk/greenstone2/configure @ 31998

Revision 31162, 244.7 KB (checked in by ak19, 3 years ago)

To get yaz to compile on GS2 El Capitan, need gs2's toplevel configure script to source devel.bash if gnome-lib needed to e compiled from source.

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