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