source: main/trunk/greenstone2/common-src/indexers/mg/configure@ 25148

Last change on this file since 25148 was 25148, checked in by kjdon, 12 years ago

getting greenstone to work properly on 64 bit machines. COMPAT32BITFLAGS is no more. Don't need -m32 option. Instead, have ARCH_DEP_FLAGS, which gets -fPIC on 64 bit machines.

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