source: main/branches/64_bit_Greenstone/greenstone3/src/packages/javagdbm/configure@ 23632

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

Adding the latest trunk changes as well as tidying up several files and removing more -m32 stuff

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 143.0 KB
Line 
1#! /bin/sh
2# From configure.in Revision: 21433 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.65.
5#
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order. Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" "" $as_nl"
91
92# Find who we are. Look in the path if we contain no directory separator.
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223fi
224
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell [email protected] about your system,
233$0: including any error possibly output before this
234$0: message. Then install a modern shell, or manually run
235$0: the script under such a shell if you do have one."
236 fi
237 exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255 { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264 return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272 set +e
273 as_fn_set_status $1
274 exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379else
380 as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385else
386 as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391else
392 as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462*)
463 ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487else
488 as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530test -n "$DJDIR" || exec 7<&0 </dev/null
531exec 6>&1
532
533# Name of the host.
534# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
535# so uname gets run too.
536ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537
538#
539# Initializations.
540#
541ac_default_prefix=/usr/local
542ac_clean_files=
543ac_config_libobj_dir=.
544LIBOBJS=
545cross_compiling=no
546subdirs=
547MFLAGS=
548MAKEFLAGS=
549
550# Identity of this package.
551PACKAGE_NAME=
552PACKAGE_TARNAME=
553PACKAGE_VERSION=
554PACKAGE_STRING=
555PACKAGE_BUGREPORT=
556PACKAGE_URL=
557
558ac_unique_file="jni/gdbmjava.c"
559# Factoring default headers for most tests.
560ac_includes_default="\
561#include <stdio.h>
562#ifdef HAVE_SYS_TYPES_H
563# include <sys/types.h>
564#endif
565#ifdef HAVE_SYS_STAT_H
566# include <sys/stat.h>
567#endif
568#ifdef STDC_HEADERS
569# include <stdlib.h>
570# include <stddef.h>
571#else
572# ifdef HAVE_STDLIB_H
573# include <stdlib.h>
574# endif
575#endif
576#ifdef HAVE_STRING_H
577# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578# include <memory.h>
579# endif
580# include <string.h>
581#endif
582#ifdef HAVE_STRINGS_H
583# include <strings.h>
584#endif
585#ifdef HAVE_INTTYPES_H
586# include <inttypes.h>
587#endif
588#ifdef HAVE_STDINT_H
589# include <stdint.h>
590#endif
591#ifdef HAVE_UNISTD_H
592# include <unistd.h>
593#endif"
594
595ac_subst_vars='LTLIBOBJS
596LIBOBJS
597JNIFLAGS
598JNISUFFIX
599JNIINC
600PKG
601GDBM_INCLUDE
602GDBM_LIBPATH
603javagdbm_cv_path_java
604javagdbm_cv_path_javah
605JAVA_HOME
606EGREP
607GREP
608CPP
609LN_S
610INSTALL_DATA
611INSTALL_SCRIPT
612INSTALL_PROGRAM
613OBJEXT
614EXEEXT
615ac_ct_CC
616CPPFLAGS
617LDFLAGS
618CFLAGS
619CC
620target_os
621target_vendor
622target_cpu
623target
624host_os
625host_vendor
626host_cpu
627host
628build_os
629build_vendor
630build_cpu
631build
632target_alias
633host_alias
634build_alias
635LIBS
636ECHO_T
637ECHO_N
638ECHO_C
639DEFS
640mandir
641localedir
642libdir
643psdir
644pdfdir
645dvidir
646htmldir
647infodir
648docdir
649oldincludedir
650includedir
651localstatedir
652sharedstatedir
653sysconfdir
654datadir
655datarootdir
656libexecdir
657sbindir
658bindir
659program_transform_name
660prefix
661exec_prefix
662PACKAGE_URL
663PACKAGE_BUGREPORT
664PACKAGE_STRING
665PACKAGE_VERSION
666PACKAGE_TARNAME
667PACKAGE_NAME
668PATH_SEPARATOR
669SHELL'
670ac_subst_files=''
671ac_user_opts='
672enable_option_checking
673with_gdbm
674'
675 ac_precious_vars='build_alias
676host_alias
677target_alias
678CC
679CFLAGS
680LDFLAGS
681LIBS
682CPPFLAGS
683CPP'
684
685
686# Initialize some variables set by options.
687ac_init_help=
688ac_init_version=false
689ac_unrecognized_opts=
690ac_unrecognized_sep=
691# The variables have the same names as the options, with
692# dashes changed to underlines.
693cache_file=/dev/null
694exec_prefix=NONE
695no_create=
696no_recursion=
697prefix=NONE
698program_prefix=NONE
699program_suffix=NONE
700program_transform_name=s,x,x,
701silent=
702site=
703srcdir=
704verbose=
705x_includes=NONE
706x_libraries=NONE
707
708# Installation directory options.
709# These are left unexpanded so users can "make install exec_prefix=/foo"
710# and all the variables that are supposed to be based on exec_prefix
711# by default will actually change.
712# Use braces instead of parens because sh, perl, etc. also accept them.
713# (The list follows the same order as the GNU Coding Standards.)
714bindir='${exec_prefix}/bin'
715sbindir='${exec_prefix}/sbin'
716libexecdir='${exec_prefix}/libexec'
717datarootdir='${prefix}/share'
718datadir='${datarootdir}'
719sysconfdir='${prefix}/etc'
720sharedstatedir='${prefix}/com'
721localstatedir='${prefix}/var'
722includedir='${prefix}/include'
723oldincludedir='/usr/include'
724docdir='${datarootdir}/doc/${PACKAGE}'
725infodir='${datarootdir}/info'
726htmldir='${docdir}'
727dvidir='${docdir}'
728pdfdir='${docdir}'
729psdir='${docdir}'
730libdir='${exec_prefix}/lib'
731localedir='${datarootdir}/locale'
732mandir='${datarootdir}/man'
733
734ac_prev=
735ac_dashdash=
736for ac_option
737do
738 # If the previous option needs an argument, assign it.
739 if test -n "$ac_prev"; then
740 eval $ac_prev=\$ac_option
741 ac_prev=
742 continue
743 fi
744
745 case $ac_option in
746 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747 *) ac_optarg=yes ;;
748 esac
749
750 # Accept the important Cygnus configure options, so we can diagnose typos.
751
752 case $ac_dashdash$ac_option in
753 --)
754 ac_dashdash=yes ;;
755
756 -bindir | --bindir | --bindi | --bind | --bin | --bi)
757 ac_prev=bindir ;;
758 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
759 bindir=$ac_optarg ;;
760
761 -build | --build | --buil | --bui | --bu)
762 ac_prev=build_alias ;;
763 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
764 build_alias=$ac_optarg ;;
765
766 -cache-file | --cache-file | --cache-fil | --cache-fi \
767 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
768 ac_prev=cache_file ;;
769 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
770 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
771 cache_file=$ac_optarg ;;
772
773 --config-cache | -C)
774 cache_file=config.cache ;;
775
776 -datadir | --datadir | --datadi | --datad)
777 ac_prev=datadir ;;
778 -datadir=* | --datadir=* | --datadi=* | --datad=*)
779 datadir=$ac_optarg ;;
780
781 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
782 | --dataroo | --dataro | --datar)
783 ac_prev=datarootdir ;;
784 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
785 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
786 datarootdir=$ac_optarg ;;
787
788 -disable-* | --disable-*)
789 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
792 as_fn_error "invalid feature name: $ac_useropt"
793 ac_useropt_orig=$ac_useropt
794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795 case $ac_user_opts in
796 *"
797"enable_$ac_useropt"
798"*) ;;
799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
800 ac_unrecognized_sep=', ';;
801 esac
802 eval enable_$ac_useropt=no ;;
803
804 -docdir | --docdir | --docdi | --doc | --do)
805 ac_prev=docdir ;;
806 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
807 docdir=$ac_optarg ;;
808
809 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
810 ac_prev=dvidir ;;
811 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
812 dvidir=$ac_optarg ;;
813
814 -enable-* | --enable-*)
815 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818 as_fn_error "invalid feature name: $ac_useropt"
819 ac_useropt_orig=$ac_useropt
820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821 case $ac_user_opts in
822 *"
823"enable_$ac_useropt"
824"*) ;;
825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
826 ac_unrecognized_sep=', ';;
827 esac
828 eval enable_$ac_useropt=\$ac_optarg ;;
829
830 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
831 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
832 | --exec | --exe | --ex)
833 ac_prev=exec_prefix ;;
834 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
835 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
836 | --exec=* | --exe=* | --ex=*)
837 exec_prefix=$ac_optarg ;;
838
839 -gas | --gas | --ga | --g)
840 # Obsolete; use --with-gas.
841 with_gas=yes ;;
842
843 -help | --help | --hel | --he | -h)
844 ac_init_help=long ;;
845 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
846 ac_init_help=recursive ;;
847 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
848 ac_init_help=short ;;
849
850 -host | --host | --hos | --ho)
851 ac_prev=host_alias ;;
852 -host=* | --host=* | --hos=* | --ho=*)
853 host_alias=$ac_optarg ;;
854
855 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856 ac_prev=htmldir ;;
857 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858 | --ht=*)
859 htmldir=$ac_optarg ;;
860
861 -includedir | --includedir | --includedi | --included | --include \
862 | --includ | --inclu | --incl | --inc)
863 ac_prev=includedir ;;
864 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
865 | --includ=* | --inclu=* | --incl=* | --inc=*)
866 includedir=$ac_optarg ;;
867
868 -infodir | --infodir | --infodi | --infod | --info | --inf)
869 ac_prev=infodir ;;
870 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
871 infodir=$ac_optarg ;;
872
873 -libdir | --libdir | --libdi | --libd)
874 ac_prev=libdir ;;
875 -libdir=* | --libdir=* | --libdi=* | --libd=*)
876 libdir=$ac_optarg ;;
877
878 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
879 | --libexe | --libex | --libe)
880 ac_prev=libexecdir ;;
881 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
882 | --libexe=* | --libex=* | --libe=*)
883 libexecdir=$ac_optarg ;;
884
885 -localedir | --localedir | --localedi | --localed | --locale)
886 ac_prev=localedir ;;
887 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
888 localedir=$ac_optarg ;;
889
890 -localstatedir | --localstatedir | --localstatedi | --localstated \
891 | --localstate | --localstat | --localsta | --localst | --locals)
892 ac_prev=localstatedir ;;
893 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
894 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
895 localstatedir=$ac_optarg ;;
896
897 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898 ac_prev=mandir ;;
899 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
900 mandir=$ac_optarg ;;
901
902 -nfp | --nfp | --nf)
903 # Obsolete; use --without-fp.
904 with_fp=no ;;
905
906 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
907 | --no-cr | --no-c | -n)
908 no_create=yes ;;
909
910 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
911 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
912 no_recursion=yes ;;
913
914 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
915 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
916 | --oldin | --oldi | --old | --ol | --o)
917 ac_prev=oldincludedir ;;
918 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
919 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
920 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
921 oldincludedir=$ac_optarg ;;
922
923 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924 ac_prev=prefix ;;
925 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
926 prefix=$ac_optarg ;;
927
928 -program-prefix | --program-prefix | --program-prefi | --program-pref \
929 | --program-pre | --program-pr | --program-p)
930 ac_prev=program_prefix ;;
931 -program-prefix=* | --program-prefix=* | --program-prefi=* \
932 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
933 program_prefix=$ac_optarg ;;
934
935 -program-suffix | --program-suffix | --program-suffi | --program-suff \
936 | --program-suf | --program-su | --program-s)
937 ac_prev=program_suffix ;;
938 -program-suffix=* | --program-suffix=* | --program-suffi=* \
939 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
940 program_suffix=$ac_optarg ;;
941
942 -program-transform-name | --program-transform-name \
943 | --program-transform-nam | --program-transform-na \
944 | --program-transform-n | --program-transform- \
945 | --program-transform | --program-transfor \
946 | --program-transfo | --program-transf \
947 | --program-trans | --program-tran \
948 | --progr-tra | --program-tr | --program-t)
949 ac_prev=program_transform_name ;;
950 -program-transform-name=* | --program-transform-name=* \
951 | --program-transform-nam=* | --program-transform-na=* \
952 | --program-transform-n=* | --program-transform-=* \
953 | --program-transform=* | --program-transfor=* \
954 | --program-transfo=* | --program-transf=* \
955 | --program-trans=* | --program-tran=* \
956 | --progr-tra=* | --program-tr=* | --program-t=*)
957 program_transform_name=$ac_optarg ;;
958
959 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960 ac_prev=pdfdir ;;
961 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
962 pdfdir=$ac_optarg ;;
963
964 -psdir | --psdir | --psdi | --psd | --ps)
965 ac_prev=psdir ;;
966 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
967 psdir=$ac_optarg ;;
968
969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
970 | -silent | --silent | --silen | --sile | --sil)
971 silent=yes ;;
972
973 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974 ac_prev=sbindir ;;
975 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976 | --sbi=* | --sb=*)
977 sbindir=$ac_optarg ;;
978
979 -sharedstatedir | --sharedstatedir | --sharedstatedi \
980 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
981 | --sharedst | --shareds | --shared | --share | --shar \
982 | --sha | --sh)
983 ac_prev=sharedstatedir ;;
984 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
985 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
986 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987 | --sha=* | --sh=*)
988 sharedstatedir=$ac_optarg ;;
989
990 -site | --site | --sit)
991 ac_prev=site ;;
992 -site=* | --site=* | --sit=*)
993 site=$ac_optarg ;;
994
995 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996 ac_prev=srcdir ;;
997 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
998 srcdir=$ac_optarg ;;
999
1000 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1001 | --syscon | --sysco | --sysc | --sys | --sy)
1002 ac_prev=sysconfdir ;;
1003 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1004 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1005 sysconfdir=$ac_optarg ;;
1006
1007 -target | --target | --targe | --targ | --tar | --ta | --t)
1008 ac_prev=target_alias ;;
1009 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1010 target_alias=$ac_optarg ;;
1011
1012 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1013 verbose=yes ;;
1014
1015 -version | --version | --versio | --versi | --vers | -V)
1016 ac_init_version=: ;;
1017
1018 -with-* | --with-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error "invalid package name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"with_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval with_$ac_useropt=\$ac_optarg ;;
1033
1034 -without-* | --without-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error "invalid package name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"with_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval with_$ac_useropt=no ;;
1049
1050 --x)
1051 # Obsolete; use --with-x.
1052 with_x=yes ;;
1053
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059 x_includes=$ac_optarg ;;
1060
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066 x_libraries=$ac_optarg ;;
1067
1068 -*) as_fn_error "unrecognized option: \`$ac_option'
1069Try \`$0 --help' for more information."
1070 ;;
1071
1072 *=*)
1073 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074 # Reject names that are not valid shell variable names.
1075 case $ac_envvar in #(
1076 '' | [0-9]* | *[!_$as_cr_alnum]* )
1077 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1078 esac
1079 eval $ac_envvar=\$ac_optarg
1080 export $ac_envvar ;;
1081
1082 *)
1083 # FIXME: should be removed in autoconf 3.0.
1084 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088 ;;
1089
1090 esac
1091done
1092
1093if test -n "$ac_prev"; then
1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095 as_fn_error "missing argument to $ac_option"
1096fi
1097
1098if test -n "$ac_unrecognized_opts"; then
1099 case $enable_option_checking in
1100 no) ;;
1101 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1102 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1103 esac
1104fi
1105
1106# Check all directory arguments for consistency.
1107for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1108 datadir sysconfdir sharedstatedir localstatedir includedir \
1109 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1110 libdir localedir mandir
1111do
1112 eval ac_val=\$$ac_var
1113 # Remove trailing slashes.
1114 case $ac_val in
1115 */ )
1116 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1117 eval $ac_var=\$ac_val;;
1118 esac
1119 # Be sure to have absolute directory names.
1120 case $ac_val in
1121 [\\/$]* | ?:[\\/]* ) continue;;
1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123 esac
1124 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1125done
1126
1127# There might be people who depend on the old broken behavior: `$host'
1128# used to hold the argument of --host etc.
1129# FIXME: To remove some day.
1130build=$build_alias
1131host=$host_alias
1132target=$target_alias
1133
1134# FIXME: To remove some day.
1135if test "x$host_alias" != x; then
1136 if test "x$build_alias" = x; then
1137 cross_compiling=maybe
1138 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1139 If a cross compiler is detected then cross compile mode will be used." >&2
1140 elif test "x$build_alias" != "x$host_alias"; then
1141 cross_compiling=yes
1142 fi
1143fi
1144
1145ac_tool_prefix=
1146test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147
1148test "$silent" = yes && exec 6>/dev/null
1149
1150
1151ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152ac_ls_di=`ls -di .` &&
1153ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 as_fn_error "working directory cannot be determined"
1155test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156 as_fn_error "pwd does not report name of working directory"
1157
1158
1159# Find the source files, if location was not specified.
1160if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$as_myself" ||
1164$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1166 X"$as_myself" : 'X\(//\)$' \| \
1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168$as_echo X"$as_myself" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)[^/].*/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\/\)$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\).*/{
1182 s//\1/
1183 q
1184 }
1185 s/.*/./; q'`
1186 srcdir=$ac_confdir
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1188 srcdir=..
1189 fi
1190else
1191 ac_srcdir_defaulted=no
1192fi
1193if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1196fi
1197ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1200 pwd)`
1201# When building in place, set srcdir=.
1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204fi
1205# Remove unnecessary trailing slashes from srcdir.
1206# Double slashes in file names in object file debugging info
1207# mess up M-x gdb in Emacs.
1208case $srcdir in
1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210esac
1211for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216done
1217
1218#
1219# Report the --help message.
1220#
1221if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225\`configure' configures this package to adapt to many kinds of systems.
1226
1227Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232Defaults for the options are specified in brackets.
1233
1234Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
1245Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249 [PREFIX]
1250
1251By default, \`make install' will install all the files in
1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254for instance \`--prefix=\$HOME'.
1255
1256For better control, use the options below.
1257
1258Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1278_ACEOF
1279
1280 cat <<\_ACEOF
1281
1282System types:
1283 --build=BUILD configure for building on BUILD [guessed]
1284 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1285 --target=TARGET configure for building compilers for TARGET [HOST]
1286_ACEOF
1287fi
1288
1289if test -n "$ac_init_help"; then
1290
1291 cat <<\_ACEOF
1292
1293Optional Packages:
1294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1296 --with-gdbm=dir Use local gdbm library and headers
1297
1298Some influential environment variables:
1299 CC C compiler command
1300 CFLAGS C compiler flags
1301 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1302 nonstandard directory <lib dir>
1303 LIBS libraries to pass to the linker, e.g. -l<library>
1304 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1305 you have headers in a nonstandard directory <include dir>
1306 CPP C preprocessor
1307
1308Use these variables to override the choices made by `configure' or to help
1309it to find libraries and programs with nonstandard names/locations.
1310
1311Report bugs to the package provider.
1312_ACEOF
1313ac_status=$?
1314fi
1315
1316if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319 test -d "$ac_dir" ||
1320 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1321 continue
1322 ac_builddir=.
1323
1324case "$ac_dir" in
1325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1326*)
1327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 esac ;;
1334esac
1335ac_abs_top_builddir=$ac_pwd
1336ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337# for backward compatibility:
1338ac_top_builddir=$ac_top_build_prefix
1339
1340case $srcdir in
1341 .) # We are building in place.
1342 ac_srcdir=.
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
1346 ac_srcdir=$srcdir$ac_dir_suffix;
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1349 *) # Relative name.
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1353esac
1354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1355
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for guested configure.
1358 if test -f "$ac_srcdir/configure.gnu"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361 elif test -f "$ac_srcdir/configure"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure" --help=recursive
1364 else
1365 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366 fi || ac_status=$?
1367 cd "$ac_pwd" || { ac_status=$?; break; }
1368 done
1369fi
1370
1371test -n "$ac_init_help" && exit $ac_status
1372if $ac_init_version; then
1373 cat <<\_ACEOF
1374configure
1375generated by GNU Autoconf 2.65
1376
1377Copyright (C) 2009 Free Software Foundation, Inc.
1378This configure script is free software; the Free Software Foundation
1379gives unlimited permission to copy, distribute and modify it.
1380_ACEOF
1381 exit
1382fi
1383
1384## ------------------------ ##
1385## Autoconf initialization. ##
1386## ------------------------ ##
1387
1388# ac_fn_c_try_compile LINENO
1389# --------------------------
1390# Try to compile conftest.$ac_ext, and return whether this succeeded.
1391ac_fn_c_try_compile ()
1392{
1393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1394 rm -f conftest.$ac_objext
1395 if { { ac_try="$ac_compile"
1396case "(($ac_try" in
1397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1398 *) ac_try_echo=$ac_try;;
1399esac
1400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1401$as_echo "$ac_try_echo"; } >&5
1402 (eval "$ac_compile") 2>conftest.err
1403 ac_status=$?
1404 if test -s conftest.err; then
1405 grep -v '^ *+' conftest.err >conftest.er1
1406 cat conftest.er1 >&5
1407 mv -f conftest.er1 conftest.err
1408 fi
1409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1410 test $ac_status = 0; } && {
1411 test -z "$ac_c_werror_flag" ||
1412 test ! -s conftest.err
1413 } && test -s conftest.$ac_objext; then :
1414 ac_retval=0
1415else
1416 $as_echo "$as_me: failed program was:" >&5
1417sed 's/^/| /' conftest.$ac_ext >&5
1418
1419 ac_retval=1
1420fi
1421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1422 as_fn_set_status $ac_retval
1423
1424} # ac_fn_c_try_compile
1425
1426# ac_fn_c_try_run LINENO
1427# ----------------------
1428# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1429# that executables *can* be run.
1430ac_fn_c_try_run ()
1431{
1432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433 if { { ac_try="$ac_link"
1434case "(($ac_try" in
1435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1436 *) ac_try_echo=$ac_try;;
1437esac
1438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439$as_echo "$ac_try_echo"; } >&5
1440 (eval "$ac_link") 2>&5
1441 ac_status=$?
1442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1443 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1444 { { case "(($ac_try" in
1445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1446 *) ac_try_echo=$ac_try;;
1447esac
1448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1449$as_echo "$ac_try_echo"; } >&5
1450 (eval "$ac_try") 2>&5
1451 ac_status=$?
1452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1453 test $ac_status = 0; }; }; then :
1454 ac_retval=0
1455else
1456 $as_echo "$as_me: program exited with status $ac_status" >&5
1457 $as_echo "$as_me: failed program was:" >&5
1458sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=$ac_status
1461fi
1462 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1464 as_fn_set_status $ac_retval
1465
1466} # ac_fn_c_try_run
1467
1468# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1469# --------------------------------------------
1470# Tries to find the compile-time value of EXPR in a program that includes
1471# INCLUDES, setting VAR accordingly. Returns whether the value could be
1472# computed
1473ac_fn_c_compute_int ()
1474{
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 if test "$cross_compiling" = yes; then
1477 # Depending upon the size, compute the lo and hi bounds.
1478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1479/* end confdefs.h. */
1480$4
1481int
1482main ()
1483{
1484static int test_array [1 - 2 * !(($2) >= 0)];
1485test_array [0] = 0
1486
1487 ;
1488 return 0;
1489}
1490_ACEOF
1491if ac_fn_c_try_compile "$LINENO"; then :
1492 ac_lo=0 ac_mid=0
1493 while :; do
1494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1495/* end confdefs.h. */
1496$4
1497int
1498main ()
1499{
1500static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1501test_array [0] = 0
1502
1503 ;
1504 return 0;
1505}
1506_ACEOF
1507if ac_fn_c_try_compile "$LINENO"; then :
1508 ac_hi=$ac_mid; break
1509else
1510 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1511 if test $ac_lo -le $ac_mid; then
1512 ac_lo= ac_hi=
1513 break
1514 fi
1515 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1516fi
1517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1518 done
1519else
1520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1521/* end confdefs.h. */
1522$4
1523int
1524main ()
1525{
1526static int test_array [1 - 2 * !(($2) < 0)];
1527test_array [0] = 0
1528
1529 ;
1530 return 0;
1531}
1532_ACEOF
1533if ac_fn_c_try_compile "$LINENO"; then :
1534 ac_hi=-1 ac_mid=-1
1535 while :; do
1536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537/* end confdefs.h. */
1538$4
1539int
1540main ()
1541{
1542static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1543test_array [0] = 0
1544
1545 ;
1546 return 0;
1547}
1548_ACEOF
1549if ac_fn_c_try_compile "$LINENO"; then :
1550 ac_lo=$ac_mid; break
1551else
1552 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1553 if test $ac_mid -le $ac_hi; then
1554 ac_lo= ac_hi=
1555 break
1556 fi
1557 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1558fi
1559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560 done
1561else
1562 ac_lo= ac_hi=
1563fi
1564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1565fi
1566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567# Binary search between lo and hi bounds.
1568while test "x$ac_lo" != "x$ac_hi"; do
1569 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571/* end confdefs.h. */
1572$4
1573int
1574main ()
1575{
1576static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1577test_array [0] = 0
1578
1579 ;
1580 return 0;
1581}
1582_ACEOF
1583if ac_fn_c_try_compile "$LINENO"; then :
1584 ac_hi=$ac_mid
1585else
1586 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1587fi
1588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589done
1590case $ac_lo in #((
1591?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1592'') ac_retval=1 ;;
1593esac
1594 else
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596/* end confdefs.h. */
1597$4
1598static long int longval () { return $2; }
1599static unsigned long int ulongval () { return $2; }
1600#include <stdio.h>
1601#include <stdlib.h>
1602int
1603main ()
1604{
1605
1606 FILE *f = fopen ("conftest.val", "w");
1607 if (! f)
1608 return 1;
1609 if (($2) < 0)
1610 {
1611 long int i = longval ();
1612 if (i != ($2))
1613 return 1;
1614 fprintf (f, "%ld", i);
1615 }
1616 else
1617 {
1618 unsigned long int i = ulongval ();
1619 if (i != ($2))
1620 return 1;
1621 fprintf (f, "%lu", i);
1622 }
1623 /* Do not output a trailing newline, as this causes \r\n confusion
1624 on some platforms. */
1625 return ferror (f) || fclose (f) != 0;
1626
1627 ;
1628 return 0;
1629}
1630_ACEOF
1631if ac_fn_c_try_run "$LINENO"; then :
1632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1633else
1634 ac_retval=1
1635fi
1636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1637 conftest.$ac_objext conftest.beam conftest.$ac_ext
1638rm -f conftest.val
1639
1640 fi
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_compute_int
1645
1646# ac_fn_c_try_cpp LINENO
1647# ----------------------
1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_cpp ()
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } >/dev/null && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677fi
1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679 as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_cpp
1682
1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists and can be compiled using the include files in
1686# INCLUDES, setting the cache variable VAR accordingly.
1687ac_fn_c_check_header_compile ()
1688{
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
1694else
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h. */
1697$4
1698#include <$2>
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"; then :
1701 eval "$3=yes"
1702else
1703 eval "$3=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711
1712} # ac_fn_c_check_header_compile
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 $as_test_x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_link
1759cat >config.log <<_ACEOF
1760This file contains any messages produced by compilers while
1761running configure, to aid debugging if configure makes a mistake.
1762
1763It was created by $as_me, which was
1764generated by GNU Autoconf 2.65. Invocation command line was
1765
1766 $ $0 $@
1767
1768_ACEOF
1769exec 5>>config.log
1770{
1771cat <<_ASUNAME
1772## --------- ##
1773## Platform. ##
1774## --------- ##
1775
1776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780uname -v = `(uname -v) 2>/dev/null || echo unknown`
1781
1782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1784
1785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1792
1793_ASUNAME
1794
1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 $as_echo "PATH: $as_dir"
1801 done
1802IFS=$as_save_IFS
1803
1804} >&5
1805
1806cat >&5 <<_ACEOF
1807
1808
1809## ----------- ##
1810## Core tests. ##
1811## ----------- ##
1812
1813_ACEOF
1814
1815
1816# Keep a trace of the command line.
1817# Strip out --no-create and --no-recursion so they do not pile up.
1818# Strip out --silent because we don't want to record it for future runs.
1819# Also quote any args containing shell meta-characters.
1820# Make two passes to allow for proper duplicate-argument suppression.
1821ac_configure_args=
1822ac_configure_args0=
1823ac_configure_args1=
1824ac_must_keep_next=false
1825for ac_pass in 1 2
1826do
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1833 continue ;;
1834 *\'*)
1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 esac
1837 case $ac_pass in
1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1839 2)
1840 as_fn_append ac_configure_args1 " '$ac_arg'"
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1843 else
1844 case $ac_arg in
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 esac
1852 ;;
1853 -* ) ac_must_keep_next=true ;;
1854 esac
1855 fi
1856 as_fn_append ac_configure_args " '$ac_arg'"
1857 ;;
1858 esac
1859 done
1860done
1861{ ac_configure_args0=; unset ac_configure_args0;}
1862{ ac_configure_args1=; unset ac_configure_args1;}
1863
1864# When interrupted or exit'd, cleanup temporary files, and complete
1865# config.log. We remove comments because anyway the quotes in there
1866# would cause problems or look ugly.
1867# WARNING: Use '\'' to represent an apostrophe within the trap.
1868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869trap 'exit_status=$?
1870 # Save into config.log some information that might help in debugging.
1871 {
1872 echo
1873
1874 cat <<\_ASBOX
1875## ---------------- ##
1876## Cache variables. ##
1877## ---------------- ##
1878_ASBOX
1879 echo
1880 # The following way of writing the cache mishandles newlines in values,
1881(
1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in #(
1885 *${as_nl}*)
1886 case $ac_var in #(
1887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 esac
1890 case $ac_var in #(
1891 _ | IFS | as_nl) ;; #(
1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893 *) { eval $ac_var=; unset $ac_var;} ;;
1894 esac ;;
1895 esac
1896 done
1897 (set) 2>&1 |
1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899 *${as_nl}ac_space=\ *)
1900 sed -n \
1901 "s/'\''/'\''\\\\'\'''\''/g;
1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 ;; #(
1904 *)
1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 ;;
1907 esac |
1908 sort
1909)
1910 echo
1911
1912 cat <<\_ASBOX
1913## ----------------- ##
1914## Output variables. ##
1915## ----------------- ##
1916_ASBOX
1917 echo
1918 for ac_var in $ac_subst_vars
1919 do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 esac
1924 $as_echo "$ac_var='\''$ac_val'\''"
1925 done | sort
1926 echo
1927
1928 if test -n "$ac_subst_files"; then
1929 cat <<\_ASBOX
1930## ------------------- ##
1931## File substitutions. ##
1932## ------------------- ##
1933_ASBOX
1934 echo
1935 for ac_var in $ac_subst_files
1936 do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940 esac
1941 $as_echo "$ac_var='\''$ac_val'\''"
1942 done | sort
1943 echo
1944 fi
1945
1946 if test -s confdefs.h; then
1947 cat <<\_ASBOX
1948## ----------- ##
1949## confdefs.h. ##
1950## ----------- ##
1951_ASBOX
1952 echo
1953 cat confdefs.h
1954 echo
1955 fi
1956 test "$ac_signal" != 0 &&
1957 $as_echo "$as_me: caught signal $ac_signal"
1958 $as_echo "$as_me: exit $exit_status"
1959 } >&5
1960 rm -f core *.core core.conftest.* &&
1961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1962 exit $exit_status
1963' 0
1964for ac_signal in 1 2 13 15; do
1965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1966done
1967ac_signal=0
1968
1969# confdefs.h avoids OS command line length limits that DEFS can exceed.
1970rm -f -r conftest* confdefs.h
1971
1972$as_echo "/* confdefs.h */" > confdefs.h
1973
1974# Predefined preprocessor variables.
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_NAME "$PACKAGE_NAME"
1978_ACEOF
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1982_ACEOF
1983
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_VERSION "$PACKAGE_VERSION"
1986_ACEOF
1987
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_STRING "$PACKAGE_STRING"
1990_ACEOF
1991
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1994_ACEOF
1995
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_URL "$PACKAGE_URL"
1998_ACEOF
1999
2000
2001# Let the site file select an alternate cache file if it wants to.
2002# Prefer an explicitly selected file to automatically selected ones.
2003ac_site_file1=NONE
2004ac_site_file2=NONE
2005if test -n "$CONFIG_SITE"; then
2006 ac_site_file1=$CONFIG_SITE
2007elif test "x$prefix" != xNONE; then
2008 ac_site_file1=$prefix/share/config.site
2009 ac_site_file2=$prefix/etc/config.site
2010else
2011 ac_site_file1=$ac_default_prefix/share/config.site
2012 ac_site_file2=$ac_default_prefix/etc/config.site
2013fi
2014for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2015do
2016 test "x$ac_site_file" = xNONE && continue
2017 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2020 sed 's/^/| /' "$ac_site_file" >&5
2021 . "$ac_site_file"
2022 fi
2023done
2024
2025if test -r "$cache_file"; then
2026 # Some versions of bash will fail to source /dev/null (special files
2027 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030$as_echo "$as_me: loading cache $cache_file" >&6;}
2031 case $cache_file in
2032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033 *) . "./$cache_file";;
2034 esac
2035 fi
2036else
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038$as_echo "$as_me: creating cache $cache_file" >&6;}
2039 >$cache_file
2040fi
2041
2042# Check that the precious variables saved in the cache have kept the same
2043# value.
2044ac_cache_corrupted=false
2045for ac_var in $ac_precious_vars; do
2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2047 eval ac_new_set=\$ac_env_${ac_var}_set
2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2049 eval ac_new_val=\$ac_env_${ac_var}_value
2050 case $ac_old_set,$ac_new_set in
2051 set,)
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2053$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2054 ac_cache_corrupted=: ;;
2055 ,set)
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2057$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2058 ac_cache_corrupted=: ;;
2059 ,);;
2060 *)
2061 if test "x$ac_old_val" != "x$ac_new_val"; then
2062 # differences in whitespace do not lead to failure.
2063 ac_old_val_w=`echo x $ac_old_val`
2064 ac_new_val_w=`echo x $ac_new_val`
2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2067$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2068 ac_cache_corrupted=:
2069 else
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2071$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2072 eval $ac_var=\$ac_old_val
2073 fi
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2075$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2077$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2078 fi;;
2079 esac
2080 # Pass precious variables to config.status.
2081 if test "$ac_new_set" = set; then
2082 case $ac_new_val in
2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 *) ac_arg=$ac_var=$ac_new_val ;;
2085 esac
2086 case " $ac_configure_args " in
2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2089 esac
2090 fi
2091done
2092if $ac_cache_corrupted; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2096$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2097 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2098fi
2099## -------------------- ##
2100## Main body of script. ##
2101## -------------------- ##
2102
2103ac_ext=c
2104ac_cpp='$CPP $CPPFLAGS'
2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
2109
2110
2111
2112# Check whether --with-gdbm was given.
2113if test "${with_gdbm+set}" = set; then :
2114 withval=$with_gdbm; gdbmdir=$withval
2115fi
2116
2117
2118ac_aux_dir=
2119for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2120 for ac_t in install-sh install.sh shtool; do
2121 if test -f "$ac_dir/$ac_t"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/$ac_t -c"
2124 break 2
2125 fi
2126 done
2127done
2128if test -z "$ac_aux_dir"; then
2129 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2130fi
2131
2132# These three variables are undocumented and unsupported,
2133# and are intended to be withdrawn in a future Autoconf release.
2134# They can cause serious problems if a builder's source tree is in a directory
2135# whose full name contains unusual characters.
2136ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2137ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2138ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2139
2140
2141# Make sure we can run config.sub.
2142$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2144
2145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2146$as_echo_n "checking build system type... " >&6; }
2147if test "${ac_cv_build+set}" = set; then :
2148 $as_echo_n "(cached) " >&6
2149else
2150 ac_build_alias=$build_alias
2151test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153test "x$ac_build_alias" = x &&
2154 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2155ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2156 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2157
2158fi
2159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2160$as_echo "$ac_cv_build" >&6; }
2161case $ac_cv_build in
2162*-*-*) ;;
2163*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2164esac
2165build=$ac_cv_build
2166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_build
2168shift
2169build_cpu=$1
2170build_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174build_os=$*
2175IFS=$ac_save_IFS
2176case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2177
2178
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2180$as_echo_n "checking host system type... " >&6; }
2181if test "${ac_cv_host+set}" = set; then :
2182 $as_echo_n "(cached) " >&6
2183else
2184 if test "x$host_alias" = x; then
2185 ac_cv_host=$ac_cv_build
2186else
2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2189fi
2190
2191fi
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2193$as_echo "$ac_cv_host" >&6; }
2194case $ac_cv_host in
2195*-*-*) ;;
2196*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2197esac
2198host=$ac_cv_host
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_host
2201shift
2202host_cpu=$1
2203host_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207host_os=$*
2208IFS=$ac_save_IFS
2209case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210
2211
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2213$as_echo_n "checking target system type... " >&6; }
2214if test "${ac_cv_target+set}" = set; then :
2215 $as_echo_n "(cached) " >&6
2216else
2217 if test "x$target_alias" = x; then
2218 ac_cv_target=$ac_cv_host
2219else
2220 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2222fi
2223
2224fi
2225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2226$as_echo "$ac_cv_target" >&6; }
2227case $ac_cv_target in
2228*-*-*) ;;
2229*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2230esac
2231target=$ac_cv_target
2232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_target
2234shift
2235target_cpu=$1
2236target_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240target_os=$*
2241IFS=$ac_save_IFS
2242case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2243
2244
2245# The aliases save the names the user supplied, while $host etc.
2246# will get canonicalized.
2247test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2249 NONENONEs,x,x, &&
2250 program_prefix=${target_alias}-
2251
2252
2253# TODO: allow the user to specify whether they want a debugging
2254# library or not?
2255
2256# check for compilers and other tools
2257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262if test -n "$ac_tool_prefix"; then
2263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2264set dummy ${ac_tool_prefix}gcc; ac_word=$2
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2266$as_echo_n "checking for $ac_word... " >&6; }
2267if test "${ac_cv_prog_CC+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
2269else
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2272else
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 break 2
2283 fi
2284done
2285 done
2286IFS=$as_save_IFS
2287
2288fi
2289fi
2290CC=$ac_cv_prog_CC
2291if test -n "$CC"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2293$as_echo "$CC" >&6; }
2294else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2296$as_echo "no" >&6; }
2297fi
2298
2299
2300fi
2301if test -z "$ac_cv_prog_CC"; then
2302 ac_ct_CC=$CC
2303 # Extract the first word of "gcc", so it can be a program name with args.
2304set dummy gcc; ac_word=$2
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2306$as_echo_n "checking for $ac_word... " >&6; }
2307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2308 $as_echo_n "(cached) " >&6
2309else
2310 if test -n "$ac_ct_CC"; then
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_ac_ct_CC="gcc"
2321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325 done
2326IFS=$as_save_IFS
2327
2328fi
2329fi
2330ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331if test -n "$ac_ct_CC"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2333$as_echo "$ac_ct_CC" >&6; }
2334else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2336$as_echo "no" >&6; }
2337fi
2338
2339 if test "x$ac_ct_CC" = x; then
2340 CC=""
2341 else
2342 case $cross_compiling:$ac_tool_warned in
2343yes:)
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2346ac_tool_warned=yes ;;
2347esac
2348 CC=$ac_ct_CC
2349 fi
2350else
2351 CC="$ac_cv_prog_CC"
2352fi
2353
2354if test -z "$CC"; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2357set dummy ${ac_tool_prefix}cc; ac_word=$2
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359$as_echo_n "checking for $ac_word... " >&6; }
2360if test "${ac_cv_prog_CC+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
2362else
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_CC="${ac_tool_prefix}cc"
2374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377done
2378 done
2379IFS=$as_save_IFS
2380
2381fi
2382fi
2383CC=$ac_cv_prog_CC
2384if test -n "$CC"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2386$as_echo "$CC" >&6; }
2387else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389$as_echo "no" >&6; }
2390fi
2391
2392
2393 fi
2394fi
2395if test -z "$CC"; then
2396 # Extract the first word of "cc", so it can be a program name with args.
2397set dummy cc; ac_word=$2
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399$as_echo_n "checking for $ac_word... " >&6; }
2400if test "${ac_cv_prog_CC+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2402else
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2405else
2406 ac_prog_rejected=no
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2415 ac_prog_rejected=yes
2416 continue
2417 fi
2418 ac_cv_prog_CC="cc"
2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422done
2423 done
2424IFS=$as_save_IFS
2425
2426if test $ac_prog_rejected = yes; then
2427 # We found a bogon in the path, so make sure we never use it.
2428 set dummy $ac_cv_prog_CC
2429 shift
2430 if test $# != 0; then
2431 # We chose a different compiler from the bogus one.
2432 # However, it has the same basename, so the bogon will be chosen
2433 # first if we set CC to just the basename; use the full file name.
2434 shift
2435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2436 fi
2437fi
2438fi
2439fi
2440CC=$ac_cv_prog_CC
2441if test -n "$CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2443$as_echo "$CC" >&6; }
2444else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
2447fi
2448
2449
2450fi
2451if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 for ac_prog in cl.exe
2454 do
2455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458$as_echo_n "checking for $ac_word... " >&6; }
2459if test "${ac_cv_prog_CC+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2461else
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476done
2477 done
2478IFS=$as_save_IFS
2479
2480fi
2481fi
2482CC=$ac_cv_prog_CC
2483if test -n "$CC"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2485$as_echo "$CC" >&6; }
2486else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2488$as_echo "no" >&6; }
2489fi
2490
2491
2492 test -n "$CC" && break
2493 done
2494fi
2495if test -z "$CC"; then
2496 ac_ct_CC=$CC
2497 for ac_prog in cl.exe
2498do
2499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2500set dummy $ac_prog; ac_word=$2
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2504 $as_echo_n "(cached) " >&6
2505else
2506 if test -n "$ac_ct_CC"; then
2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_ac_ct_CC="$ac_prog"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520done
2521 done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527if test -n "$ac_ct_CC"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2529$as_echo "$ac_ct_CC" >&6; }
2530else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535
2536 test -n "$ac_ct_CC" && break
2537done
2538
2539 if test "x$ac_ct_CC" = x; then
2540 CC=""
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543yes:)
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546ac_tool_warned=yes ;;
2547esac
2548 CC=$ac_ct_CC
2549 fi
2550fi
2551
2552fi
2553
2554
2555test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557as_fn_error "no acceptable C compiler found in \$PATH
2558See \`config.log' for more details." "$LINENO" 5; }
2559
2560# Provide some information about the compiler.
2561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2562set X $ac_compile
2563ac_compiler=$2
2564for ac_option in --version -v -V -qversion; do
2565 { { ac_try="$ac_compiler $ac_option >&5"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571$as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2573 ac_status=$?
2574 if test -s conftest.err; then
2575 sed '10a\
2576... rest of stderr output deleted ...
2577 10q' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 fi
2580 rm -f conftest.er1 conftest.err
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; }
2583done
2584
2585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586/* end confdefs.h. */
2587
2588int
2589main ()
2590{
2591
2592 ;
2593 return 0;
2594}
2595_ACEOF
2596ac_clean_files_save=$ac_clean_files
2597ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2598# Try to create an executable without -o first, disregard a.out.
2599# It will help us diagnose broken compilers, and finding out an intuition
2600# of exeext.
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2602$as_echo_n "checking whether the C compiler works... " >&6; }
2603ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2604
2605# The possible output files:
2606ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2607
2608ac_rmfiles=
2609for ac_file in $ac_files
2610do
2611 case $ac_file in
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2614 esac
2615done
2616rm -f $ac_rmfiles
2617
2618if { { ac_try="$ac_link_default"
2619case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622esac
2623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624$as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link_default") 2>&5
2626 ac_status=$?
2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628 test $ac_status = 0; }; then :
2629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2630# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2631# in a Makefile. We should not override ac_cv_exeext if it was cached,
2632# so that the user can short-circuit this test for compilers unknown to
2633# Autoconf.
2634for ac_file in $ac_files ''
2635do
2636 test -f "$ac_file" || continue
2637 case $ac_file in
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2639 ;;
2640 [ab].out )
2641 # We found the default executable, but exeext='' is most
2642 # certainly right.
2643 break;;
2644 *.* )
2645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2646 then :; else
2647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 fi
2649 # We set ac_cv_exeext here because the later test for it is not
2650 # safe: cross compilers may not add the suffix if given an `-o'
2651 # argument, so we may need to know it at that point already.
2652 # Even if this section looks crufty: it has the advantage of
2653 # actually working.
2654 break;;
2655 * )
2656 break;;
2657 esac
2658done
2659test "$ac_cv_exeext" = no && ac_cv_exeext=
2660
2661else
2662 ac_file=''
2663fi
2664if test -z "$ac_file"; then :
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667$as_echo "$as_me: failed program was:" >&5
2668sed 's/^/| /' conftest.$ac_ext >&5
2669
2670{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672{ as_fn_set_status 77
2673as_fn_error "C compiler cannot create executables
2674See \`config.log' for more details." "$LINENO" 5; }; }
2675else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677$as_echo "yes" >&6; }
2678fi
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2680$as_echo_n "checking for C compiler default output file name... " >&6; }
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2682$as_echo "$ac_file" >&6; }
2683ac_exeext=$ac_cv_exeext
2684
2685rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2686ac_clean_files=$ac_clean_files_save
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2688$as_echo_n "checking for suffix of executables... " >&6; }
2689if { { ac_try="$ac_link"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695$as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_link") 2>&5
2697 ac_status=$?
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; then :
2700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2701# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2702# work properly (i.e., refer to `conftest.exe'), while it won't with
2703# `rm'.
2704for ac_file in conftest.exe conftest conftest.*; do
2705 test -f "$ac_file" || continue
2706 case $ac_file in
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2709 break;;
2710 * ) break;;
2711 esac
2712done
2713else
2714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716as_fn_error "cannot compute suffix of executables: cannot compile and link
2717See \`config.log' for more details." "$LINENO" 5; }
2718fi
2719rm -f conftest conftest$ac_cv_exeext
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2721$as_echo "$ac_cv_exeext" >&6; }
2722
2723rm -f conftest.$ac_ext
2724EXEEXT=$ac_cv_exeext
2725ac_exeext=$EXEEXT
2726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727/* end confdefs.h. */
2728#include <stdio.h>
2729int
2730main ()
2731{
2732FILE *f = fopen ("conftest.out", "w");
2733 return ferror (f) || fclose (f) != 0;
2734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739ac_clean_files="$ac_clean_files conftest.out"
2740# Check that the compiler produces executables we can run. If not, either
2741# the compiler is broken, or we cross compile.
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2743$as_echo_n "checking whether we are cross compiling... " >&6; }
2744if test "$cross_compiling" != yes; then
2745 { { ac_try="$ac_link"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2751$as_echo "$ac_try_echo"; } >&5
2752 (eval "$ac_link") 2>&5
2753 ac_status=$?
2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2755 test $ac_status = 0; }
2756 if { ac_try='./conftest$ac_cv_exeext'
2757 { { case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762$as_echo "$ac_try_echo"; } >&5
2763 (eval "$ac_try") 2>&5
2764 ac_status=$?
2765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2766 test $ac_status = 0; }; }; then
2767 cross_compiling=no
2768 else
2769 if test "$cross_compiling" = maybe; then
2770 cross_compiling=yes
2771 else
2772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774as_fn_error "cannot run C compiled programs.
2775If you meant to cross compile, use \`--host'.
2776See \`config.log' for more details." "$LINENO" 5; }
2777 fi
2778 fi
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2781$as_echo "$cross_compiling" >&6; }
2782
2783rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2784ac_clean_files=$ac_clean_files_save
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2786$as_echo_n "checking for suffix of object files... " >&6; }
2787if test "${ac_cv_objext+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2789else
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791/* end confdefs.h. */
2792
2793int
2794main ()
2795{
2796
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801rm -f conftest.o conftest.obj
2802if { { ac_try="$ac_compile"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
2807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2808$as_echo "$ac_try_echo"; } >&5
2809 (eval "$ac_compile") 2>&5
2810 ac_status=$?
2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812 test $ac_status = 0; }; then :
2813 for ac_file in conftest.o conftest.obj conftest.*; do
2814 test -f "$ac_file" || continue;
2815 case $ac_file in
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2818 break;;
2819 esac
2820done
2821else
2822 $as_echo "$as_me: failed program was:" >&5
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827as_fn_error "cannot compute suffix of object files: cannot compile
2828See \`config.log' for more details." "$LINENO" 5; }
2829fi
2830rm -f conftest.$ac_cv_objext conftest.$ac_ext
2831fi
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2833$as_echo "$ac_cv_objext" >&6; }
2834OBJEXT=$ac_cv_objext
2835ac_objext=$OBJEXT
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2837$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2838if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2839 $as_echo_n "(cached) " >&6
2840else
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842/* end confdefs.h. */
2843
2844int
2845main ()
2846{
2847#ifndef __GNUC__
2848 choke me
2849#endif
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_compiler_gnu=yes
2857else
2858 ac_compiler_gnu=no
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861ac_cv_c_compiler_gnu=$ac_compiler_gnu
2862
2863fi
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2865$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2866if test $ac_compiler_gnu = yes; then
2867 GCC=yes
2868else
2869 GCC=
2870fi
2871ac_test_CFLAGS=${CFLAGS+set}
2872ac_save_CFLAGS=$CFLAGS
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2874$as_echo_n "checking whether $CC accepts -g... " >&6; }
2875if test "${ac_cv_prog_cc_g+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877else
2878 ac_save_c_werror_flag=$ac_c_werror_flag
2879 ac_c_werror_flag=yes
2880 ac_cv_prog_cc_g=no
2881 CFLAGS="-g"
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893if ac_fn_c_try_compile "$LINENO"; then :
2894 ac_cv_prog_cc_g=yes
2895else
2896 CFLAGS=""
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899
2900int
2901main ()
2902{
2903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908if ac_fn_c_try_compile "$LINENO"; then :
2909
2910else
2911 ac_c_werror_flag=$ac_save_c_werror_flag
2912 CFLAGS="-g"
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_cv_prog_cc_g=yes
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928fi
2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930fi
2931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932 ac_c_werror_flag=$ac_save_c_werror_flag
2933fi
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2935$as_echo "$ac_cv_prog_cc_g" >&6; }
2936if test "$ac_test_CFLAGS" = set; then
2937 CFLAGS=$ac_save_CFLAGS
2938elif test $ac_cv_prog_cc_g = yes; then
2939 if test "$GCC" = yes; then
2940 CFLAGS="-g -O2"
2941 else
2942 CFLAGS="-g"
2943 fi
2944else
2945 if test "$GCC" = yes; then
2946 CFLAGS="-O2"
2947 else
2948 CFLAGS=
2949 fi
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2952$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2953if test "${ac_cv_prog_cc_c89+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955else
2956 ac_cv_prog_cc_c89=no
2957ac_save_CC=$CC
2958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h. */
2960#include <stdarg.h>
2961#include <stdio.h>
2962#include <sys/types.h>
2963#include <sys/stat.h>
2964/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2965struct buf { int x; };
2966FILE * (*rcsopen) (struct buf *, struct stat *, int);
2967static char *e (p, i)
2968 char **p;
2969 int i;
2970{
2971 return p[i];
2972}
2973static char *f (char * (*g) (char **, int), char **p, ...)
2974{
2975 char *s;
2976 va_list v;
2977 va_start (v,p);
2978 s = g (p, va_arg (v,int));
2979 va_end (v);
2980 return s;
2981}
2982
2983/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2984 function prototypes and stuff, but not '\xHH' hex character constants.
2985 These don't provoke an error unfortunately, instead are silently treated
2986 as 'x'. The following induces an error, until -std is added to get
2987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2988 array size at least. It's necessary to write '\x00'==0 to get something
2989 that's true only with -std. */
2990int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2991
2992/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2993 inside strings and character constants. */
2994#define FOO(x) 'x'
2995int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2996
2997int test (int i, double x);
2998struct s1 {int (*f) (int a);};
2999struct s2 {int (*f) (double a);};
3000int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3001int argc;
3002char **argv;
3003int
3004main ()
3005{
3006return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3013do
3014 CC="$ac_save_CC $ac_arg"
3015 if ac_fn_c_try_compile "$LINENO"; then :
3016 ac_cv_prog_cc_c89=$ac_arg
3017fi
3018rm -f core conftest.err conftest.$ac_objext
3019 test "x$ac_cv_prog_cc_c89" != "xno" && break
3020done
3021rm -f conftest.$ac_ext
3022CC=$ac_save_CC
3023
3024fi
3025# AC_CACHE_VAL
3026case "x$ac_cv_prog_cc_c89" in
3027 x)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3029$as_echo "none needed" >&6; } ;;
3030 xno)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3032$as_echo "unsupported" >&6; } ;;
3033 *)
3034 CC="$CC $ac_cv_prog_cc_c89"
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3036$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3037esac
3038if test "x$ac_cv_prog_cc_c89" != xno; then :
3039
3040fi
3041
3042ac_ext=c
3043ac_cpp='$CPP $CPPFLAGS'
3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048# Find a good install program. We prefer a C program (faster),
3049# so one script is as good as another. But avoid the broken or
3050# incompatible versions:
3051# SysV /etc/install, /usr/sbin/install
3052# SunOS /usr/etc/install
3053# IRIX /sbin/install
3054# AIX /bin/install
3055# AmigaOS /C/install, which installs bootblocks on floppy discs
3056# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3057# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3058# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3059# OS/2's system install, which has a completely different semantic
3060# ./install, which can be erroneously created by make from ./install.sh.
3061# Reject install programs that cannot install multiple files.
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3063$as_echo_n "checking for a BSD-compatible install... " >&6; }
3064if test -z "$INSTALL"; then
3065if test "${ac_cv_path_install+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 # Account for people who put trailing slashes in PATH elements.
3074case $as_dir/ in #((
3075 ./ | .// | /[cC]/* | \
3076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3077 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3078 /usr/ucb/* ) ;;
3079 *)
3080 # OSF1 and SCO ODT 3.0 have their own names for install.
3081 # Don't use installbsd from OSF since it installs stuff as root
3082 # by default.
3083 for ac_prog in ginstall scoinst install; do
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3086 if test $ac_prog = install &&
3087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # AIX install. It has an incompatible calling convention.
3089 :
3090 elif test $ac_prog = install &&
3091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3092 # program-specific install script used by HP pwplus--don't use.
3093 :
3094 else
3095 rm -rf conftest.one conftest.two conftest.dir
3096 echo one > conftest.one
3097 echo two > conftest.two
3098 mkdir conftest.dir
3099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3100 test -s conftest.one && test -s conftest.two &&
3101 test -s conftest.dir/conftest.one &&
3102 test -s conftest.dir/conftest.two
3103 then
3104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3105 break 3
3106 fi
3107 fi
3108 fi
3109 done
3110 done
3111 ;;
3112esac
3113
3114 done
3115IFS=$as_save_IFS
3116
3117rm -rf conftest.one conftest.two conftest.dir
3118
3119fi
3120 if test "${ac_cv_path_install+set}" = set; then
3121 INSTALL=$ac_cv_path_install
3122 else
3123 # As a last resort, use the slow shell script. Don't cache a
3124 # value for INSTALL within a source directory, because that will
3125 # break other packages using the cache if that directory is
3126 # removed, or if the value is a relative name.
3127 INSTALL=$ac_install_sh
3128 fi
3129fi
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3131$as_echo "$INSTALL" >&6; }
3132
3133# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3134# It thinks the first close brace ends the variable substitution.
3135test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3136
3137test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3138
3139test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3140
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3142$as_echo_n "checking whether ln -s works... " >&6; }
3143LN_S=$as_ln_s
3144if test "$LN_S" = "ln -s"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146$as_echo "yes" >&6; }
3147else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3149$as_echo "no, using $LN_S" >&6; }
3150fi
3151
3152
3153
3154
3155ac_ext=c
3156ac_cpp='$CPP $CPPFLAGS'
3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3161$as_echo_n "checking how to run the C preprocessor... " >&6; }
3162# On Suns, sometimes $CPP names a directory.
3163if test -n "$CPP" && test -d "$CPP"; then
3164 CPP=
3165fi
3166if test -z "$CPP"; then
3167 if test "${ac_cv_prog_CPP+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169else
3170 # Double quotes because CPP needs to be expanded
3171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3172 do
3173 ac_preproc_ok=false
3174for ac_c_preproc_warn_flag in '' yes
3175do
3176 # Use a header file that comes with gcc, so configuring glibc
3177 # with a fresh cross-compiler works.
3178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3179 # <limits.h> exists even on freestanding compilers.
3180 # On the NeXT, cc -E runs the code through the compiler's parser,
3181 # not just through cpp. "Syntax error" is here to catch this case.
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h. */
3184#ifdef __STDC__
3185# include <limits.h>
3186#else
3187# include <assert.h>
3188#endif
3189 Syntax error
3190_ACEOF
3191if ac_fn_c_try_cpp "$LINENO"; then :
3192
3193else
3194 # Broken: fails on valid input.
3195continue
3196fi
3197rm -f conftest.err conftest.$ac_ext
3198
3199 # OK, works on sane cases. Now check whether nonexistent headers
3200 # can be detected and how.
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h. */
3203#include <ac_nonexistent.h>
3204_ACEOF
3205if ac_fn_c_try_cpp "$LINENO"; then :
3206 # Broken: success on invalid input.
3207continue
3208else
3209 # Passes both tests.
3210ac_preproc_ok=:
3211break
3212fi
3213rm -f conftest.err conftest.$ac_ext
3214
3215done
3216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217rm -f conftest.err conftest.$ac_ext
3218if $ac_preproc_ok; then :
3219 break
3220fi
3221
3222 done
3223 ac_cv_prog_CPP=$CPP
3224
3225fi
3226 CPP=$ac_cv_prog_CPP
3227else
3228 ac_cv_prog_CPP=$CPP
3229fi
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3231$as_echo "$CPP" >&6; }
3232ac_preproc_ok=false
3233for ac_c_preproc_warn_flag in '' yes
3234do
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
3250if ac_fn_c_try_cpp "$LINENO"; then :
3251
3252else
3253 # Broken: fails on valid input.
3254continue
3255fi
3256rm -f conftest.err conftest.$ac_ext
3257
3258 # OK, works on sane cases. Now check whether nonexistent headers
3259 # can be detected and how.
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h. */
3262#include <ac_nonexistent.h>
3263_ACEOF
3264if ac_fn_c_try_cpp "$LINENO"; then :
3265 # Broken: success on invalid input.
3266continue
3267else
3268 # Passes both tests.
3269ac_preproc_ok=:
3270break
3271fi
3272rm -f conftest.err conftest.$ac_ext
3273
3274done
3275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276rm -f conftest.err conftest.$ac_ext
3277if $ac_preproc_ok; then :
3278
3279else
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282as_fn_error "C preprocessor \"$CPP\" fails sanity check
3283See \`config.log' for more details." "$LINENO" 5; }
3284fi
3285
3286ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3294$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3295if test "${ac_cv_path_GREP+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3297else
3298 if test -z "$GREP"; then
3299 ac_path_GREP_found=false
3300 # Loop through the user's path and test for each of PROGNAME-LIST
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_prog in grep ggrep; do
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3310# Check for GNU ac_path_GREP and select it if it is found.
3311 # Check for GNU $ac_path_GREP
3312case `"$ac_path_GREP" --version 2>&1` in
3313*GNU*)
3314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3315*)
3316 ac_count=0
3317 $as_echo_n 0123456789 >"conftest.in"
3318 while :
3319 do
3320 cat "conftest.in" "conftest.in" >"conftest.tmp"
3321 mv "conftest.tmp" "conftest.in"
3322 cp "conftest.in" "conftest.nl"
3323 $as_echo 'GREP' >> "conftest.nl"
3324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326 as_fn_arith $ac_count + 1 && ac_count=$as_val
3327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3328 # Best one so far, save it but keep looking for a better one
3329 ac_cv_path_GREP="$ac_path_GREP"
3330 ac_path_GREP_max=$ac_count
3331 fi
3332 # 10*(2^10) chars as input seems more than enough
3333 test $ac_count -gt 10 && break
3334 done
3335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336esac
3337
3338 $ac_path_GREP_found && break 3
3339 done
3340 done
3341 done
3342IFS=$as_save_IFS
3343 if test -z "$ac_cv_path_GREP"; then
3344 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3345 fi
3346else
3347 ac_cv_path_GREP=$GREP
3348fi
3349
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3352$as_echo "$ac_cv_path_GREP" >&6; }
3353 GREP="$ac_cv_path_GREP"
3354
3355
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3357$as_echo_n "checking for egrep... " >&6; }
3358if test "${ac_cv_path_EGREP+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3360else
3361 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3362 then ac_cv_path_EGREP="$GREP -E"
3363 else
3364 if test -z "$EGREP"; then
3365 ac_path_EGREP_found=false
3366 # Loop through the user's path and test for each of PROGNAME-LIST
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_prog in egrep; do
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3375 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3376# Check for GNU ac_path_EGREP and select it if it is found.
3377 # Check for GNU $ac_path_EGREP
3378case `"$ac_path_EGREP" --version 2>&1` in
3379*GNU*)
3380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3381*)
3382 ac_count=0
3383 $as_echo_n 0123456789 >"conftest.in"
3384 while :
3385 do
3386 cat "conftest.in" "conftest.in" >"conftest.tmp"
3387 mv "conftest.tmp" "conftest.in"
3388 cp "conftest.in" "conftest.nl"
3389 $as_echo 'EGREP' >> "conftest.nl"
3390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3392 as_fn_arith $ac_count + 1 && ac_count=$as_val
3393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3394 # Best one so far, save it but keep looking for a better one
3395 ac_cv_path_EGREP="$ac_path_EGREP"
3396 ac_path_EGREP_max=$ac_count
3397 fi
3398 # 10*(2^10) chars as input seems more than enough
3399 test $ac_count -gt 10 && break
3400 done
3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3402esac
3403
3404 $ac_path_EGREP_found && break 3
3405 done
3406 done
3407 done
3408IFS=$as_save_IFS
3409 if test -z "$ac_cv_path_EGREP"; then
3410 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3411 fi
3412else
3413 ac_cv_path_EGREP=$EGREP
3414fi
3415
3416 fi
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3419$as_echo "$ac_cv_path_EGREP" >&6; }
3420 EGREP="$ac_cv_path_EGREP"
3421
3422
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3424$as_echo_n "checking for ANSI C header files... " >&6; }
3425if test "${ac_cv_header_stdc+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h. */
3430#include <stdlib.h>
3431#include <stdarg.h>
3432#include <string.h>
3433#include <float.h>
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_header_stdc=yes
3445else
3446 ac_cv_header_stdc=no
3447fi
3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449
3450if test $ac_cv_header_stdc = yes; then
3451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h. */
3454#include <string.h>
3455
3456_ACEOF
3457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458 $EGREP "memchr" >/dev/null 2>&1; then :
3459
3460else
3461 ac_cv_header_stdc=no
3462fi
3463rm -f conftest*
3464
3465fi
3466
3467if test $ac_cv_header_stdc = yes; then
3468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h. */
3471#include <stdlib.h>
3472
3473_ACEOF
3474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 $EGREP "free" >/dev/null 2>&1; then :
3476
3477else
3478 ac_cv_header_stdc=no
3479fi
3480rm -f conftest*
3481
3482fi
3483
3484if test $ac_cv_header_stdc = yes; then
3485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3486 if test "$cross_compiling" = yes; then :
3487 :
3488else
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h. */
3491#include <ctype.h>
3492#include <stdlib.h>
3493#if ((' ' & 0x0FF) == 0x020)
3494# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3495# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3496#else
3497# define ISLOWER(c) \
3498 (('a' <= (c) && (c) <= 'i') \
3499 || ('j' <= (c) && (c) <= 'r') \
3500 || ('s' <= (c) && (c) <= 'z'))
3501# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3502#endif
3503
3504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3505int
3506main ()
3507{
3508 int i;
3509 for (i = 0; i < 256; i++)
3510 if (XOR (islower (i), ISLOWER (i))
3511 || toupper (i) != TOUPPER (i))
3512 return 2;
3513 return 0;
3514}
3515_ACEOF
3516if ac_fn_c_try_run "$LINENO"; then :
3517
3518else
3519 ac_cv_header_stdc=no
3520fi
3521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3522 conftest.$ac_objext conftest.beam conftest.$ac_ext
3523fi
3524
3525fi
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3528$as_echo "$ac_cv_header_stdc" >&6; }
3529if test $ac_cv_header_stdc = yes; then
3530
3531$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3532
3533fi
3534
3535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3536for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3537 inttypes.h stdint.h unistd.h
3538do :
3539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3540ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3541"
3542eval as_val=\$$as_ac_Header
3543 if test "x$as_val" = x""yes; then :
3544 cat >>confdefs.h <<_ACEOF
3545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3546_ACEOF
3547
3548fi
3549
3550done
3551
3552
3553# The cast to long int works around a bug in the HP C Compiler
3554# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3555# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3556# This bug is HP SR number 8606223364.
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3558$as_echo_n "checking size of void *... " >&6; }
3559if test "${ac_cv_sizeof_void_p+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561else
3562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3563
3564else
3565 if test "$ac_cv_type_void_p" = yes; then
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568{ as_fn_set_status 77
3569as_fn_error "cannot compute sizeof (void *)
3570See \`config.log' for more details." "$LINENO" 5; }; }
3571 else
3572 ac_cv_sizeof_void_p=0
3573 fi
3574fi
3575
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3578$as_echo "$ac_cv_sizeof_void_p" >&6; }
3579
3580
3581
3582cat >>confdefs.h <<_ACEOF
3583#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3584_ACEOF
3585
3586
3587# The cast to long int works around a bug in the HP C Compiler
3588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3590# This bug is HP SR number 8606223364.
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
3592$as_echo_n "checking size of int... " >&6; }
3593if test "${ac_cv_sizeof_int+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595else
3596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
3597
3598else
3599 if test "$ac_cv_type_int" = yes; then
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602{ as_fn_set_status 77
3603as_fn_error "cannot compute sizeof (int)
3604See \`config.log' for more details." "$LINENO" 5; }; }
3605 else
3606 ac_cv_sizeof_int=0
3607 fi
3608fi
3609
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
3612$as_echo "$ac_cv_sizeof_int" >&6; }
3613
3614
3615
3616cat >>confdefs.h <<_ACEOF
3617#define SIZEOF_INT $ac_cv_sizeof_int
3618_ACEOF
3619
3620
3621# The cast to long int works around a bug in the HP C Compiler
3622# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3623# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3624# This bug is HP SR number 8606223364.
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3626$as_echo_n "checking size of long... " >&6; }
3627if test "${ac_cv_sizeof_long+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
3631
3632else
3633 if test "$ac_cv_type_long" = yes; then
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636{ as_fn_set_status 77
3637as_fn_error "cannot compute sizeof (long)
3638See \`config.log' for more details." "$LINENO" 5; }; }
3639 else
3640 ac_cv_sizeof_long=0
3641 fi
3642fi
3643
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
3646$as_echo "$ac_cv_sizeof_long" >&6; }
3647
3648
3649
3650cat >>confdefs.h <<_ACEOF
3651#define SIZEOF_LONG $ac_cv_sizeof_long
3652_ACEOF
3653
3654
3655
3656######## check for the JDK and tools within the JDK
3657######## look in the JAVA_HOME environment variable at configure-time
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the JDK" >&5
3659$as_echo_n "checking for the JDK... " >&6; }
3660if test "z$JAVA_HOME" != z &&
3661 test -d $JAVA_HOME &&
3662 test -d $JAVA_HOME/include
3663then
3664
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $JAVA_HOME" >&5
3666$as_echo "found in $JAVA_HOME" >&6; }
3667else
3668 as_fn_error "not found in \$JAVA_HOME" "$LINENO" 5
3669fi
3670
3671# TODO: Check for specific header files in the JDK, or
3672# functions/definitions within those headers?
3673
3674# TODO: guess which include directory to use under the JDK
3675
3676# Extract the first word of "javah", so it can be a program name with args.
3677set dummy javah; ac_word=$2
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679$as_echo_n "checking for $ac_word... " >&6; }
3680if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682else
3683 case $javagdbm_cv_path_javah in
3684 [\\/]* | ?:[\\/]*)
3685 ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path.
3686 ;;
3687 *)
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699done
3700 done
3701IFS=$as_save_IFS
3702
3703 test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah"
3704 ;;
3705esac
3706fi
3707javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah
3708if test -n "$javagdbm_cv_path_javah"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_javah" >&5
3710$as_echo "$javagdbm_cv_path_javah" >&6; }
3711else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713$as_echo "no" >&6; }
3714fi
3715
3716
3717if test "$javagdbm_cv_path_javah" = missing_javah; then
3718 as_fn_error "javah not found." "$LINENO" 5
3719fi
3720
3721# Extract the first word of "java", so it can be a program name with args.
3722set dummy java; ac_word=$2
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724$as_echo_n "checking for $ac_word... " >&6; }
3725if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727else
3728 case $javagdbm_cv_path_java in
3729 [\\/]* | ?:[\\/]*)
3730 ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path.
3731 ;;
3732 *)
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744done
3745 done
3746IFS=$as_save_IFS
3747
3748 test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing"
3749 ;;
3750esac
3751fi
3752javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java
3753if test -n "$javagdbm_cv_path_java"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_java" >&5
3755$as_echo "$javagdbm_cv_path_java" >&6; }
3756else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759fi
3760
3761
3762if test "$javagdbm_cv_path_java" = missing; then
3763 as_fn_error "java not found." "$LINENO" 5
3764fi
3765
3766# check for gdbm library
3767#AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
3768# [javagdbm_cv_lib_gdbm=no])
3769#if test "$javagdbm_cv_lib_gdbm" = "no"; then
3770# AC_MSG_ERROR([no native gdbm library found.])
3771#fi
3772#LIBS="$javagdbm_cv_lib_gdbm"
3773
3774# gdbm stuff copied from gsdl [kjdon]
3775
3776
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that the GDBM library is available" >&5
3778$as_echo_n "checking that the GDBM library is available... " >&6; }
3779if test ! -z "$gdbmdir" ; then
3780 # look in given directory for header file
3781 if test -r $gdbmdir/include/gdbm.h ; then
3782 GDBM_INCLUDE="-I$gdbmdir/include" ;
3783 elif test -r $gdbmdir/gdbm.h ; then
3784 GDBM_INCLUDE="-I$gdbmdir" ;
3785 fi
3786
3787 # look in given directory for library
3788 if test -r $gdbmdir/libgdbm.a ; then
3789 GDBM_LIBPATH="-L$gdbmdir" ;
3790 elif test -r $gdbmdir/lib/libgdbm.a ; then
3791 GDBM_LIBPATH="-L$gdbmdir/lib" ;
3792 elif test -r $gdbmdir/.libs/libgdbm.a ; then
3793 GDBM_LIBPATH="-L$gdbmdir/.libs" ;
3794 fi
3795
3796 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbmdir" >&5
3798$as_echo "$gdbmdir" >&6; } ;
3799 else
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
3801$as_echo "can't find gdbm.h and libgdbm.a in $gdbmdir" >&6; };
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for GDBM library in default locations" >&5
3803$as_echo_n "checking looking for GDBM library in default locations... " >&6; }
3804 fi
3805fi
3806
3807# look in default path and in /usr/local
3808if test -z "$GDBM_INCLUDE" ; then
3809 # try in system directory
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h. */
3812#include <gdbm.h>
3813
3814int
3815main ()
3816{
3817
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822if ac_fn_c_try_compile "$LINENO"; then :
3823 success=yes
3824else
3825 success=no
3826
3827fi
3828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829
3830 if test $success = "no"; then
3831# last chance - look in /usr/local (eg FreeBSD)
3832 GDBM_LIBPATH=-L/usr/local/lib
3833 GDBM_INCLUDE=-I/usr/local/include
3834 ac_save_CXXFLAGS="$CXXFLAGS"
3835 ac_save_LIBS="$LIBS"
3836 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
3837 LIBS="$LIBS -L/usr/local/lib -lgdbm"
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h. */
3840#include <gdbm.h>
3841#include <stdio.h>
3842
3843int
3844main ()
3845{
3846printf("%s",gdbm_version);
3847 ;
3848 return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_link "$LINENO"; then :
3852 success=/usr/local
3853else
3854 success=no
3855
3856fi
3857rm -f core conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3859 CXXFLAGS=$ac_save_CXXFLAGS
3860 LIBS=$ac_save_LIBS
3861 fi
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $success" >&5
3864$as_echo "$success" >&6; }
3865 if test $success = "no"; then
3866 as_fn_error "GDBM Library not available - cannot install" "$LINENO" 5
3867 fi
3868fi
3869$as_echo "#define HAVE_LIBGDBM 1" >>confdefs.h
3870
3871
3872
3873
3874
3875########## set compiler options
3876# TODO: is there a more appropriate way to guess which switches to use
3877# with which systems/compilers?
3878CFLAGS="-Wall -O2 -fpic"
3879PKG="au.com.pharos.gdbm"
3880
3881
3882
3883
3884# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
3885# a non-standard Path
3886# is there a better way to do this??
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
3888$as_echo_n "checking for OS to set JNI options... " >&6; }
3889# set defaults
3890JNIINC=""
3891JNISUFFIX="so"
3892JNIFLAGS="-shared"
3893
3894if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3896$as_echo "Darwin" >&6; }
3897 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
3898 JNISUFFIX="jnilib"
3899 JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
3900fi
3901if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3903$as_echo "Solaris" >&6; }
3904 JNIINC="-I\$(JAVA_HOME)/include/solaris "
3905fi
3906if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
3908$as_echo "Linux" >&6; }
3909 JNIINC="-I\$(JAVA_HOME)/include/linux "
3910fi
3911
3912
3913
3914
3915
3916# write the output
3917ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
3918
3919cat >confcache <<\_ACEOF
3920# This file is a shell script that caches the results of configure
3921# tests run on this system so they can be shared between configure
3922# scripts and configure runs, see configure's option --config-cache.
3923# It is not useful on other systems. If it contains results you don't
3924# want to keep, you may remove or edit it.
3925#
3926# config.status only pays attention to the cache file if you give it
3927# the --recheck option to rerun configure.
3928#
3929# `ac_cv_env_foo' variables (set or unset) will be overridden when
3930# loading this file, other *unset* `ac_cv_foo' will be assigned the
3931# following values.
3932
3933_ACEOF
3934
3935# The following way of writing the cache mishandles newlines in values,
3936# but we know of no workaround that is simple, portable, and efficient.
3937# So, we kill variables containing newlines.
3938# Ultrix sh set writes to stderr and can't be redirected directly,
3939# and sets the high bit in the cache file unless we assign to the vars.
3940(
3941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3942 eval ac_val=\$$ac_var
3943 case $ac_val in #(
3944 *${as_nl}*)
3945 case $ac_var in #(
3946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3947$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3948 esac
3949 case $ac_var in #(
3950 _ | IFS | as_nl) ;; #(
3951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3952 *) { eval $ac_var=; unset $ac_var;} ;;
3953 esac ;;
3954 esac
3955 done
3956
3957 (set) 2>&1 |
3958 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3959 *${as_nl}ac_space=\ *)
3960 # `set' does not quote correctly, so add quotes: double-quote
3961 # substitution turns \\\\ into \\, and sed turns \\ into \.
3962 sed -n \
3963 "s/'/'\\\\''/g;
3964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3965 ;; #(
3966 *)
3967 # `set' quotes correctly as required by POSIX, so do not add quotes.
3968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3969 ;;
3970 esac |
3971 sort
3972) |
3973 sed '
3974 /^ac_cv_env_/b end
3975 t clear
3976 :clear
3977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3978 t end
3979 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3980 :end' >>confcache
3981if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3982 if test -w "$cache_file"; then
3983 test "x$cache_file" != "x/dev/null" &&
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3985$as_echo "$as_me: updating cache $cache_file" >&6;}
3986 cat confcache >$cache_file
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3989$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3990 fi
3991fi
3992rm -f confcache
3993
3994test "x$prefix" = xNONE && prefix=$ac_default_prefix
3995# Let make expand exec_prefix.
3996test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3997
3998# Transform confdefs.h into DEFS.
3999# Protect against shell expansion while executing Makefile rules.
4000# Protect against Makefile macro expansion.
4001#
4002# If the first sed substitution is executed (which looks for macros that
4003# take arguments), then branch to the quote section. Otherwise,
4004# look for a macro that doesn't take arguments.
4005ac_script='
4006:mline
4007/\\$/{
4008 N
4009 s,\\\n,,
4010 b mline
4011}
4012t clear
4013:clear
4014s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4015t quote
4016s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4017t quote
4018b any
4019:quote
4020s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4021s/\[/\\&/g
4022s/\]/\\&/g
4023s/\$/$$/g
4024H
4025:any
4026${
4027 g
4028 s/^\n//
4029 s/\n/ /g
4030 p
4031}
4032'
4033DEFS=`sed -n "$ac_script" confdefs.h`
4034
4035
4036ac_libobjs=
4037ac_ltlibobjs=
4038for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4039 # 1. Remove the extension, and $U if already installed.
4040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4041 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4043 # will be set to the directory where LIBOBJS objects are built.
4044 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4045 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4046done
4047LIBOBJS=$ac_libobjs
4048
4049LTLIBOBJS=$ac_ltlibobjs
4050
4051
4052
4053: ${CONFIG_STATUS=./config.status}
4054ac_write_fail=0
4055ac_clean_files_save=$ac_clean_files
4056ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4058$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4059as_write_fail=0
4060cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4061#! $SHELL
4062# Generated by $as_me.
4063# Run this file to recreate the current configuration.
4064# Compiler output produced by configure, useful for debugging
4065# configure, is in config.log if it exists.
4066
4067debug=false
4068ac_cs_recheck=false
4069ac_cs_silent=false
4070
4071SHELL=\${CONFIG_SHELL-$SHELL}
4072export SHELL
4073_ASEOF
4074cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4075## -------------------- ##
4076## M4sh Initialization. ##
4077## -------------------- ##
4078
4079# Be more Bourne compatible
4080DUALCASE=1; export DUALCASE # for MKS sh
4081if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4082 emulate sh
4083 NULLCMD=:
4084 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4085 # is contrary to our usage. Disable this feature.
4086 alias -g '${1+"$@"}'='"$@"'
4087 setopt NO_GLOB_SUBST
4088else
4089 case `(set -o) 2>/dev/null` in #(
4090 *posix*) :
4091 set -o posix ;; #(
4092 *) :
4093 ;;
4094esac
4095fi
4096
4097
4098as_nl='
4099'
4100export as_nl
4101# Printing a long string crashes Solaris 7 /usr/bin/printf.
4102as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4103as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4104as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4105# Prefer a ksh shell builtin over an external printf program on Solaris,
4106# but without wasting forks for bash or zsh.
4107if test -z "$BASH_VERSION$ZSH_VERSION" \
4108 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4109 as_echo='print -r --'
4110 as_echo_n='print -rn --'
4111elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4112 as_echo='printf %s\n'
4113 as_echo_n='printf %s'
4114else
4115 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4116 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4117 as_echo_n='/usr/ucb/echo -n'
4118 else
4119 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4120 as_echo_n_body='eval
4121 arg=$1;
4122 case $arg in #(
4123 *"$as_nl"*)
4124 expr "X$arg" : "X\\(.*\\)$as_nl";
4125 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4126 esac;
4127 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4128 '
4129 export as_echo_n_body
4130 as_echo_n='sh -c $as_echo_n_body as_echo'
4131 fi
4132 export as_echo_body
4133 as_echo='sh -c $as_echo_body as_echo'
4134fi
4135
4136# The user is always right.
4137if test "${PATH_SEPARATOR+set}" != set; then
4138 PATH_SEPARATOR=:
4139 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4140 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4141 PATH_SEPARATOR=';'
4142 }
4143fi
4144
4145
4146# IFS
4147# We need space, tab and new line, in precisely that order. Quoting is
4148# there to prevent editors from complaining about space-tab.
4149# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4150# splitting by setting IFS to empty value.)
4151IFS=" "" $as_nl"
4152
4153# Find who we are. Look in the path if we contain no directory separator.
4154case $0 in #((
4155 *[\\/]* ) as_myself=$0 ;;
4156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4162 done
4163IFS=$as_save_IFS
4164
4165 ;;
4166esac
4167# We did not find ourselves, most probably we were run as `sh COMMAND'
4168# in which case we are not to be found in the path.
4169if test "x$as_myself" = x; then
4170 as_myself=$0
4171fi
4172if test ! -f "$as_myself"; then
4173 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4174 exit 1
4175fi
4176
4177# Unset variables that we do not need and which cause bugs (e.g. in
4178# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4179# suppresses any "Segmentation fault" message there. '((' could
4180# trigger a bug in pdksh 5.2.14.
4181for as_var in BASH_ENV ENV MAIL MAILPATH
4182do eval test x\${$as_var+set} = xset \
4183 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4184done
4185PS1='$ '
4186PS2='> '
4187PS4='+ '
4188
4189# NLS nuisances.
4190LC_ALL=C
4191export LC_ALL
4192LANGUAGE=C
4193export LANGUAGE
4194
4195# CDPATH.
4196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4197
4198
4199# as_fn_error ERROR [LINENO LOG_FD]
4200# ---------------------------------
4201# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4202# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4203# script with status $?, using 1 if that was 0.
4204as_fn_error ()
4205{
4206 as_status=$?; test $as_status -eq 0 && as_status=1
4207 if test "$3"; then
4208 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4209 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4210 fi
4211 $as_echo "$as_me: error: $1" >&2
4212 as_fn_exit $as_status
4213} # as_fn_error
4214
4215
4216# as_fn_set_status STATUS
4217# -----------------------
4218# Set $? to STATUS, without forking.
4219as_fn_set_status ()
4220{
4221 return $1
4222} # as_fn_set_status
4223
4224# as_fn_exit STATUS
4225# -----------------
4226# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4227as_fn_exit ()
4228{
4229 set +e
4230 as_fn_set_status $1
4231 exit $1
4232} # as_fn_exit
4233
4234# as_fn_unset VAR
4235# ---------------
4236# Portably unset VAR.
4237as_fn_unset ()
4238{
4239 { eval $1=; unset $1;}
4240}
4241as_unset=as_fn_unset
4242# as_fn_append VAR VALUE
4243# ----------------------
4244# Append the text in VALUE to the end of the definition contained in VAR. Take
4245# advantage of any shell optimizations that allow amortized linear growth over
4246# repeated appends, instead of the typical quadratic growth present in naive
4247# implementations.
4248if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4249 eval 'as_fn_append ()
4250 {
4251 eval $1+=\$2
4252 }'
4253else
4254 as_fn_append ()
4255 {
4256 eval $1=\$$1\$2
4257 }
4258fi # as_fn_append
4259
4260# as_fn_arith ARG...
4261# ------------------
4262# Perform arithmetic evaluation on the ARGs, and store the result in the
4263# global $as_val. Take advantage of shells that can avoid forks. The arguments
4264# must be portable across $(()) and expr.
4265if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4266 eval 'as_fn_arith ()
4267 {
4268 as_val=$(( $* ))
4269 }'
4270else
4271 as_fn_arith ()
4272 {
4273 as_val=`expr "$@" || test $? -eq 1`
4274 }
4275fi # as_fn_arith
4276
4277
4278if expr a : '\(a\)' >/dev/null 2>&1 &&
4279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4280 as_expr=expr
4281else
4282 as_expr=false
4283fi
4284
4285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4286 as_basename=basename
4287else
4288 as_basename=false
4289fi
4290
4291if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4292 as_dirname=dirname
4293else
4294 as_dirname=false
4295fi
4296
4297as_me=`$as_basename -- "$0" ||
4298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4299 X"$0" : 'X\(//\)$' \| \
4300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4301$as_echo X/"$0" |
4302 sed '/^.*\/\([^/][^/]*\)\/*$/{
4303 s//\1/
4304 q
4305 }
4306 /^X\/\(\/\/\)$/{
4307 s//\1/
4308 q
4309 }
4310 /^X\/\(\/\).*/{
4311 s//\1/
4312 q
4313 }
4314 s/.*/./; q'`
4315
4316# Avoid depending upon Character Ranges.
4317as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4318as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4319as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4320as_cr_digits='0123456789'
4321as_cr_alnum=$as_cr_Letters$as_cr_digits
4322
4323ECHO_C= ECHO_N= ECHO_T=
4324case `echo -n x` in #(((((
4325-n*)
4326 case `echo 'xy\c'` in
4327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4328 xy) ECHO_C='\c';;
4329 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4330 ECHO_T=' ';;
4331 esac;;
4332*)
4333 ECHO_N='-n';;
4334esac
4335
4336rm -f conf$$ conf$$.exe conf$$.file
4337if test -d conf$$.dir; then
4338 rm -f conf$$.dir/conf$$.file
4339else
4340 rm -f conf$$.dir
4341 mkdir conf$$.dir 2>/dev/null
4342fi
4343if (echo >conf$$.file) 2>/dev/null; then
4344 if ln -s conf$$.file conf$$ 2>/dev/null; then
4345 as_ln_s='ln -s'
4346 # ... but there are two gotchas:
4347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4349 # In both cases, we have to default to `cp -p'.
4350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4351 as_ln_s='cp -p'
4352 elif ln conf$$.file conf$$ 2>/dev/null; then
4353 as_ln_s=ln
4354 else
4355 as_ln_s='cp -p'
4356 fi
4357else
4358 as_ln_s='cp -p'
4359fi
4360rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4361rmdir conf$$.dir 2>/dev/null
4362
4363
4364# as_fn_mkdir_p
4365# -------------
4366# Create "$as_dir" as a directory, including parents if necessary.
4367as_fn_mkdir_p ()
4368{
4369
4370 case $as_dir in #(
4371 -*) as_dir=./$as_dir;;
4372 esac
4373 test -d "$as_dir" || eval $as_mkdir_p || {
4374 as_dirs=
4375 while :; do
4376 case $as_dir in #(
4377 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4378 *) as_qdir=$as_dir;;
4379 esac
4380 as_dirs="'$as_qdir' $as_dirs"
4381 as_dir=`$as_dirname -- "$as_dir" ||
4382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4383 X"$as_dir" : 'X\(//\)[^/]' \| \
4384 X"$as_dir" : 'X\(//\)$' \| \
4385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4386$as_echo X"$as_dir" |
4387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4388 s//\1/
4389 q
4390 }
4391 /^X\(\/\/\)[^/].*/{
4392 s//\1/
4393 q
4394 }
4395 /^X\(\/\/\)$/{
4396 s//\1/
4397 q
4398 }
4399 /^X\(\/\).*/{
4400 s//\1/
4401 q
4402 }
4403 s/.*/./; q'`
4404 test -d "$as_dir" && break
4405 done
4406 test -z "$as_dirs" || eval "mkdir $as_dirs"
4407 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4408
4409
4410} # as_fn_mkdir_p
4411if mkdir -p . 2>/dev/null; then
4412 as_mkdir_p='mkdir -p "$as_dir"'
4413else
4414 test -d ./-p && rmdir ./-p
4415 as_mkdir_p=false
4416fi
4417
4418if test -x / >/dev/null 2>&1; then
4419 as_test_x='test -x'
4420else
4421 if ls -dL / >/dev/null 2>&1; then
4422 as_ls_L_option=L
4423 else
4424 as_ls_L_option=
4425 fi
4426 as_test_x='
4427 eval sh -c '\''
4428 if test -d "$1"; then
4429 test -d "$1/.";
4430 else
4431 case $1 in #(
4432 -*)set "./$1";;
4433 esac;
4434 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4435 ???[sx]*):;;*)false;;esac;fi
4436 '\'' sh
4437 '
4438fi
4439as_executable_p=$as_test_x
4440
4441# Sed expression to map a string onto a valid CPP name.
4442as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4443
4444# Sed expression to map a string onto a valid variable name.
4445as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4446
4447
4448exec 6>&1
4449## ----------------------------------- ##
4450## Main body of $CONFIG_STATUS script. ##
4451## ----------------------------------- ##
4452_ASEOF
4453test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4454
4455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4456# Save the log message, to keep $0 and so on meaningful, and to
4457# report actual input values of CONFIG_FILES etc. instead of their
4458# values after options handling.
4459ac_log="
4460This file was extended by $as_me, which was
4461generated by GNU Autoconf 2.65. Invocation command line was
4462
4463 CONFIG_FILES = $CONFIG_FILES
4464 CONFIG_HEADERS = $CONFIG_HEADERS
4465 CONFIG_LINKS = $CONFIG_LINKS
4466 CONFIG_COMMANDS = $CONFIG_COMMANDS
4467 $ $0 $@
4468
4469on `(hostname || uname -n) 2>/dev/null | sed 1q`
4470"
4471
4472_ACEOF
4473
4474case $ac_config_files in *"
4475"*) set x $ac_config_files; shift; ac_config_files=$*;;
4476esac
4477
4478
4479
4480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4481# Files that config.status was made for.
4482config_files="$ac_config_files"
4483
4484_ACEOF
4485
4486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4487ac_cs_usage="\
4488\`$as_me' instantiates files and other configuration actions
4489from templates according to the current configuration. Unless the files
4490and actions are specified as TAGs, all are instantiated by default.
4491
4492Usage: $0 [OPTION]... [TAG]...
4493
4494 -h, --help print this help, then exit
4495 -V, --version print version number and configuration settings, then exit
4496 --config print configuration, then exit
4497 -q, --quiet, --silent
4498 do not print progress messages
4499 -d, --debug don't remove temporary files
4500 --recheck update $as_me by reconfiguring in the same conditions
4501 --file=FILE[:TEMPLATE]
4502 instantiate the configuration file FILE
4503
4504Configuration files:
4505$config_files
4506
4507Report bugs to the package provider."
4508
4509_ACEOF
4510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4511ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4512ac_cs_version="\\
4513config.status
4514configured by $0, generated by GNU Autoconf 2.65,
4515 with options \\"\$ac_cs_config\\"
4516
4517Copyright (C) 2009 Free Software Foundation, Inc.
4518This config.status script is free software; the Free Software Foundation
4519gives unlimited permission to copy, distribute and modify it."
4520
4521ac_pwd='$ac_pwd'
4522srcdir='$srcdir'
4523INSTALL='$INSTALL'
4524test -n "\$AWK" || AWK=awk
4525_ACEOF
4526
4527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4528# The default lists apply if the user does not specify any file.
4529ac_need_defaults=:
4530while test $# != 0
4531do
4532 case $1 in
4533 --*=*)
4534 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4536 ac_shift=:
4537 ;;
4538 *)
4539 ac_option=$1
4540 ac_optarg=$2
4541 ac_shift=shift
4542 ;;
4543 esac
4544
4545 case $ac_option in
4546 # Handling of the options.
4547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4548 ac_cs_recheck=: ;;
4549 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4550 $as_echo "$ac_cs_version"; exit ;;
4551 --config | --confi | --conf | --con | --co | --c )
4552 $as_echo "$ac_cs_config"; exit ;;
4553 --debug | --debu | --deb | --de | --d | -d )
4554 debug=: ;;
4555 --file | --fil | --fi | --f )
4556 $ac_shift
4557 case $ac_optarg in
4558 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4559 esac
4560 as_fn_append CONFIG_FILES " '$ac_optarg'"
4561 ac_need_defaults=false;;
4562 --he | --h | --help | --hel | -h )
4563 $as_echo "$ac_cs_usage"; exit ;;
4564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4566 ac_cs_silent=: ;;
4567
4568 # This is an error.
4569 -*) as_fn_error "unrecognized option: \`$1'
4570Try \`$0 --help' for more information." ;;
4571
4572 *) as_fn_append ac_config_targets " $1"
4573 ac_need_defaults=false ;;
4574
4575 esac
4576 shift
4577done
4578
4579ac_configure_extra_args=
4580
4581if $ac_cs_silent; then
4582 exec 6>/dev/null
4583 ac_configure_extra_args="$ac_configure_extra_args --silent"
4584fi
4585
4586_ACEOF
4587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4588if \$ac_cs_recheck; then
4589 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4590 shift
4591 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4592 CONFIG_SHELL='$SHELL'
4593 export CONFIG_SHELL
4594 exec "\$@"
4595fi
4596
4597_ACEOF
4598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4599exec 5>>config.log
4600{
4601 echo
4602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4603## Running $as_me. ##
4604_ASBOX
4605 $as_echo "$ac_log"
4606} >&5
4607
4608_ACEOF
4609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4610_ACEOF
4611
4612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4613
4614# Handling of arguments.
4615for ac_config_target in $ac_config_targets
4616do
4617 case $ac_config_target in
4618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4619 "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
4620 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
4621
4622 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4623 esac
4624done
4625
4626
4627# If the user did not use the arguments to specify the items to instantiate,
4628# then the envvar interface is used. Set only those that are not.
4629# We use the long form for the default assignment because of an extremely
4630# bizarre bug on SunOS 4.1.3.
4631if $ac_need_defaults; then
4632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4633fi
4634
4635# Have a temporary directory for convenience. Make it in the build tree
4636# simply because there is no reason against having it here, and in addition,
4637# creating and moving files from /tmp can sometimes cause problems.
4638# Hook for its removal unless debugging.
4639# Note that there is a small window in which the directory will not be cleaned:
4640# after its creation but before its name has been assigned to `$tmp'.
4641$debug ||
4642{
4643 tmp=
4644 trap 'exit_status=$?
4645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4646' 0
4647 trap 'as_fn_exit 1' 1 2 13 15
4648}
4649# Create a (secure) tmp directory for tmp files.
4650
4651{
4652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4653 test -n "$tmp" && test -d "$tmp"
4654} ||
4655{
4656 tmp=./conf$$-$RANDOM
4657 (umask 077 && mkdir "$tmp")
4658} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4659
4660# Set up the scripts for CONFIG_FILES section.
4661# No need to generate them if there are no CONFIG_FILES.
4662# This happens for instance with `./config.status config.h'.
4663if test -n "$CONFIG_FILES"; then
4664
4665
4666ac_cr=`echo X | tr X '\015'`
4667# On cygwin, bash can eat \r inside `` if the user requested igncr.
4668# But we know of no other shell where ac_cr would be empty at this
4669# point, so we can use a bashism as a fallback.
4670if test "x$ac_cr" = x; then
4671 eval ac_cr=\$\'\\r\'
4672fi
4673ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4674if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4675 ac_cs_awk_cr='\r'
4676else
4677 ac_cs_awk_cr=$ac_cr
4678fi
4679
4680echo 'BEGIN {' >"$tmp/subs1.awk" &&
4681_ACEOF
4682
4683
4684{
4685 echo "cat >conf$$subs.awk <<_ACEOF" &&
4686 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4687 echo "_ACEOF"
4688} >conf$$subs.sh ||
4689 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4690ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4691ac_delim='%!_!# '
4692for ac_last_try in false false false false false :; do
4693 . ./conf$$subs.sh ||
4694 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4695
4696 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4697 if test $ac_delim_n = $ac_delim_num; then
4698 break
4699 elif $ac_last_try; then
4700 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4701 else
4702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4703 fi
4704done
4705rm -f conf$$subs.sh
4706
4707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4708cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4709_ACEOF
4710sed -n '
4711h
4712s/^/S["/; s/!.*/"]=/
4713p
4714g
4715s/^[^!]*!//
4716:repl
4717t repl
4718s/'"$ac_delim"'$//
4719t delim
4720:nl
4721h
4722s/\(.\{148\}\)..*/\1/
4723t more1
4724s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4725p
4726n
4727b repl
4728:more1
4729s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4730p
4731g
4732s/.\{148\}//
4733t nl
4734:delim
4735h
4736s/\(.\{148\}\)..*/\1/
4737t more2
4738s/["\\]/\\&/g; s/^/"/; s/$/"/
4739p
4740b
4741:more2
4742s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4743p
4744g
4745s/.\{148\}//
4746t delim
4747' <conf$$subs.awk | sed '
4748/^[^""]/{
4749 N
4750 s/\n//
4751}
4752' >>$CONFIG_STATUS || ac_write_fail=1
4753rm -f conf$$subs.awk
4754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4755_ACAWK
4756cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4757 for (key in S) S_is_set[key] = 1
4758 FS = ""
4759
4760}
4761{
4762 line = $ 0
4763 nfields = split(line, field, "@")
4764 substed = 0
4765 len = length(field[1])
4766 for (i = 2; i < nfields; i++) {
4767 key = field[i]
4768 keylen = length(key)
4769 if (S_is_set[key]) {
4770 value = S[key]
4771 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4772 len += length(value) + length(field[++i])
4773 substed = 1
4774 } else
4775 len += 1 + keylen
4776 }
4777
4778 print line
4779}
4780
4781_ACAWK
4782_ACEOF
4783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4784if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4785 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4786else
4787 cat
4788fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4789 || as_fn_error "could not setup config files machinery" "$LINENO" 5
4790_ACEOF
4791
4792# VPATH may cause trouble with some makes, so we remove $(srcdir),
4793# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4794# trailing colons and then remove the whole line if VPATH becomes empty
4795# (actually we leave an empty line to preserve line numbers).
4796if test "x$srcdir" = x.; then
4797 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4798s/:*\$(srcdir):*/:/
4799s/:*\${srcdir}:*/:/
4800s/:*@srcdir@:*/:/
4801s/^\([^=]*=[ ]*\):*/\1/
4802s/:*$//
4803s/^[^=]*=[ ]*$//
4804}'
4805fi
4806
4807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4808fi # test -n "$CONFIG_FILES"
4809
4810
4811eval set X " :F $CONFIG_FILES "
4812shift
4813for ac_tag
4814do
4815 case $ac_tag in
4816 :[FHLC]) ac_mode=$ac_tag; continue;;
4817 esac
4818 case $ac_mode$ac_tag in
4819 :[FHL]*:*);;
4820 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4821 :[FH]-) ac_tag=-:-;;
4822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4823 esac
4824 ac_save_IFS=$IFS
4825 IFS=:
4826 set x $ac_tag
4827 IFS=$ac_save_IFS
4828 shift
4829 ac_file=$1
4830 shift
4831
4832 case $ac_mode in
4833 :L) ac_source=$1;;
4834 :[FH])
4835 ac_file_inputs=
4836 for ac_f
4837 do
4838 case $ac_f in
4839 -) ac_f="$tmp/stdin";;
4840 *) # Look for the file first in the build tree, then in the source tree
4841 # (if the path is not absolute). The absolute path cannot be DOS-style,
4842 # because $ac_f cannot contain `:'.
4843 test -f "$ac_f" ||
4844 case $ac_f in
4845 [\\/$]*) false;;
4846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4847 esac ||
4848 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4849 esac
4850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4851 as_fn_append ac_file_inputs " '$ac_f'"
4852 done
4853
4854 # Let's still pretend it is `configure' which instantiates (i.e., don't
4855 # use $as_me), people would be surprised to read:
4856 # /* config.h. Generated by config.status. */
4857 configure_input='Generated from '`
4858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4859 `' by configure.'
4860 if test x"$ac_file" != x-; then
4861 configure_input="$ac_file. $configure_input"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4863$as_echo "$as_me: creating $ac_file" >&6;}
4864 fi
4865 # Neutralize special characters interpreted by sed in replacement strings.
4866 case $configure_input in #(
4867 *\&* | *\|* | *\\* )
4868 ac_sed_conf_input=`$as_echo "$configure_input" |
4869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4870 *) ac_sed_conf_input=$configure_input;;
4871 esac
4872
4873 case $ac_tag in
4874 *:-:* | *:-) cat >"$tmp/stdin" \
4875 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4876 esac
4877 ;;
4878 esac
4879
4880 ac_dir=`$as_dirname -- "$ac_file" ||
4881$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4882 X"$ac_file" : 'X\(//\)[^/]' \| \
4883 X"$ac_file" : 'X\(//\)$' \| \
4884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4885$as_echo X"$ac_file" |
4886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4887 s//\1/
4888 q
4889 }
4890 /^X\(\/\/\)[^/].*/{
4891 s//\1/
4892 q
4893 }
4894 /^X\(\/\/\)$/{
4895 s//\1/
4896 q
4897 }
4898 /^X\(\/\).*/{
4899 s//\1/
4900 q
4901 }
4902 s/.*/./; q'`
4903 as_dir="$ac_dir"; as_fn_mkdir_p
4904 ac_builddir=.
4905
4906case "$ac_dir" in
4907.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4908*)
4909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4910 # A ".." for each directory in $ac_dir_suffix.
4911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4912 case $ac_top_builddir_sub in
4913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4915 esac ;;
4916esac
4917ac_abs_top_builddir=$ac_pwd
4918ac_abs_builddir=$ac_pwd$ac_dir_suffix
4919# for backward compatibility:
4920ac_top_builddir=$ac_top_build_prefix
4921
4922case $srcdir in
4923 .) # We are building in place.
4924 ac_srcdir=.
4925 ac_top_srcdir=$ac_top_builddir_sub
4926 ac_abs_top_srcdir=$ac_pwd ;;
4927 [\\/]* | ?:[\\/]* ) # Absolute name.
4928 ac_srcdir=$srcdir$ac_dir_suffix;
4929 ac_top_srcdir=$srcdir
4930 ac_abs_top_srcdir=$srcdir ;;
4931 *) # Relative name.
4932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4933 ac_top_srcdir=$ac_top_build_prefix$srcdir
4934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4935esac
4936ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4937
4938
4939 case $ac_mode in
4940 :F)
4941 #
4942 # CONFIG_FILE
4943 #
4944
4945 case $INSTALL in
4946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4948 esac
4949_ACEOF
4950
4951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4952# If the template does not know about datarootdir, expand it.
4953# FIXME: This hack should be removed a few years after 2.60.
4954ac_datarootdir_hack=; ac_datarootdir_seen=
4955ac_sed_dataroot='
4956/datarootdir/ {
4957 p
4958 q
4959}
4960/@datadir@/p
4961/@docdir@/p
4962/@infodir@/p
4963/@localedir@/p
4964/@mandir@/p'
4965case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4966*datarootdir*) ac_datarootdir_seen=yes;;
4967*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4969$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4970_ACEOF
4971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4972 ac_datarootdir_hack='
4973 s&@datadir@&$datadir&g
4974 s&@docdir@&$docdir&g
4975 s&@infodir@&$infodir&g
4976 s&@localedir@&$localedir&g
4977 s&@mandir@&$mandir&g
4978 s&\\\${datarootdir}&$datarootdir&g' ;;
4979esac
4980_ACEOF
4981
4982# Neutralize VPATH when `$srcdir' = `.'.
4983# Shell code in configure.ac might set extrasub.
4984# FIXME: do we really want to maintain this feature?
4985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4986ac_sed_extra="$ac_vpsub
4987$extrasub
4988_ACEOF
4989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4990:t
4991/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4992s|@configure_input@|$ac_sed_conf_input|;t t
4993s&@top_builddir@&$ac_top_builddir_sub&;t t
4994s&@top_build_prefix@&$ac_top_build_prefix&;t t
4995s&@srcdir@&$ac_srcdir&;t t
4996s&@abs_srcdir@&$ac_abs_srcdir&;t t
4997s&@top_srcdir@&$ac_top_srcdir&;t t
4998s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4999s&@builddir@&$ac_builddir&;t t
5000s&@abs_builddir@&$ac_abs_builddir&;t t
5001s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5002s&@INSTALL@&$ac_INSTALL&;t t
5003$ac_datarootdir_hack
5004"
5005eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5006 || as_fn_error "could not create $ac_file" "$LINENO" 5
5007
5008test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5012which seems to be undefined. Please make sure it is defined." >&5
5013$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5014which seems to be undefined. Please make sure it is defined." >&2;}
5015
5016 rm -f "$tmp/stdin"
5017 case $ac_file in
5018 -) cat "$tmp/out" && rm -f "$tmp/out";;
5019 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5020 esac \
5021 || as_fn_error "could not create $ac_file" "$LINENO" 5
5022 ;;
5023
5024
5025
5026 esac
5027
5028done # for ac_tag
5029
5030
5031as_fn_exit 0
5032_ACEOF
5033ac_clean_files=$ac_clean_files_save
5034
5035test $ac_write_fail = 0 ||
5036 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5037
5038
5039# configure is writing to config.log, and then calls config.status.
5040# config.status does its own redirection, appending to config.log.
5041# Unfortunately, on DOS this fails, as config.log is still kept open
5042# by configure, so config.status won't be able to write to it; its
5043# output is simply discarded. So we exec the FD to /dev/null,
5044# effectively closing config.log, so it can be properly (re)opened and
5045# appended to by config.status. When coming back to configure, we
5046# need to make the FD available again.
5047if test "$no_create" != yes; then
5048 ac_cs_success=:
5049 ac_config_status_args=
5050 test "$silent" = yes &&
5051 ac_config_status_args="$ac_config_status_args --quiet"
5052 exec 5>/dev/null
5053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5054 exec 5>>config.log
5055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5056 # would make configure fail if this is the last instruction.
5057 $ac_cs_success || as_fn_exit $?
5058fi
5059if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5061$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5062fi
5063
Note: See TracBrowser for help on using the repository browser.