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