source: main/trunk/greenstone2/common-src/configure@ 35306

Last change on this file since 35306 was 35306, checked in by davidb, 3 years ago

Making javac default now source/target 1.6, rather than 1.4. This change was in response to 'javah' being deprecated. JNI is now down with 'javac -h' and to do that, you need to have at least a JDK 1.6 installed

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