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