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

Last change on this file since 37384 was 37384, checked in by davidb, 14 months ago

Newer MacOs command-line tools prefer this Framework

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