source: main/trunk/greenstone2/common-src/indexers/mgpp/configure@ 30867

Last change on this file since 30867 was 30867, checked in by ak19, 8 years ago

Used a linux machine to run autoconf on the modified configure.in just committed, in order to generate the configure file from it. Committing this configure file.

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