]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/common/configure
sim: drop common/cconfig.h in favor of a single config.h
[thirdparty/binutils-gdb.git] / sim / common / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
936df756 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
81ecdfbb
RW
172 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes
174else
175 as_have_required=no
176fi
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179else
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181as_found=false
182for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 183do
81ecdfbb
RW
184 IFS=$as_save_IFS
185 test -z "$as_dir" && as_dir=.
186 as_found=:
187 case $as_dir in #(
188 /*)
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 break 2
197fi
198fi
199 done;;
200 esac
201 as_found=false
202done
203$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
206fi; }
207IFS=$as_save_IFS
208
209
210 if test "x$CONFIG_SHELL" != x; then :
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 BASH_ENV=/dev/null
215 ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
219fi
220
221 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system."
224 if test x${ZSH_VERSION+set} = xset ; then
225 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 227 else
81ecdfbb
RW
228 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229$0: including any error possibly output before this
230$0: message. Then install a modern shell, or manually run
231$0: the script under such a shell if you do have one."
b7026657 232 fi
81ecdfbb
RW
233 exit 1
234fi
235fi
236fi
237SHELL=${CONFIG_SHELL-/bin/sh}
238export SHELL
239# Unset more variables known to interfere with behavior of common tools.
240CLICOLOR_FORCE= GREP_OPTIONS=
241unset CLICOLOR_FORCE GREP_OPTIONS
242
243## --------------------- ##
244## M4sh Shell Functions. ##
245## --------------------- ##
246# as_fn_unset VAR
247# ---------------
248# Portably unset VAR.
249as_fn_unset ()
250{
251 { eval $1=; unset $1;}
252}
253as_unset=as_fn_unset
254
255# as_fn_set_status STATUS
256# -----------------------
257# Set $? to STATUS, without forking.
258as_fn_set_status ()
259{
260 return $1
261} # as_fn_set_status
262
263# as_fn_exit STATUS
264# -----------------
265# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266as_fn_exit ()
267{
268 set +e
269 as_fn_set_status $1
270 exit $1
271} # as_fn_exit
272
273# as_fn_mkdir_p
274# -------------
275# Create "$as_dir" as a directory, including parents if necessary.
276as_fn_mkdir_p ()
277{
278
279 case $as_dir in #(
280 -*) as_dir=./$as_dir;;
281 esac
282 test -d "$as_dir" || eval $as_mkdir_p || {
283 as_dirs=
284 while :; do
285 case $as_dir in #(
286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287 *) as_qdir=$as_dir;;
288 esac
289 as_dirs="'$as_qdir' $as_dirs"
290 as_dir=`$as_dirname -- "$as_dir" ||
291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292 X"$as_dir" : 'X\(//\)[^/]' \| \
293 X"$as_dir" : 'X\(//\)$' \| \
294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295$as_echo X"$as_dir" |
296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297 s//\1/
298 q
299 }
300 /^X\(\/\/\)[^/].*/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)$/{
305 s//\1/
306 q
307 }
308 /^X\(\/\).*/{
309 s//\1/
310 q
311 }
312 s/.*/./; q'`
313 test -d "$as_dir" && break
314 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
317
318
319} # as_fn_mkdir_p
320# as_fn_append VAR VALUE
321# ----------------------
322# Append the text in VALUE to the end of the definition contained in VAR. Take
323# advantage of any shell optimizations that allow amortized linear growth over
324# repeated appends, instead of the typical quadratic growth present in naive
325# implementations.
326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327 eval 'as_fn_append ()
328 {
329 eval $1+=\$2
330 }'
331else
332 as_fn_append ()
333 {
334 eval $1=\$$1\$2
335 }
336fi # as_fn_append
337
338# as_fn_arith ARG...
339# ------------------
340# Perform arithmetic evaluation on the ARGs, and store the result in the
341# global $as_val. Take advantage of shells that can avoid forks. The arguments
342# must be portable across $(()) and expr.
343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344 eval 'as_fn_arith ()
345 {
346 as_val=$(( $* ))
347 }'
348else
349 as_fn_arith ()
350 {
351 as_val=`expr "$@" || test $? -eq 1`
352 }
353fi # as_fn_arith
354
355
356# as_fn_error ERROR [LINENO LOG_FD]
357# ---------------------------------
358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360# script with status $?, using 1 if that was 0.
361as_fn_error ()
362{
363 as_status=$?; test $as_status -eq 0 && as_status=1
364 if test "$3"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
367 fi
368 $as_echo "$as_me: error: $1" >&2
369 as_fn_exit $as_status
370} # as_fn_error
c906108c 371
81ecdfbb
RW
372if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
374 as_expr=expr
375else
376 as_expr=false
377fi
c906108c 378
81ecdfbb 379if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
380 as_basename=basename
381else
382 as_basename=false
383fi
c906108c 384
81ecdfbb
RW
385if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386 as_dirname=dirname
387else
388 as_dirname=false
389fi
c906108c 390
81ecdfbb 391as_me=`$as_basename -- "$0" ||
b7026657
AC
392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395$as_echo X/"$0" |
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
397 s//\1/
398 q
399 }
400 /^X\/\(\/\/\)$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\).*/{
405 s//\1/
406 q
407 }
408 s/.*/./; q'`
c906108c 409
b7026657
AC
410# Avoid depending upon Character Ranges.
411as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414as_cr_digits='0123456789'
415as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 416
c906108c 417
81ecdfbb
RW
418 as_lineno_1=$LINENO as_lineno_1a=$LINENO
419 as_lineno_2=$LINENO as_lineno_2a=$LINENO
420 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
423 sed -n '
424 p
425 /[$]LINENO/=
426 ' <$as_myself |
b7026657 427 sed '
81ecdfbb
RW
428 s/[$]LINENO.*/&-/
429 t lineno
430 b
431 :lineno
b7026657 432 N
81ecdfbb
RW
433 :loop
434 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 435 t loop
81ecdfbb 436 s/-\n.*//
b7026657 437 ' >$as_me.lineno &&
81ecdfbb
RW
438 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657
AC
440
441 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
443 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno"
b7026657
AC
445 # Exit status is that of the last command.
446 exit
447}
c906108c 448
81ecdfbb
RW
449ECHO_C= ECHO_N= ECHO_T=
450case `echo -n x` in #(((((
451-n*)
452 case `echo 'xy\c'` in
453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
454 xy) ECHO_C='\c';;
455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
456 ECHO_T=' ';;
457 esac;;
458*)
459 ECHO_N='-n';;
b7026657 460esac
c906108c 461
81ecdfbb
RW
462rm -f conf$$ conf$$.exe conf$$.file
463if test -d conf$$.dir; then
464 rm -f conf$$.dir/conf$$.file
b7026657 465else
81ecdfbb
RW
466 rm -f conf$$.dir
467 mkdir conf$$.dir 2>/dev/null
b7026657 468fi
81ecdfbb
RW
469if (echo >conf$$.file) 2>/dev/null; then
470 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 471 as_ln_s='ln -s'
81ecdfbb
RW
472 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p'
478 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln
480 else
481 as_ln_s='cp -p'
b7026657 482 fi
b7026657
AC
483else
484 as_ln_s='cp -p'
485fi
81ecdfbb
RW
486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487rmdir conf$$.dir 2>/dev/null
c906108c 488
b7026657 489if mkdir -p . 2>/dev/null; then
81ecdfbb 490 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
491else
492 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false
494fi
c906108c 495
81ecdfbb
RW
496if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x'
498else
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
503 fi
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
515 '
516fi
517as_executable_p=$as_test_x
c906108c 518
b7026657
AC
519# Sed expression to map a string onto a valid CPP name.
520as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 521
b7026657
AC
522# Sed expression to map a string onto a valid variable name.
523as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
524
525
81ecdfbb 526exec 7<&0 </dev/null 6>&1
c906108c 527
b7026657
AC
528# Name of the host.
529# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530# so uname gets run too.
531ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 532
c906108c 533#
b7026657 534# Initializations.
c906108c 535#
b7026657 536ac_default_prefix=/usr/local
81ecdfbb 537ac_clean_files=
b7026657 538ac_config_libobj_dir=.
81ecdfbb 539LIBOBJS=
b7026657
AC
540cross_compiling=no
541subdirs=
542MFLAGS=
543MAKEFLAGS=
b7026657
AC
544
545# Identity of this package.
546PACKAGE_NAME=
547PACKAGE_TARNAME=
548PACKAGE_VERSION=
549PACKAGE_STRING=
550PACKAGE_BUGREPORT=
81ecdfbb 551PACKAGE_URL=
b7026657
AC
552
553ac_unique_file="Makefile.in"
81ecdfbb
RW
554ac_subst_vars='LTLIBOBJS
555LIBOBJS
556TARGET_SUBDIR
557CPP_FOR_TARGET
6ffe910a
MF
558OBJEXT
559EXEEXT
560ac_ct_CC
561CPPFLAGS
562LDFLAGS
563CFLAGS
564CC
81ecdfbb
RW
565target_alias
566host_alias
567build_alias
568LIBS
569ECHO_T
570ECHO_N
571ECHO_C
572DEFS
573mandir
574localedir
575libdir
576psdir
577pdfdir
578dvidir
579htmldir
580infodir
581docdir
582oldincludedir
583includedir
584localstatedir
585sharedstatedir
586sysconfdir
587datadir
588datarootdir
589libexecdir
590sbindir
591bindir
592program_transform_name
593prefix
594exec_prefix
595PACKAGE_URL
596PACKAGE_BUGREPORT
597PACKAGE_STRING
598PACKAGE_VERSION
599PACKAGE_TARNAME
600PACKAGE_NAME
601PATH_SEPARATOR
602SHELL
603WERROR_CFLAGS
604WARN_CFLAGS
605sim_xor_endian
606sim_stdcall
607sim_smp
608sim_reserved_bits
609sim_regparm
610sim_packages
611sim_inline
612sim_hw
613sim_hw_objs
614sim_hw_cflags
615sim_default_model
616sim_scache
617sim_float
81ecdfbb
RW
618sim_endian
619sim_bitsize
620sim_assert
621sim_alignment
622sim_environment'
b7026657 623ac_subst_files=''
81ecdfbb
RW
624ac_user_opts='
625enable_option_checking
81ecdfbb
RW
626'
627 ac_precious_vars='build_alias
628host_alias
629target_alias
630CC
631CFLAGS
632LDFLAGS
633LIBS
936df756 634CPPFLAGS'
81ecdfbb 635
c906108c
SS
636
637# Initialize some variables set by options.
b7026657
AC
638ac_init_help=
639ac_init_version=false
81ecdfbb
RW
640ac_unrecognized_opts=
641ac_unrecognized_sep=
c906108c
SS
642# The variables have the same names as the options, with
643# dashes changed to underlines.
b7026657 644cache_file=/dev/null
c906108c 645exec_prefix=NONE
c906108c 646no_create=
c906108c
SS
647no_recursion=
648prefix=NONE
649program_prefix=NONE
650program_suffix=NONE
651program_transform_name=s,x,x,
652silent=
653site=
654srcdir=
c906108c
SS
655verbose=
656x_includes=NONE
657x_libraries=NONE
b7026657
AC
658
659# Installation directory options.
660# These are left unexpanded so users can "make install exec_prefix=/foo"
661# and all the variables that are supposed to be based on exec_prefix
662# by default will actually change.
663# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 664# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
665bindir='${exec_prefix}/bin'
666sbindir='${exec_prefix}/sbin'
667libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
668datarootdir='${prefix}/share'
669datadir='${datarootdir}'
c906108c
SS
670sysconfdir='${prefix}/etc'
671sharedstatedir='${prefix}/com'
672localstatedir='${prefix}/var'
c906108c
SS
673includedir='${prefix}/include'
674oldincludedir='/usr/include'
81ecdfbb
RW
675docdir='${datarootdir}/doc/${PACKAGE}'
676infodir='${datarootdir}/info'
677htmldir='${docdir}'
678dvidir='${docdir}'
679pdfdir='${docdir}'
680psdir='${docdir}'
681libdir='${exec_prefix}/lib'
682localedir='${datarootdir}/locale'
683mandir='${datarootdir}/man'
c906108c 684
c906108c 685ac_prev=
81ecdfbb 686ac_dashdash=
c906108c
SS
687for ac_option
688do
c906108c
SS
689 # If the previous option needs an argument, assign it.
690 if test -n "$ac_prev"; then
81ecdfbb 691 eval $ac_prev=\$ac_option
c906108c
SS
692 ac_prev=
693 continue
694 fi
695
81ecdfbb
RW
696 case $ac_option in
697 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
698 *) ac_optarg=yes ;;
699 esac
c906108c
SS
700
701 # Accept the important Cygnus configure options, so we can diagnose typos.
702
81ecdfbb
RW
703 case $ac_dashdash$ac_option in
704 --)
705 ac_dashdash=yes ;;
c906108c
SS
706
707 -bindir | --bindir | --bindi | --bind | --bin | --bi)
708 ac_prev=bindir ;;
709 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 710 bindir=$ac_optarg ;;
c906108c
SS
711
712 -build | --build | --buil | --bui | --bu)
b7026657 713 ac_prev=build_alias ;;
c906108c 714 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 715 build_alias=$ac_optarg ;;
c906108c
SS
716
717 -cache-file | --cache-file | --cache-fil | --cache-fi \
718 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
719 ac_prev=cache_file ;;
720 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
721 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
722 cache_file=$ac_optarg ;;
723
724 --config-cache | -C)
725 cache_file=config.cache ;;
c906108c 726
81ecdfbb 727 -datadir | --datadir | --datadi | --datad)
c906108c 728 ac_prev=datadir ;;
81ecdfbb 729 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 730 datadir=$ac_optarg ;;
c906108c 731
81ecdfbb
RW
732 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
733 | --dataroo | --dataro | --datar)
734 ac_prev=datarootdir ;;
735 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
736 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
737 datarootdir=$ac_optarg ;;
738
c906108c 739 -disable-* | --disable-*)
81ecdfbb 740 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 741 # Reject names that are not valid shell variable names.
81ecdfbb
RW
742 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
743 as_fn_error "invalid feature name: $ac_useropt"
744 ac_useropt_orig=$ac_useropt
745 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
746 case $ac_user_opts in
747 *"
748"enable_$ac_useropt"
749"*) ;;
750 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
751 ac_unrecognized_sep=', ';;
752 esac
753 eval enable_$ac_useropt=no ;;
754
755 -docdir | --docdir | --docdi | --doc | --do)
756 ac_prev=docdir ;;
757 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
758 docdir=$ac_optarg ;;
759
760 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
761 ac_prev=dvidir ;;
762 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
763 dvidir=$ac_optarg ;;
c906108c
SS
764
765 -enable-* | --enable-*)
81ecdfbb 766 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 767 # Reject names that are not valid shell variable names.
81ecdfbb
RW
768 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
769 as_fn_error "invalid feature name: $ac_useropt"
770 ac_useropt_orig=$ac_useropt
771 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772 case $ac_user_opts in
773 *"
774"enable_$ac_useropt"
775"*) ;;
776 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
777 ac_unrecognized_sep=', ';;
c906108c 778 esac
81ecdfbb 779 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
780
781 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
782 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
783 | --exec | --exe | --ex)
784 ac_prev=exec_prefix ;;
785 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
786 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
787 | --exec=* | --exe=* | --ex=*)
b7026657 788 exec_prefix=$ac_optarg ;;
c906108c
SS
789
790 -gas | --gas | --ga | --g)
791 # Obsolete; use --with-gas.
792 with_gas=yes ;;
793
b7026657
AC
794 -help | --help | --hel | --he | -h)
795 ac_init_help=long ;;
796 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
797 ac_init_help=recursive ;;
798 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
799 ac_init_help=short ;;
c906108c
SS
800
801 -host | --host | --hos | --ho)
b7026657 802 ac_prev=host_alias ;;
c906108c 803 -host=* | --host=* | --hos=* | --ho=*)
b7026657 804 host_alias=$ac_optarg ;;
c906108c 805
81ecdfbb
RW
806 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
807 ac_prev=htmldir ;;
808 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
809 | --ht=*)
810 htmldir=$ac_optarg ;;
811
c906108c
SS
812 -includedir | --includedir | --includedi | --included | --include \
813 | --includ | --inclu | --incl | --inc)
814 ac_prev=includedir ;;
815 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
816 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 817 includedir=$ac_optarg ;;
c906108c
SS
818
819 -infodir | --infodir | --infodi | --infod | --info | --inf)
820 ac_prev=infodir ;;
821 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 822 infodir=$ac_optarg ;;
c906108c
SS
823
824 -libdir | --libdir | --libdi | --libd)
825 ac_prev=libdir ;;
826 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 827 libdir=$ac_optarg ;;
c906108c
SS
828
829 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
830 | --libexe | --libex | --libe)
831 ac_prev=libexecdir ;;
832 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
833 | --libexe=* | --libex=* | --libe=*)
b7026657 834 libexecdir=$ac_optarg ;;
c906108c 835
81ecdfbb
RW
836 -localedir | --localedir | --localedi | --localed | --locale)
837 ac_prev=localedir ;;
838 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
839 localedir=$ac_optarg ;;
840
c906108c 841 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 842 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
843 ac_prev=localstatedir ;;
844 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 845 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 846 localstatedir=$ac_optarg ;;
c906108c
SS
847
848 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
849 ac_prev=mandir ;;
850 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 851 mandir=$ac_optarg ;;
c906108c
SS
852
853 -nfp | --nfp | --nf)
854 # Obsolete; use --without-fp.
855 with_fp=no ;;
856
857 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 858 | --no-cr | --no-c | -n)
c906108c
SS
859 no_create=yes ;;
860
861 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
862 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
863 no_recursion=yes ;;
864
865 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
866 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
867 | --oldin | --oldi | --old | --ol | --o)
868 ac_prev=oldincludedir ;;
869 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
870 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
871 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 872 oldincludedir=$ac_optarg ;;
c906108c
SS
873
874 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
875 ac_prev=prefix ;;
876 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 877 prefix=$ac_optarg ;;
c906108c
SS
878
879 -program-prefix | --program-prefix | --program-prefi | --program-pref \
880 | --program-pre | --program-pr | --program-p)
881 ac_prev=program_prefix ;;
882 -program-prefix=* | --program-prefix=* | --program-prefi=* \
883 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 884 program_prefix=$ac_optarg ;;
c906108c
SS
885
886 -program-suffix | --program-suffix | --program-suffi | --program-suff \
887 | --program-suf | --program-su | --program-s)
888 ac_prev=program_suffix ;;
889 -program-suffix=* | --program-suffix=* | --program-suffi=* \
890 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 891 program_suffix=$ac_optarg ;;
c906108c
SS
892
893 -program-transform-name | --program-transform-name \
894 | --program-transform-nam | --program-transform-na \
895 | --program-transform-n | --program-transform- \
896 | --program-transform | --program-transfor \
897 | --program-transfo | --program-transf \
898 | --program-trans | --program-tran \
899 | --progr-tra | --program-tr | --program-t)
900 ac_prev=program_transform_name ;;
901 -program-transform-name=* | --program-transform-name=* \
902 | --program-transform-nam=* | --program-transform-na=* \
903 | --program-transform-n=* | --program-transform-=* \
904 | --program-transform=* | --program-transfor=* \
905 | --program-transfo=* | --program-transf=* \
906 | --program-trans=* | --program-tran=* \
907 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 908 program_transform_name=$ac_optarg ;;
c906108c 909
81ecdfbb
RW
910 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
911 ac_prev=pdfdir ;;
912 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
913 pdfdir=$ac_optarg ;;
914
915 -psdir | --psdir | --psdi | --psd | --ps)
916 ac_prev=psdir ;;
917 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
918 psdir=$ac_optarg ;;
919
c906108c
SS
920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
921 | -silent | --silent | --silen | --sile | --sil)
922 silent=yes ;;
923
924 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
925 ac_prev=sbindir ;;
926 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
927 | --sbi=* | --sb=*)
b7026657 928 sbindir=$ac_optarg ;;
c906108c
SS
929
930 -sharedstatedir | --sharedstatedir | --sharedstatedi \
931 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
932 | --sharedst | --shareds | --shared | --share | --shar \
933 | --sha | --sh)
934 ac_prev=sharedstatedir ;;
935 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
936 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
937 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
938 | --sha=* | --sh=*)
b7026657 939 sharedstatedir=$ac_optarg ;;
c906108c
SS
940
941 -site | --site | --sit)
942 ac_prev=site ;;
943 -site=* | --site=* | --sit=*)
b7026657 944 site=$ac_optarg ;;
eb2d80b4 945
c906108c
SS
946 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
947 ac_prev=srcdir ;;
948 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 949 srcdir=$ac_optarg ;;
c906108c
SS
950
951 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
952 | --syscon | --sysco | --sysc | --sys | --sy)
953 ac_prev=sysconfdir ;;
954 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
955 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 956 sysconfdir=$ac_optarg ;;
c906108c
SS
957
958 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 959 ac_prev=target_alias ;;
c906108c 960 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 961 target_alias=$ac_optarg ;;
c906108c
SS
962
963 -v | -verbose | --verbose | --verbos | --verbo | --verb)
964 verbose=yes ;;
965
b7026657
AC
966 -version | --version | --versio | --versi | --vers | -V)
967 ac_init_version=: ;;
c906108c
SS
968
969 -with-* | --with-*)
81ecdfbb 970 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 971 # Reject names that are not valid shell variable names.
81ecdfbb
RW
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid package name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"with_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
c906108c 982 esac
81ecdfbb 983 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
984
985 -without-* | --without-*)
81ecdfbb 986 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 987 # Reject names that are not valid shell variable names.
81ecdfbb
RW
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error "invalid package name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994"with_$ac_useropt"
995"*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval with_$ac_useropt=no ;;
c906108c
SS
1000
1001 --x)
1002 # Obsolete; use --with-x.
1003 with_x=yes ;;
1004
1005 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1006 | --x-incl | --x-inc | --x-in | --x-i)
1007 ac_prev=x_includes ;;
1008 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1009 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1010 x_includes=$ac_optarg ;;
c906108c
SS
1011
1012 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1013 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1014 ac_prev=x_libraries ;;
1015 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1016 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1017 x_libraries=$ac_optarg ;;
c906108c 1018
81ecdfbb
RW
1019 -*) as_fn_error "unrecognized option: \`$ac_option'
1020Try \`$0 --help' for more information."
c906108c
SS
1021 ;;
1022
b7026657
AC
1023 *=*)
1024 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1025 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1026 case $ac_envvar in #(
1027 '' | [0-9]* | *[!_$as_cr_alnum]* )
1028 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1029 esac
1030 eval $ac_envvar=\$ac_optarg
b7026657
AC
1031 export $ac_envvar ;;
1032
c906108c 1033 *)
b7026657 1034 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1035 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1036 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1037 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1038 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1039 ;;
1040
1041 esac
1042done
1043
1044if test -n "$ac_prev"; then
b7026657 1045 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1046 as_fn_error "missing argument to $ac_option"
c906108c 1047fi
c906108c 1048
81ecdfbb
RW
1049if test -n "$ac_unrecognized_opts"; then
1050 case $enable_option_checking in
1051 no) ;;
1052 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1053 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1054 esac
81ecdfbb 1055fi
c906108c 1056
81ecdfbb
RW
1057# Check all directory arguments for consistency.
1058for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1059 datadir sysconfdir sharedstatedir localstatedir includedir \
1060 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1061 libdir localedir mandir
c906108c 1062do
81ecdfbb
RW
1063 eval ac_val=\$$ac_var
1064 # Remove trailing slashes.
1065 case $ac_val in
1066 */ )
1067 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1068 eval $ac_var=\$ac_val;;
1069 esac
1070 # Be sure to have absolute directory names.
b7026657 1071 case $ac_val in
81ecdfbb
RW
1072 [\\/$]* | ?:[\\/]* ) continue;;
1073 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1074 esac
81ecdfbb 1075 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1076done
1077
b7026657
AC
1078# There might be people who depend on the old broken behavior: `$host'
1079# used to hold the argument of --host etc.
1080# FIXME: To remove some day.
1081build=$build_alias
1082host=$host_alias
1083target=$target_alias
1084
1085# FIXME: To remove some day.
1086if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
81ecdfbb 1089 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1092 cross_compiling=yes
1093 fi
1094fi
c906108c 1095
b7026657
AC
1096ac_tool_prefix=
1097test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098
1099test "$silent" = yes && exec 6>/dev/null
c906108c 1100
c906108c 1101
81ecdfbb
RW
1102ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103ac_ls_di=`ls -di .` &&
1104ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 as_fn_error "working directory cannot be determined"
1106test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1107 as_fn_error "pwd does not report name of working directory"
1108
1109
c906108c
SS
1110# Find the source files, if location was not specified.
1111if test -z "$srcdir"; then
1112 ac_srcdir_defaulted=yes
81ecdfbb
RW
1113 # Try the directory containing this script, then the parent directory.
1114 ac_confdir=`$as_dirname -- "$as_myself" ||
1115$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1116 X"$as_myself" : 'X\(//\)[^/]' \| \
1117 X"$as_myself" : 'X\(//\)$' \| \
1118 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1119$as_echo X"$as_myself" |
1120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1121 s//\1/
1122 q
1123 }
1124 /^X\(\/\/\)[^/].*/{
1125 s//\1/
1126 q
1127 }
1128 /^X\(\/\/\)$/{
1129 s//\1/
1130 q
1131 }
1132 /^X\(\/\).*/{
1133 s//\1/
1134 q
1135 }
1136 s/.*/./; q'`
c906108c 1137 srcdir=$ac_confdir
81ecdfbb 1138 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1139 srcdir=..
1140 fi
1141else
1142 ac_srcdir_defaulted=no
1143fi
81ecdfbb
RW
1144if test ! -r "$srcdir/$ac_unique_file"; then
1145 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1146 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1147fi
1148ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1149ac_abs_confdir=`(
1150 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1151 pwd)`
1152# When building in place, set srcdir=.
1153if test "$ac_abs_confdir" = "$ac_pwd"; then
1154 srcdir=.
1155fi
1156# Remove unnecessary trailing slashes from srcdir.
1157# Double slashes in file names in object file debugging info
1158# mess up M-x gdb in Emacs.
1159case $srcdir in
1160*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1161esac
1162for ac_var in $ac_precious_vars; do
1163 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1164 eval ac_env_${ac_var}_value=\$${ac_var}
1165 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1166 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1167done
c906108c 1168
b7026657
AC
1169#
1170# Report the --help message.
1171#
1172if test "$ac_init_help" = "long"; then
1173 # Omit some internal or obsolete options to make the list less imposing.
1174 # This message is too long to be a string in the A/UX 3.1 sh.
1175 cat <<_ACEOF
1176\`configure' configures this package to adapt to many kinds of systems.
c906108c 1177
b7026657 1178Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1179
b7026657
AC
1180To assign environment variables (e.g., CC, CFLAGS...), specify them as
1181VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1182
b7026657 1183Defaults for the options are specified in brackets.
c906108c 1184
b7026657
AC
1185Configuration:
1186 -h, --help display this help and exit
1187 --help=short display options specific to this package
1188 --help=recursive display the short help of all the included packages
1189 -V, --version display version information and exit
1190 -q, --quiet, --silent do not print \`checking...' messages
1191 --cache-file=FILE cache test results in FILE [disabled]
1192 -C, --config-cache alias for \`--cache-file=config.cache'
1193 -n, --no-create do not create output files
1194 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1195
b7026657
AC
1196Installation directories:
1197 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1198 [$ac_default_prefix]
b7026657 1199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1200 [PREFIX]
c906108c 1201
b7026657
AC
1202By default, \`make install' will install all the files in
1203\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1204an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1205for instance \`--prefix=\$HOME'.
c906108c 1206
b7026657
AC
1207For better control, use the options below.
1208
1209Fine tuning of the installation directories:
81ecdfbb
RW
1210 --bindir=DIR user executables [EPREFIX/bin]
1211 --sbindir=DIR system admin executables [EPREFIX/sbin]
1212 --libexecdir=DIR program executables [EPREFIX/libexec]
1213 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1214 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1215 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1216 --libdir=DIR object code libraries [EPREFIX/lib]
1217 --includedir=DIR C header files [PREFIX/include]
1218 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1219 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1220 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1221 --infodir=DIR info documentation [DATAROOTDIR/info]
1222 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1223 --mandir=DIR man documentation [DATAROOTDIR/man]
1224 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1225 --htmldir=DIR html documentation [DOCDIR]
1226 --dvidir=DIR dvi documentation [DOCDIR]
1227 --pdfdir=DIR pdf documentation [DOCDIR]
1228 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1229_ACEOF
1230
1231 cat <<\_ACEOF
b7026657 1232_ACEOF
c906108c 1233fi
b7026657
AC
1234
1235if test -n "$ac_init_help"; then
1236
1237 cat <<\_ACEOF
1238
b7026657
AC
1239Some influential environment variables:
1240 CC C compiler command
1241 CFLAGS C compiler flags
1242 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1243 nonstandard directory <lib dir>
81ecdfbb
RW
1244 LIBS libraries to pass to the linker, e.g. -l<library>
1245 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1246 you have headers in a nonstandard directory <include dir>
b7026657
AC
1247
1248Use these variables to override the choices made by `configure' or to help
1249it to find libraries and programs with nonstandard names/locations.
1250
81ecdfbb 1251Report bugs to the package provider.
b7026657 1252_ACEOF
81ecdfbb 1253ac_status=$?
c906108c
SS
1254fi
1255
b7026657
AC
1256if test "$ac_init_help" = "recursive"; then
1257 # If there are subdirs, report their specific --help.
b7026657 1258 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1259 test -d "$ac_dir" ||
1260 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1261 continue
b7026657 1262 ac_builddir=.
c906108c 1263
81ecdfbb
RW
1264case "$ac_dir" in
1265.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1266*)
1267 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1268 # A ".." for each directory in $ac_dir_suffix.
1269 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1270 case $ac_top_builddir_sub in
1271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1273 esac ;;
1274esac
1275ac_abs_top_builddir=$ac_pwd
1276ac_abs_builddir=$ac_pwd$ac_dir_suffix
1277# for backward compatibility:
1278ac_top_builddir=$ac_top_build_prefix
c906108c 1279
b7026657 1280case $srcdir in
81ecdfbb 1281 .) # We are building in place.
b7026657 1282 ac_srcdir=.
81ecdfbb
RW
1283 ac_top_srcdir=$ac_top_builddir_sub
1284 ac_abs_top_srcdir=$ac_pwd ;;
1285 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1286 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1287 ac_top_srcdir=$srcdir
1288 ac_abs_top_srcdir=$srcdir ;;
1289 *) # Relative name.
1290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1291 ac_top_srcdir=$ac_top_build_prefix$srcdir
1292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1293esac
81ecdfbb
RW
1294ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1295
1296 cd "$ac_dir" || { ac_status=$?; continue; }
1297 # Check for guested configure.
1298 if test -f "$ac_srcdir/configure.gnu"; then
1299 echo &&
1300 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1301 elif test -f "$ac_srcdir/configure"; then
1302 echo &&
1303 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1304 else
81ecdfbb
RW
1305 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1306 fi || ac_status=$?
1307 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1308 done
c906108c 1309fi
b7026657 1310
81ecdfbb 1311test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1312if $ac_init_version; then
1313 cat <<\_ACEOF
81ecdfbb
RW
1314configure
1315generated by GNU Autoconf 2.64
b7026657 1316
81ecdfbb 1317Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1318This configure script is free software; the Free Software Foundation
1319gives unlimited permission to copy, distribute and modify it.
1320_ACEOF
81ecdfbb 1321 exit
b7026657 1322fi
b7026657 1323
81ecdfbb
RW
1324## ------------------------ ##
1325## Autoconf initialization. ##
1326## ------------------------ ##
b7026657 1327
81ecdfbb
RW
1328# ac_fn_c_try_compile LINENO
1329# --------------------------
1330# Try to compile conftest.$ac_ext, and return whether this succeeded.
1331ac_fn_c_try_compile ()
b7026657 1332{
81ecdfbb
RW
1333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1334 rm -f conftest.$ac_objext
1335 if { { ac_try="$ac_compile"
1336case "(($ac_try" in
1337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1338 *) ac_try_echo=$ac_try;;
1339esac
1340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1341$as_echo "$ac_try_echo"; } >&5
1342 (eval "$ac_compile") 2>conftest.err
1343 ac_status=$?
1344 if test -s conftest.err; then
1345 grep -v '^ *+' conftest.err >conftest.er1
1346 cat conftest.er1 >&5
1347 mv -f conftest.er1 conftest.err
1348 fi
1349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1350 test $ac_status = 0; } && {
1351 test -z "$ac_c_werror_flag" ||
1352 test ! -s conftest.err
1353 } && test -s conftest.$ac_objext; then :
1354 ac_retval=0
1355else
1356 $as_echo "$as_me: failed program was:" >&5
1357sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1358
81ecdfbb
RW
1359 ac_retval=1
1360fi
1361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1362 return $ac_retval
b7026657 1363
81ecdfbb 1364} # ac_fn_c_try_compile
81ecdfbb
RW
1365cat >config.log <<_ACEOF
1366This file contains any messages produced by compilers while
1367running configure, to aid debugging if configure makes a mistake.
1368
1369It was created by $as_me, which was
1370generated by GNU Autoconf 2.64. Invocation command line was
1371
1372 $ $0 $@
1373
1374_ACEOF
1375exec 5>>config.log
1376{
1377cat <<_ASUNAME
1378## --------- ##
1379## Platform. ##
1380## --------- ##
1381
1382hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1383uname -m = `(uname -m) 2>/dev/null || echo unknown`
1384uname -r = `(uname -r) 2>/dev/null || echo unknown`
1385uname -s = `(uname -s) 2>/dev/null || echo unknown`
1386uname -v = `(uname -v) 2>/dev/null || echo unknown`
1387
1388/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1389/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1390
1391/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1392/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1393/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1394/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1395/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1396/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1397/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1398
1399_ASUNAME
1400
1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402for as_dir in $PATH
1403do
1404 IFS=$as_save_IFS
1405 test -z "$as_dir" && as_dir=.
1406 $as_echo "PATH: $as_dir"
1407 done
1408IFS=$as_save_IFS
1409
1410} >&5
1411
1412cat >&5 <<_ACEOF
b7026657
AC
1413
1414
1415## ----------- ##
1416## Core tests. ##
1417## ----------- ##
1418
1419_ACEOF
1420
1421
1422# Keep a trace of the command line.
1423# Strip out --no-create and --no-recursion so they do not pile up.
1424# Strip out --silent because we don't want to record it for future runs.
1425# Also quote any args containing shell meta-characters.
1426# Make two passes to allow for proper duplicate-argument suppression.
1427ac_configure_args=
1428ac_configure_args0=
1429ac_configure_args1=
b7026657
AC
1430ac_must_keep_next=false
1431for ac_pass in 1 2
1432do
1433 for ac_arg
1434 do
1435 case $ac_arg in
1436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1439 continue ;;
81ecdfbb
RW
1440 *\'*)
1441 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1442 esac
1443 case $ac_pass in
81ecdfbb 1444 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1445 2)
81ecdfbb 1446 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1447 if test $ac_must_keep_next = true; then
1448 ac_must_keep_next=false # Got value, back to normal.
1449 else
1450 case $ac_arg in
1451 *=* | --config-cache | -C | -disable-* | --disable-* \
1452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1454 | -with-* | --with-* | -without-* | --without-* | --x)
1455 case "$ac_configure_args0 " in
1456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1457 esac
1458 ;;
1459 -* ) ac_must_keep_next=true ;;
1460 esac
1461 fi
81ecdfbb 1462 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1463 ;;
1464 esac
1465 done
1466done
81ecdfbb
RW
1467{ ac_configure_args0=; unset ac_configure_args0;}
1468{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1469
1470# When interrupted or exit'd, cleanup temporary files, and complete
1471# config.log. We remove comments because anyway the quotes in there
1472# would cause problems or look ugly.
81ecdfbb
RW
1473# WARNING: Use '\'' to represent an apostrophe within the trap.
1474# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1475trap 'exit_status=$?
1476 # Save into config.log some information that might help in debugging.
1477 {
1478 echo
1479
1480 cat <<\_ASBOX
1481## ---------------- ##
1482## Cache variables. ##
1483## ---------------- ##
1484_ASBOX
1485 echo
1486 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1487(
1488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1489 eval ac_val=\$$ac_var
1490 case $ac_val in #(
1491 *${as_nl}*)
1492 case $ac_var in #(
1493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1494$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1495 esac
1496 case $ac_var in #(
1497 _ | IFS | as_nl) ;; #(
1498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1499 *) { eval $ac_var=; unset $ac_var;} ;;
1500 esac ;;
1501 esac
1502 done
b7026657 1503 (set) 2>&1 |
81ecdfbb
RW
1504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1505 *${as_nl}ac_space=\ *)
b7026657 1506 sed -n \
81ecdfbb
RW
1507 "s/'\''/'\''\\\\'\'''\''/g;
1508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1509 ;; #(
b7026657 1510 *)
81ecdfbb 1511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1512 ;;
81ecdfbb
RW
1513 esac |
1514 sort
1515)
b7026657
AC
1516 echo
1517
1518 cat <<\_ASBOX
1519## ----------------- ##
1520## Output variables. ##
1521## ----------------- ##
1522_ASBOX
1523 echo
1524 for ac_var in $ac_subst_vars
1525 do
81ecdfbb
RW
1526 eval ac_val=\$$ac_var
1527 case $ac_val in
1528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1529 esac
1530 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1531 done | sort
1532 echo
1533
1534 if test -n "$ac_subst_files"; then
1535 cat <<\_ASBOX
81ecdfbb
RW
1536## ------------------- ##
1537## File substitutions. ##
1538## ------------------- ##
b7026657
AC
1539_ASBOX
1540 echo
1541 for ac_var in $ac_subst_files
1542 do
81ecdfbb
RW
1543 eval ac_val=\$$ac_var
1544 case $ac_val in
1545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1546 esac
1547 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1548 done | sort
1549 echo
1550 fi
1551
1552 if test -s confdefs.h; then
1553 cat <<\_ASBOX
1554## ----------- ##
1555## confdefs.h. ##
1556## ----------- ##
1557_ASBOX
1558 echo
81ecdfbb 1559 cat confdefs.h
b7026657
AC
1560 echo
1561 fi
1562 test "$ac_signal" != 0 &&
81ecdfbb
RW
1563 $as_echo "$as_me: caught signal $ac_signal"
1564 $as_echo "$as_me: exit $exit_status"
b7026657 1565 } >&5
81ecdfbb
RW
1566 rm -f core *.core core.conftest.* &&
1567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1568 exit $exit_status
81ecdfbb 1569' 0
b7026657 1570for ac_signal in 1 2 13 15; do
81ecdfbb 1571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1572done
1573ac_signal=0
1574
1575# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1576rm -f -r conftest* confdefs.h
1577
1578$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1579
1580# Predefined preprocessor variables.
1581
1582cat >>confdefs.h <<_ACEOF
1583#define PACKAGE_NAME "$PACKAGE_NAME"
1584_ACEOF
1585
b7026657
AC
1586cat >>confdefs.h <<_ACEOF
1587#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1588_ACEOF
1589
b7026657
AC
1590cat >>confdefs.h <<_ACEOF
1591#define PACKAGE_VERSION "$PACKAGE_VERSION"
1592_ACEOF
1593
b7026657
AC
1594cat >>confdefs.h <<_ACEOF
1595#define PACKAGE_STRING "$PACKAGE_STRING"
1596_ACEOF
1597
b7026657
AC
1598cat >>confdefs.h <<_ACEOF
1599#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1600_ACEOF
1601
81ecdfbb
RW
1602cat >>confdefs.h <<_ACEOF
1603#define PACKAGE_URL "$PACKAGE_URL"
1604_ACEOF
1605
b7026657
AC
1606
1607# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1608# Prefer an explicitly selected file to automatically selected ones.
1609ac_site_file1=NONE
1610ac_site_file2=NONE
1611if test -n "$CONFIG_SITE"; then
1612 ac_site_file1=$CONFIG_SITE
1613elif test "x$prefix" != xNONE; then
1614 ac_site_file1=$prefix/share/config.site
1615 ac_site_file2=$prefix/etc/config.site
1616else
1617 ac_site_file1=$ac_default_prefix/share/config.site
1618 ac_site_file2=$ac_default_prefix/etc/config.site
1619fi
1620for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1621do
1622 test "x$ac_site_file" = xNONE && continue
b7026657 1623 if test -r "$ac_site_file"; then
81ecdfbb
RW
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1625$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
1626 sed 's/^/| /' "$ac_site_file" >&5
1627 . "$ac_site_file"
1628 fi
1629done
1630
1631if test -r "$cache_file"; then
1632 # Some versions of bash will fail to source /dev/null (special
1633 # files actually), so we avoid doing that.
1634 if test -f "$cache_file"; then
81ecdfbb
RW
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1636$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1637 case $cache_file in
81ecdfbb
RW
1638 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1639 *) . "./$cache_file";;
b7026657
AC
1640 esac
1641 fi
1642else
81ecdfbb
RW
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1644$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1645 >$cache_file
1646fi
1647
1648# Check that the precious variables saved in the cache have kept the same
1649# value.
1650ac_cache_corrupted=false
81ecdfbb 1651for ac_var in $ac_precious_vars; do
b7026657
AC
1652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1653 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1655 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1656 case $ac_old_set,$ac_new_set in
1657 set,)
81ecdfbb
RW
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
1660 ac_cache_corrupted=: ;;
1661 ,set)
81ecdfbb
RW
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
1664 ac_cache_corrupted=: ;;
1665 ,);;
1666 *)
1667 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1668 # differences in whitespace do not lead to failure.
1669 ac_old_val_w=`echo x $ac_old_val`
1670 ac_new_val_w=`echo x $ac_new_val`
1671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1674 ac_cache_corrupted=:
1675 else
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1678 eval $ac_var=\$ac_old_val
1679 fi
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1681$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1683$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
1684 fi;;
1685 esac
1686 # Pass precious variables to config.status.
1687 if test "$ac_new_set" = set; then
1688 case $ac_new_val in
81ecdfbb 1689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1690 *) ac_arg=$ac_var=$ac_new_val ;;
1691 esac
1692 case " $ac_configure_args " in
1693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
1695 esac
1696 fi
1697done
1698if $ac_cache_corrupted; then
81ecdfbb
RW
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1703 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 1704fi
81ecdfbb
RW
1705## -------------------- ##
1706## Main body of script. ##
1707## -------------------- ##
b7026657
AC
1708
1709ac_ext=c
1710ac_cpp='$CPP $CPPFLAGS'
1711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714
1715
1716
1717
1718
35695fd6
AC
1719
1720ac_ext=c
1721ac_cpp='$CPP $CPPFLAGS'
1722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725if test -n "$ac_tool_prefix"; then
1726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1727set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
1728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1729$as_echo_n "checking for $ac_word... " >&6; }
1730if test "${ac_cv_prog_CC+set}" = set; then :
1731 $as_echo_n "(cached) " >&6
b7026657 1732else
35695fd6
AC
1733 if test -n "$CC"; then
1734 ac_cv_prog_CC="$CC" # Let the user override the test.
1735else
1736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737for as_dir in $PATH
1738do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 1743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 1744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
1745 break 2
1746 fi
1747done
81ecdfbb
RW
1748 done
1749IFS=$as_save_IFS
35695fd6 1750
b7026657 1751fi
b7026657 1752fi
35695fd6
AC
1753CC=$ac_cv_prog_CC
1754if test -n "$CC"; then
81ecdfbb
RW
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1756$as_echo "$CC" >&6; }
b7026657 1757else
81ecdfbb
RW
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1759$as_echo "no" >&6; }
b7026657
AC
1760fi
1761
81ecdfbb 1762
35695fd6
AC
1763fi
1764if test -z "$ac_cv_prog_CC"; then
1765 ac_ct_CC=$CC
1766 # Extract the first word of "gcc", so it can be a program name with args.
1767set dummy gcc; ac_word=$2
81ecdfbb
RW
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1769$as_echo_n "checking for $ac_word... " >&6; }
1770if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1771 $as_echo_n "(cached) " >&6
b7026657 1772else
35695fd6
AC
1773 if test -n "$ac_ct_CC"; then
1774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1775else
35695fd6
AC
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 1783 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 1784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
1785 break 2
1786 fi
1787done
81ecdfbb
RW
1788 done
1789IFS=$as_save_IFS
b7026657
AC
1790
1791fi
b7026657 1792fi
35695fd6
AC
1793ac_ct_CC=$ac_cv_prog_ac_ct_CC
1794if test -n "$ac_ct_CC"; then
81ecdfbb
RW
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1796$as_echo "$ac_ct_CC" >&6; }
35695fd6 1797else
81ecdfbb
RW
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1799$as_echo "no" >&6; }
b7026657 1800fi
b7026657 1801
81ecdfbb
RW
1802 if test "x$ac_ct_CC" = x; then
1803 CC=""
1804 else
1805 case $cross_compiling:$ac_tool_warned in
1806yes:)
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1809ac_tool_warned=yes ;;
1810esac
1811 CC=$ac_ct_CC
1812 fi
35695fd6
AC
1813else
1814 CC="$ac_cv_prog_CC"
b7026657
AC
1815fi
1816
35695fd6 1817if test -z "$CC"; then
81ecdfbb
RW
1818 if test -n "$ac_tool_prefix"; then
1819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
35695fd6 1820set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1822$as_echo_n "checking for $ac_word... " >&6; }
1823if test "${ac_cv_prog_CC+set}" = set; then :
1824 $as_echo_n "(cached) " >&6
b7026657 1825else
35695fd6
AC
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1828else
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
b7026657 1831do
35695fd6
AC
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 1836 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 1837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6 1838 break 2
b7026657 1839 fi
35695fd6 1840done
81ecdfbb
RW
1841 done
1842IFS=$as_save_IFS
b7026657 1843
b7026657 1844fi
b7026657 1845fi
35695fd6
AC
1846CC=$ac_cv_prog_CC
1847if test -n "$CC"; then
81ecdfbb
RW
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1849$as_echo "$CC" >&6; }
b7026657 1850else
81ecdfbb
RW
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1852$as_echo "no" >&6; }
b7026657 1853fi
b7026657 1854
b7026657 1855
81ecdfbb 1856 fi
35695fd6
AC
1857fi
1858if test -z "$CC"; then
1859 # Extract the first word of "cc", so it can be a program name with args.
1860set dummy cc; ac_word=$2
81ecdfbb
RW
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1862$as_echo_n "checking for $ac_word... " >&6; }
1863if test "${ac_cv_prog_CC+set}" = set; then :
1864 $as_echo_n "(cached) " >&6
35695fd6
AC
1865else
1866 if test -n "$CC"; then
1867 ac_cv_prog_CC="$CC" # Let the user override the test.
1868else
1869 ac_prog_rejected=no
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6
AC
1877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1878 ac_prog_rejected=yes
1879 continue
1880 fi
1881 ac_cv_prog_CC="cc"
81ecdfbb 1882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
1883 break 2
1884 fi
1885done
81ecdfbb
RW
1886 done
1887IFS=$as_save_IFS
b7026657 1888
35695fd6
AC
1889if test $ac_prog_rejected = yes; then
1890 # We found a bogon in the path, so make sure we never use it.
1891 set dummy $ac_cv_prog_CC
1892 shift
1893 if test $# != 0; then
1894 # We chose a different compiler from the bogus one.
1895 # However, it has the same basename, so the bogon will be chosen
1896 # first if we set CC to just the basename; use the full file name.
1897 shift
1898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1899 fi
1900fi
1901fi
1902fi
1903CC=$ac_cv_prog_CC
1904if test -n "$CC"; then
81ecdfbb
RW
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1906$as_echo "$CC" >&6; }
35695fd6 1907else
81ecdfbb
RW
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1909$as_echo "no" >&6; }
35695fd6 1910fi
b7026657 1911
81ecdfbb 1912
35695fd6
AC
1913fi
1914if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
81ecdfbb 1916 for ac_prog in cl.exe
35695fd6
AC
1917 do
1918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1921$as_echo_n "checking for $ac_word... " >&6; }
1922if test "${ac_cv_prog_CC+set}" = set; then :
1923 $as_echo_n "(cached) " >&6
b7026657 1924else
35695fd6
AC
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 1935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 1936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
1937 break 2
1938 fi
1939done
81ecdfbb
RW
1940 done
1941IFS=$as_save_IFS
b7026657 1942
35695fd6
AC
1943fi
1944fi
1945CC=$ac_cv_prog_CC
1946if test -n "$CC"; then
81ecdfbb
RW
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1948$as_echo "$CC" >&6; }
35695fd6 1949else
81ecdfbb
RW
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1951$as_echo "no" >&6; }
35695fd6 1952fi
b7026657 1953
81ecdfbb 1954
35695fd6
AC
1955 test -n "$CC" && break
1956 done
1957fi
1958if test -z "$CC"; then
1959 ac_ct_CC=$CC
81ecdfbb 1960 for ac_prog in cl.exe
35695fd6
AC
1961do
1962 # Extract the first word of "$ac_prog", so it can be a program name with args.
1963set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1965$as_echo_n "checking for $ac_word... " >&6; }
1966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1967 $as_echo_n "(cached) " >&6
b7026657 1968else
35695fd6
AC
1969 if test -n "$ac_ct_CC"; then
1970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35695fd6 1979 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 1980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35695fd6
AC
1981 break 2
1982 fi
1983done
81ecdfbb
RW
1984 done
1985IFS=$as_save_IFS
35695fd6
AC
1986
1987fi
1988fi
1989ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990if test -n "$ac_ct_CC"; then
81ecdfbb
RW
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1992$as_echo "$ac_ct_CC" >&6; }
35695fd6 1993else
81ecdfbb
RW
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1995$as_echo "no" >&6; }
35695fd6
AC
1996fi
1997
81ecdfbb 1998
35695fd6
AC
1999 test -n "$ac_ct_CC" && break
2000done
2001
81ecdfbb
RW
2002 if test "x$ac_ct_CC" = x; then
2003 CC=""
2004 else
2005 case $cross_compiling:$ac_tool_warned in
2006yes:)
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2009ac_tool_warned=yes ;;
2010esac
2011 CC=$ac_ct_CC
2012 fi
35695fd6
AC
2013fi
2014
2015fi
2016
2017
81ecdfbb
RW
2018test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2020as_fn_error "no acceptable C compiler found in \$PATH
2021See \`config.log' for more details." "$LINENO" 5; }
35695fd6
AC
2022
2023# Provide some information about the compiler.
81ecdfbb
RW
2024$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2025set X $ac_compile
2026ac_compiler=$2
2027for ac_option in --version -v -V -qversion; do
2028 { { ac_try="$ac_compiler $ac_option >&5"
2029case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032esac
2033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034$as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
35695fd6 2036 ac_status=$?
81ecdfbb
RW
2037 if test -s conftest.err; then
2038 sed '10a\
2039... rest of stderr output deleted ...
2040 10q' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 rm -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; }
2046done
35695fd6 2047
81ecdfbb 2048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2049/* end confdefs.h. */
b7026657
AC
2050
2051int
2052main ()
2053{
2054
2055 ;
2056 return 0;
2057}
2058_ACEOF
35695fd6 2059ac_clean_files_save=$ac_clean_files
81ecdfbb 2060ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
35695fd6
AC
2061# Try to create an executable without -o first, disregard a.out.
2062# It will help us diagnose broken compilers, and finding out an intuition
2063# of exeext.
81ecdfbb
RW
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2065$as_echo_n "checking for C compiler default output file name... " >&6; }
2066ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2067
2068# The possible output files:
2069ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2070
2071ac_rmfiles=
2072for ac_file in $ac_files
35695fd6 2073do
35695fd6 2074 case $ac_file in
81ecdfbb
RW
2075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2076 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2077 esac
2078done
2079rm -f $ac_rmfiles
2080
2081if { { ac_try="$ac_link_default"
2082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
2086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087$as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_link_default") 2>&5
2089 ac_status=$?
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; }; then :
2092 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2093# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2094# in a Makefile. We should not override ac_cv_exeext if it was cached,
2095# so that the user can short-circuit this test for compilers unknown to
2096# Autoconf.
2097for ac_file in $ac_files ''
2098do
2099 test -f "$ac_file" || continue
2100 case $ac_file in
2101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2102 ;;
2103 [ab].out )
35695fd6
AC
2104 # We found the default executable, but exeext='' is most
2105 # certainly right.
2106 break;;
2107 *.* )
81ecdfbb
RW
2108 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2109 then :; else
2110 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2111 fi
2112 # We set ac_cv_exeext here because the later test for it is not
2113 # safe: cross compilers may not add the suffix if given an `-o'
2114 # argument, so we may need to know it at that point already.
2115 # Even if this section looks crufty: it has the advantage of
2116 # actually working.
35695fd6
AC
2117 break;;
2118 * )
2119 break;;
2120 esac
2121done
81ecdfbb
RW
2122test "$ac_cv_exeext" = no && ac_cv_exeext=
2123
b7026657 2124else
81ecdfbb
RW
2125 ac_file=''
2126fi
2127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2128$as_echo "$ac_file" >&6; }
2129if test -z "$ac_file"; then :
2130 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
81ecdfbb
RW
2133{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135{ as_fn_set_status 77
2136as_fn_error "C compiler cannot create executables
2137See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 2138fi
35695fd6 2139ac_exeext=$ac_cv_exeext
c906108c 2140
81ecdfbb 2141# Check that the compiler produces executables we can run. If not, either
35695fd6 2142# the compiler is broken, or we cross compile.
81ecdfbb
RW
2143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2144$as_echo_n "checking whether the C compiler works... " >&6; }
35695fd6
AC
2145# If not cross compiling, check that we can run a simple program.
2146if test "$cross_compiling" != yes; then
2147 if { ac_try='./$ac_file'
81ecdfbb
RW
2148 { { case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151esac
2152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153$as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_try") 2>&5
35695fd6 2155 ac_status=$?
81ecdfbb
RW
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; }; }; then
35695fd6
AC
2158 cross_compiling=no
2159 else
2160 if test "$cross_compiling" = maybe; then
2161 cross_compiling=yes
2162 else
81ecdfbb
RW
2163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165as_fn_error "cannot run C compiled programs.
35695fd6 2166If you meant to cross compile, use \`--host'.
81ecdfbb 2167See \`config.log' for more details." "$LINENO" 5; }
35695fd6
AC
2168 fi
2169 fi
c906108c 2170fi
81ecdfbb
RW
2171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2172$as_echo "yes" >&6; }
c906108c 2173
81ecdfbb 2174rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
35695fd6 2175ac_clean_files=$ac_clean_files_save
81ecdfbb 2176# Check that the compiler produces executables we can run. If not, either
35695fd6 2177# the compiler is broken, or we cross compile.
81ecdfbb
RW
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2179$as_echo_n "checking whether we are cross compiling... " >&6; }
2180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2181$as_echo "$cross_compiling" >&6; }
2182
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2184$as_echo_n "checking for suffix of executables... " >&6; }
2185if { { ac_try="$ac_link"
2186case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189esac
2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191$as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
35695fd6 2193 ac_status=$?
81ecdfbb
RW
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; }; then :
35695fd6
AC
2196 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2197# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2198# work properly (i.e., refer to `conftest.exe'), while it won't with
2199# `rm'.
2200for ac_file in conftest.exe conftest conftest.*; do
2201 test -f "$ac_file" || continue
2202 case $ac_file in
81ecdfbb 2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
35695fd6 2204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35695fd6
AC
2205 break;;
2206 * ) break;;
2207 esac
2208done
c906108c 2209else
81ecdfbb
RW
2210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212as_fn_error "cannot compute suffix of executables: cannot compile and link
2213See \`config.log' for more details." "$LINENO" 5; }
c906108c 2214fi
35695fd6 2215rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2217$as_echo "$ac_cv_exeext" >&6; }
c906108c 2218
35695fd6
AC
2219rm -f conftest.$ac_ext
2220EXEEXT=$ac_cv_exeext
2221ac_exeext=$EXEEXT
81ecdfbb
RW
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2223$as_echo_n "checking for suffix of object files... " >&6; }
2224if test "${ac_cv_objext+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
c906108c 2226else
81ecdfbb 2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2228/* end confdefs.h. */
c906108c 2229
b7026657
AC
2230int
2231main ()
2232{
35695fd6
AC
2233
2234 ;
2235 return 0;
b7026657
AC
2236}
2237_ACEOF
35695fd6 2238rm -f conftest.o conftest.obj
81ecdfbb
RW
2239if { { ac_try="$ac_compile"
2240case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243esac
2244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245$as_echo "$ac_try_echo"; } >&5
2246 (eval "$ac_compile") 2>&5
2247 ac_status=$?
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; }; then :
2250 for ac_file in conftest.o conftest.obj conftest.*; do
2251 test -f "$ac_file" || continue;
35695fd6 2252 case $ac_file in
81ecdfbb 2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
35695fd6
AC
2254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255 break;;
2256 esac
2257done
c906108c 2258else
81ecdfbb 2259 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
81ecdfbb
RW
2262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264as_fn_error "cannot compute suffix of object files: cannot compile
2265See \`config.log' for more details." "$LINENO" 5; }
c906108c 2266fi
35695fd6 2267rm -f conftest.$ac_cv_objext conftest.$ac_ext
b7026657 2268fi
81ecdfbb
RW
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2270$as_echo "$ac_cv_objext" >&6; }
35695fd6
AC
2271OBJEXT=$ac_cv_objext
2272ac_objext=$OBJEXT
81ecdfbb
RW
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2274$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2275if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2276 $as_echo_n "(cached) " >&6
b7026657 2277else
81ecdfbb 2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2279/* end confdefs.h. */
2280
2281int
2282main ()
2283{
35695fd6
AC
2284#ifndef __GNUC__
2285 choke me
b7026657
AC
2286#endif
2287
2288 ;
2289 return 0;
2290}
2291_ACEOF
81ecdfbb 2292if ac_fn_c_try_compile "$LINENO"; then :
35695fd6 2293 ac_compiler_gnu=yes
c906108c 2294else
81ecdfbb 2295 ac_compiler_gnu=no
c906108c 2296fi
81ecdfbb 2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6 2298ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c
SS
2299
2300fi
81ecdfbb
RW
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2302$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2303if test $ac_compiler_gnu = yes; then
2304 GCC=yes
2305else
2306 GCC=
2307fi
35695fd6
AC
2308ac_test_CFLAGS=${CFLAGS+set}
2309ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2311$as_echo_n "checking whether $CC accepts -g... " >&6; }
2312if test "${ac_cv_prog_cc_g+set}" = set; then :
2313 $as_echo_n "(cached) " >&6
2314else
2315 ac_save_c_werror_flag=$ac_c_werror_flag
2316 ac_c_werror_flag=yes
2317 ac_cv_prog_cc_g=no
2318 CFLAGS="-g"
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2320/* end confdefs.h. */
b7026657 2321
35695fd6
AC
2322int
2323main ()
2324{
2325
2326 ;
2327 return 0;
2328}
b7026657 2329_ACEOF
81ecdfbb 2330if ac_fn_c_try_compile "$LINENO"; then :
35695fd6 2331 ac_cv_prog_cc_g=yes
c906108c 2332else
81ecdfbb
RW
2333 CFLAGS=""
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h. */
2336
2337int
2338main ()
2339{
2340
2341 ;
2342 return 0;
2343}
2344_ACEOF
2345if ac_fn_c_try_compile "$LINENO"; then :
2346
2347else
2348 ac_c_werror_flag=$ac_save_c_werror_flag
2349 CFLAGS="-g"
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h. */
b7026657 2352
81ecdfbb
RW
2353int
2354main ()
2355{
2356
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361if ac_fn_c_try_compile "$LINENO"; then :
2362 ac_cv_prog_cc_g=yes
2363fi
2364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2365fi
81ecdfbb 2366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2367fi
81ecdfbb
RW
2368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 ac_c_werror_flag=$ac_save_c_werror_flag
2370fi
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2372$as_echo "$ac_cv_prog_cc_g" >&6; }
35695fd6
AC
2373if test "$ac_test_CFLAGS" = set; then
2374 CFLAGS=$ac_save_CFLAGS
2375elif test $ac_cv_prog_cc_g = yes; then
2376 if test "$GCC" = yes; then
2377 CFLAGS="-g -O2"
2378 else
2379 CFLAGS="-g"
2380 fi
2381else
2382 if test "$GCC" = yes; then
2383 CFLAGS="-O2"
2384 else
2385 CFLAGS=
2386 fi
2387fi
81ecdfbb
RW
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2389$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2390if test "${ac_cv_prog_cc_c89+set}" = set; then :
2391 $as_echo_n "(cached) " >&6
b7026657 2392else
81ecdfbb 2393 ac_cv_prog_cc_c89=no
35695fd6 2394ac_save_CC=$CC
81ecdfbb 2395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2396/* end confdefs.h. */
35695fd6
AC
2397#include <stdarg.h>
2398#include <stdio.h>
2399#include <sys/types.h>
2400#include <sys/stat.h>
2401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2402struct buf { int x; };
2403FILE * (*rcsopen) (struct buf *, struct stat *, int);
2404static char *e (p, i)
2405 char **p;
2406 int i;
2407{
2408 return p[i];
2409}
2410static char *f (char * (*g) (char **, int), char **p, ...)
2411{
2412 char *s;
2413 va_list v;
2414 va_start (v,p);
2415 s = g (p, va_arg (v,int));
2416 va_end (v);
2417 return s;
2418}
b7026657 2419
35695fd6
AC
2420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2421 function prototypes and stuff, but not '\xHH' hex character constants.
2422 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2423 as 'x'. The following induces an error, until -std is added to get
35695fd6
AC
2424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2425 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2426 that's true only with -std. */
35695fd6
AC
2427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2428
81ecdfbb
RW
2429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2430 inside strings and character constants. */
2431#define FOO(x) 'x'
2432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2433
35695fd6
AC
2434int test (int i, double x);
2435struct s1 {int (*f) (int a);};
2436struct s2 {int (*f) (double a);};
2437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2438int argc;
2439char **argv;
2440int
2441main ()
2442{
2443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2444 ;
2445 return 0;
2446}
b7026657 2447_ACEOF
81ecdfbb
RW
2448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35695fd6
AC
2450do
2451 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 ac_cv_prog_cc_c89=$ac_arg
b7026657 2454fi
81ecdfbb
RW
2455rm -f core conftest.err conftest.$ac_objext
2456 test "x$ac_cv_prog_cc_c89" != "xno" && break
35695fd6 2457done
81ecdfbb 2458rm -f conftest.$ac_ext
35695fd6 2459CC=$ac_save_CC
b7026657
AC
2460
2461fi
81ecdfbb
RW
2462# AC_CACHE_VAL
2463case "x$ac_cv_prog_cc_c89" in
2464 x)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2466$as_echo "none needed" >&6; } ;;
2467 xno)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2469$as_echo "unsupported" >&6; } ;;
35695fd6 2470 *)
81ecdfbb
RW
2471 CC="$CC $ac_cv_prog_cc_c89"
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2473$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35695fd6 2474esac
81ecdfbb 2475if test "x$ac_cv_prog_cc_c89" != xno; then :
c906108c 2476
b7026657 2477fi
35695fd6 2478
35695fd6
AC
2479ac_ext=c
2480ac_cpp='$CPP $CPPFLAGS'
2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484
6ffe910a 2485
81ecdfbb
RW
2486# Put a useful copy of CPP_FOR_TARGET in Makefile.
2487# This is only used to build the target values header files. These files are
2488# shipped with distributions so CPP_FOR_TARGET only needs to work in
2489# developer's trees. This value is borrowed from ../../Makefile.in.
2490CPP_FOR_TARGET="\` \
2491 if test -f \$\${rootme}/../../gcc/Makefile ; then \
2492 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
2493 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
2494 else \
2495 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
2496 fi; \
2497 else \
2498 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
2499 echo \$(CC); \
2500 else \
2501 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
2502 fi; \
2503 fi\` -E"
2504
2505
2506# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
2507if test x"${host}" = x"${target}" ; then
2508 TARGET_SUBDIR="."
2509else
2510 TARGET_SUBDIR=${target_alias}
697afb65 2511fi
81ecdfbb
RW
2512
2513
81ecdfbb
RW
2514ac_config_files="$ac_config_files Makefile"
2515
b7026657 2516cat >confcache <<\_ACEOF
c906108c
SS
2517# This file is a shell script that caches the results of configure
2518# tests run on this system so they can be shared between configure
b7026657
AC
2519# scripts and configure runs, see configure's option --config-cache.
2520# It is not useful on other systems. If it contains results you don't
2521# want to keep, you may remove or edit it.
c906108c 2522#
b7026657
AC
2523# config.status only pays attention to the cache file if you give it
2524# the --recheck option to rerun configure.
c906108c 2525#
b7026657
AC
2526# `ac_cv_env_foo' variables (set or unset) will be overridden when
2527# loading this file, other *unset* `ac_cv_foo' will be assigned the
2528# following values.
2529
2530_ACEOF
2531
c906108c
SS
2532# The following way of writing the cache mishandles newlines in values,
2533# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 2534# So, we kill variables containing newlines.
c906108c
SS
2535# Ultrix sh set writes to stderr and can't be redirected directly,
2536# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
2537(
2538 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2539 eval ac_val=\$$ac_var
2540 case $ac_val in #(
2541 *${as_nl}*)
2542 case $ac_var in #(
2543 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2544$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2545 esac
2546 case $ac_var in #(
2547 _ | IFS | as_nl) ;; #(
2548 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2549 *) { eval $ac_var=; unset $ac_var;} ;;
2550 esac ;;
2551 esac
2552 done
2553
b7026657 2554 (set) 2>&1 |
81ecdfbb
RW
2555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2557 # `set' does not quote correctly, so add quotes: double-quote
2558 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
2559 sed -n \
2560 "s/'/'\\\\''/g;
2561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 2562 ;; #(
b7026657
AC
2563 *)
2564 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 2565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2566 ;;
81ecdfbb
RW
2567 esac |
2568 sort
2569) |
b7026657 2570 sed '
81ecdfbb 2571 /^ac_cv_env_/b end
b7026657 2572 t clear
81ecdfbb 2573 :clear
b7026657
AC
2574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2575 t end
81ecdfbb
RW
2576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2577 :end' >>confcache
2578if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2579 if test -w "$cache_file"; then
2580 test "x$cache_file" != "x/dev/null" &&
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2582$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 2583 cat confcache >$cache_file
c906108c 2584 else
81ecdfbb
RW
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2586$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
2587 fi
2588fi
2589rm -f confcache
2590
c906108c
SS
2591test "x$prefix" = xNONE && prefix=$ac_default_prefix
2592# Let make expand exec_prefix.
2593test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2594
936df756
MF
2595# Transform confdefs.h into DEFS.
2596# Protect against shell expansion while executing Makefile rules.
2597# Protect against Makefile macro expansion.
2598#
2599# If the first sed substitution is executed (which looks for macros that
2600# take arguments), then branch to the quote section. Otherwise,
2601# look for a macro that doesn't take arguments.
2602ac_script='
2603:mline
2604/\\$/{
2605 N
2606 s,\\\n,,
2607 b mline
2608}
2609t clear
2610:clear
2611s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2612t quote
2613s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2614t quote
2615b any
2616:quote
2617s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2618s/\[/\\&/g
2619s/\]/\\&/g
2620s/\$/$$/g
2621H
2622:any
2623${
2624 g
2625 s/^\n//
2626 s/\n/ /g
2627 p
2628}
2629'
2630DEFS=`sed -n "$ac_script" confdefs.h`
2631
c906108c 2632
b7026657
AC
2633ac_libobjs=
2634ac_ltlibobjs=
2635for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2636 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
2637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2640 # will be set to the directory where LIBOBJS objects are built.
2641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
2643done
2644LIBOBJS=$ac_libobjs
c906108c 2645
b7026657
AC
2646LTLIBOBJS=$ac_ltlibobjs
2647
2648
0cb8d851 2649
b7026657 2650: ${CONFIG_STATUS=./config.status}
81ecdfbb 2651ac_write_fail=0
b7026657
AC
2652ac_clean_files_save=$ac_clean_files
2653ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2655$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2656as_write_fail=0
2657cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
2658#! $SHELL
2659# Generated by $as_me.
c906108c 2660# Run this file to recreate the current configuration.
c906108c 2661# Compiler output produced by configure, useful for debugging
b7026657 2662# configure, is in config.log if it exists.
c906108c 2663
b7026657
AC
2664debug=false
2665ac_cs_recheck=false
2666ac_cs_silent=false
b7026657 2667
81ecdfbb
RW
2668SHELL=\${CONFIG_SHELL-$SHELL}
2669export SHELL
2670_ASEOF
2671cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2672## -------------------- ##
2673## M4sh Initialization. ##
2674## -------------------- ##
2675
2676# Be more Bourne compatible
2677DUALCASE=1; export DUALCASE # for MKS sh
2678if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
2679 emulate sh
2680 NULLCMD=:
81ecdfbb 2681 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
2682 # is contrary to our usage. Disable this feature.
2683 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
2684 setopt NO_GLOB_SUBST
2685else
2686 case `(set -o) 2>/dev/null` in #(
2687 *posix*) :
2688 set -o posix ;; #(
2689 *) :
2690 ;;
2691esac
b7026657 2692fi
b7026657 2693
81ecdfbb
RW
2694
2695as_nl='
2696'
2697export as_nl
2698# Printing a long string crashes Solaris 7 /usr/bin/printf.
2699as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2700as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2701as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2702# Prefer a ksh shell builtin over an external printf program on Solaris,
2703# but without wasting forks for bash or zsh.
2704if test -z "$BASH_VERSION$ZSH_VERSION" \
2705 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2706 as_echo='print -r --'
2707 as_echo_n='print -rn --'
2708elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2709 as_echo='printf %s\n'
2710 as_echo_n='printf %s'
2711else
2712 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2713 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2714 as_echo_n='/usr/ucb/echo -n'
2715 else
2716 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2717 as_echo_n_body='eval
2718 arg=$1;
2719 case $arg in #(
2720 *"$as_nl"*)
2721 expr "X$arg" : "X\\(.*\\)$as_nl";
2722 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2723 esac;
2724 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2725 '
2726 export as_echo_n_body
2727 as_echo_n='sh -c $as_echo_n_body as_echo'
2728 fi
2729 export as_echo_body
2730 as_echo='sh -c $as_echo_body as_echo'
2731fi
2732
2733# The user is always right.
2734if test "${PATH_SEPARATOR+set}" != set; then
2735 PATH_SEPARATOR=:
2736 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2737 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2738 PATH_SEPARATOR=';'
2739 }
b7026657
AC
2740fi
2741
2742
81ecdfbb
RW
2743# IFS
2744# We need space, tab and new line, in precisely that order. Quoting is
2745# there to prevent editors from complaining about space-tab.
2746# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2747# splitting by setting IFS to empty value.)
2748IFS=" "" $as_nl"
2749
2750# Find who we are. Look in the path if we contain no directory separator.
2751case $0 in #((
2752 *[\\/]* ) as_myself=$0 ;;
2753 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2759 done
2760IFS=$as_save_IFS
2761
2762 ;;
2763esac
2764# We did not find ourselves, most probably we were run as `sh COMMAND'
2765# in which case we are not to be found in the path.
2766if test "x$as_myself" = x; then
2767 as_myself=$0
2768fi
2769if test ! -f "$as_myself"; then
2770 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2771 exit 1
2772fi
2773
2774# Unset variables that we do not need and which cause bugs (e.g. in
2775# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2776# suppresses any "Segmentation fault" message there. '((' could
2777# trigger a bug in pdksh 5.2.14.
2778for as_var in BASH_ENV ENV MAIL MAILPATH
2779do eval test x\${$as_var+set} = xset \
2780 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2781done
b7026657
AC
2782PS1='$ '
2783PS2='> '
2784PS4='+ '
2785
2786# NLS nuisances.
81ecdfbb
RW
2787LC_ALL=C
2788export LC_ALL
2789LANGUAGE=C
2790export LANGUAGE
2791
2792# CDPATH.
2793(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2794
2795
2796# as_fn_error ERROR [LINENO LOG_FD]
2797# ---------------------------------
2798# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2799# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2800# script with status $?, using 1 if that was 0.
2801as_fn_error ()
2802{
2803 as_status=$?; test $as_status -eq 0 && as_status=1
2804 if test "$3"; then
2805 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2806 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 2807 fi
81ecdfbb
RW
2808 $as_echo "$as_me: error: $1" >&2
2809 as_fn_exit $as_status
2810} # as_fn_error
2811
2812
2813# as_fn_set_status STATUS
2814# -----------------------
2815# Set $? to STATUS, without forking.
2816as_fn_set_status ()
2817{
2818 return $1
2819} # as_fn_set_status
2820
2821# as_fn_exit STATUS
2822# -----------------
2823# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2824as_fn_exit ()
2825{
2826 set +e
2827 as_fn_set_status $1
2828 exit $1
2829} # as_fn_exit
2830
2831# as_fn_unset VAR
2832# ---------------
2833# Portably unset VAR.
2834as_fn_unset ()
2835{
2836 { eval $1=; unset $1;}
2837}
2838as_unset=as_fn_unset
2839# as_fn_append VAR VALUE
2840# ----------------------
2841# Append the text in VALUE to the end of the definition contained in VAR. Take
2842# advantage of any shell optimizations that allow amortized linear growth over
2843# repeated appends, instead of the typical quadratic growth present in naive
2844# implementations.
2845if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2846 eval 'as_fn_append ()
2847 {
2848 eval $1+=\$2
2849 }'
2850else
2851 as_fn_append ()
2852 {
2853 eval $1=\$$1\$2
2854 }
2855fi # as_fn_append
2856
2857# as_fn_arith ARG...
2858# ------------------
2859# Perform arithmetic evaluation on the ARGs, and store the result in the
2860# global $as_val. Take advantage of shells that can avoid forks. The arguments
2861# must be portable across $(()) and expr.
2862if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2863 eval 'as_fn_arith ()
2864 {
2865 as_val=$(( $* ))
2866 }'
2867else
2868 as_fn_arith ()
2869 {
2870 as_val=`expr "$@" || test $? -eq 1`
2871 }
2872fi # as_fn_arith
c906108c 2873
81ecdfbb
RW
2874
2875if expr a : '\(a\)' >/dev/null 2>&1 &&
2876 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
2877 as_expr=expr
2878else
2879 as_expr=false
2880fi
c906108c 2881
81ecdfbb 2882if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
2883 as_basename=basename
2884else
2885 as_basename=false
2886fi
c906108c 2887
81ecdfbb
RW
2888if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2889 as_dirname=dirname
2890else
2891 as_dirname=false
2892fi
c906108c 2893
81ecdfbb 2894as_me=`$as_basename -- "$0" ||
b7026657
AC
2895$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2896 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
2897 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2898$as_echo X/"$0" |
2899 sed '/^.*\/\([^/][^/]*\)\/*$/{
2900 s//\1/
2901 q
2902 }
2903 /^X\/\(\/\/\)$/{
2904 s//\1/
2905 q
2906 }
2907 /^X\/\(\/\).*/{
2908 s//\1/
2909 q
2910 }
2911 s/.*/./; q'`
b7026657 2912
b7026657
AC
2913# Avoid depending upon Character Ranges.
2914as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2915as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2916as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2917as_cr_digits='0123456789'
2918as_cr_alnum=$as_cr_Letters$as_cr_digits
2919
81ecdfbb
RW
2920ECHO_C= ECHO_N= ECHO_T=
2921case `echo -n x` in #(((((
2922-n*)
2923 case `echo 'xy\c'` in
2924 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2925 xy) ECHO_C='\c';;
2926 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2927 ECHO_T=' ';;
2928 esac;;
2929*)
2930 ECHO_N='-n';;
b7026657
AC
2931esac
2932
81ecdfbb
RW
2933rm -f conf$$ conf$$.exe conf$$.file
2934if test -d conf$$.dir; then
2935 rm -f conf$$.dir/conf$$.file
b7026657 2936else
81ecdfbb
RW
2937 rm -f conf$$.dir
2938 mkdir conf$$.dir 2>/dev/null
b7026657 2939fi
81ecdfbb
RW
2940if (echo >conf$$.file) 2>/dev/null; then
2941 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 2942 as_ln_s='ln -s'
81ecdfbb
RW
2943 # ... but there are two gotchas:
2944 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2945 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2946 # In both cases, we have to default to `cp -p'.
2947 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2948 as_ln_s='cp -p'
2949 elif ln conf$$.file conf$$ 2>/dev/null; then
2950 as_ln_s=ln
2951 else
2952 as_ln_s='cp -p'
c906108c 2953 fi
b7026657
AC
2954else
2955 as_ln_s='cp -p'
2956fi
81ecdfbb
RW
2957rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2958rmdir conf$$.dir 2>/dev/null
2959
2960
2961# as_fn_mkdir_p
2962# -------------
2963# Create "$as_dir" as a directory, including parents if necessary.
2964as_fn_mkdir_p ()
2965{
2966
2967 case $as_dir in #(
2968 -*) as_dir=./$as_dir;;
2969 esac
2970 test -d "$as_dir" || eval $as_mkdir_p || {
2971 as_dirs=
2972 while :; do
2973 case $as_dir in #(
2974 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2975 *) as_qdir=$as_dir;;
2976 esac
2977 as_dirs="'$as_qdir' $as_dirs"
2978 as_dir=`$as_dirname -- "$as_dir" ||
2979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2980 X"$as_dir" : 'X\(//\)[^/]' \| \
2981 X"$as_dir" : 'X\(//\)$' \| \
2982 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2983$as_echo X"$as_dir" |
2984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2985 s//\1/
2986 q
2987 }
2988 /^X\(\/\/\)[^/].*/{
2989 s//\1/
2990 q
2991 }
2992 /^X\(\/\/\)$/{
2993 s//\1/
2994 q
2995 }
2996 /^X\(\/\).*/{
2997 s//\1/
2998 q
2999 }
3000 s/.*/./; q'`
3001 test -d "$as_dir" && break
3002 done
3003 test -z "$as_dirs" || eval "mkdir $as_dirs"
3004 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3005
b7026657 3006
81ecdfbb 3007} # as_fn_mkdir_p
b7026657 3008if mkdir -p . 2>/dev/null; then
81ecdfbb 3009 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
3010else
3011 test -d ./-p && rmdir ./-p
3012 as_mkdir_p=false
3013fi
3014
81ecdfbb
RW
3015if test -x / >/dev/null 2>&1; then
3016 as_test_x='test -x'
3017else
3018 if ls -dL / >/dev/null 2>&1; then
3019 as_ls_L_option=L
3020 else
3021 as_ls_L_option=
3022 fi
3023 as_test_x='
3024 eval sh -c '\''
3025 if test -d "$1"; then
3026 test -d "$1/.";
3027 else
3028 case $1 in #(
3029 -*)set "./$1";;
3030 esac;
3031 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3032 ???[sx]*):;;*)false;;esac;fi
3033 '\'' sh
3034 '
3035fi
3036as_executable_p=$as_test_x
b7026657
AC
3037
3038# Sed expression to map a string onto a valid CPP name.
3039as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3040
3041# Sed expression to map a string onto a valid variable name.
3042as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3043
3044
b7026657 3045exec 6>&1
81ecdfbb
RW
3046## ----------------------------------- ##
3047## Main body of $CONFIG_STATUS script. ##
3048## ----------------------------------- ##
3049_ASEOF
3050test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3051
3052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3053# Save the log message, to keep $0 and so on meaningful, and to
b7026657 3054# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
3055# values after options handling.
3056ac_log="
b7026657 3057This file was extended by $as_me, which was
81ecdfbb 3058generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
3059
3060 CONFIG_FILES = $CONFIG_FILES
3061 CONFIG_HEADERS = $CONFIG_HEADERS
3062 CONFIG_LINKS = $CONFIG_LINKS
3063 CONFIG_COMMANDS = $CONFIG_COMMANDS
3064 $ $0 $@
3065
81ecdfbb
RW
3066on `(hostname || uname -n) 2>/dev/null | sed 1q`
3067"
3068
b7026657
AC
3069_ACEOF
3070
81ecdfbb
RW
3071case $ac_config_files in *"
3072"*) set x $ac_config_files; shift; ac_config_files=$*;;
3073esac
b7026657 3074
b7026657 3075
b7026657 3076
81ecdfbb
RW
3077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3078# Files that config.status was made for.
3079config_files="$ac_config_files"
b7026657 3080
81ecdfbb 3081_ACEOF
b7026657 3082
81ecdfbb 3083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 3084ac_cs_usage="\
81ecdfbb
RW
3085\`$as_me' instantiates files and other configuration actions
3086from templates according to the current configuration. Unless the files
3087and actions are specified as TAGs, all are instantiated by default.
b7026657 3088
81ecdfbb 3089Usage: $0 [OPTION]... [TAG]...
b7026657
AC
3090
3091 -h, --help print this help, then exit
81ecdfbb
RW
3092 -V, --version print version number and configuration settings, then exit
3093 -q, --quiet, --silent
3094 do not print progress messages
b7026657
AC
3095 -d, --debug don't remove temporary files
3096 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
3097 --file=FILE[:TEMPLATE]
3098 instantiate the configuration file FILE
b7026657
AC
3099
3100Configuration files:
3101$config_files
3102
81ecdfbb 3103Report bugs to the package provider."
b7026657 3104
81ecdfbb
RW
3105_ACEOF
3106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
3107ac_cs_version="\\
3108config.status
81ecdfbb
RW
3109configured by $0, generated by GNU Autoconf 2.64,
3110 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 3111
81ecdfbb 3112Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
3113This config.status script is free software; the Free Software Foundation
3114gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
3115
3116ac_pwd='$ac_pwd'
3117srcdir='$srcdir'
81ecdfbb 3118test -n "\$AWK" || AWK=awk
b7026657
AC
3119_ACEOF
3120
81ecdfbb
RW
3121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3122# The default lists apply if the user does not specify any file.
b7026657
AC
3123ac_need_defaults=:
3124while test $# != 0
3125do
3126 case $1 in
3127 --*=*)
81ecdfbb
RW
3128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
3130 ac_shift=:
3131 ;;
81ecdfbb 3132 *)
b7026657
AC
3133 ac_option=$1
3134 ac_optarg=$2
3135 ac_shift=shift
3136 ;;
b7026657
AC
3137 esac
3138
3139 case $ac_option in
3140 # Handling of the options.
b7026657
AC
3141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3142 ac_cs_recheck=: ;;
81ecdfbb
RW
3143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3144 $as_echo "$ac_cs_version"; exit ;;
3145 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
3146 debug=: ;;
3147 --file | --fil | --fi | --f )
3148 $ac_shift
81ecdfbb
RW
3149 case $ac_optarg in
3150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3151 esac
3152 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657 3153 ac_need_defaults=false;;
936df756 3154 --he | --h | --help | --hel | -h )
81ecdfbb 3155 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
3156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3158 ac_cs_silent=: ;;
3159
3160 # This is an error.
81ecdfbb
RW
3161 -*) as_fn_error "unrecognized option: \`$1'
3162Try \`$0 --help' for more information." ;;
b7026657 3163
81ecdfbb
RW
3164 *) as_fn_append ac_config_targets " $1"
3165 ac_need_defaults=false ;;
b7026657
AC
3166
3167 esac
3168 shift
c906108c 3169done
b7026657
AC
3170
3171ac_configure_extra_args=
3172
3173if $ac_cs_silent; then
3174 exec 6>/dev/null
3175 ac_configure_extra_args="$ac_configure_extra_args --silent"
3176fi
3177
3178_ACEOF
81ecdfbb 3179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 3180if \$ac_cs_recheck; then
81ecdfbb
RW
3181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3182 shift
3183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3184 CONFIG_SHELL='$SHELL'
3185 export CONFIG_SHELL
3186 exec "\$@"
c906108c 3187fi
c906108c 3188
b7026657 3189_ACEOF
81ecdfbb
RW
3190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3191exec 5>>config.log
3192{
3193 echo
3194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3195## Running $as_me. ##
3196_ASBOX
936df756
MF
3197 $as_echo "$ac_log"
3198} >&5
6bb11ab3 3199
936df756
MF
3200_ACEOF
3201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
81ecdfbb 3202_ACEOF
b7026657 3203
81ecdfbb 3204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 3205
81ecdfbb 3206# Handling of arguments.
b7026657
AC
3207for ac_config_target in $ac_config_targets
3208do
81ecdfbb 3209 case $ac_config_target in
81ecdfbb 3210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
81ecdfbb
RW
3211
3212 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 3213 esac
b7026657 3214done
c906108c 3215
81ecdfbb 3216
b7026657
AC
3217# If the user did not use the arguments to specify the items to instantiate,
3218# then the envvar interface is used. Set only those that are not.
3219# We use the long form for the default assignment because of an extremely
3220# bizarre bug on SunOS 4.1.3.
3221if $ac_need_defaults; then
3222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b7026657
AC
3223fi
3224
3225# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 3226# simply because there is no reason against having it here, and in addition,
b7026657 3227# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
3228# Hook for its removal unless debugging.
3229# Note that there is a small window in which the directory will not be cleaned:
3230# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
3231$debug ||
3232{
81ecdfbb
RW
3233 tmp=
3234 trap 'exit_status=$?
3235 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3236' 0
3237 trap 'as_fn_exit 1' 1 2 13 15
b7026657 3238}
b7026657
AC
3239# Create a (secure) tmp directory for tmp files.
3240
3241{
81ecdfbb 3242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
3243 test -n "$tmp" && test -d "$tmp"
3244} ||
3245{
81ecdfbb
RW
3246 tmp=./conf$$-$RANDOM
3247 (umask 077 && mkdir "$tmp")
3248} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3249
3250# Set up the scripts for CONFIG_FILES section.
3251# No need to generate them if there are no CONFIG_FILES.
3252# This happens for instance with `./config.status config.h'.
3253if test -n "$CONFIG_FILES"; then
3254
3255
3256ac_cr=`echo X | tr X '\015'`
3257# On cygwin, bash can eat \r inside `` if the user requested igncr.
3258# But we know of no other shell where ac_cr would be empty at this
3259# point, so we can use a bashism as a fallback.
3260if test "x$ac_cr" = x; then
3261 eval ac_cr=\$\'\\r\'
3262fi
3263ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3264if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3265 ac_cs_awk_cr='\r'
3266else
3267 ac_cs_awk_cr=$ac_cr
3268fi
3269
3270echo 'BEGIN {' >"$tmp/subs1.awk" &&
3271_ACEOF
3272
3273
3274{
3275 echo "cat >conf$$subs.awk <<_ACEOF" &&
3276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3277 echo "_ACEOF"
3278} >conf$$subs.sh ||
3279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3280ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3281ac_delim='%!_!# '
3282for ac_last_try in false false false false false :; do
3283 . ./conf$$subs.sh ||
3284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3285
3286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3287 if test $ac_delim_n = $ac_delim_num; then
3288 break
3289 elif $ac_last_try; then
3290 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3291 else
3292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3293 fi
3294done
3295rm -f conf$$subs.sh
3296
3297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3298cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3299_ACEOF
3300sed -n '
3301h
3302s/^/S["/; s/!.*/"]=/
3303p
3304g
3305s/^[^!]*!//
3306:repl
3307t repl
3308s/'"$ac_delim"'$//
3309t delim
3310:nl
3311h
3312s/\(.\{148\}\).*/\1/
3313t more1
3314s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3315p
3316n
3317b repl
3318:more1
3319s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3320p
3321g
3322s/.\{148\}//
3323t nl
3324:delim
3325h
3326s/\(.\{148\}\).*/\1/
3327t more2
3328s/["\\]/\\&/g; s/^/"/; s/$/"/
3329p
3330b
3331:more2
3332s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3333p
3334g
3335s/.\{148\}//
3336t delim
3337' <conf$$subs.awk | sed '
3338/^[^""]/{
3339 N
3340 s/\n//
3341}
3342' >>$CONFIG_STATUS || ac_write_fail=1
3343rm -f conf$$subs.awk
3344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3345_ACAWK
3346cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3347 for (key in S) S_is_set[key] = 1
3348 FS = "\a"
3349
3350}
b7026657 3351{
81ecdfbb
RW
3352 line = $ 0
3353 nfields = split(line, field, "@")
3354 substed = 0
3355 len = length(field[1])
3356 for (i = 2; i < nfields; i++) {
3357 key = field[i]
3358 keylen = length(key)
3359 if (S_is_set[key]) {
3360 value = S[key]
3361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3362 len += length(value) + length(field[++i])
3363 substed = 1
3364 } else
3365 len += 1 + keylen
3366 }
3367
3368 print line
b7026657
AC
3369}
3370
81ecdfbb
RW
3371_ACAWK
3372_ACEOF
3373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3374if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3376else
3377 cat
3378fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3379 || as_fn_error "could not setup config files machinery" "$LINENO" 5
b7026657
AC
3380_ACEOF
3381
81ecdfbb
RW
3382# VPATH may cause trouble with some makes, so we remove $(srcdir),
3383# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3384# trailing colons and then remove the whole line if VPATH becomes empty
3385# (actually we leave an empty line to preserve line numbers).
3386if test "x$srcdir" = x.; then
3387 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3388s/:*\$(srcdir):*/:/
3389s/:*\${srcdir}:*/:/
3390s/:*@srcdir@:*/:/
3391s/^\([^=]*=[ ]*\):*/\1/
3392s/:*$//
3393s/^[^=]*=[ ]*$//
3394}'
3395fi
b7026657 3396
81ecdfbb
RW
3397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3398fi # test -n "$CONFIG_FILES"
b7026657 3399
81ecdfbb 3400
936df756 3401eval set X " :F $CONFIG_FILES "
81ecdfbb
RW
3402shift
3403for ac_tag
3404do
3405 case $ac_tag in
3406 :[FHLC]) ac_mode=$ac_tag; continue;;
3407 esac
3408 case $ac_mode$ac_tag in
3409 :[FHL]*:*);;
3410 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3411 :[FH]-) ac_tag=-:-;;
3412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3413 esac
3414 ac_save_IFS=$IFS
3415 IFS=:
3416 set x $ac_tag
3417 IFS=$ac_save_IFS
3418 shift
3419 ac_file=$1
3420 shift
3421
3422 case $ac_mode in
3423 :L) ac_source=$1;;
3424 :[FH])
3425 ac_file_inputs=
3426 for ac_f
3427 do
3428 case $ac_f in
3429 -) ac_f="$tmp/stdin";;
3430 *) # Look for the file first in the build tree, then in the source tree
3431 # (if the path is not absolute). The absolute path cannot be DOS-style,
3432 # because $ac_f cannot contain `:'.
3433 test -f "$ac_f" ||
3434 case $ac_f in
3435 [\\/$]*) false;;
3436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3437 esac ||
3438 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3439 esac
3440 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3441 as_fn_append ac_file_inputs " '$ac_f'"
3442 done
3443
3444 # Let's still pretend it is `configure' which instantiates (i.e., don't
3445 # use $as_me), people would be surprised to read:
3446 # /* config.h. Generated by config.status. */
3447 configure_input='Generated from '`
3448 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3449 `' by configure.'
3450 if test x"$ac_file" != x-; then
3451 configure_input="$ac_file. $configure_input"
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3453$as_echo "$as_me: creating $ac_file" >&6;}
3454 fi
3455 # Neutralize special characters interpreted by sed in replacement strings.
3456 case $configure_input in #(
3457 *\&* | *\|* | *\\* )
3458 ac_sed_conf_input=`$as_echo "$configure_input" |
3459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3460 *) ac_sed_conf_input=$configure_input;;
3461 esac
3462
3463 case $ac_tag in
3464 *:-:* | *:-) cat >"$tmp/stdin" \
3465 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
3466 esac
3467 ;;
c906108c
SS
3468 esac
3469
81ecdfbb 3470 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
3471$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3472 X"$ac_file" : 'X\(//\)[^/]' \| \
3473 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
3474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3475$as_echo X"$ac_file" |
3476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3477 s//\1/
3478 q
3479 }
3480 /^X\(\/\/\)[^/].*/{
3481 s//\1/
3482 q
3483 }
3484 /^X\(\/\/\)$/{
3485 s//\1/
3486 q
3487 }
3488 /^X\(\/\).*/{
3489 s//\1/
3490 q
3491 }
3492 s/.*/./; q'`
3493 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
3494 ac_builddir=.
3495
81ecdfbb
RW
3496case "$ac_dir" in
3497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3498*)
3499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3500 # A ".." for each directory in $ac_dir_suffix.
3501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3502 case $ac_top_builddir_sub in
3503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3505 esac ;;
3506esac
3507ac_abs_top_builddir=$ac_pwd
3508ac_abs_builddir=$ac_pwd$ac_dir_suffix
3509# for backward compatibility:
3510ac_top_builddir=$ac_top_build_prefix
c906108c 3511
b7026657 3512case $srcdir in
81ecdfbb 3513 .) # We are building in place.
b7026657 3514 ac_srcdir=.
81ecdfbb
RW
3515 ac_top_srcdir=$ac_top_builddir_sub
3516 ac_abs_top_srcdir=$ac_pwd ;;
3517 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 3518 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
3519 ac_top_srcdir=$srcdir
3520 ac_abs_top_srcdir=$srcdir ;;
3521 *) # Relative name.
3522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3523 ac_top_srcdir=$ac_top_build_prefix$srcdir
3524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 3525esac
81ecdfbb 3526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 3527
b7026657 3528
81ecdfbb
RW
3529 case $ac_mode in
3530 :F)
3531 #
3532 # CONFIG_FILE
3533 #
b7026657 3534
81ecdfbb 3535_ACEOF
c906108c 3536
81ecdfbb
RW
3537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3538# If the template does not know about datarootdir, expand it.
3539# FIXME: This hack should be removed a few years after 2.60.
3540ac_datarootdir_hack=; ac_datarootdir_seen=
3541ac_sed_dataroot='
3542/datarootdir/ {
3543 p
3544 q
3545}
3546/@datadir@/p
3547/@docdir@/p
3548/@infodir@/p
3549/@localedir@/p
3550/@mandir@/p'
3551case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3552*datarootdir*) ac_datarootdir_seen=yes;;
3553*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3555$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3556_ACEOF
3557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3558 ac_datarootdir_hack='
3559 s&@datadir@&$datadir&g
3560 s&@docdir@&$docdir&g
3561 s&@infodir@&$infodir&g
3562 s&@localedir@&$localedir&g
3563 s&@mandir@&$mandir&g
3564 s&\\\${datarootdir}&$datarootdir&g' ;;
3565esac
b7026657 3566_ACEOF
81ecdfbb
RW
3567
3568# Neutralize VPATH when `$srcdir' = `.'.
3569# Shell code in configure.ac might set extrasub.
3570# FIXME: do we really want to maintain this feature?
3571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3572ac_sed_extra="$ac_vpsub
b7026657
AC
3573$extrasub
3574_ACEOF
81ecdfbb 3575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
3576:t
3577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
3578s|@configure_input@|$ac_sed_conf_input|;t t
3579s&@top_builddir@&$ac_top_builddir_sub&;t t
3580s&@top_build_prefix@&$ac_top_build_prefix&;t t
3581s&@srcdir@&$ac_srcdir&;t t
3582s&@abs_srcdir@&$ac_abs_srcdir&;t t
3583s&@top_srcdir@&$ac_top_srcdir&;t t
3584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3585s&@builddir@&$ac_builddir&;t t
3586s&@abs_builddir@&$ac_abs_builddir&;t t
3587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
81ecdfbb
RW
3588$ac_datarootdir_hack
3589"
3590eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3591 || as_fn_error "could not create $ac_file" "$LINENO" 5
3592
3593test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3597which seems to be undefined. Please make sure it is defined." >&5
3598$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3599which seems to be undefined. Please make sure it is defined." >&2;}
3600
3601 rm -f "$tmp/stdin"
b7026657 3602 case $ac_file in
81ecdfbb
RW
3603 -) cat "$tmp/out" && rm -f "$tmp/out";;
3604 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
3605 esac \
3606 || as_fn_error "could not create $ac_file" "$LINENO" 5
3607 ;;
6bb11ab3 3608
6bb11ab3 3609
6bb11ab3 3610
6bb11ab3
L
3611 esac
3612
81ecdfbb 3613done # for ac_tag
c906108c 3614
b7026657 3615
81ecdfbb 3616as_fn_exit 0
b7026657 3617_ACEOF
b7026657
AC
3618ac_clean_files=$ac_clean_files_save
3619
81ecdfbb
RW
3620test $ac_write_fail = 0 ||
3621 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
3622
b7026657
AC
3623
3624# configure is writing to config.log, and then calls config.status.
3625# config.status does its own redirection, appending to config.log.
3626# Unfortunately, on DOS this fails, as config.log is still kept open
3627# by configure, so config.status won't be able to write to it; its
3628# output is simply discarded. So we exec the FD to /dev/null,
3629# effectively closing config.log, so it can be properly (re)opened and
3630# appended to by config.status. When coming back to configure, we
3631# need to make the FD available again.
3632if test "$no_create" != yes; then
3633 ac_cs_success=:
3634 ac_config_status_args=
3635 test "$silent" = yes &&
3636 ac_config_status_args="$ac_config_status_args --quiet"
3637 exec 5>/dev/null
3638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3639 exec 5>>config.log
3640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3641 # would make configure fail if this is the last instruction.
81ecdfbb
RW
3642 $ac_cs_success || as_fn_exit $?
3643fi
3644if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3646$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 3647fi
c906108c 3648