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

Last change on this file since 23356 was 23356, checked in by sjm84, 13 years ago

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

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