]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure
sim: unify -Werror build 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
b15c5d7a
MF
625ac_header_list=
626ac_func_list=
81ecdfbb 627enable_option_checking=no
6bddc3e8
MF
628ac_subst_vars='am__EXEEXT_FALSE
629am__EXEEXT_TRUE
630LTLIBOBJS
b6b1c790
MF
631SIM_ENABLE_IGEN_FALSE
632SIM_ENABLE_IGEN_TRUE
81ecdfbb 633subdirs
a0e674c1 634SIM_PRIMARY_TARGET
c2783492
MF
635AM_BACKSLASH
636AM_DEFAULT_VERBOSITY
637AM_DEFAULT_V
638AM_V
6bddc3e8
MF
639am__fastdepCC_FALSE
640am__fastdepCC_TRUE
641CCDEPMODE
642am__nodep
643AMDEPBACKSLASH
644AMDEP_FALSE
645AMDEP_TRUE
646am__quote
647am__include
648DEPDIR
6bddc3e8
MF
649am__untar
650am__tar
651AMTAR
652am__leading_dot
653SET_MAKE
654AWK
655mkdir_p
656MKDIR_P
657INSTALL_STRIP_PROGRAM
658STRIP
659install_sh
660MAKEINFO
661AUTOHEADER
662AUTOMAKE
663AUTOCONF
664ACLOCAL
665VERSION
666PACKAGE
667CYGPATH_W
668am__isrc
8c379db2
TT
669MAINT
670MAINTAINER_MODE_FALSE
671MAINTAINER_MODE_TRUE
a48ff3ef 672LIBOBJS
c2783492
MF
673C_DIALECT
674RANLIB
675AR
676LDFLAGS_FOR_BUILD
677CFLAGS_FOR_BUILD
aa0fca16 678RANLIB_FOR_BUILD
c2783492 679CC_FOR_BUILD
aa0fca16 680AR_FOR_BUILD
c2783492
MF
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684EGREP
685GREP
686CPP
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
81ecdfbb
RW
694target_os
695target_vendor
696target_cpu
697target
698host_os
699host_vendor
700host_cpu
701host
702build_os
703build_vendor
704build_cpu
705build
6dd65fc0
MF
706REPORT_BUGS_TEXI
707REPORT_BUGS_TO
708PKGVERSION
81ecdfbb
RW
709target_alias
710host_alias
711build_alias
712LIBS
713ECHO_T
714ECHO_N
715ECHO_C
716DEFS
717mandir
718localedir
719libdir
720psdir
721pdfdir
722dvidir
723htmldir
724infodir
725docdir
726oldincludedir
727includedir
728localstatedir
729sharedstatedir
730sysconfdir
731datadir
732datarootdir
733libexecdir
734sbindir
735bindir
736program_transform_name
737prefix
738exec_prefix
739PACKAGE_URL
740PACKAGE_BUGREPORT
741PACKAGE_STRING
742PACKAGE_VERSION
743PACKAGE_TARNAME
744PACKAGE_NAME
745PATH_SEPARATOR
47ce766a
MF
746SHELL
747WERROR_CFLAGS
748WARN_CFLAGS'
b7026657 749ac_subst_files=''
81ecdfbb
RW
750ac_user_opts='
751enable_option_checking
6dd65fc0
MF
752with_pkgversion
753with_bugurl
8c379db2 754enable_maintainer_mode
6bddc3e8 755enable_dependency_tracking
c2783492 756enable_silent_rules
81ecdfbb 757enable_sim
26da232c 758enable_example_sims
a0e674c1 759enable_targets
ba307cdd 760enable_sim_alignment
dba333c1 761enable_sim_assert
04381273 762enable_sim_debug
f9a4d543 763enable_sim_endian
5ea45474 764enable_sim_environment
04381273
MF
765enable_sim_profile
766enable_sim_stdio
767enable_sim_trace
47ce766a
MF
768enable_werror
769enable_build_warnings
770enable_sim_build_warnings
81ecdfbb
RW
771'
772 ac_precious_vars='build_alias
773host_alias
774target_alias
775CC
776CFLAGS
777LDFLAGS
778LIBS
5e25901f
MF
779CPPFLAGS
780CPP'
2e8cf49e
NC
781ac_subdirs_all='aarch64
782arm
81ecdfbb 783avr
ef016f83 784bfin
b26e2ae7 785bpf
81ecdfbb
RW
786cr16
787cris
788d10v
789frv
790h8300
791iq2000
792lm32
793m32c
794m32r
795m68hc11
796mcore
bd30e45a 797microblaze
81ecdfbb
RW
798mips
799mn10300
800moxie
3346cfda 801msp430
37f980dc 802or1k
ddd44b70 803pru
b9249c46 804riscv
87326c78 805rl78
4f8d4a38 806rx
81ecdfbb
RW
807sh
808erc32
809ppc
f46e4eb7 810ft32
26da232c
MF
811v850
812example-synacor'
c906108c
SS
813
814# Initialize some variables set by options.
b7026657
AC
815ac_init_help=
816ac_init_version=false
81ecdfbb
RW
817ac_unrecognized_opts=
818ac_unrecognized_sep=
c906108c
SS
819# The variables have the same names as the options, with
820# dashes changed to underlines.
b7026657 821cache_file=/dev/null
c906108c 822exec_prefix=NONE
c906108c 823no_create=
c906108c
SS
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
c906108c
SS
832verbose=
833x_includes=NONE
834x_libraries=NONE
b7026657
AC
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 841# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
c906108c
SS
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
c906108c
SS
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
6bddc3e8 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
c906108c 861
c906108c 862ac_prev=
81ecdfbb 863ac_dashdash=
c906108c
SS
864for ac_option
865do
c906108c
SS
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
81ecdfbb 868 eval $ac_prev=\$ac_option
c906108c
SS
869 ac_prev=
870 continue
871 fi
872
81ecdfbb 873 case $ac_option in
d0ac1c44
SM
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
81ecdfbb 877 esac
c906108c
SS
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
81ecdfbb
RW
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
c906108c
SS
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 888 bindir=$ac_optarg ;;
c906108c
SS
889
890 -build | --build | --buil | --bui | --bu)
b7026657 891 ac_prev=build_alias ;;
c906108c 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 893 build_alias=$ac_optarg ;;
c906108c
SS
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
c906108c 904
81ecdfbb 905 -datadir | --datadir | --datadi | --datad)
c906108c 906 ac_prev=datadir ;;
81ecdfbb 907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 908 datadir=$ac_optarg ;;
c906108c 909
81ecdfbb
RW
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
c906108c 917 -disable-* | --disable-*)
81ecdfbb 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 919 # Reject names that are not valid shell variable names.
81ecdfbb 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 921 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
c906108c
SS
942
943 -enable-* | --enable-*)
81ecdfbb 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 945 # Reject names that are not valid shell variable names.
81ecdfbb 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 947 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
fdd6fa61 956 esac
81ecdfbb 957 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
b7026657 966 exec_prefix=$ac_optarg ;;
c906108c
SS
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
b7026657
AC
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
c906108c
SS
978
979 -host | --host | --hos | --ho)
b7026657 980 ac_prev=host_alias ;;
c906108c 981 -host=* | --host=* | --hos=* | --ho=*)
b7026657 982 host_alias=$ac_optarg ;;
c906108c 983
81ecdfbb
RW
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
c906108c
SS
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 995 includedir=$ac_optarg ;;
c906108c
SS
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1000 infodir=$ac_optarg ;;
c906108c
SS
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1005 libdir=$ac_optarg ;;
c906108c
SS
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
b7026657 1012 libexecdir=$ac_optarg ;;
c906108c 1013
81ecdfbb
RW
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
c906108c 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1020 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1024 localstatedir=$ac_optarg ;;
c906108c
SS
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1029 mandir=$ac_optarg ;;
c906108c
SS
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1036 | --no-cr | --no-c | -n)
c906108c
SS
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1050 oldincludedir=$ac_optarg ;;
c906108c
SS
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1055 prefix=$ac_optarg ;;
c906108c
SS
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1062 program_prefix=$ac_optarg ;;
c906108c
SS
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1069 program_suffix=$ac_optarg ;;
c906108c
SS
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1086 program_transform_name=$ac_optarg ;;
c906108c 1087
81ecdfbb
RW
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
c906108c
SS
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
b7026657 1106 sbindir=$ac_optarg ;;
c906108c
SS
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
b7026657 1117 sharedstatedir=$ac_optarg ;;
c906108c
SS
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
b7026657 1122 site=$ac_optarg ;;
0fda6bd2 1123
c906108c
SS
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1127 srcdir=$ac_optarg ;;
c906108c
SS
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1134 sysconfdir=$ac_optarg ;;
c906108c
SS
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1137 ac_prev=target_alias ;;
c906108c 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1139 target_alias=$ac_optarg ;;
c906108c
SS
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
b7026657
AC
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
c906108c
SS
1146
1147 -with-* | --with-*)
81ecdfbb 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1149 # Reject names that are not valid shell variable names.
81ecdfbb 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1151 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
fdd6fa61 1160 esac
81ecdfbb 1161 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1162
1163 -without-* | --without-*)
81ecdfbb 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1165 # Reject names that are not valid shell variable names.
81ecdfbb 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1167 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
c906108c
SS
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1188 x_includes=$ac_optarg ;;
c906108c
SS
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1195 x_libraries=$ac_optarg ;;
c906108c 1196
d0ac1c44
SM
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
c906108c
SS
1199 ;;
1200
b7026657
AC
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1207 esac
1208 eval $ac_envvar=\$ac_optarg
b7026657
AC
1209 export $ac_envvar ;;
1210
c906108c 1211 *)
b7026657 1212 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1217 ;;
1218
1219 esac
1220done
1221
1222if test -n "$ac_prev"; then
b7026657 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1224 as_fn_error $? "missing argument to $ac_option"
c906108c 1225fi
c906108c 1226
81ecdfbb
RW
1227if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
d0ac1c44 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1232 esac
81ecdfbb 1233fi
fdd6fa61 1234
81ecdfbb
RW
1235# Check all directory arguments for consistency.
1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
c906108c 1240do
81ecdfbb
RW
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
b7026657 1249 case $ac_val in
81ecdfbb
RW
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1252 esac
d0ac1c44 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1254done
1255
b7026657
AC
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
b7026657
AC
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270fi
c906108c 1271
b7026657
AC
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
c906108c 1276
c906108c 1277
81ecdfbb
RW
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1281 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1283 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1284
1285
c906108c
SS
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
81ecdfbb
RW
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
c906108c 1313 srcdir=$ac_confdir
81ecdfbb 1314 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1315 srcdir=..
1316 fi
1317else
1318 ac_srcdir_defaulted=no
1319fi
81ecdfbb
RW
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
d0ac1c44 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1327 pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
df1756f4
TG
1344
1345#
b7026657
AC
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
6bddc3e8 1352\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
d0ac1c44 1366 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
b7026657
AC
1372Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1374 [$ac_default_prefix]
b7026657 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1376 [PREFIX]
b7026657
AC
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
81ecdfbb
RW
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1405_ACEOF
1406
1407 cat <<\_ACEOF
1408
1409Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
6bddc3e8
MF
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of sim 0:";;
1424 esac
b7026657
AC
1425 cat <<\_ACEOF
1426
1427Optional Features:
81ecdfbb 1428 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8c379db2
TT
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful (and
1433 sometimes confusing) to the casual installer
6bddc3e8
MF
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
c2783492
MF
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1440 --enable-sim Enable the GNU simulator
26da232c 1441 --enable-example-sims enable example GNU simulators
a0e674c1 1442 --enable-targets alternative target configurations
ba307cdd
MF
1443 --enable-sim-alignment=align
1444 Specify strict, nonstrict or forced alignment of
1445 memory accesses
dba333c1 1446 --enable-sim-assert Specify whether to perform random assertions
04381273
MF
1447 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1448 itself)
f9a4d543
MF
1449 --enable-sim-endian=endian
1450 Specify target byte endian orientation
5ea45474
MF
1451 --enable-sim-environment=environment
1452 Specify mixed, user, virtual or operating
1453 environment
04381273
MF
1454 --enable-sim-profile=opts
1455 Enable profiling flags
1456 --enable-sim-stdio Specify whether to use stdio for console
1457 input/output
1458 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1459 --enable-werror treat compile warnings as errors
1460 --enable-build-warnings enable build-time compiler warnings if gcc is used
1461 --enable-sim-build-warnings
1462 enable SIM specific build-time compiler warnings if
1463 gcc is used
b7026657 1464
6dd65fc0
MF
1465Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1469 --with-bugurl=URL Direct users to URL to report a bug
1470
b7026657
AC
1471Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
81ecdfbb 1476 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1478 you have headers in a nonstandard directory <include dir>
5e25901f 1479 CPP C preprocessor
b7026657
AC
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
6bddc3e8
MF
1484Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1485sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1486_ACEOF
81ecdfbb 1487ac_status=$?
b7026657
AC
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
b7026657 1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
b7026657
AC
1496 ac_builddir=.
1497
81ecdfbb
RW
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1513
1514case $srcdir in
81ecdfbb 1515 .) # We are building in place.
b7026657 1516 ac_srcdir=.
81ecdfbb
RW
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1520 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1527esac
81ecdfbb 1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1529
81ecdfbb
RW
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1538 else
81ecdfbb
RW
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1542 done
1543fi
1544
81ecdfbb 1545test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1546if $ac_init_version; then
1547 cat <<\_ACEOF
6bddc3e8 1548sim configure 0
d0ac1c44 1549generated by GNU Autoconf 2.69
b7026657 1550
d0ac1c44 1551Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
81ecdfbb 1555 exit
b7026657 1556fi
81ecdfbb
RW
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
d0ac1c44
SM
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
81ecdfbb
RW
1597
1598} # ac_fn_c_try_compile
5e25901f
MF
1599
1600# ac_fn_c_try_cpp LINENO
1601# ----------------------
1602# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_cpp ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_cpp
c2783492
MF
1636
1637# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1638# -------------------------------------------------------
1639# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640# the include files in INCLUDES and setting the cache variable VAR
1641# accordingly.
1642ac_fn_c_check_header_mongrel ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if eval \${$3+:} false; then :
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650fi
1651eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654else
1655 # Is the header compilable?
1656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657$as_echo_n "checking $2 usability... " >&6; }
1658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h. */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664 ac_header_compiler=yes
1665else
1666 ac_header_compiler=no
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670$as_echo "$ac_header_compiler" >&6; }
1671
1672# Is the header present?
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674$as_echo_n "checking $2 presence... " >&6; }
1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677#include <$2>
1678_ACEOF
1679if ac_fn_c_try_cpp "$LINENO"; then :
1680 ac_header_preproc=yes
1681else
1682 ac_header_preproc=no
1683fi
1684rm -f conftest.err conftest.i conftest.$ac_ext
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686$as_echo "$ac_header_preproc" >&6; }
1687
1688# So? What about this header?
1689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1690 yes:no: )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 ;;
1696 no:yes:* )
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1700$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1704$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707( $as_echo "## -------------------------------------------------------------------------------------- ##
1708## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1709## -------------------------------------------------------------------------------------- ##"
1710 ) | sed "s/^/$as_me: WARNING: /" >&2
1711 ;;
1712esac
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717else
1718 eval "$3=\$ac_header_compiler"
1719fi
1720eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726} # ac_fn_c_check_header_mongrel
1727
1728# ac_fn_c_try_run LINENO
1729# ----------------------
1730# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731# that executables *can* be run.
1732ac_fn_c_try_run ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=$ac_status
1763fi
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_run
1769
1770# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists and can be compiled using the include files in
1773# INCLUDES, setting the cache variable VAR accordingly.
1774ac_fn_c_check_header_compile ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784$4
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789else
1790 eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_header_compile
b15c5d7a
MF
1800
1801# ac_fn_c_try_link LINENO
1802# -----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_link ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext conftest$ac_exeext
1808 if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest$ac_exeext && {
1827 test "$cross_compiling" = yes ||
1828 test -x conftest$ac_exeext
1829 }; then :
1830 ac_retval=0
1831else
1832 $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836fi
1837 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839 # interfere with the next link command; also delete a directory that is
1840 # left behind by Apple's compiler. We do this before executing the actions.
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_try_link
1846
1847# ac_fn_c_check_func LINENO FUNC VAR
1848# ----------------------------------
1849# Tests whether FUNC exists, setting the cache variable VAR accordingly
1850ac_fn_c_check_func ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1862#define $2 innocuous_$2
1863
1864/* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $2 (); below.
1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867 <limits.h> exists even on freestanding compilers. */
1868
1869#ifdef __STDC__
1870# include <limits.h>
1871#else
1872# include <assert.h>
1873#endif
1874
1875#undef $2
1876
1877/* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880#ifdef __cplusplus
1881extern "C"
1882#endif
1883char $2 ();
1884/* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887#if defined __stub_$2 || defined __stub___$2
1888choke me
1889#endif
1890
1891int
1892main ()
1893{
1894return $2 ();
1895 ;
1896 return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_link "$LINENO"; then :
1900 eval "$3=yes"
1901else
1902 eval "$3=no"
1903fi
1904rm -f core conftest.err conftest.$ac_objext \
1905 conftest$ac_exeext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_func
1913
1914# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1915# ----------------------------------------------------
1916# Tries to find if the field MEMBER exists in type AGGR, after including
1917# INCLUDES, setting cache variable VAR accordingly.
1918ac_fn_c_check_member ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1922$as_echo_n "checking for $2.$3... " >&6; }
1923if eval \${$4+:} false; then :
1924 $as_echo_n "(cached) " >&6
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$5
1929int
1930main ()
1931{
1932static $2 ac_aggr;
1933if (ac_aggr.$3)
1934return 0;
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$4=yes"
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$5
1945int
1946main ()
1947{
1948static $2 ac_aggr;
1949if (sizeof ac_aggr.$3)
1950return 0;
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957else
1958 eval "$4=no"
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964eval ac_res=\$$4
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_check_member
1970
a48ff3ef
MF
1971# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1972# ---------------------------------------------
1973# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1974# accordingly.
1975ac_fn_c_check_decl ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 as_decl_name=`echo $2|sed 's/ *(.*//'`
1979 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1981$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1982if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991#ifndef $as_decl_name
1992#ifdef __cplusplus
1993 (void) $as_decl_use;
1994#else
1995 (void) $as_decl_name;
1996#endif
1997#endif
1998
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004 eval "$3=yes"
2005else
2006 eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_decl
2016
b15c5d7a
MF
2017# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2018# -------------------------------------------
2019# Tests whether TYPE exists after having included INCLUDES, setting cache
2020# variable VAR accordingly.
2021ac_fn_c_check_type ()
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025$as_echo_n "checking for $2... " >&6; }
2026if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2028else
2029 eval "$3=no"
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036if (sizeof ($2))
2037 return 0;
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045$4
2046int
2047main ()
2048{
2049if (sizeof (($2)))
2050 return 0;
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2056
2057else
2058 eval "$3=yes"
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063fi
2064eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069} # ac_fn_c_check_type
81ecdfbb 2070cat >config.log <<_ACEOF
b7026657
AC
2071This file contains any messages produced by compilers while
2072running configure, to aid debugging if configure makes a mistake.
2073
6bddc3e8 2074It was created by sim $as_me 0, which was
d0ac1c44 2075generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2076
2077 $ $0 $@
2078
2079_ACEOF
81ecdfbb 2080exec 5>>config.log
b7026657
AC
2081{
2082cat <<_ASUNAME
2083## --------- ##
2084## Platform. ##
2085## --------- ##
2086
2087hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091uname -v = `(uname -v) 2>/dev/null || echo unknown`
2092
2093/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2095
2096/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2097/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2098/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2099/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2100/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2101/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2102/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2103
2104_ASUNAME
2105
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2111 $as_echo "PATH: $as_dir"
2112 done
2113IFS=$as_save_IFS
b7026657
AC
2114
2115} >&5
2116
2117cat >&5 <<_ACEOF
2118
2119
2120## ----------- ##
2121## Core tests. ##
2122## ----------- ##
2123
2124_ACEOF
2125
2126
2127# Keep a trace of the command line.
2128# Strip out --no-create and --no-recursion so they do not pile up.
2129# Strip out --silent because we don't want to record it for future runs.
2130# Also quote any args containing shell meta-characters.
2131# Make two passes to allow for proper duplicate-argument suppression.
2132ac_configure_args=
2133ac_configure_args0=
2134ac_configure_args1=
b7026657
AC
2135ac_must_keep_next=false
2136for ac_pass in 1 2
2137do
2138 for ac_arg
2139 do
2140 case $ac_arg in
2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143 | -silent | --silent | --silen | --sile | --sil)
2144 continue ;;
81ecdfbb
RW
2145 *\'*)
2146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2147 esac
2148 case $ac_pass in
81ecdfbb 2149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2150 2)
81ecdfbb 2151 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2152 if test $ac_must_keep_next = true; then
2153 ac_must_keep_next=false # Got value, back to normal.
2154 else
2155 case $ac_arg in
2156 *=* | --config-cache | -C | -disable-* | --disable-* \
2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159 | -with-* | --with-* | -without-* | --without-* | --x)
2160 case "$ac_configure_args0 " in
2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162 esac
2163 ;;
2164 -* ) ac_must_keep_next=true ;;
2165 esac
2166 fi
81ecdfbb 2167 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2168 ;;
2169 esac
2170 done
2171done
81ecdfbb
RW
2172{ ac_configure_args0=; unset ac_configure_args0;}
2173{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2174
2175# When interrupted or exit'd, cleanup temporary files, and complete
2176# config.log. We remove comments because anyway the quotes in there
2177# would cause problems or look ugly.
81ecdfbb
RW
2178# WARNING: Use '\'' to represent an apostrophe within the trap.
2179# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2180trap 'exit_status=$?
2181 # Save into config.log some information that might help in debugging.
2182 {
2183 echo
2184
d0ac1c44 2185 $as_echo "## ---------------- ##
b7026657 2186## Cache variables. ##
d0ac1c44 2187## ---------------- ##"
b7026657
AC
2188 echo
2189 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2190(
2191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in #(
2194 *${as_nl}*)
2195 case $ac_var in #(
2196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2198 esac
2199 case $ac_var in #(
2200 _ | IFS | as_nl) ;; #(
2201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2202 *) { eval $ac_var=; unset $ac_var;} ;;
2203 esac ;;
2204 esac
2205 done
b7026657 2206 (set) 2>&1 |
81ecdfbb
RW
2207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208 *${as_nl}ac_space=\ *)
b7026657 2209 sed -n \
81ecdfbb
RW
2210 "s/'\''/'\''\\\\'\'''\''/g;
2211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2212 ;; #(
b7026657 2213 *)
81ecdfbb 2214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2215 ;;
81ecdfbb
RW
2216 esac |
2217 sort
2218)
b7026657
AC
2219 echo
2220
d0ac1c44 2221 $as_echo "## ----------------- ##
b7026657 2222## Output variables. ##
d0ac1c44 2223## ----------------- ##"
b7026657
AC
2224 echo
2225 for ac_var in $ac_subst_vars
2226 do
81ecdfbb
RW
2227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2232 done | sort
2233 echo
2234
2235 if test -n "$ac_subst_files"; then
d0ac1c44 2236 $as_echo "## ------------------- ##
81ecdfbb 2237## File substitutions. ##
d0ac1c44 2238## ------------------- ##"
b7026657
AC
2239 echo
2240 for ac_var in $ac_subst_files
2241 do
81ecdfbb
RW
2242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2247 done | sort
2248 echo
2249 fi
2250
2251 if test -s confdefs.h; then
d0ac1c44 2252 $as_echo "## ----------- ##
b7026657 2253## confdefs.h. ##
d0ac1c44 2254## ----------- ##"
b7026657 2255 echo
81ecdfbb 2256 cat confdefs.h
b7026657 2257 echo
0fda6bd2 2258 fi
b7026657 2259 test "$ac_signal" != 0 &&
81ecdfbb
RW
2260 $as_echo "$as_me: caught signal $ac_signal"
2261 $as_echo "$as_me: exit $exit_status"
b7026657 2262 } >&5
81ecdfbb
RW
2263 rm -f core *.core core.conftest.* &&
2264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2265 exit $exit_status
81ecdfbb 2266' 0
b7026657 2267for ac_signal in 1 2 13 15; do
81ecdfbb 2268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2269done
2270ac_signal=0
2271
2272# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2273rm -f -r conftest* confdefs.h
2274
2275$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2276
2277# Predefined preprocessor variables.
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_NAME "$PACKAGE_NAME"
2281_ACEOF
2282
b7026657
AC
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285_ACEOF
2286
b7026657
AC
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_VERSION "$PACKAGE_VERSION"
2289_ACEOF
2290
b7026657
AC
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_STRING "$PACKAGE_STRING"
2293_ACEOF
2294
b7026657
AC
2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2297_ACEOF
2298
81ecdfbb
RW
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_URL "$PACKAGE_URL"
2301_ACEOF
2302
b7026657
AC
2303
2304# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2305# Prefer an explicitly selected file to automatically selected ones.
2306ac_site_file1=NONE
2307ac_site_file2=NONE
2308if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2309 # We do not want a PATH search for config.site.
2310 case $CONFIG_SITE in #((
2311 -*) ac_site_file1=./$CONFIG_SITE;;
2312 */*) ac_site_file1=$CONFIG_SITE;;
2313 *) ac_site_file1=./$CONFIG_SITE;;
2314 esac
81ecdfbb
RW
2315elif test "x$prefix" != xNONE; then
2316 ac_site_file1=$prefix/share/config.site
2317 ac_site_file2=$prefix/etc/config.site
2318else
2319 ac_site_file1=$ac_default_prefix/share/config.site
2320 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 2321fi
81ecdfbb
RW
2322for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2323do
2324 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2327$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2328 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2329 . "$ac_site_file" \
2330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332as_fn_error $? "failed to load site script $ac_site_file
2333See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2334 fi
2335done
2336
2337if test -r "$cache_file"; then
d0ac1c44
SM
2338 # Some versions of bash will fail to source /dev/null (special files
2339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2343 case $cache_file in
81ecdfbb
RW
2344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345 *) . "./$cache_file";;
b7026657
AC
2346 esac
2347 fi
c906108c 2348else
81ecdfbb
RW
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2351 >$cache_file
c906108c
SS
2352fi
2353
b15c5d7a
MF
2354as_fn_append ac_header_list " dlfcn.h"
2355as_fn_append ac_header_list " fcntl.h"
2356as_fn_append ac_header_list " fpu_control.h"
2357as_fn_append ac_header_list " termios.h"
2358as_fn_append ac_header_list " unistd.h"
2359as_fn_append ac_header_list " utime.h"
2360as_fn_append ac_header_list " linux/if_tun.h"
2361as_fn_append ac_header_list " linux/mii.h"
2362as_fn_append ac_header_list " linux/types.h"
2363as_fn_append ac_header_list " net/if.h"
2364as_fn_append ac_header_list " netinet/in.h"
2365as_fn_append ac_header_list " netinet/tcp.h"
2366as_fn_append ac_header_list " sys/ioctl.h"
2367as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 2368as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
2369as_fn_append ac_header_list " sys/param.h"
2370as_fn_append ac_header_list " sys/resource.h"
b15c5d7a
MF
2371as_fn_append ac_header_list " sys/socket.h"
2372as_fn_append ac_header_list " sys/stat.h"
a48ff3ef
MF
2373as_fn_append ac_header_list " sys/statfs.h"
2374as_fn_append ac_header_list " sys/termio.h"
2375as_fn_append ac_header_list " sys/termios.h"
2376as_fn_append ac_header_list " sys/types.h"
2377as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 2378as_fn_append ac_func_list " __setfpucw"
a48ff3ef 2379as_fn_append ac_func_list " access"
b15c5d7a
MF
2380as_fn_append ac_func_list " aint"
2381as_fn_append ac_func_list " anint"
a48ff3ef
MF
2382as_fn_append ac_func_list " cfgetispeed"
2383as_fn_append ac_func_list " cfgetospeed"
2384as_fn_append ac_func_list " cfsetispeed"
2385as_fn_append ac_func_list " cfsetospeed"
2386as_fn_append ac_func_list " chdir"
b15c5d7a 2387as_fn_append ac_func_list " chmod"
a48ff3ef
MF
2388as_fn_append ac_func_list " dup"
2389as_fn_append ac_func_list " dup2"
b15c5d7a
MF
2390as_fn_append ac_func_list " execv"
2391as_fn_append ac_func_list " execve"
a48ff3ef 2392as_fn_append ac_func_list " fcntl"
b15c5d7a 2393as_fn_append ac_func_list " fork"
a48ff3ef
MF
2394as_fn_append ac_func_list " fstat"
2395as_fn_append ac_func_list " fstatfs"
b15c5d7a 2396as_fn_append ac_func_list " ftruncate"
a48ff3ef 2397as_fn_append ac_func_list " getdirentries"
b15c5d7a 2398as_fn_append ac_func_list " getegid"
a48ff3ef 2399as_fn_append ac_func_list " geteuid"
b15c5d7a 2400as_fn_append ac_func_list " getgid"
a48ff3ef
MF
2401as_fn_append ac_func_list " getpid"
2402as_fn_append ac_func_list " getppid"
b15c5d7a 2403as_fn_append ac_func_list " getrusage"
a48ff3ef 2404as_fn_append ac_func_list " gettimeofday"
b15c5d7a 2405as_fn_append ac_func_list " getuid"
a48ff3ef 2406as_fn_append ac_func_list " ioctl"
b15c5d7a 2407as_fn_append ac_func_list " kill"
a48ff3ef
MF
2408as_fn_append ac_func_list " link"
2409as_fn_append ac_func_list " lseek"
b15c5d7a
MF
2410as_fn_append ac_func_list " mmap"
2411as_fn_append ac_func_list " munmap"
a48ff3ef 2412as_fn_append ac_func_list " pipe"
b15c5d7a
MF
2413as_fn_append ac_func_list " posix_fallocate"
2414as_fn_append ac_func_list " pread"
a48ff3ef
MF
2415as_fn_append ac_func_list " rmdir"
2416as_fn_append ac_func_list " setregid"
2417as_fn_append ac_func_list " setreuid"
b15c5d7a 2418as_fn_append ac_func_list " setgid"
a48ff3ef 2419as_fn_append ac_func_list " setuid"
b15c5d7a 2420as_fn_append ac_func_list " sigaction"
a48ff3ef 2421as_fn_append ac_func_list " sigprocmask"
b15c5d7a 2422as_fn_append ac_func_list " sqrt"
a48ff3ef 2423as_fn_append ac_func_list " stat"
b15c5d7a 2424as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
2425as_fn_append ac_func_list " symlink"
2426as_fn_append ac_func_list " tcdrain"
2427as_fn_append ac_func_list " tcflow"
2428as_fn_append ac_func_list " tcflush"
2429as_fn_append ac_func_list " tcgetattr"
2430as_fn_append ac_func_list " tcgetpgrp"
2431as_fn_append ac_func_list " tcsendbreak"
2432as_fn_append ac_func_list " tcsetattr"
2433as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
2434as_fn_append ac_func_list " time"
2435as_fn_append ac_func_list " truncate"
a48ff3ef
MF
2436as_fn_append ac_func_list " umask"
2437as_fn_append ac_func_list " unlink"
b15c5d7a 2438as_fn_append ac_func_list " utime"
b7026657
AC
2439# Check that the precious variables saved in the cache have kept the same
2440# value.
2441ac_cache_corrupted=false
81ecdfbb 2442for ac_var in $ac_precious_vars; do
b7026657
AC
2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2447 case $ac_old_set,$ac_new_set in
2448 set,)
81ecdfbb
RW
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2451 ac_cache_corrupted=: ;;
2452 ,set)
81ecdfbb
RW
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2455 ac_cache_corrupted=: ;;
2456 ,);;
2457 *)
2458 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2459 # differences in whitespace do not lead to failure.
2460 ac_old_val_w=`echo x $ac_old_val`
2461 ac_new_val_w=`echo x $ac_new_val`
2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465 ac_cache_corrupted=:
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469 eval $ac_var=\$ac_old_val
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2472$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2474$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2475 fi;;
2476 esac
2477 # Pass precious variables to config.status.
2478 if test "$ac_new_set" = set; then
2479 case $ac_new_val in
81ecdfbb 2480 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2481 *) ac_arg=$ac_var=$ac_new_val ;;
2482 esac
2483 case " $ac_configure_args " in
2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2486 esac
c906108c 2487 fi
b7026657
AC
2488done
2489if $ac_cache_corrupted; then
81ecdfbb
RW
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2494 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2495fi
81ecdfbb
RW
2496## -------------------- ##
2497## Main body of script. ##
2498## -------------------- ##
c906108c 2499
fdd6fa61
AG
2500ac_ext=c
2501ac_cpp='$CPP $CPPFLAGS'
2502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505
c906108c
SS
2506
2507
8c379db2
TT
2508
2509
2510
6dd65fc0
MF
2511
2512
2513# Check whether --with-pkgversion was given.
2514if test "${with_pkgversion+set}" = set; then :
2515 withval=$with_pkgversion; case "$withval" in
2516 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2517 no) PKGVERSION= ;;
2518 *) PKGVERSION="($withval) " ;;
2519 esac
2520else
2521 PKGVERSION="(SIM) "
2522
2523fi
2524
2525
2526
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PKGVERSION "$PKGVERSION"
2530_ACEOF
2531
2532
2533
2534# Check whether --with-bugurl was given.
2535if test "${with_bugurl+set}" = set; then :
2536 withval=$with_bugurl; case "$withval" in
2537 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2538 no) BUGURL=
2539 ;;
2540 *) BUGURL="$withval"
2541 ;;
2542 esac
2543else
2544 BUGURL="$PACKAGE_BUGREPORT"
2545
2546fi
2547
2548 case ${BUGURL} in
2549 "")
2550 REPORT_BUGS_TO=
2551 REPORT_BUGS_TEXI=
2552 ;;
2553 *)
2554 REPORT_BUGS_TO="<$BUGURL>"
2555 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2556 ;;
2557 esac;
2558
2559
2560
2561
2562cat >>confdefs.h <<_ACEOF
2563#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2564_ACEOF
2565
2566
b15c5d7a
MF
2567ac_config_headers="$ac_config_headers config.h"
2568
2569
6bddc3e8
MF
2570ac_aux_dir=
2571for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2572 if test -f "$ac_dir/install-sh"; then
2573 ac_aux_dir=$ac_dir
2574 ac_install_sh="$ac_aux_dir/install-sh -c"
2575 break
2576 elif test -f "$ac_dir/install.sh"; then
2577 ac_aux_dir=$ac_dir
2578 ac_install_sh="$ac_aux_dir/install.sh -c"
2579 break
2580 elif test -f "$ac_dir/shtool"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/shtool install -c"
2583 break
b7026657
AC
2584 fi
2585done
6bddc3e8
MF
2586if test -z "$ac_aux_dir"; then
2587 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2588fi
2589
6bddc3e8
MF
2590# These three variables are undocumented and unsupported,
2591# and are intended to be withdrawn in a future Autoconf release.
2592# They can cause serious problems if a builder's source tree is in a directory
2593# whose full name contains unusual characters.
2594ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2595ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2596ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2597
6bddc3e8
MF
2598
2599# Make sure we can run config.sub.
2600$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2601 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2602
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2604$as_echo_n "checking build system type... " >&6; }
2605if ${ac_cv_build+:} false; then :
81ecdfbb 2606 $as_echo_n "(cached) " >&6
c906108c 2607else
6bddc3e8
MF
2608 ac_build_alias=$build_alias
2609test "x$ac_build_alias" = x &&
2610 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2611test "x$ac_build_alias" = x &&
2612 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2613ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2614 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2615
2616fi
6bddc3e8
MF
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2618$as_echo "$ac_cv_build" >&6; }
2619case $ac_cv_build in
2620*-*-*) ;;
2621*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2622esac
6bddc3e8
MF
2623build=$ac_cv_build
2624ac_save_IFS=$IFS; IFS='-'
2625set x $ac_cv_build
2626shift
2627build_cpu=$1
2628build_vendor=$2
2629shift; shift
2630# Remember, the first character of IFS is used to create $*,
2631# except with old shells:
2632build_os=$*
2633IFS=$ac_save_IFS
2634case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2635
6bddc3e8
MF
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2638$as_echo_n "checking host system type... " >&6; }
2639if ${ac_cv_host+:} false; then :
81ecdfbb 2640 $as_echo_n "(cached) " >&6
b7026657 2641else
6bddc3e8
MF
2642 if test "x$host_alias" = x; then
2643 ac_cv_host=$ac_cv_build
b7026657 2644else
6bddc3e8
MF
2645 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2646 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2647fi
6bddc3e8 2648
fdd6fa61 2649fi
6bddc3e8
MF
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2651$as_echo "$ac_cv_host" >&6; }
2652case $ac_cv_host in
2653*-*-*) ;;
2654*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2655esac
2656host=$ac_cv_host
2657ac_save_IFS=$IFS; IFS='-'
2658set x $ac_cv_host
2659shift
2660host_cpu=$1
2661host_vendor=$2
2662shift; shift
2663# Remember, the first character of IFS is used to create $*,
2664# except with old shells:
2665host_os=$*
2666IFS=$ac_save_IFS
2667case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2668
fdd6fa61 2669
6bddc3e8
MF
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2671$as_echo_n "checking target system type... " >&6; }
2672if ${ac_cv_target+:} false; then :
81ecdfbb 2673 $as_echo_n "(cached) " >&6
b7026657 2674else
6bddc3e8
MF
2675 if test "x$target_alias" = x; then
2676 ac_cv_target=$ac_cv_host
c906108c 2677else
6bddc3e8
MF
2678 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2680fi
2681
2682fi
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2684$as_echo "$ac_cv_target" >&6; }
2685case $ac_cv_target in
2686*-*-*) ;;
2687*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2688esac
2689target=$ac_cv_target
2690ac_save_IFS=$IFS; IFS='-'
2691set x $ac_cv_target
2692shift
2693target_cpu=$1
2694target_vendor=$2
2695shift; shift
2696# Remember, the first character of IFS is used to create $*,
2697# except with old shells:
2698target_os=$*
2699IFS=$ac_save_IFS
2700case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2701
2702
2703# The aliases save the names the user supplied, while $host etc.
2704# will get canonicalized.
2705test -n "$target_alias" &&
2706 test "$program_prefix$program_suffix$program_transform_name" = \
2707 NONENONEs,x,x, &&
2708 program_prefix=${target_alias}-
c2783492
MF
2709# Expand $ac_aux_dir to an absolute path.
2710am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2711
c2783492
MF
2712ac_ext=c
2713ac_cpp='$CPP $CPPFLAGS'
2714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if ${ac_cv_prog_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
8c379db2 2724else
c2783492
MF
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739done
2740 done
2741IFS=$as_save_IFS
8c379db2 2742
c2783492
MF
2743fi
2744fi
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748$as_echo "$CC" >&6; }
8c379db2 2749else
c2783492
MF
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
8c379db2
TT
2752fi
2753
6bddc3e8 2754
c2783492
MF
2755fi
2756if test -z "$ac_cv_prog_CC"; then
2757 ac_ct_CC=$CC
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759set dummy gcc; ac_word=$2
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2763 $as_echo_n "(cached) " >&6
2764else
c2783492
MF
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
c2783492
MF
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
6bddc3e8
MF
2780 done
2781IFS=$as_save_IFS
2782
6bddc3e8 2783fi
6bddc3e8 2784fi
c2783492
MF
2785ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786if test -n "$ac_ct_CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2789else
c2783492
MF
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
6bddc3e8
MF
2792fi
2793
c2783492
MF
2794 if test "x$ac_ct_CC" = x; then
2795 CC=""
2796 else
2797 case $cross_compiling:$ac_tool_warned in
2798yes:)
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801ac_tool_warned=yes ;;
2802esac
2803 CC=$ac_ct_CC
2804 fi
6bddc3e8 2805else
c2783492 2806 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2807fi
2808
c2783492
MF
2809if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2815if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2816 $as_echo_n "(cached) " >&6
2817else
c2783492
MF
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2828 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833 done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
c2783492
MF
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841$as_echo "$CC" >&6; }
6bddc3e8
MF
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
c2783492 2848 fi
6bddc3e8 2849fi
c2783492
MF
2850if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852set dummy cc; ac_word=$2
6bddc3e8
MF
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2855if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2856 $as_echo_n "(cached) " >&6
2857else
c2783492
MF
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2860else
c2783492 2861 ac_prog_rejected=no
6bddc3e8
MF
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
6bddc3e8
MF
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877done
2878 done
2879IFS=$as_save_IFS
2880
c2783492
MF
2881if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2884 shift
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2889 shift
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891 fi
6bddc3e8
MF
2892fi
2893fi
c2783492
MF
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898$as_echo "$CC" >&6; }
6bddc3e8
MF
2899else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
6bddc3e8
MF
2904
2905fi
c2783492
MF
2906if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in cl.exe
2909 do
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2915 $as_echo_n "(cached) " >&6
2916else
c2783492
MF
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
6bddc3e8
MF
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
c2783492
MF
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
6bddc3e8
MF
2932 done
2933IFS=$as_save_IFS
2934
2935fi
6bddc3e8 2936fi
c2783492
MF
2937CC=$ac_cv_prog_CC
2938if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940$as_echo "$CC" >&6; }
2941else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
6bddc3e8 2945
c2783492
MF
2946
2947 test -n "$CC" && break
2948 done
2949fi
2950if test -z "$CC"; then
2951 ac_ct_CC=$CC
2952 for ac_prog in cl.exe
6bddc3e8
MF
2953do
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955set dummy $ac_prog; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2958if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2959 $as_echo_n "(cached) " >&6
2960else
c2783492
MF
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2971 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975done
2976 done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
c2783492
MF
2981ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
2985else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
c2783492 2991 test -n "$ac_ct_CC" && break
6bddc3e8
MF
2992done
2993
c2783492
MF
2994 if test "x$ac_ct_CC" = x; then
2995 CC=""
2996 else
2997 case $cross_compiling:$ac_tool_warned in
2998yes:)
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001ac_tool_warned=yes ;;
6bddc3e8 3002esac
c2783492 3003 CC=$ac_ct_CC
6bddc3e8
MF
3004 fi
3005fi
3006
6bddc3e8
MF
3007fi
3008
3009
c2783492
MF
3010test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012as_fn_error $? "no acceptable C compiler found in \$PATH
3013See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3014
c2783492
MF
3015# Provide some information about the compiler.
3016$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017set X $ac_compile
3018ac_compiler=$2
3019for ac_option in --version -v -V -qversion; do
3020 { { ac_try="$ac_compiler $ac_option >&5"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3028 ac_status=$?
3029 if test -s conftest.err; then
3030 sed '10a\
3031... rest of stderr output deleted ...
3032 10q' conftest.err >conftest.er1
3033 cat conftest.er1 >&5
3034 fi
3035 rm -f conftest.er1 conftest.err
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3038done
6bddc3e8 3039
c2783492
MF
3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
6bddc3e8 3042
c2783492
MF
3043int
3044main ()
3045{
6bddc3e8 3046
c2783492
MF
3047 ;
3048 return 0;
3049}
6bddc3e8 3050_ACEOF
c2783492
MF
3051ac_clean_files_save=$ac_clean_files
3052ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3053# Try to create an executable without -o first, disregard a.out.
3054# It will help us diagnose broken compilers, and finding out an intuition
3055# of exeext.
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057$as_echo_n "checking whether the C compiler works... " >&6; }
3058ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3059
c2783492
MF
3060# The possible output files:
3061ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3062
c2783492
MF
3063ac_rmfiles=
3064for ac_file in $ac_files
3065do
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069 esac
3070done
3071rm -f $ac_rmfiles
81ecdfbb
RW
3072
3073if { { ac_try="$ac_link_default"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link_default") 2>&5
b7026657 3081 ac_status=$?
81ecdfbb
RW
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086# in a Makefile. We should not override ac_cv_exeext if it was cached,
3087# so that the user can short-circuit this test for compilers unknown to
3088# Autoconf.
3089for ac_file in $ac_files ''
b7026657
AC
3090do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
81ecdfbb 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3094 ;;
3095 [ab].out )
3096 # We found the default executable, but exeext='' is most
3097 # certainly right.
3098 break;;
3099 *.* )
81ecdfbb
RW
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3101 then :; else
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 fi
3104 # We set ac_cv_exeext here because the later test for it is not
3105 # safe: cross compilers may not add the suffix if given an `-o'
3106 # argument, so we may need to know it at that point already.
3107 # Even if this section looks crufty: it has the advantage of
3108 # actually working.
b7026657
AC
3109 break;;
3110 * )
3111 break;;
3112 esac
3113done
81ecdfbb
RW
3114test "$ac_cv_exeext" = no && ac_cv_exeext=
3115
b7026657 3116else
81ecdfbb
RW
3117 ac_file=''
3118fi
81ecdfbb 3119if test -z "$ac_file"; then :
d0ac1c44
SM
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
81ecdfbb
RW
3125{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3127as_fn_error 77 "C compiler cannot create executables
3128See \`config.log' for more details" "$LINENO" 5; }
3129else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131$as_echo "yes" >&6; }
b7026657 3132fi
d0ac1c44
SM
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134$as_echo_n "checking for C compiler default output file name... " >&6; }
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3136$as_echo "$ac_file" >&6; }
b7026657 3137ac_exeext=$ac_cv_exeext
b7026657 3138
d0ac1c44 3139rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3140ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142$as_echo_n "checking for suffix of executables... " >&6; }
3143if { { ac_try="$ac_link"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
b7026657 3151 ac_status=$?
81ecdfbb
RW
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
b7026657
AC
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156# work properly (i.e., refer to `conftest.exe'), while it won't with
3157# `rm'.
3158for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3160 case $ac_file in
81ecdfbb 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3163 break;;
3164 * ) break;;
3165 esac
3166done
c906108c 3167else
81ecdfbb
RW
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3170as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3171See \`config.log' for more details" "$LINENO" 5; }
c906108c 3172fi
d0ac1c44 3173rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3176
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
d0ac1c44
SM
3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h. */
3182#include <stdio.h>
3183int
3184main ()
3185{
3186FILE *f = fopen ("conftest.out", "w");
3187 return ferror (f) || fclose (f) != 0;
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193ac_clean_files="$ac_clean_files conftest.out"
3194# Check that the compiler produces executables we can run. If not, either
3195# the compiler is broken, or we cross compile.
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197$as_echo_n "checking whether we are cross compiling... " >&6; }
3198if test "$cross_compiling" != yes; then
3199 { { ac_try="$ac_link"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205$as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 if { ac_try='./conftest$ac_cv_exeext'
3211 { { case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; }; then
3221 cross_compiling=no
3222 else
3223 if test "$cross_compiling" = maybe; then
3224 cross_compiling=yes
3225 else
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228as_fn_error $? "cannot run C compiled programs.
3229If you meant to cross compile, use \`--host'.
3230See \`config.log' for more details" "$LINENO" 5; }
3231 fi
3232 fi
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235$as_echo "$cross_compiling" >&6; }
3236
3237rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3238ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3241if ${ac_cv_objext+:} false; then :
81ecdfbb 3242 $as_echo_n "(cached) " >&6
b7026657 3243else
81ecdfbb 3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.o conftest.obj
81ecdfbb
RW
3256if { { ac_try="$ac_compile"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_compile") 2>&5
b7026657 3264 ac_status=$?
81ecdfbb
RW
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
b7026657 3269 case $ac_file in
81ecdfbb 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 break;;
3273 esac
3274done
3275else
81ecdfbb 3276 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
81ecdfbb
RW
3279{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3281as_fn_error $? "cannot compute suffix of object files: cannot compile
3282See \`config.log' for more details" "$LINENO" 5; }
c906108c 3283fi
b7026657
AC
3284rm -f conftest.$ac_cv_objext conftest.$ac_ext
3285fi
81ecdfbb
RW
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3288OBJEXT=$ac_cv_objext
3289ac_objext=$OBJEXT
81ecdfbb
RW
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3292if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3293 $as_echo_n "(cached) " >&6
b7026657 3294else
81ecdfbb 3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301#ifndef __GNUC__
3302 choke me
3303#endif
c906108c 3304
b7026657
AC
3305 ;
3306 return 0;
3307}
3308_ACEOF
81ecdfbb 3309if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3310 ac_compiler_gnu=yes
c906108c 3311else
81ecdfbb 3312 ac_compiler_gnu=no
c906108c 3313fi
81ecdfbb 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3315ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3316
b7026657 3317fi
81ecdfbb
RW
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320if test $ac_compiler_gnu = yes; then
3321 GCC=yes
3322else
3323 GCC=
3324fi
b7026657
AC
3325ac_test_CFLAGS=${CFLAGS+set}
3326ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3329if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 3330 $as_echo_n "(cached) " >&6
c906108c 3331else
81ecdfbb
RW
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3334 ac_cv_prog_cc_g=no
3335 CFLAGS="-g"
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3337/* end confdefs.h. */
3338
3339int
3340main ()
3341{
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
81ecdfbb 3347if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3348 ac_cv_prog_cc_g=yes
3349else
81ecdfbb
RW
3350 CFLAGS=""
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h. */
3353
3354int
3355main ()
3356{
3357
3358 ;
3359 return 0;
3360}
3361_ACEOF
3362if ac_fn_c_try_compile "$LINENO"; then :
3363
3364else
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3366 CFLAGS="-g"
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
c906108c 3373
81ecdfbb
RW
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_cv_prog_cc_g=yes
3380fi
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3382fi
81ecdfbb 3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3384fi
81ecdfbb
RW
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3390if test "$ac_test_CFLAGS" = set; then
b7026657 3391 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3392elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3394 CFLAGS="-g -O2"
3395 else
3396 CFLAGS="-g"
3397 fi
3398else
3399 if test "$GCC" = yes; then
3400 CFLAGS="-O2"
3401 else
3402 CFLAGS=
3403 fi
3404fi
81ecdfbb
RW
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3407if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3408 $as_echo_n "(cached) " >&6
b7026657 3409else
81ecdfbb 3410 ac_cv_prog_cc_c89=no
b7026657 3411ac_save_CC=$CC
81ecdfbb 3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3413/* end confdefs.h. */
3414#include <stdarg.h>
3415#include <stdio.h>
d0ac1c44 3416struct stat;
b7026657
AC
3417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3418struct buf { int x; };
3419FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420static char *e (p, i)
3421 char **p;
3422 int i;
3423{
3424 return p[i];
3425}
3426static char *f (char * (*g) (char **, int), char **p, ...)
3427{
3428 char *s;
3429 va_list v;
3430 va_start (v,p);
3431 s = g (p, va_arg (v,int));
3432 va_end (v);
3433 return s;
3434}
3435
3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3437 function prototypes and stuff, but not '\xHH' hex character constants.
3438 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3439 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3441 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3442 that's true only with -std. */
b7026657
AC
3443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444
81ecdfbb
RW
3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446 inside strings and character constants. */
3447#define FOO(x) 'x'
3448int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449
b7026657
AC
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454int argc;
3455char **argv;
3456int
3457main ()
3458{
3459return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3460 ;
3461 return 0;
3462}
3463_ACEOF
81ecdfbb
RW
3464for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3466do
3467 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_c89=$ac_arg
b7026657 3470fi
81ecdfbb
RW
3471rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3473done
81ecdfbb 3474rm -f conftest.$ac_ext
b7026657
AC
3475CC=$ac_save_CC
3476
3477fi
81ecdfbb
RW
3478# AC_CACHE_VAL
3479case "x$ac_cv_prog_cc_c89" in
3480 x)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482$as_echo "none needed" >&6; } ;;
3483 xno)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485$as_echo "unsupported" >&6; } ;;
b7026657 3486 *)
81ecdfbb
RW
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3490esac
81ecdfbb 3491if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3492
fdd6fa61
AG
3493fi
3494
fdd6fa61
AG
3495ac_ext=c
3496ac_cpp='$CPP $CPPFLAGS'
3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
c2783492
MF
3501ac_ext=c
3502ac_cpp='$CPP $CPPFLAGS'
3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3507$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3508if ${am_cv_prog_cc_c_o+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h. */
3513
3514int
3515main ()
3516{
3517
3518 ;
3519 return 0;
3520}
3521_ACEOF
3522 # Make sure it works both with $CC and with simple cc.
3523 # Following AC_PROG_CC_C_O, we do the test twice because some
3524 # compilers refuse to overwrite an existing .o file with -o,
3525 # though they will create one.
3526 am_cv_prog_cc_c_o=yes
3527 for am_i in 1 2; do
3528 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3529 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } \
3533 && test -f conftest2.$ac_objext; then
3534 : OK
3535 else
3536 am_cv_prog_cc_c_o=no
3537 break
3538 fi
3539 done
3540 rm -f core conftest*
3541 unset am_i
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3544$as_echo "$am_cv_prog_cc_c_o" >&6; }
3545if test "$am_cv_prog_cc_c_o" != yes; then
3546 # Losing compiler, so override with the script.
3547 # FIXME: It is wrong to rewrite CC.
3548 # But if we don't then we get into trouble of one sort or another.
3549 # A longer-term fix would be to have automake use am__CC in this case,
3550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3551 CC="$am_aux_dir/compile $CC"
3552fi
3553ac_ext=c
3554ac_cpp='$CPP $CPPFLAGS'
3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558
3559
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3567$as_echo_n "checking how to run the C preprocessor... " >&6; }
3568# On Suns, sometimes $CPP names a directory.
3569if test -n "$CPP" && test -d "$CPP"; then
3570 CPP=
3571fi
3572if test -z "$CPP"; then
3573 if ${ac_cv_prog_CPP+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575else
3576 # Double quotes because CPP needs to be expanded
3577 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3578 do
3579 ac_preproc_ok=false
3580for ac_c_preproc_warn_flag in '' yes
3581do
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h. */
3590#ifdef __STDC__
3591# include <limits.h>
3592#else
3593# include <assert.h>
3594#endif
3595 Syntax error
3596_ACEOF
3597if ac_fn_c_try_cpp "$LINENO"; then :
3598
3599else
3600 # Broken: fails on valid input.
3601continue
3602fi
3603rm -f conftest.err conftest.i conftest.$ac_ext
3604
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h. */
3609#include <ac_nonexistent.h>
3610_ACEOF
3611if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: success on invalid input.
3613continue
3614else
3615 # Passes both tests.
3616ac_preproc_ok=:
3617break
3618fi
3619rm -f conftest.err conftest.i conftest.$ac_ext
3620
3621done
3622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623rm -f conftest.i conftest.err conftest.$ac_ext
3624if $ac_preproc_ok; then :
3625 break
3626fi
3627
3628 done
3629 ac_cv_prog_CPP=$CPP
3630
3631fi
3632 CPP=$ac_cv_prog_CPP
3633else
3634 ac_cv_prog_CPP=$CPP
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3637$as_echo "$CPP" >&6; }
3638ac_preproc_ok=false
3639for ac_c_preproc_warn_flag in '' yes
3640do
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h. */
3649#ifdef __STDC__
3650# include <limits.h>
3651#else
3652# include <assert.h>
3653#endif
3654 Syntax error
3655_ACEOF
3656if ac_fn_c_try_cpp "$LINENO"; then :
3657
3658else
3659 # Broken: fails on valid input.
3660continue
3661fi
3662rm -f conftest.err conftest.i conftest.$ac_ext
3663
3664 # OK, works on sane cases. Now check whether nonexistent headers
3665 # can be detected and how.
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h. */
3668#include <ac_nonexistent.h>
3669_ACEOF
3670if ac_fn_c_try_cpp "$LINENO"; then :
3671 # Broken: success on invalid input.
3672continue
3673else
3674 # Passes both tests.
3675ac_preproc_ok=:
3676break
3677fi
3678rm -f conftest.err conftest.i conftest.$ac_ext
3679
3680done
3681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682rm -f conftest.i conftest.err conftest.$ac_ext
3683if $ac_preproc_ok; then :
3684
3685else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3689See \`config.log' for more details" "$LINENO" 5; }
3690fi
3691
3692ac_ext=c
3693ac_cpp='$CPP $CPPFLAGS'
3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
3698
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3700$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3701if ${ac_cv_path_GREP+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703else
3704 if test -z "$GREP"; then
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 as_fn_executable_p "$ac_path_GREP" || continue
3716# Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718case `"$ac_path_GREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721*)
3722 ac_count=0
3723 $as_echo_n 0123456789 >"conftest.in"
3724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 $as_echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 as_fn_arith $ac_count + 1 && ac_count=$as_val
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
3737 fi
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
3744 $ac_path_GREP_found && break 3
3745 done
3746 done
3747 done
3748IFS=$as_save_IFS
3749 if test -z "$ac_cv_path_GREP"; then
3750 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3751 fi
3752else
3753 ac_cv_path_GREP=$GREP
3754fi
3755
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3758$as_echo "$ac_cv_path_GREP" >&6; }
3759 GREP="$ac_cv_path_GREP"
3760
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3763$as_echo_n "checking for egrep... " >&6; }
3764if ${ac_cv_path_EGREP+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766else
3767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768 then ac_cv_path_EGREP="$GREP -E"
3769 else
3770 if test -z "$EGREP"; then
3771 ac_path_EGREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in egrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3781 as_fn_executable_p "$ac_path_EGREP" || continue
3782# Check for GNU ac_path_EGREP and select it if it is found.
3783 # Check for GNU $ac_path_EGREP
3784case `"$ac_path_EGREP" --version 2>&1` in
3785*GNU*)
3786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3787*)
3788 ac_count=0
3789 $as_echo_n 0123456789 >"conftest.in"
3790 while :
3791 do
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 $as_echo 'EGREP' >> "conftest.nl"
3796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 as_fn_arith $ac_count + 1 && ac_count=$as_val
3799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_EGREP="$ac_path_EGREP"
3802 ac_path_EGREP_max=$ac_count
3803 fi
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3806 done
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808esac
3809
3810 $ac_path_EGREP_found && break 3
3811 done
3812 done
3813 done
3814IFS=$as_save_IFS
3815 if test -z "$ac_cv_path_EGREP"; then
3816 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3817 fi
3818else
3819 ac_cv_path_EGREP=$EGREP
3820fi
3821
3822 fi
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3825$as_echo "$ac_cv_path_EGREP" >&6; }
3826 EGREP="$ac_cv_path_EGREP"
3827
3828
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3830$as_echo_n "checking for ANSI C header files... " >&6; }
3831if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3832 $as_echo_n "(cached) " >&6
3833else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
c2783492
MF
3836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
6bddc3e8
MF
3840
3841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
3848_ACEOF
c2783492
MF
3849if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_header_stdc=yes
3851else
3852 ac_cv_header_stdc=no
fdd6fa61 3853fi
c2783492 3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3855
c2783492
MF
3856if test $ac_cv_header_stdc = yes; then
3857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h. */
3860#include <string.h>
6bddc3e8 3861
c2783492
MF
3862_ACEOF
3863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3865
c2783492
MF
3866else
3867 ac_cv_header_stdc=no
3868fi
3869rm -f conftest*
6bddc3e8 3870
6bddc3e8 3871fi
81ecdfbb 3872
c2783492
MF
3873if test $ac_cv_header_stdc = yes; then
3874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h. */
3877#include <stdlib.h>
fdd6fa61 3878
c2783492
MF
3879_ACEOF
3880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3882
c2783492
MF
3883else
3884 ac_cv_header_stdc=no
6bddc3e8 3885fi
c2783492 3886rm -f conftest*
6bddc3e8 3887
6bddc3e8 3888fi
c2783492
MF
3889
3890if test $ac_cv_header_stdc = yes; then
3891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3892 if test "$cross_compiling" = yes; then :
3893 :
6bddc3e8 3894else
c2783492
MF
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h. */
3897#include <ctype.h>
3898#include <stdlib.h>
3899#if ((' ' & 0x0FF) == 0x020)
3900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902#else
3903# define ISLOWER(c) \
3904 (('a' <= (c) && (c) <= 'i') \
3905 || ('j' <= (c) && (c) <= 'r') \
3906 || ('s' <= (c) && (c) <= 'z'))
3907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908#endif
3909
3910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911int
3912main ()
3913{
3914 int i;
3915 for (i = 0; i < 256; i++)
3916 if (XOR (islower (i), ISLOWER (i))
3917 || toupper (i) != TOUPPER (i))
3918 return 2;
3919 return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_run "$LINENO"; then :
3923
3924else
3925 ac_cv_header_stdc=no
3926fi
3927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3928 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
3929fi
3930
c2783492
MF
3931fi
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3934$as_echo "$ac_cv_header_stdc" >&6; }
3935if test $ac_cv_header_stdc = yes; then
6bddc3e8 3936
c2783492 3937$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 3938
c2783492 3939fi
6bddc3e8 3940
c2783492
MF
3941# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3942for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3943 inttypes.h stdint.h unistd.h
3944do :
3945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3947"
3948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3949 cat >>confdefs.h <<_ACEOF
3950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3951_ACEOF
3952
3953fi
3954
3955done
3956
3957
3958
3959 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3960if test "x$ac_cv_header_minix_config_h" = xyes; then :
3961 MINIX=yes
fdd6fa61 3962else
c2783492
MF
3963 MINIX=
3964fi
3965
3966
3967 if test "$MINIX" = yes; then
3968
3969$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3970
3971
3972$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3973
3974
3975$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 3976
6bddc3e8 3977 fi
6bddc3e8 3978
6bddc3e8 3979
c2783492
MF
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3981$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3982if ${ac_cv_safe_to_define___extensions__+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h. */
c906108c 3987
c2783492
MF
3988# define __EXTENSIONS__ 1
3989 $ac_includes_default
3990int
3991main ()
3992{
3993
3994 ;
3995 return 0;
3996}
3997_ACEOF
3998if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 4000else
c2783492
MF
4001 ac_cv_safe_to_define___extensions__=no
4002fi
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4004fi
c2783492
MF
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4006$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4007 test $ac_cv_safe_to_define___extensions__ = yes &&
4008 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 4009
c2783492 4010 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 4011
c2783492 4012 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 4013
c2783492 4014 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 4015
c2783492 4016 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 4017
c2783492
MF
4018
4019test "$program_prefix" != NONE &&
4020 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4021# Use a double $ so make ignores it.
4022test "$program_suffix" != NONE &&
4023 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4024# Double any \ or $.
4025# By default was `s,x,x', remove it if useless.
4026ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4027program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4028
4029# Find a good install program. We prefer a C program (faster),
4030# so one script is as good as another. But avoid the broken or
4031# incompatible versions:
4032# SysV /etc/install, /usr/sbin/install
4033# SunOS /usr/etc/install
4034# IRIX /sbin/install
4035# AIX /bin/install
4036# AmigaOS /C/install, which installs bootblocks on floppy discs
4037# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4038# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4039# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4040# OS/2's system install, which has a completely different semantic
4041# ./install, which can be erroneously created by make from ./install.sh.
4042# Reject install programs that cannot install multiple files.
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4044$as_echo_n "checking for a BSD-compatible install... " >&6; }
4045if test -z "$INSTALL"; then
4046if ${ac_cv_path_install+:} false; then :
81ecdfbb 4047 $as_echo_n "(cached) " >&6
c906108c 4048else
c2783492 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
c2783492
MF
4054 # Account for people who put trailing slashes in PATH elements.
4055case $as_dir/ in #((
4056 ./ | .// | /[cC]/* | \
4057 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4058 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4059 /usr/ucb/* ) ;;
4060 *)
4061 # OSF1 and SCO ODT 3.0 have their own names for install.
4062 # Don't use installbsd from OSF since it installs stuff as root
4063 # by default.
4064 for ac_prog in ginstall scoinst install; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4067 if test $ac_prog = install &&
4068 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4069 # AIX install. It has an incompatible calling convention.
4070 :
4071 elif test $ac_prog = install &&
4072 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4073 # program-specific install script used by HP pwplus--don't use.
4074 :
4075 else
4076 rm -rf conftest.one conftest.two conftest.dir
4077 echo one > conftest.one
4078 echo two > conftest.two
4079 mkdir conftest.dir
4080 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4081 test -s conftest.one && test -s conftest.two &&
4082 test -s conftest.dir/conftest.one &&
4083 test -s conftest.dir/conftest.two
4084 then
4085 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4086 break 3
4087 fi
4088 fi
4089 fi
4090 done
4091 done
4092 ;;
4093esac
4094
81ecdfbb
RW
4095 done
4096IFS=$as_save_IFS
b7026657 4097
c2783492
MF
4098rm -rf conftest.one conftest.two conftest.dir
4099
c906108c 4100fi
c2783492
MF
4101 if test "${ac_cv_path_install+set}" = set; then
4102 INSTALL=$ac_cv_path_install
4103 else
4104 # As a last resort, use the slow shell script. Don't cache a
4105 # value for INSTALL within a source directory, because that will
4106 # break other packages using the cache if that directory is
4107 # removed, or if the value is a relative name.
4108 INSTALL=$ac_install_sh
4109 fi
c906108c 4110fi
c2783492
MF
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4112$as_echo "$INSTALL" >&6; }
b7026657 4113
c2783492
MF
4114# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4115# It thinks the first close brace ends the variable substitution.
4116test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4117
c2783492
MF
4118test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4119
4120test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4121
4122
4123
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4127$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4128if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4129 $as_echo_n "(cached) " >&6
b7026657 4130else
c2783492
MF
4131 ac_cv_c_bigendian=unknown
4132 # See if we're dealing with a universal compiler.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h. */
4135#ifndef __APPLE_CC__
4136 not a universal capable compiler
4137 #endif
4138 typedef int dummy;
c906108c 4139
c2783492
MF
4140_ACEOF
4141if ac_fn_c_try_compile "$LINENO"; then :
4142
4143 # Check for potential -arch flags. It is not universal unless
4144 # there are at least two -arch flags with different values.
4145 ac_arch=
4146 ac_prev=
4147 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4148 if test -n "$ac_prev"; then
4149 case $ac_word in
4150 i?86 | x86_64 | ppc | ppc64)
4151 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4152 ac_arch=$ac_word
4153 else
4154 ac_cv_c_bigendian=universal
4155 break
4156 fi
4157 ;;
4158 esac
4159 ac_prev=
4160 elif test "x$ac_word" = "x-arch"; then
4161 ac_prev=arch
4162 fi
4163 done
b7026657 4164fi
c2783492
MF
4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 if test $ac_cv_c_bigendian = unknown; then
4167 # See if sys/param.h defines the BYTE_ORDER macro.
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
4170#include <sys/types.h>
4171 #include <sys/param.h>
c906108c 4172
c2783492
MF
4173int
4174main ()
4175{
4176#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4177 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4178 && LITTLE_ENDIAN)
4179 bogus endian macros
4180 #endif
4181
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186if ac_fn_c_try_compile "$LINENO"; then :
4187 # It does; now see whether it defined to BIG_ENDIAN or not.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h. */
4190#include <sys/types.h>
4191 #include <sys/param.h>
4192
4193int
4194main ()
4195{
4196#if BYTE_ORDER != BIG_ENDIAN
4197 not big endian
4198 #endif
4199
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_c_bigendian=yes
b7026657 4206else
c2783492
MF
4207 ac_cv_c_bigendian=no
4208fi
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4210fi
c2783492
MF
4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 if test $ac_cv_c_bigendian = unknown; then
4214 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h. */
4217#include <limits.h>
c906108c 4218
c2783492
MF
4219int
4220main ()
4221{
4222#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4223 bogus endian macros
4224 #endif
4225
4226 ;
4227 return 0;
4228}
4229_ACEOF
4230if ac_fn_c_try_compile "$LINENO"; then :
4231 # It does; now see whether it defined to _BIG_ENDIAN or not.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
4234#include <limits.h>
4235
4236int
4237main ()
4238{
4239#ifndef _BIG_ENDIAN
4240 not big endian
4241 #endif
b7026657 4242
c2783492
MF
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_c_bigendian=yes
c906108c 4249else
c2783492 4250 ac_cv_c_bigendian=no
c906108c 4251fi
c2783492
MF
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 if test $ac_cv_c_bigendian = unknown; then
4257 # Compile a test program.
4258 if test "$cross_compiling" = yes; then :
4259 # Try to guess by grepping values from an object file.
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h. */
4262short int ascii_mm[] =
4263 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4264 short int ascii_ii[] =
4265 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4266 int use_ascii (int i) {
4267 return ascii_mm[i] + ascii_ii[i];
4268 }
4269 short int ebcdic_ii[] =
4270 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] =
4272 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4273 int use_ebcdic (int i) {
4274 return ebcdic_mm[i] + ebcdic_ii[i];
4275 }
4276 extern int foo;
c906108c 4277
c2783492
MF
4278int
4279main ()
4280{
4281return use_ascii (foo) == use_ebcdic (foo);
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_compile "$LINENO"; then :
4287 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4288 ac_cv_c_bigendian=yes
4289 fi
4290 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4291 if test "$ac_cv_c_bigendian" = unknown; then
4292 ac_cv_c_bigendian=no
4293 else
4294 # finding both strings is unlikely to happen, but who knows?
4295 ac_cv_c_bigendian=unknown
4296 fi
4297 fi
b7026657 4298fi
c2783492 4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4300else
c2783492
MF
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h. */
4303$ac_includes_default
4304int
4305main ()
4306{
4307
4308 /* Are we little or big endian? From Harbison&Steele. */
4309 union
4310 {
4311 long int l;
4312 char c[sizeof (long int)];
4313 } u;
4314 u.l = 1;
4315 return u.c[sizeof (long int) - 1] == 1;
b7026657 4316
c2783492
MF
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321if ac_fn_c_try_run "$LINENO"; then :
4322 ac_cv_c_bigendian=no
4323else
4324 ac_cv_c_bigendian=yes
c906108c 4325fi
c2783492
MF
4326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4327 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4328fi
c2783492
MF
4329
4330 fi
c906108c 4331fi
c2783492
MF
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4333$as_echo "$ac_cv_c_bigendian" >&6; }
4334 case $ac_cv_c_bigendian in #(
4335 yes)
4336 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4337;; #(
4338 no)
4339 ;; #(
4340 universal)
c906108c 4341
c2783492
MF
4342$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4343
4344 ;; #(
4345 *)
4346 as_fn_error $? "unknown endianness
4347 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4348 esac
4349
4350
4351
4352
4353if test "x$cross_compiling" = "xno"; then
aa0fca16 4354 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 4355 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 4356 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492
MF
4357 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4358 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 4359else
aa0fca16 4360 : "${AR_FOR_BUILD:=ar}"
c2783492 4361 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 4362 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492
MF
4363 : "${CFLAGS_FOR_BUILD:=-g -O}"
4364 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
4365fi
4366
4367
c906108c 4368
c2783492
MF
4369
4370
aa0fca16
MF
4371
4372
b7026657 4373if test -n "$ac_tool_prefix"; then
c2783492
MF
4374 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4375set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4378if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4379 $as_echo_n "(cached) " >&6
c906108c 4380else
c2783492
MF
4381 if test -n "$AR"; then
4382 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 4383else
b7026657
AC
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
81ecdfbb 4389 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4391 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4393 break 2
4394 fi
4395done
81ecdfbb
RW
4396 done
4397IFS=$as_save_IFS
b7026657
AC
4398
4399fi
4400fi
c2783492
MF
4401AR=$ac_cv_prog_AR
4402if test -n "$AR"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4404$as_echo "$AR" >&6; }
b7026657 4405else
81ecdfbb
RW
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; }
b7026657
AC
4408fi
4409
81ecdfbb 4410
b7026657 4411fi
c2783492
MF
4412if test -z "$ac_cv_prog_AR"; then
4413 ac_ct_AR=$AR
4414 # Extract the first word of "ar", so it can be a program name with args.
4415set dummy ar; ac_word=$2
81ecdfbb
RW
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4418if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4419 $as_echo_n "(cached) " >&6
b7026657 4420else
c2783492
MF
4421 if test -n "$ac_ct_AR"; then
4422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
81ecdfbb 4429 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4431 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4433 break 2
4434 fi
4435done
81ecdfbb
RW
4436 done
4437IFS=$as_save_IFS
b7026657
AC
4438
4439fi
4440fi
c2783492
MF
4441ac_ct_AR=$ac_cv_prog_ac_ct_AR
4442if test -n "$ac_ct_AR"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4444$as_echo "$ac_ct_AR" >&6; }
b7026657 4445else
81ecdfbb
RW
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
c906108c 4448fi
b7026657 4449
c2783492
MF
4450 if test "x$ac_ct_AR" = x; then
4451 AR=""
81ecdfbb
RW
4452 else
4453 case $cross_compiling:$ac_tool_warned in
4454yes:)
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4457ac_tool_warned=yes ;;
4458esac
c2783492 4459 AR=$ac_ct_AR
c906108c 4460 fi
c906108c 4461else
c2783492 4462 AR="$ac_cv_prog_AR"
c906108c
SS
4463fi
4464
c2783492
MF
4465if test -n "$ac_tool_prefix"; then
4466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4467set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4470if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4471 $as_echo_n "(cached) " >&6
c906108c 4472else
c2783492
MF
4473 if test -n "$RANLIB"; then
4474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4475else
b7026657
AC
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
81ecdfbb 4481 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4483 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4485 break 2
4486 fi
4487done
81ecdfbb
RW
4488 done
4489IFS=$as_save_IFS
b7026657 4490
c906108c
SS
4491fi
4492fi
c2783492
MF
4493RANLIB=$ac_cv_prog_RANLIB
4494if test -n "$RANLIB"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4496$as_echo "$RANLIB" >&6; }
c906108c 4497else
81ecdfbb
RW
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499$as_echo "no" >&6; }
c906108c
SS
4500fi
4501
81ecdfbb 4502
b7026657 4503fi
c2783492
MF
4504if test -z "$ac_cv_prog_RANLIB"; then
4505 ac_ct_RANLIB=$RANLIB
4506 # Extract the first word of "ranlib", so it can be a program name with args.
4507set dummy ranlib; ac_word=$2
81ecdfbb
RW
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4510if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4511 $as_echo_n "(cached) " >&6
c906108c 4512else
c2783492
MF
4513 if test -n "$ac_ct_RANLIB"; then
4514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
81ecdfbb 4521 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4523 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4525 break 2
4526 fi
4527done
81ecdfbb
RW
4528 done
4529IFS=$as_save_IFS
b7026657 4530
c906108c 4531fi
b7026657 4532fi
c2783492
MF
4533ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4534if test -n "$ac_ct_RANLIB"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4536$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4537else
81ecdfbb
RW
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
c906108c 4540fi
b7026657 4541
c2783492
MF
4542 if test "x$ac_ct_RANLIB" = x; then
4543 RANLIB=":"
81ecdfbb
RW
4544 else
4545 case $cross_compiling:$ac_tool_warned in
4546yes:)
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549ac_tool_warned=yes ;;
4550esac
c2783492 4551 RANLIB=$ac_ct_RANLIB
81ecdfbb 4552 fi
c2783492
MF
4553else
4554 RANLIB="$ac_cv_prog_RANLIB"
4555fi
4556
4557
4558# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4559# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4560# is C99. So handle it ourselves.
4561:
4562C_DIALECT=
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4564$as_echo_n "checking whether C11 is supported by default... " >&6; }
4565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h. */
4567
4568#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4569# error "C11 support not found"
4570#endif
4571
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575$as_echo "yes" >&6; }
4576else
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579$as_echo "no" >&6; }
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4581$as_echo_n "checking for -std=c11 support... " >&6; }
4582 ac_save_CC="$CC"
4583 CC="$CC -std=c11"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586
4587#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4588# error "C11 support not found"
4589#endif
4590
4591_ACEOF
4592if ac_fn_c_try_compile "$LINENO"; then :
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4595$as_echo "yes" >&6; }
4596 CC="$ac_save_CC"
4597 C_DIALECT="-std=c11"
4598
4599else
4600 as_fn_error $? "C11 is required" "$LINENO" 5
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606
4607
4608
c906108c 4609
b15c5d7a
MF
4610 for ac_header in $ac_header_list
4611do :
4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4614"
4615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4616 cat >>confdefs.h <<_ACEOF
4617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618_ACEOF
4619
b7026657
AC
4620fi
4621
b15c5d7a 4622done
b7026657 4623
b7026657 4624
c2783492 4625
c2783492 4626
c2783492 4627
c2783492 4628
c2783492 4629
b15c5d7a
MF
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
a48ff3ef
MF
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
b15c5d7a
MF
4664
4665
4666
4667
4668
4669
4670
4671
b15c5d7a
MF
4672
4673
4674
4675 for ac_func in $ac_func_list
4676do :
4677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4678ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4679if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4680 cat >>confdefs.h <<_ACEOF
4681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4682_ACEOF
4683
4684fi
4685done
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
a48ff3ef
MF
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4810$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4811if ${ac_cv_struct_tm+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813else
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815/* end confdefs.h. */
4816#include <sys/types.h>
4817#include <time.h>
4818
4819int
4820main ()
4821{
4822struct tm tm;
4823 int *p = &tm.tm_sec;
4824 return !p;
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_struct_tm=time.h
4831else
4832 ac_cv_struct_tm=sys/time.h
4833fi
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4837$as_echo "$ac_cv_struct_tm" >&6; }
4838if test $ac_cv_struct_tm = sys/time.h; then
4839
4840$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4841
4842fi
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4845$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4846if ${ac_cv_type_uid_t+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848else
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851#include <sys/types.h>
4852
4853_ACEOF
4854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4855 $EGREP "uid_t" >/dev/null 2>&1; then :
4856 ac_cv_type_uid_t=yes
4857else
4858 ac_cv_type_uid_t=no
4859fi
4860rm -f conftest*
4861
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4864$as_echo "$ac_cv_type_uid_t" >&6; }
4865if test $ac_cv_type_uid_t = no; then
4866
4867$as_echo "#define uid_t int" >>confdefs.h
4868
4869
4870$as_echo "#define gid_t int" >>confdefs.h
4871
4872fi
4873
4874
4875ac_header_dirent=no
4876for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4877 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4879$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4880if eval \${$as_ac_Header+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h. */
4885#include <sys/types.h>
4886#include <$ac_hdr>
4887
4888int
4889main ()
4890{
4891if ((DIR *) 0)
4892return 0;
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897if ac_fn_c_try_compile "$LINENO"; then :
4898 eval "$as_ac_Header=yes"
4899else
4900 eval "$as_ac_Header=no"
4901fi
4902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903fi
4904eval ac_res=\$$as_ac_Header
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4906$as_echo "$ac_res" >&6; }
4907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4908 cat >>confdefs.h <<_ACEOF
4909#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4910_ACEOF
4911
4912ac_header_dirent=$ac_hdr; break
4913fi
4914
4915done
4916# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4917if test $ac_header_dirent = dirent.h; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4919$as_echo_n "checking for library containing opendir... " >&6; }
4920if ${ac_cv_search_opendir+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922else
4923 ac_func_search_save_LIBS=$LIBS
4924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h. */
4926
4927/* Override any GCC internal prototype to avoid an error.
4928 Use char because int might match the return type of a GCC
4929 builtin and then its argument prototype would still apply. */
4930#ifdef __cplusplus
4931extern "C"
4932#endif
4933char opendir ();
4934int
4935main ()
4936{
4937return opendir ();
4938 ;
4939 return 0;
4940}
4941_ACEOF
4942for ac_lib in '' dir; do
4943 if test -z "$ac_lib"; then
4944 ac_res="none required"
4945 else
4946 ac_res=-l$ac_lib
4947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4948 fi
4949 if ac_fn_c_try_link "$LINENO"; then :
4950 ac_cv_search_opendir=$ac_res
4951fi
4952rm -f core conftest.err conftest.$ac_objext \
4953 conftest$ac_exeext
4954 if ${ac_cv_search_opendir+:} false; then :
4955 break
4956fi
4957done
4958if ${ac_cv_search_opendir+:} false; then :
4959
4960else
4961 ac_cv_search_opendir=no
4962fi
4963rm conftest.$ac_ext
4964LIBS=$ac_func_search_save_LIBS
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4967$as_echo "$ac_cv_search_opendir" >&6; }
4968ac_res=$ac_cv_search_opendir
4969if test "$ac_res" != no; then :
4970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4971
4972fi
4973
4974else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4976$as_echo_n "checking for library containing opendir... " >&6; }
4977if ${ac_cv_search_opendir+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979else
4980 ac_func_search_save_LIBS=$LIBS
4981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h. */
4983
4984/* Override any GCC internal prototype to avoid an error.
4985 Use char because int might match the return type of a GCC
4986 builtin and then its argument prototype would still apply. */
4987#ifdef __cplusplus
4988extern "C"
4989#endif
4990char opendir ();
4991int
4992main ()
4993{
4994return opendir ();
4995 ;
4996 return 0;
4997}
4998_ACEOF
4999for ac_lib in '' x; do
5000 if test -z "$ac_lib"; then
5001 ac_res="none required"
5002 else
5003 ac_res=-l$ac_lib
5004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5005 fi
5006 if ac_fn_c_try_link "$LINENO"; then :
5007 ac_cv_search_opendir=$ac_res
5008fi
5009rm -f core conftest.err conftest.$ac_objext \
5010 conftest$ac_exeext
5011 if ${ac_cv_search_opendir+:} false; then :
5012 break
5013fi
5014done
5015if ${ac_cv_search_opendir+:} false; then :
5016
5017else
5018 ac_cv_search_opendir=no
5019fi
5020rm conftest.$ac_ext
5021LIBS=$ac_func_search_save_LIBS
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5024$as_echo "$ac_cv_search_opendir" >&6; }
5025ac_res=$ac_cv_search_opendir
5026if test "$ac_res" != no; then :
5027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5028
5029fi
5030
5031fi
5032
5033
5034
5035
5036ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5037if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5038
5039cat >>confdefs.h <<_ACEOF
5040#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5041_ACEOF
5042
5043
5044$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5045
5046fi
5047
5048
5049ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5050if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5051
5052cat >>confdefs.h <<_ACEOF
5053#define HAVE_STRUCT_STAT_ST_BLOCKS 1
5054_ACEOF
5055
5056
5057$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5058
5059else
5060 case " $LIBOBJS " in
5061 *" fileblocks.$ac_objext "* ) ;;
5062 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5063 ;;
5064esac
5065
5066fi
5067
5068
5069ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5070if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5071
5072cat >>confdefs.h <<_ACEOF
5073#define HAVE_STRUCT_STAT_ST_RDEV 1
5074_ACEOF
5075
5076
5077$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5078
5079fi
5080
5081
5082ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5083#include <$ac_cv_struct_tm>
5084
5085"
5086if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
5087
5088cat >>confdefs.h <<_ACEOF
5089#define HAVE_STRUCT_TM_TM_ZONE 1
5090_ACEOF
5091
5092
5093fi
5094
5095if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5096
5097$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5098
5099else
5100 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5101"
5102if test "x$ac_cv_have_decl_tzname" = xyes; then :
5103 ac_have_decl=1
5104else
5105 ac_have_decl=0
5106fi
5107
5108cat >>confdefs.h <<_ACEOF
5109#define HAVE_DECL_TZNAME $ac_have_decl
5110_ACEOF
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5113$as_echo_n "checking for tzname... " >&6; }
5114if ${ac_cv_var_tzname+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h. */
5119#include <time.h>
5120#if !HAVE_DECL_TZNAME
5121extern char *tzname[];
5122#endif
5123
5124int
5125main ()
5126{
5127return tzname[0][0];
5128 ;
5129 return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_link "$LINENO"; then :
5133 ac_cv_var_tzname=yes
5134else
5135 ac_cv_var_tzname=no
5136fi
5137rm -f core conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5141$as_echo "$ac_cv_var_tzname" >&6; }
5142 if test $ac_cv_var_tzname = yes; then
5143
5144$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5145
5146 fi
5147fi
5148
5149
b15c5d7a
MF
5150ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
5151#include <sys/types.h>
5152#endif
5153#ifdef HAVE_SYS_STAT_H
5154#include <sys/stat.h>
5155#endif
5156"
5157if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
5158
5159cat >>confdefs.h <<_ACEOF
5160#define HAVE_STRUCT_STAT_ST_DEV 1
5161_ACEOF
5162
5163
5164fi
5165ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
5166#include <sys/types.h>
5167#endif
5168#ifdef HAVE_SYS_STAT_H
5169#include <sys/stat.h>
5170#endif
5171"
5172if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
5173
5174cat >>confdefs.h <<_ACEOF
5175#define HAVE_STRUCT_STAT_ST_INO 1
5176_ACEOF
5177
5178
5179fi
5180ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
5181#include <sys/types.h>
5182#endif
5183#ifdef HAVE_SYS_STAT_H
5184#include <sys/stat.h>
5185#endif
5186"
5187if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
5188
5189cat >>confdefs.h <<_ACEOF
5190#define HAVE_STRUCT_STAT_ST_MODE 1
5191_ACEOF
5192
5193
5194fi
5195ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
5196#include <sys/types.h>
5197#endif
5198#ifdef HAVE_SYS_STAT_H
5199#include <sys/stat.h>
5200#endif
5201"
5202if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
5203
5204cat >>confdefs.h <<_ACEOF
5205#define HAVE_STRUCT_STAT_ST_NLINK 1
5206_ACEOF
5207
5208
5209fi
5210ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
5211#include <sys/types.h>
5212#endif
5213#ifdef HAVE_SYS_STAT_H
5214#include <sys/stat.h>
5215#endif
5216"
5217if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
5218
5219cat >>confdefs.h <<_ACEOF
5220#define HAVE_STRUCT_STAT_ST_UID 1
5221_ACEOF
5222
5223
5224fi
5225ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
5226#include <sys/types.h>
5227#endif
5228#ifdef HAVE_SYS_STAT_H
5229#include <sys/stat.h>
5230#endif
5231"
5232if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
5233
5234cat >>confdefs.h <<_ACEOF
5235#define HAVE_STRUCT_STAT_ST_GID 1
5236_ACEOF
5237
5238
5239fi
5240ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
5241#include <sys/types.h>
5242#endif
5243#ifdef HAVE_SYS_STAT_H
5244#include <sys/stat.h>
5245#endif
5246"
5247if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5248
5249cat >>confdefs.h <<_ACEOF
5250#define HAVE_STRUCT_STAT_ST_RDEV 1
5251_ACEOF
5252
5253
5254fi
5255ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
5256#include <sys/types.h>
5257#endif
5258#ifdef HAVE_SYS_STAT_H
5259#include <sys/stat.h>
5260#endif
5261"
5262if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
5263
5264cat >>confdefs.h <<_ACEOF
5265#define HAVE_STRUCT_STAT_ST_SIZE 1
5266_ACEOF
5267
5268
5269fi
5270ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
5271#include <sys/types.h>
5272#endif
5273#ifdef HAVE_SYS_STAT_H
5274#include <sys/stat.h>
5275#endif
5276"
5277if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5278
5279cat >>confdefs.h <<_ACEOF
5280#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5281_ACEOF
5282
5283
5284fi
5285ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
5286#include <sys/types.h>
5287#endif
5288#ifdef HAVE_SYS_STAT_H
5289#include <sys/stat.h>
5290#endif
5291"
5292if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5293
5294cat >>confdefs.h <<_ACEOF
5295#define HAVE_STRUCT_STAT_ST_BLOCKS 1
5296_ACEOF
5297
5298
5299fi
5300ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
5301#include <sys/types.h>
5302#endif
5303#ifdef HAVE_SYS_STAT_H
5304#include <sys/stat.h>
5305#endif
5306"
5307if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
5308
5309cat >>confdefs.h <<_ACEOF
5310#define HAVE_STRUCT_STAT_ST_ATIME 1
5311_ACEOF
5312
5313
5314fi
5315ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
5316#include <sys/types.h>
5317#endif
5318#ifdef HAVE_SYS_STAT_H
5319#include <sys/stat.h>
5320#endif
5321"
5322if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
5323
5324cat >>confdefs.h <<_ACEOF
5325#define HAVE_STRUCT_STAT_ST_MTIME 1
5326_ACEOF
5327
5328
5329fi
5330ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
5331#include <sys/types.h>
5332#endif
5333#ifdef HAVE_SYS_STAT_H
5334#include <sys/stat.h>
5335#endif
5336"
5337if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
5338
5339cat >>confdefs.h <<_ACEOF
5340#define HAVE_STRUCT_STAT_ST_CTIME 1
5341_ACEOF
5342
5343
5344fi
5345
5346
5347ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
5348if test "x$ac_cv_type___int128" = xyes; then :
5349
5350cat >>confdefs.h <<_ACEOF
5351#define HAVE___INT128 1
5352_ACEOF
5353
5354
5355fi
5356
5357ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5358#include <sys/socket.h>
5359
5360"
5361if test "x$ac_cv_type_socklen_t" = xyes; then :
5362
5363cat >>confdefs.h <<_ACEOF
5364#define HAVE_SOCKLEN_T 1
5365_ACEOF
5366
5367
5368fi
5369
5370
a48ff3ef
MF
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5372$as_echo_n "checking type of array argument to getgroups... " >&6; }
5373if ${ac_cv_type_getgroups+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375else
5376 if test "$cross_compiling" = yes; then :
5377 ac_cv_type_getgroups=cross
5378else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
5381/* Thanks to Mike Rendell for this test. */
5382$ac_includes_default
5383#define NGID 256
5384#undef MAX
5385#define MAX(x, y) ((x) > (y) ? (x) : (y))
5386
5387int
5388main ()
5389{
5390 gid_t gidset[NGID];
5391 int i, n;
5392 union { gid_t gval; long int lval; } val;
5393
5394 val.lval = -1;
5395 for (i = 0; i < NGID; i++)
5396 gidset[i] = val.gval;
5397 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5398 gidset);
5399 /* Exit non-zero if getgroups seems to require an array of ints. This
5400 happens when gid_t is short int but getgroups modifies an array
5401 of ints. */
5402 return n > 0 && gidset[n] != val.gval;
5403}
5404_ACEOF
5405if ac_fn_c_try_run "$LINENO"; then :
5406 ac_cv_type_getgroups=gid_t
5407else
5408 ac_cv_type_getgroups=int
5409fi
5410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5411 conftest.$ac_objext conftest.beam conftest.$ac_ext
5412fi
5413
5414if test $ac_cv_type_getgroups = cross; then
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h. */
5417#include <unistd.h>
5418
5419_ACEOF
5420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5421 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
5422 ac_cv_type_getgroups=gid_t
5423else
5424 ac_cv_type_getgroups=int
5425fi
5426rm -f conftest*
5427
5428fi
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5431$as_echo "$ac_cv_type_getgroups" >&6; }
5432
5433cat >>confdefs.h <<_ACEOF
5434#define GETGROUPS_T $ac_cv_type_getgroups
5435_ACEOF
5436
5437
5438ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5439if test "x$ac_cv_type_mode_t" = xyes; then :
5440
5441else
5442
5443cat >>confdefs.h <<_ACEOF
5444#define mode_t int
5445_ACEOF
5446
5447fi
5448
5449ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5450if test "x$ac_cv_type_off_t" = xyes; then :
5451
5452else
5453
5454cat >>confdefs.h <<_ACEOF
5455#define off_t long int
5456_ACEOF
5457
5458fi
5459
5460ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5461if test "x$ac_cv_type_pid_t" = xyes; then :
5462
5463else
5464
5465cat >>confdefs.h <<_ACEOF
5466#define pid_t int
5467_ACEOF
5468
5469fi
5470
b15c5d7a
MF
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5472$as_echo_n "checking return type of signal handlers... " >&6; }
5473if ${ac_cv_type_signal+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475else
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h. */
5478#include <sys/types.h>
5479#include <signal.h>
5480
5481int
5482main ()
5483{
5484return *(signal (0, 0)) (0) == 1;
5485 ;
5486 return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_compile "$LINENO"; then :
5490 ac_cv_type_signal=int
5491else
5492 ac_cv_type_signal=void
5493fi
5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5497$as_echo "$ac_cv_type_signal" >&6; }
5498
5499cat >>confdefs.h <<_ACEOF
5500#define RETSIGTYPE $ac_cv_type_signal
5501_ACEOF
5502
5503
a48ff3ef
MF
5504ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5505if test "x$ac_cv_type_size_t" = xyes; then :
5506
5507else
5508
5509cat >>confdefs.h <<_ACEOF
5510#define size_t unsigned int
5511_ACEOF
5512
5513fi
5514
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5516$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5517if ${ac_cv_type_uid_t+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519else
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
5522#include <sys/types.h>
5523
5524_ACEOF
5525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "uid_t" >/dev/null 2>&1; then :
5527 ac_cv_type_uid_t=yes
5528else
5529 ac_cv_type_uid_t=no
5530fi
5531rm -f conftest*
5532
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5535$as_echo "$ac_cv_type_uid_t" >&6; }
5536if test $ac_cv_type_uid_t = no; then
5537
5538$as_echo "#define uid_t int" >>confdefs.h
5539
5540
5541$as_echo "#define gid_t int" >>confdefs.h
5542
5543fi
5544
b15c5d7a
MF
5545
5546
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5549$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5550 # Check whether --enable-maintainer-mode was given.
5551if test "${enable_maintainer_mode+set}" = set; then :
5552 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5553else
5554 USE_MAINTAINER_MODE=no
5555fi
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5558$as_echo "$USE_MAINTAINER_MODE" >&6; }
5559 if test $USE_MAINTAINER_MODE = yes; then
5560 MAINTAINER_MODE_TRUE=
5561 MAINTAINER_MODE_FALSE='#'
5562else
5563 MAINTAINER_MODE_TRUE='#'
5564 MAINTAINER_MODE_FALSE=
5565fi
5566
5567 MAINT=$MAINTAINER_MODE_TRUE
5568
5569
5570am__api_version='1.15'
5571
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5573$as_echo_n "checking whether build environment is sane... " >&6; }
5574# Reject unsafe characters in $srcdir or the absolute working directory
5575# name. Accept space and tab only in the latter.
5576am_lf='
5577'
5578case `pwd` in
5579 *[\\\"\#\$\&\'\`$am_lf]*)
5580 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5581esac
5582case $srcdir in
5583 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5584 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5585esac
5586
5587# Do 'set' in a subshell so we don't clobber the current shell's
5588# arguments. Must try -L first in case configure is actually a
5589# symlink; some systems play weird games with the mod time of symlinks
5590# (eg FreeBSD returns the mod time of the symlink's containing
5591# directory).
5592if (
5593 am_has_slept=no
5594 for am_try in 1 2; do
5595 echo "timestamp, slept: $am_has_slept" > conftest.file
5596 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5597 if test "$*" = "X"; then
5598 # -L didn't work.
5599 set X `ls -t "$srcdir/configure" conftest.file`
5600 fi
5601 if test "$*" != "X $srcdir/configure conftest.file" \
5602 && test "$*" != "X conftest.file $srcdir/configure"; then
5603
5604 # If neither matched, then we have a broken ls. This can happen
5605 # if, for instance, CONFIG_SHELL is bash and it inherits a
5606 # broken ls alias from the environment. This has actually
5607 # happened. Such a system could not be considered "sane".
5608 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5609 alias in your environment" "$LINENO" 5
5610 fi
5611 if test "$2" = conftest.file || test $am_try -eq 2; then
5612 break
5613 fi
5614 # Just in case.
5615 sleep 1
5616 am_has_slept=yes
5617 done
5618 test "$2" = conftest.file
5619 )
5620then
5621 # Ok.
5622 :
5623else
5624 as_fn_error $? "newly created file is older than distributed files!
5625Check your system clock" "$LINENO" 5
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628$as_echo "yes" >&6; }
5629# If we didn't sleep, we still need to ensure time stamps of config.status and
5630# generated files are strictly newer.
5631am_sleep_pid=
5632if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5633 ( sleep 1 ) &
5634 am_sleep_pid=$!
5635fi
5636
5637rm -f conftest.file
5638
5639if test x"${MISSING+set}" != xset; then
5640 case $am_aux_dir in
5641 *\ * | *\ *)
5642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5643 *)
5644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5645 esac
5646fi
5647# Use eval to expand $SHELL
5648if eval "$MISSING --is-lightweight"; then
5649 am_missing_run="$MISSING "
c2783492
MF
5650else
5651 am_missing_run=
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5653$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5654fi
5655
5656if test x"${install_sh+set}" != xset; then
5657 case $am_aux_dir in
5658 *\ * | *\ *)
5659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5660 *)
5661 install_sh="\${SHELL} $am_aux_dir/install-sh"
5662 esac
5663fi
5664
5665# Installed binaries are usually stripped using 'strip' when the user
5666# run "make install-strip". However 'strip' might not be the right
5667# tool to use in cross-compilation environments, therefore Automake
5668# will honor the 'STRIP' environment variable to overrule this program.
5669if test "$cross_compiling" != no; then
5670 if test -n "$ac_tool_prefix"; then
5671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5672set dummy ${ac_tool_prefix}strip; ac_word=$2
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674$as_echo_n "checking for $ac_word... " >&6; }
5675if ${ac_cv_prog_STRIP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677else
5678 if test -n "$STRIP"; then
5679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
81ecdfbb 5691 fi
81ecdfbb 5692done
c2783492
MF
5693 done
5694IFS=$as_save_IFS
b7026657 5695
c906108c 5696fi
b7026657 5697fi
c2783492
MF
5698STRIP=$ac_cv_prog_STRIP
5699if test -n "$STRIP"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5701$as_echo "$STRIP" >&6; }
81ecdfbb 5702else
c2783492
MF
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704$as_echo "no" >&6; }
81ecdfbb 5705fi
b7026657 5706
b7026657 5707
c2783492
MF
5708fi
5709if test -z "$ac_cv_prog_STRIP"; then
5710 ac_ct_STRIP=$STRIP
5711 # Extract the first word of "strip", so it can be a program name with args.
5712set dummy strip; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5716 $as_echo_n "(cached) " >&6
c906108c 5717else
c2783492
MF
5718 if test -n "$ac_ct_STRIP"; then
5719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 5720else
c2783492
MF
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_ac_ct_STRIP="strip"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
81ecdfbb 5735
81ecdfbb 5736fi
df1756f4 5737fi
c2783492
MF
5738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5739if test -n "$ac_ct_STRIP"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5741$as_echo "$ac_ct_STRIP" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
b7026657 5745fi
c2783492
MF
5746
5747 if test "x$ac_ct_STRIP" = x; then
5748 STRIP=":"
c906108c 5749 else
c2783492
MF
5750 case $cross_compiling:$ac_tool_warned in
5751yes:)
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754ac_tool_warned=yes ;;
5755esac
5756 STRIP=$ac_ct_STRIP
c906108c
SS
5757 fi
5758else
c2783492 5759 STRIP="$ac_cv_prog_STRIP"
c906108c 5760fi
81ecdfbb 5761
b7026657 5762fi
c2783492 5763INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 5764
c2783492
MF
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5766$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5767if test -z "$MKDIR_P"; then
5768 if ${ac_cv_path_mkdir+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_prog in mkdir gmkdir; do
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5780 'mkdir (GNU coreutils) '* | \
5781 'mkdir (coreutils) '* | \
5782 'mkdir (fileutils) '4.1*)
5783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5784 break 3;;
5785 esac
5786 done
5787 done
5788 done
5789IFS=$as_save_IFS
b7026657 5790
fdd6fa61
AG
5791fi
5792
c2783492
MF
5793 test -d ./--version && rmdir ./--version
5794 if test "${ac_cv_path_mkdir+set}" = set; then
5795 MKDIR_P="$ac_cv_path_mkdir -p"
5796 else
5797 # As a last resort, use the slow shell script. Don't cache a
5798 # value for MKDIR_P within a source directory, because that will
5799 # break other packages using the cache if that directory is
5800 # removed, or if the value is a relative name.
5801 MKDIR_P="$ac_install_sh -d"
5802 fi
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5805$as_echo "$MKDIR_P" >&6; }
c906108c 5806
c2783492
MF
5807for ac_prog in gawk mawk nawk awk
5808do
5809 # Extract the first word of "$ac_prog", so it can be a program name with args.
5810set dummy $ac_prog; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if ${ac_cv_prog_AWK+:} false; then :
6bddc3e8
MF
5814 $as_echo_n "(cached) " >&6
5815else
c2783492
MF
5816 if test -n "$AWK"; then
5817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_AWK="$ac_prog"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830done
6bddc3e8 5831 done
c2783492
MF
5832IFS=$as_save_IFS
5833
6bddc3e8 5834fi
6bddc3e8 5835fi
c2783492
MF
5836AWK=$ac_cv_prog_AWK
5837if test -n "$AWK"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5839$as_echo "$AWK" >&6; }
5840else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
6bddc3e8
MF
5844
5845
c2783492
MF
5846 test -n "$AWK" && break
5847done
6bddc3e8 5848
c2783492
MF
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5851set x ${MAKE-make}
5852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5853if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
5854 $as_echo_n "(cached) " >&6
5855else
c2783492
MF
5856 cat >conftest.make <<\_ACEOF
5857SHELL = /bin/sh
5858all:
5859 @echo '@@@%%%=$(MAKE)=@@@%%%'
5860_ACEOF
5861# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5862case `${MAKE-make} -f conftest.make 2>/dev/null` in
5863 *@@@%%%=?*=@@@%%%*)
5864 eval ac_cv_prog_make_${ac_make}_set=yes;;
5865 *)
5866 eval ac_cv_prog_make_${ac_make}_set=no;;
5867esac
5868rm -f conftest.make
5869fi
5870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5872$as_echo "yes" >&6; }
5873 SET_MAKE=
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877 SET_MAKE="MAKE=${MAKE-make}"
5878fi
6bddc3e8 5879
c2783492
MF
5880rm -rf .tst 2>/dev/null
5881mkdir .tst 2>/dev/null
5882if test -d .tst; then
5883 am__leading_dot=.
5884else
5885 am__leading_dot=_
5886fi
5887rmdir .tst 2>/dev/null
6bddc3e8 5888
c2783492 5889DEPDIR="${am__leading_dot}deps"
6bddc3e8 5890
c2783492 5891ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 5892
c2783492
MF
5893
5894am_make=${MAKE-make}
5895cat > confinc << 'END'
5896am__doit:
5897 @echo this is the am__doit target
5898.PHONY: am__doit
5899END
5900# If we don't find an include directive, just comment out the code.
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5902$as_echo_n "checking for style of include used by $am_make... " >&6; }
5903am__include="#"
5904am__quote=
5905_am_result=none
5906# First try GNU make style include.
5907echo "include confinc" > confmf
5908# Ignore all kinds of additional output from 'make'.
5909case `$am_make -s -f confmf 2> /dev/null` in #(
5910*the\ am__doit\ target*)
5911 am__include=include
5912 am__quote=
5913 _am_result=GNU
5914 ;;
5915esac
5916# Now try BSD make style include.
5917if test "$am__include" = "#"; then
5918 echo '.include "confinc"' > confmf
5919 case `$am_make -s -f confmf 2> /dev/null` in #(
5920 *the\ am__doit\ target*)
5921 am__include=.include
5922 am__quote="\""
5923 _am_result=BSD
5924 ;;
5925 esac
6bddc3e8
MF
5926fi
5927
c2783492
MF
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5930$as_echo "$_am_result" >&6; }
5931rm -f confinc confmf
5932
5933# Check whether --enable-dependency-tracking was given.
5934if test "${enable_dependency_tracking+set}" = set; then :
5935 enableval=$enable_dependency_tracking;
6bddc3e8 5936fi
6bddc3e8 5937
c2783492
MF
5938if test "x$enable_dependency_tracking" != xno; then
5939 am_depcomp="$ac_aux_dir/depcomp"
5940 AMDEPBACKSLASH='\'
5941 am__nodep='_no'
5942fi
5943 if test "x$enable_dependency_tracking" != xno; then
5944 AMDEP_TRUE=
5945 AMDEP_FALSE='#'
6bddc3e8 5946else
c2783492
MF
5947 AMDEP_TRUE='#'
5948 AMDEP_FALSE=
6bddc3e8
MF
5949fi
5950
5951
c2783492
MF
5952# Check whether --enable-silent-rules was given.
5953if test "${enable_silent_rules+set}" = set; then :
5954 enableval=$enable_silent_rules;
5e25901f 5955fi
c2783492
MF
5956
5957case $enable_silent_rules in # (((
5958 yes) AM_DEFAULT_VERBOSITY=0;;
5959 no) AM_DEFAULT_VERBOSITY=1;;
5960 *) AM_DEFAULT_VERBOSITY=1;;
5961esac
5962am_make=${MAKE-make}
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5964$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5965if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
5966 $as_echo_n "(cached) " >&6
5967else
c2783492
MF
5968 if $as_echo 'TRUE=$(BAR$(V))
5969BAR0=false
5970BAR1=true
5971V=1
5972am__doit:
5973 @$(TRUE)
5974.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5975 am_cv_make_support_nested_variables=yes
5e25901f 5976else
c2783492 5977 am_cv_make_support_nested_variables=no
5e25901f 5978fi
c2783492
MF
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5981$as_echo "$am_cv_make_support_nested_variables" >&6; }
5982if test $am_cv_make_support_nested_variables = yes; then
5983 AM_V='$(V)'
5984 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 5985else
c2783492
MF
5986 AM_V=$AM_DEFAULT_VERBOSITY
5987 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 5988fi
c2783492 5989AM_BACKSLASH='\'
5e25901f 5990
c2783492
MF
5991if test "`cd $srcdir && pwd`" != "`pwd`"; then
5992 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5993 # is not polluted with repeated "-I."
5994 am__isrc=' -I$(srcdir)'
5995 # test to see if srcdir already configured
5996 if test -f $srcdir/config.status; then
5997 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5998 fi
5e25901f
MF
5999fi
6000
c2783492
MF
6001# test whether we have cygpath
6002if test -z "$CYGPATH_W"; then
6003 if (cygpath --version) >/dev/null 2>/dev/null; then
6004 CYGPATH_W='cygpath -w'
6005 else
6006 CYGPATH_W=echo
6007 fi
5e25901f 6008fi
c2783492
MF
6009
6010
6011# Define the identity of the package.
6012 PACKAGE='sim'
6013 VERSION='0'
6014
6015
6016cat >>confdefs.h <<_ACEOF
6017#define PACKAGE "$PACKAGE"
5e25901f 6018_ACEOF
5e25901f 6019
5e25901f 6020
c2783492
MF
6021cat >>confdefs.h <<_ACEOF
6022#define VERSION "$VERSION"
5e25901f 6023_ACEOF
5e25901f 6024
c2783492 6025# Some tools Automake needs.
5e25901f 6026
c2783492
MF
6027ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6028
6029
6030AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6031
6032
6033AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6034
6035
6036AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6037
6038
6039MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6040
6041# For better backward compatibility. To be removed once Automake 1.9.x
6042# dies out for good. For more background, see:
6043# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6044# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6045mkdir_p='$(MKDIR_P)'
6046
6047# We need awk for the "check" target (and possibly the TAP driver). The
6048# system "awk" is bad on some platforms.
6049# Always define AMTAR for backward compatibility. Yes, it's still used
6050# in the wild :-( We should find a proper way to deprecate it ...
6051AMTAR='$${TAR-tar}'
6052
6053
6054# We'll loop over all known methods to create a tar archive until one works.
6055_am_tools='gnutar pax cpio none'
6056
6057am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 6058
5e25901f 6059
c906108c 6060
c906108c 6061
c2783492
MF
6062
6063depcc="$CC" am_compiler_list=
6064
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6066$as_echo_n "checking dependency style of $depcc... " >&6; }
6067if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 6068 $as_echo_n "(cached) " >&6
c906108c 6069else
c2783492
MF
6070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6071 # We make a subdir and do the tests there. Otherwise we can end up
6072 # making bogus files that we don't know about and never remove. For
6073 # instance it was reported that on HP-UX the gcc test will end up
6074 # making a dummy file named 'D' -- because '-MD' means "put the output
6075 # in D".
6076 rm -rf conftest.dir
6077 mkdir conftest.dir
6078 # Copy depcomp to subdir because otherwise we won't find it if we're
6079 # using a relative directory.
6080 cp "$am_depcomp" conftest.dir
6081 cd conftest.dir
6082 # We will build objects and dependencies in a subdirectory because
6083 # it helps to detect inapplicable dependency modes. For instance
6084 # both Tru64's cc and ICC support -MD to output dependencies as a
6085 # side effect of compilation, but ICC will put the dependencies in
6086 # the current directory while Tru64 will put them in the object
6087 # directory.
6088 mkdir sub
6089
6090 am_cv_CC_dependencies_compiler_type=none
6091 if test "$am_compiler_list" = ""; then
6092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 6093 fi
c2783492
MF
6094 am__universal=false
6095 case " $depcc " in #(
6096 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6097 esac
6098
6099 for depmode in $am_compiler_list; do
6100 # Setup a source with many dependencies, because some compilers
6101 # like to wrap large dependency lists on column 80 (with \), and
6102 # we should not choose a depcomp mode which is confused by this.
6103 #
6104 # We need to recreate these files for each test, as the compiler may
6105 # overwrite some of them when testing with obscure command lines.
6106 # This happens at least with the AIX C compiler.
6107 : > sub/conftest.c
6108 for i in 1 2 3 4 5 6; do
6109 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6111 # Solaris 10 /bin/sh.
6112 echo '/* dummy */' > sub/conftst$i.h
6113 done
6114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6115
6116 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6117 # mode. It turns out that the SunPro C++ compiler does not properly
6118 # handle '-M -o', and we need to detect this. Also, some Intel
6119 # versions had trouble with output in subdirs.
6120 am__obj=sub/conftest.${OBJEXT-o}
6121 am__minus_obj="-o $am__obj"
6122 case $depmode in
6123 gcc)
6124 # This depmode causes a compiler race in universal mode.
6125 test "$am__universal" = false || continue
6126 ;;
6127 nosideeffect)
6128 # After this tag, mechanisms are not by side-effect, so they'll
6129 # only be used when explicitly requested.
6130 if test "x$enable_dependency_tracking" = xyes; then
6131 continue
6132 else
6133 break
6134 fi
6135 ;;
6136 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6137 # This compiler won't grok '-c -o', but also, the minuso test has
6138 # not run yet. These depmodes are late enough in the game, and
6139 # so weak that their functioning should not be impacted.
6140 am__obj=conftest.${OBJEXT-o}
6141 am__minus_obj=
6142 ;;
6143 none) break ;;
6144 esac
6145 if depmode=$depmode \
6146 source=sub/conftest.c object=$am__obj \
6147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6149 >/dev/null 2>conftest.err &&
6150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6154 # icc doesn't choke on unknown options, it will just issue warnings
6155 # or remarks (even with -Werror). So we grep stderr for any message
6156 # that says an option was ignored or not supported.
6157 # When given -MP, icc 7.0 and 7.1 complain thusly:
6158 # icc: Command line warning: ignoring option '-M'; no argument required
6159 # The diagnosis changed in icc 8.0:
6160 # icc: Command line remark: option '-MP' not supported
6161 if (grep 'ignoring option' conftest.err ||
6162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6163 am_cv_CC_dependencies_compiler_type=$depmode
6164 break
6165 fi
6166 fi
81ecdfbb 6167 done
b7026657 6168
c2783492
MF
6169 cd ..
6170 rm -rf conftest.dir
b7026657 6171else
c2783492 6172 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
6173fi
6174
6175fi
c2783492
MF
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 6179
c2783492
MF
6180 if
6181 test "x$enable_dependency_tracking" != xno \
6182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6183 am__fastdepCC_TRUE=
6184 am__fastdepCC_FALSE='#'
c906108c 6185else
c2783492
MF
6186 am__fastdepCC_TRUE='#'
6187 am__fastdepCC_FALSE=
b7026657
AC
6188fi
6189
c906108c
SS
6190
6191
c2783492
MF
6192# POSIX will say in a future version that running "rm -f" with no argument
6193# is OK; and we want to be able to make that assumption in our Makefile
6194# recipes. So use an aggressive probe to check that the usage we want is
6195# actually supported "in the wild" to an acceptable degree.
6196# See automake bug#10828.
6197# To make any issue more visible, cause the running configure to be aborted
6198# by default if the 'rm' program in use doesn't match our expectations; the
6199# user can still override this though.
6200if rm -f && rm -fr && rm -rf; then : OK; else
6201 cat >&2 <<'END'
6202Oops!
6203
6204Your 'rm' program seems unable to run without file operands specified
6205on the command line, even when the '-f' option is present. This is contrary
6206to the behaviour of most rm programs out there, and not conforming with
6207the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6208
6209Please tell bug-automake@gnu.org about your system, including the value
6210of your $PATH and any error possibly output before this message. This
6211can help us improve future automake versions.
6212
6213END
6214 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6215 echo 'Configuration will proceed anyway, since you have set the' >&2
6216 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6217 echo >&2
5c887dd5 6218 else
c2783492
MF
6219 cat >&2 <<'END'
6220Aborting the configuration process, to ensure you take notice of the issue.
6221
6222You can download and install GNU coreutils to get an 'rm' implementation
6223that behaves properly: <http://www.gnu.org/software/coreutils/>.
6224
6225If you want to complete the configuration process using your problematic
6226'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6227to "yes", and re-run configure.
6228
6229END
6230 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 6231 fi
c906108c
SS
6232fi
6233
fbe8d1cf
MF
6234# Check whether --enable-silent-rules was given.
6235if test "${enable_silent_rules+set}" = set; then :
6236 enableval=$enable_silent_rules;
6237fi
6238
6239case $enable_silent_rules in # (((
6240 yes) AM_DEFAULT_VERBOSITY=0;;
6241 no) AM_DEFAULT_VERBOSITY=1;;
6242 *) AM_DEFAULT_VERBOSITY=0;;
6243esac
6244am_make=${MAKE-make}
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6246$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6247if ${am_cv_make_support_nested_variables+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 if $as_echo 'TRUE=$(BAR$(V))
6251BAR0=false
6252BAR1=true
6253V=1
6254am__doit:
6255 @$(TRUE)
6256.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6257 am_cv_make_support_nested_variables=yes
6258else
6259 am_cv_make_support_nested_variables=no
6260fi
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6263$as_echo "$am_cv_make_support_nested_variables" >&6; }
6264if test $am_cv_make_support_nested_variables = yes; then
6265 AM_V='$(V)'
6266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6267else
6268 AM_V=$AM_DEFAULT_VERBOSITY
6269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6270fi
6271AM_BACKSLASH='\'
6272
c906108c
SS
6273
6274# If a cpu ever has more than one simulator to choose from, use
6275# --enable-sim=... to choose.
81ecdfbb
RW
6276# Check whether --enable-sim was given.
6277if test "${enable_sim+set}" = set; then :
6278 enableval=$enable_sim; case "${enableval}" in
c906108c 6279yes | no) ;;
d0ac1c44 6280*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 6281esac
81ecdfbb
RW
6282fi
6283
c906108c 6284
26da232c
MF
6285# Check whether --enable-example-sims was given.
6286if test "${enable_example_sims+set}" = set; then :
6287 enableval=$enable_example_sims;
6288fi
6289
6290
a0e674c1
MF
6291# Check whether --enable-targets was given.
6292if test "${enable_targets+set}" = set; then :
6293 enableval=$enable_targets; case "${enableval}" in
6294 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6295 ;;
6296 no) enable_targets= ;;
6297 *) enable_targets=$enableval ;;
6298esac
6299fi
6300
6301
6302SIM_PRIMARY_TARGET=
6303
6304
6305
6306
119da465 6307if test "${enable_sim}" != no; then
3e8bb3e9 6308 sim_igen=no
a0e674c1
MF
6309 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
6310 do
6311
6312 case "${targ}" in
6313 all|aarch64*-*-*)
6314 if test "${targ}" = "${target}"; then
6315 SIM_PRIMARY_TARGET=aarch64
6316 fi
2e8cf49e
NC
6317
6318
6319subdirs="$subdirs aarch64"
fdd6fa61 6320
a0e674c1 6321
3e8bb3e9 6322 ;;
a0e674c1
MF
6323 esac
6324
6325
6326 case "${targ}" in
6327 all|arm*-*-*)
6328 if test "${targ}" = "${target}"; then
6329 SIM_PRIMARY_TARGET=arm
6330 fi
3e8bb3e9 6331 subdirs="$subdirs arm"
fdd6fa61 6332
a0e674c1 6333
3e8bb3e9 6334 ;;
a0e674c1
MF
6335 esac
6336
6337
6338 case "${targ}" in
6339 all|avr*-*-*)
6340 if test "${targ}" = "${target}"; then
6341 SIM_PRIMARY_TARGET=avr
6342 fi
3e8bb3e9 6343 subdirs="$subdirs avr"
0cd79707 6344
a0e674c1 6345
3e8bb3e9 6346 ;;
a0e674c1
MF
6347 esac
6348
6349
6350 case "${targ}" in
6351 all|bfin-*-*)
6352 if test "${targ}" = "${target}"; then
6353 SIM_PRIMARY_TARGET=bfin
6354 fi
3e8bb3e9 6355 subdirs="$subdirs bfin"
ddd44b70 6356
a0e674c1 6357
3e8bb3e9 6358 ;;
a0e674c1
MF
6359 esac
6360
6361
6362 case "${targ}" in
6363 all|bpf-*-*)
6364 if test "${targ}" = "${target}"; then
6365 SIM_PRIMARY_TARGET=bpf
6366 fi
3e8bb3e9 6367 subdirs="$subdirs bpf"
ddd44b70 6368
a0e674c1 6369
3e8bb3e9 6370 ;;
a0e674c1
MF
6371 esac
6372
6373
6374 case "${targ}" in
6375 all|cr16*-*-*)
6376 if test "${targ}" = "${target}"; then
6377 SIM_PRIMARY_TARGET=cr16
6378 fi
3e8bb3e9 6379 subdirs="$subdirs cr16"
ddd44b70 6380
a0e674c1 6381
3e8bb3e9 6382 ;;
a0e674c1
MF
6383 esac
6384
6385
6386 case "${targ}" in
6387 all|cris-*-* | crisv32-*-*)
6388 if test "${targ}" = "${target}"; then
6389 SIM_PRIMARY_TARGET=cris
6390 fi
3e8bb3e9 6391 subdirs="$subdirs cris"
b9249c46 6392
a0e674c1 6393
3e8bb3e9 6394 ;;
a0e674c1
MF
6395 esac
6396
6397
6398 case "${targ}" in
6399 all|d10v-*-*)
6400 if test "${targ}" = "${target}"; then
6401 SIM_PRIMARY_TARGET=d10v
6402 fi
3e8bb3e9 6403 subdirs="$subdirs d10v"
b9249c46 6404
a0e674c1 6405
3e8bb3e9 6406 ;;
a0e674c1
MF
6407 esac
6408
6409
6410 case "${targ}" in
6411 all|frv-*-*)
6412 if test "${targ}" = "${target}"; then
6413 SIM_PRIMARY_TARGET=frv
6414 fi
3e8bb3e9 6415 subdirs="$subdirs frv"
b9249c46 6416
a0e674c1 6417
3e8bb3e9 6418 ;;
a0e674c1
MF
6419 esac
6420
6421
6422 case "${targ}" in
6423 all|h8300*-*-*)
6424 if test "${targ}" = "${target}"; then
6425 SIM_PRIMARY_TARGET=h8300
6426 fi
3e8bb3e9 6427 subdirs="$subdirs h8300"
119da465 6428
a0e674c1 6429
3e8bb3e9 6430 ;;
a0e674c1
MF
6431 esac
6432
6433
6434 case "${targ}" in
6435 all|iq2000-*-*)
6436 if test "${targ}" = "${target}"; then
6437 SIM_PRIMARY_TARGET=iq2000
6438 fi
3e8bb3e9 6439 subdirs="$subdirs iq2000"
119da465 6440
a0e674c1 6441
3e8bb3e9 6442 ;;
a0e674c1
MF
6443 esac
6444
6445
6446 case "${targ}" in
6447 all|lm32-*-*)
6448 if test "${targ}" = "${target}"; then
6449 SIM_PRIMARY_TARGET=lm32
6450 fi
3e8bb3e9 6451 subdirs="$subdirs lm32"
119da465 6452
a0e674c1 6453
3e8bb3e9 6454 ;;
a0e674c1
MF
6455 esac
6456
6457
6458 case "${targ}" in
6459 all|m32c-*-*)
6460 if test "${targ}" = "${target}"; then
6461 SIM_PRIMARY_TARGET=m32c
6462 fi
3e8bb3e9 6463 subdirs="$subdirs m32c"
87326c78 6464
a0e674c1 6465
3e8bb3e9 6466 ;;
a0e674c1
MF
6467 esac
6468
6469
6470 case "${targ}" in
6471 all|m32r-*-*)
6472 if test "${targ}" = "${target}"; then
6473 SIM_PRIMARY_TARGET=m32r
6474 fi
3e8bb3e9 6475 subdirs="$subdirs m32r"
87326c78 6476
a0e674c1 6477
3e8bb3e9 6478 ;;
a0e674c1
MF
6479 esac
6480
6481
6482 case "${targ}" in
6483 all|m68hc11-*-*|m6811-*-*)
6484 if test "${targ}" = "${target}"; then
6485 SIM_PRIMARY_TARGET=m68hc11
6486 fi
3e8bb3e9 6487 subdirs="$subdirs m68hc11"
87326c78 6488
a0e674c1 6489
3e8bb3e9 6490 ;;
a0e674c1
MF
6491 esac
6492
6493
6494 case "${targ}" in
6495 all|mcore-*-*)
6496 if test "${targ}" = "${target}"; then
6497 SIM_PRIMARY_TARGET=mcore
6498 fi
3e8bb3e9 6499 subdirs="$subdirs mcore"
119da465 6500
a0e674c1 6501
3e8bb3e9 6502 ;;
a0e674c1
MF
6503 esac
6504
6505
6506 case "${targ}" in
6507 all|microblaze-*-*)
6508 if test "${targ}" = "${target}"; then
6509 SIM_PRIMARY_TARGET=microblaze
6510 fi
3e8bb3e9 6511 subdirs="$subdirs microblaze"
119da465 6512
a0e674c1 6513
3e8bb3e9 6514 ;;
a0e674c1
MF
6515 esac
6516
6517
6518 case "${targ}" in
6519 all|mips*-*-*)
6520 if test "${targ}" = "${target}"; then
6521 SIM_PRIMARY_TARGET=mips
6522 fi
3e8bb3e9 6523 subdirs="$subdirs mips"
119da465 6524
3e8bb3e9
MF
6525 sim_igen=yes
6526 ;;
a0e674c1
MF
6527 esac
6528
6529
6530 case "${targ}" in
6531 all|mn10300*-*-*)
6532 if test "${targ}" = "${target}"; then
6533 SIM_PRIMARY_TARGET=mn10300
6534 fi
3e8bb3e9 6535 subdirs="$subdirs mn10300"
119da465 6536
3e8bb3e9
MF
6537 sim_igen=yes
6538 ;;
a0e674c1
MF
6539 esac
6540
6541
6542 case "${targ}" in
6543 all|moxie-*-*)
6544 if test "${targ}" = "${target}"; then
6545 SIM_PRIMARY_TARGET=moxie
6546 fi
3e8bb3e9 6547 subdirs="$subdirs moxie"
119da465 6548
a0e674c1 6549
3e8bb3e9 6550 ;;
a0e674c1
MF
6551 esac
6552
6553
6554 case "${targ}" in
6555 all|msp430*-*-*)
6556 if test "${targ}" = "${target}"; then
6557 SIM_PRIMARY_TARGET=msp430
6558 fi
3e8bb3e9 6559 subdirs="$subdirs msp430"
119da465 6560
a0e674c1 6561
3e8bb3e9 6562 ;;
a0e674c1
MF
6563 esac
6564
6565
6566 case "${targ}" in
6567 all|or1k-*-* | or1knd-*-*)
6568 if test "${targ}" = "${target}"; then
6569 SIM_PRIMARY_TARGET=or1k
6570 fi
3e8bb3e9 6571 subdirs="$subdirs or1k"
119da465 6572
a0e674c1 6573
3e8bb3e9 6574 ;;
a0e674c1
MF
6575 esac
6576
6577
6578 case "${targ}" in
6579 all|pru*-*-*)
6580 if test "${targ}" = "${target}"; then
6581 SIM_PRIMARY_TARGET=pru
6582 fi
3e8bb3e9 6583 subdirs="$subdirs pru"
119da465 6584
a0e674c1 6585
3e8bb3e9 6586 ;;
a0e674c1
MF
6587 esac
6588
6589
6590 case "${targ}" in
6591 all|riscv*-*-*)
6592 if test "${targ}" = "${target}"; then
6593 SIM_PRIMARY_TARGET=riscv
6594 fi
3e8bb3e9 6595 subdirs="$subdirs riscv"
119da465 6596
a0e674c1 6597
3e8bb3e9 6598 ;;
a0e674c1
MF
6599 esac
6600
6601
6602 case "${targ}" in
6603 all|rl78-*-*)
6604 if test "${targ}" = "${target}"; then
6605 SIM_PRIMARY_TARGET=rl78
6606 fi
3e8bb3e9 6607 subdirs="$subdirs rl78"
f46e4eb7 6608
a0e674c1 6609
3e8bb3e9 6610 ;;
a0e674c1
MF
6611 esac
6612
6613
6614 case "${targ}" in
6615 all|rx-*-*)
6616 if test "${targ}" = "${target}"; then
6617 SIM_PRIMARY_TARGET=rx
6618 fi
3e8bb3e9 6619 subdirs="$subdirs rx"
f46e4eb7 6620
a0e674c1 6621
3e8bb3e9 6622 ;;
a0e674c1
MF
6623 esac
6624
6625
6626 case "${targ}" in
6627 all|sh*-*-*)
6628 if test "${targ}" = "${target}"; then
6629 SIM_PRIMARY_TARGET=sh
6630 fi
3e8bb3e9 6631 subdirs="$subdirs sh"
f46e4eb7 6632
a0e674c1 6633
3e8bb3e9 6634 ;;
a0e674c1
MF
6635 esac
6636
6637
6638 case "${targ}" in
6639 all|sparc-*-rtems*|sparc-*-elf*)
6640 if test "${targ}" = "${target}"; then
6641 SIM_PRIMARY_TARGET=erc32
6642 fi
3e8bb3e9 6643 subdirs="$subdirs erc32"
119da465 6644
a0e674c1 6645
3e8bb3e9 6646 ;;
a0e674c1
MF
6647 esac
6648
6649
6650 case "${targ}" in
6651 all|powerpc*-*-*)
6652 if test "${targ}" = "${target}"; then
6653 SIM_PRIMARY_TARGET=ppc
6654 fi
3e8bb3e9 6655 subdirs="$subdirs ppc"
119da465 6656
a0e674c1 6657
3e8bb3e9 6658 ;;
a0e674c1
MF
6659 esac
6660
6661
6662 case "${targ}" in
6663 all|ft32-*-*)
6664 if test "${targ}" = "${target}"; then
6665 SIM_PRIMARY_TARGET=ft32
6666 fi
3e8bb3e9 6667 subdirs="$subdirs ft32"
119da465 6668
a0e674c1 6669
3e8bb3e9 6670 ;;
a0e674c1
MF
6671 esac
6672
6673
6674 case "${targ}" in
6675 all|v850*-*-*)
6676 if test "${targ}" = "${target}"; then
6677 SIM_PRIMARY_TARGET=v850
6678 fi
3e8bb3e9 6679 subdirs="$subdirs v850"
119da465 6680
3e8bb3e9
MF
6681 sim_igen=yes
6682 ;;
6683 esac
a0e674c1
MF
6684
6685 done
26da232c
MF
6686
6687 if test "x${enable_example_sims}" = xyes; then
6688 subdirs="$subdirs example-synacor"
6689
6690 fi
b6b1c790
MF
6691fi
6692 if test "$sim_igen" = "yes"; then
6693 SIM_ENABLE_IGEN_TRUE=
6694 SIM_ENABLE_IGEN_FALSE='#'
6695else
6696 SIM_ENABLE_IGEN_TRUE='#'
6697 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
6698fi
6699
b6b1c790 6700
ba307cdd
MF
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
6702$as_echo_n "checking whether to force sim alignment... " >&6; }
6703sim_alignment=
6704# Check whether --enable-sim-alignment was given.
6705if test "${enable_sim_alignment+set}" = set; then :
6706 enableval=$enable_sim_alignment; case "${enableval}" in
6707 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
6708 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
6709 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
6710 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
6711esac
6712fi
6713
6714cat >>confdefs.h <<_ACEOF
6715#define WITH_ALIGNMENT ${sim_alignment:-0}
6716_ACEOF
6717
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
6719$as_echo "${sim_alignment:-no}" >&6; }
6720
dba333c1
MF
6721
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
6723$as_echo_n "checking whether to enable sim asserts... " >&6; }
6724sim_assert="1"
6725# Check whether --enable-sim-assert was given.
6726if test "${enable_sim_assert+set}" = set; then :
6727 enableval=$enable_sim_assert; case "${enableval}" in
6728 yes) sim_assert="1";;
6729 no) sim_assert="0";;
6730 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
6731esac
6732fi
6733
6734cat >>confdefs.h <<_ACEOF
6735#define WITH_ASSERT $sim_assert
6736_ACEOF
6737
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
6739$as_echo "$sim_assert" >&6; }
6740
04381273
MF
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
6742$as_echo_n "checking for sim debug setting... " >&6; }
6743sim_debug="0"
6744# Check whether --enable-sim-debug was given.
6745if test "${enable_sim_debug+set}" = set; then :
6746 enableval=$enable_sim_debug; case "${enableval}" in
6747 yes) sim_debug="7";;
6748 no) sim_debug="0";;
6749 *) sim_debug="($enableval)";;
6750esac
6751fi
6752if test "$sim_debug" != "0"; then
6753
6754cat >>confdefs.h <<_ACEOF
6755#define DEBUG $sim_debug
6756_ACEOF
6757
6758fi
6759
6760cat >>confdefs.h <<_ACEOF
6761#define WITH_DEBUG $sim_debug
6762_ACEOF
6763
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
6765$as_echo "$sim_debug" >&6; }
f9a4d543
MF
6766
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
6768$as_echo_n "checking whether to force sim endianness... " >&6; }
6769sim_endian=
6770# Check whether --enable-sim-endian was given.
6771if test "${enable_sim_endian+set}" = set; then :
6772 enableval=$enable_sim_endian; case "${enableval}" in
6773 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
6774 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
6775 yes | no) ;;
6776 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
6777esac
6778fi
6779
6780cat >>confdefs.h <<_ACEOF
6781#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
6782_ACEOF
6783
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
6785$as_echo "${sim_alignment:-no}" >&6; }
04381273 6786
dba333c1 6787
5ea45474
MF
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
6789$as_echo_n "checking default sim environment setting... " >&6; }
6790sim_environment="ALL_ENVIRONMENT"
6791# Check whether --enable-sim-environment was given.
6792if test "${enable_sim_environment+set}" = set; then :
6793 enableval=$enable_sim_environment; case "${enableval}" in
6794 all | ALL) sim_environment="ALL_ENVIRONMENT";;
6795 user | USER) sim_environment="USER_ENVIRONMENT";;
6796 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
6797 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
6798 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
6799esac
6800fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define WITH_ENVIRONMENT $sim_environment
6804_ACEOF
6805
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
6807$as_echo "$sim_environment" >&6; }
6808
04381273
MF
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
6810$as_echo_n "checking for sim profile settings... " >&6; }
6811profile="1"
6812sim_profile="-1"
6813# Check whether --enable-sim-profile was given.
6814if test "${enable_sim_profile+set}" = set; then :
6815 enableval=$enable_sim_profile; case "${enableval}" in
6816 yes) profile="1" sim_profile="-1";;
6817 no) profile="0" sim_profile="0";;
6818 [-0-9]*)
6819 profile="(${enableval})" sim_profile="(${enableval})";;
6820 [a-z]*)
6821 profile="1"
6822 sim_profile=""
6823 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6824 if test x"$sim_profile" = x; then
6825 sim_profile="(PROFILE_$x"
6826 else
6827 sim_profile="${sim_profile}|PROFILE_$x"
6828 fi
6829 done
6830 sim_profile="$sim_profile)" ;;
6831esac
6832fi
6833
6834cat >>confdefs.h <<_ACEOF
6835#define PROFILE $profile
6836_ACEOF
6837
6838
6839cat >>confdefs.h <<_ACEOF
6840#define WITH_PROFILE $sim_profile
6841_ACEOF
6842
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
6844$as_echo "$sim_profile" >&6; }
6845
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
6847$as_echo_n "checking for sim stdio debug behavior... " >&6; }
6848sim_stdio="0"
6849# Check whether --enable-sim-stdio was given.
6850if test "${enable_sim_stdio+set}" = set; then :
6851 enableval=$enable_sim_stdio; case "${enableval}" in
6852 yes) sim_stdio="DO_USE_STDIO";;
6853 no) sim_stdio="DONT_USE_STDIO";;
6854 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
6855esac
6856fi
6857
6858cat >>confdefs.h <<_ACEOF
6859#define WITH_STDIO $sim_stdio
6860_ACEOF
6861
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
6863$as_echo "$sim_stdio" >&6; }
6864
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
6866$as_echo_n "checking for sim trace settings... " >&6; }
6867sim_trace="~TRACE_debug"
6868# Check whether --enable-sim-trace was given.
6869if test "${enable_sim_trace+set}" = set; then :
6870 enableval=$enable_sim_trace; case "${enableval}" in
6871 yes) sim_trace="-1";;
6872 no) sim_trace="0";;
6873 [-0-9]*)
6874 sim_trace="'(${enableval})'";;
6875 [[:lower:]]*)
6876 sim_trace=""
6877 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6878 if test x"$sim_trace" = x; then
6879 sim_trace="(TRACE_$x"
6880 else
6881 sim_trace="${sim_trace}|TRACE_$x"
6882 fi
6883 done
6884 sim_trace="$sim_trace)" ;;
6885esac
6886fi
6887
6888cat >>confdefs.h <<_ACEOF
6889#define WITH_TRACE $sim_trace
6890_ACEOF
6891
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
6893$as_echo "$sim_trace" >&6; }
6894
5ea45474 6895
47ce766a
MF
6896# Check whether --enable-werror was given.
6897if test "${enable_werror+set}" = set; then :
6898 enableval=$enable_werror; case "${enableval}" in
6899 yes | y) ERROR_ON_WARNING="yes" ;;
6900 no | n) ERROR_ON_WARNING="no" ;;
6901 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6902 esac
6903fi
6904
6905
6906if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6907 ERROR_ON_WARNING=yes
6908fi
6909
6910WERROR_CFLAGS=""
6911if test "${ERROR_ON_WARNING}" = yes ; then
6912 WERROR_CFLAGS="-Werror"
6913fi
6914
6915build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
6916-Wpointer-sign \
6917-Wno-unused -Wunused-value -Wunused-function \
6918-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
6919-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
6920-Wold-style-declaration -Wold-style-definition"
6921
6922# Enable -Wno-format by default when using gcc on mingw since many
6923# GCC versions complain about %I64.
6924case "${host}" in
6925 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
6926 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
6927esac
6928
6929# Check whether --enable-build-warnings was given.
6930if test "${enable_build_warnings+set}" = set; then :
6931 enableval=$enable_build_warnings; case "${enableval}" in
6932 yes) ;;
6933 no) build_warnings="-w";;
6934 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6935 build_warnings="${build_warnings} ${t}";;
6936 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6937 build_warnings="${t} ${build_warnings}";;
6938 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6939esac
6940if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6941 echo "Setting compiler warning flags = $build_warnings" 6>&1
6942fi
6943fi
6944# Check whether --enable-sim-build-warnings was given.
6945if test "${enable_sim_build_warnings+set}" = set; then :
6946 enableval=$enable_sim_build_warnings; case "${enableval}" in
6947 yes) ;;
6948 no) build_warnings="-w";;
6949 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6950 build_warnings="${build_warnings} ${t}";;
6951 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6952 build_warnings="${t} ${build_warnings}";;
6953 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6954esac
6955if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6956 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6957fi
6958fi
6959WARN_CFLAGS=""
6960if test "x${build_warnings}" != x -a "x$GCC" = xyes
6961then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6963$as_echo_n "checking compiler warning flags... " >&6; }
6964 # Separate out the -Werror flag as some files just cannot be
6965 # compiled with it enabled.
6966 for w in ${build_warnings}; do
6967 case $w in
6968 -Werr*) WERROR_CFLAGS=-Werror ;;
6969 *) # Check that GCC accepts it
6970 saved_CFLAGS="$CFLAGS"
6971 CFLAGS="$CFLAGS -Werror $w"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h. */
6974
6975int
6976main ()
6977{
6978
6979 ;
6980 return 0;
6981}
6982_ACEOF
6983if ac_fn_c_try_compile "$LINENO"; then :
6984 WARN_CFLAGS="${WARN_CFLAGS} $w"
6985fi
6986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 CFLAGS="$saved_CFLAGS"
6988 esac
6989 done
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6991$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6992fi
6993
6994
3f8414df 6995ac_config_files="$ac_config_files arch-subdir.mk Makefile"
81ecdfbb 6996
b7026657 6997cat >confcache <<\_ACEOF
c906108c
SS
6998# This file is a shell script that caches the results of configure
6999# tests run on this system so they can be shared between configure
b7026657
AC
7000# scripts and configure runs, see configure's option --config-cache.
7001# It is not useful on other systems. If it contains results you don't
7002# want to keep, you may remove or edit it.
c906108c 7003#
b7026657
AC
7004# config.status only pays attention to the cache file if you give it
7005# the --recheck option to rerun configure.
c906108c 7006#
b7026657
AC
7007# `ac_cv_env_foo' variables (set or unset) will be overridden when
7008# loading this file, other *unset* `ac_cv_foo' will be assigned the
7009# following values.
7010
7011_ACEOF
7012
c906108c
SS
7013# The following way of writing the cache mishandles newlines in values,
7014# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 7015# So, we kill variables containing newlines.
c906108c
SS
7016# Ultrix sh set writes to stderr and can't be redirected directly,
7017# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
7018(
7019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7020 eval ac_val=\$$ac_var
7021 case $ac_val in #(
7022 *${as_nl}*)
7023 case $ac_var in #(
7024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7025$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7026 esac
7027 case $ac_var in #(
7028 _ | IFS | as_nl) ;; #(
7029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7030 *) { eval $ac_var=; unset $ac_var;} ;;
7031 esac ;;
7032 esac
7033 done
7034
b7026657 7035 (set) 2>&1 |
81ecdfbb
RW
7036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7037 *${as_nl}ac_space=\ *)
7038 # `set' does not quote correctly, so add quotes: double-quote
7039 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
7040 sed -n \
7041 "s/'/'\\\\''/g;
7042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 7043 ;; #(
b7026657
AC
7044 *)
7045 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 7046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 7047 ;;
81ecdfbb
RW
7048 esac |
7049 sort
7050) |
b7026657 7051 sed '
81ecdfbb 7052 /^ac_cv_env_/b end
b7026657 7053 t clear
81ecdfbb 7054 :clear
b7026657
AC
7055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7056 t end
81ecdfbb
RW
7057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7058 :end' >>confcache
7059if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7060 if test -w "$cache_file"; then
d0ac1c44 7061 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7063$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
7064 if test ! -f "$cache_file" || test -h "$cache_file"; then
7065 cat confcache >"$cache_file"
7066 else
7067 case $cache_file in #(
7068 */* | ?:*)
7069 mv -f confcache "$cache_file"$$ &&
7070 mv -f "$cache_file"$$ "$cache_file" ;; #(
7071 *)
7072 mv -f confcache "$cache_file" ;;
7073 esac
7074 fi
7075 fi
c906108c 7076 else
81ecdfbb
RW
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7078$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
7079 fi
7080fi
7081rm -f confcache
7082
c906108c
SS
7083test "x$prefix" = xNONE && prefix=$ac_default_prefix
7084# Let make expand exec_prefix.
7085test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7086
b15c5d7a 7087DEFS=-DHAVE_CONFIG_H
b7026657
AC
7088
7089ac_libobjs=
7090ac_ltlibobjs=
d0ac1c44 7091U=
b7026657
AC
7092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7093 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
7094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7097 # will be set to the directory where LIBOBJS objects are built.
7098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
7100done
7101LIBOBJS=$ac_libobjs
c906108c 7102
b7026657
AC
7103LTLIBOBJS=$ac_ltlibobjs
7104
7105
c2783492 7106
8c379db2
TT
7107if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7108 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7109Usually this means the macro was only invoked conditionally." "$LINENO" 5
7110fi
6bddc3e8
MF
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7112$as_echo_n "checking that generated files are newer than configure... " >&6; }
7113 if test -n "$am_sleep_pid"; then
7114 # Hide warnings about reused PIDs.
7115 wait $am_sleep_pid 2>/dev/null
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7118$as_echo "done" >&6; }
6bddc3e8
MF
7119if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7120 as_fn_error $? "conditional \"AMDEP\" was never defined.
7121Usually this means the macro was only invoked conditionally." "$LINENO" 5
7122fi
7123if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7124 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7125Usually this means the macro was only invoked conditionally." "$LINENO" 5
7126fi
c2783492
MF
7127 if test -n "$EXEEXT"; then
7128 am__EXEEXT_TRUE=
7129 am__EXEEXT_FALSE='#'
7130else
7131 am__EXEEXT_TRUE='#'
7132 am__EXEEXT_FALSE=
6bddc3e8 7133fi
b7026657 7134
b6b1c790
MF
7135if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
7136 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
7137Usually this means the macro was only invoked conditionally." "$LINENO" 5
7138fi
c2783492 7139
d0ac1c44 7140: "${CONFIG_STATUS=./config.status}"
81ecdfbb 7141ac_write_fail=0
b7026657
AC
7142ac_clean_files_save=$ac_clean_files
7143ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7145$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7146as_write_fail=0
7147cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
7148#! $SHELL
7149# Generated by $as_me.
c906108c 7150# Run this file to recreate the current configuration.
c906108c 7151# Compiler output produced by configure, useful for debugging
b7026657
AC
7152# configure, is in config.log if it exists.
7153
7154debug=false
7155ac_cs_recheck=false
7156ac_cs_silent=false
b7026657 7157
81ecdfbb
RW
7158SHELL=\${CONFIG_SHELL-$SHELL}
7159export SHELL
7160_ASEOF
7161cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7162## -------------------- ##
7163## M4sh Initialization. ##
7164## -------------------- ##
7165
7166# Be more Bourne compatible
7167DUALCASE=1; export DUALCASE # for MKS sh
7168if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
7169 emulate sh
7170 NULLCMD=:
81ecdfbb 7171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
7172 # is contrary to our usage. Disable this feature.
7173 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
7174 setopt NO_GLOB_SUBST
7175else
7176 case `(set -o) 2>/dev/null` in #(
7177 *posix*) :
7178 set -o posix ;; #(
7179 *) :
7180 ;;
7181esac
b7026657 7182fi
c906108c 7183
81ecdfbb
RW
7184
7185as_nl='
7186'
7187export as_nl
7188# Printing a long string crashes Solaris 7 /usr/bin/printf.
7189as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7192# Prefer a ksh shell builtin over an external printf program on Solaris,
7193# but without wasting forks for bash or zsh.
7194if test -z "$BASH_VERSION$ZSH_VERSION" \
7195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7196 as_echo='print -r --'
7197 as_echo_n='print -rn --'
7198elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7199 as_echo='printf %s\n'
7200 as_echo_n='printf %s'
b7026657 7201else
81ecdfbb
RW
7202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7204 as_echo_n='/usr/ucb/echo -n'
7205 else
7206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7207 as_echo_n_body='eval
7208 arg=$1;
7209 case $arg in #(
7210 *"$as_nl"*)
7211 expr "X$arg" : "X\\(.*\\)$as_nl";
7212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7213 esac;
7214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7215 '
7216 export as_echo_n_body
7217 as_echo_n='sh -c $as_echo_n_body as_echo'
7218 fi
7219 export as_echo_body
7220 as_echo='sh -c $as_echo_body as_echo'
7221fi
7222
7223# The user is always right.
7224if test "${PATH_SEPARATOR+set}" != set; then
7225 PATH_SEPARATOR=:
7226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7228 PATH_SEPARATOR=';'
7229 }
b7026657
AC
7230fi
7231
7232
81ecdfbb
RW
7233# IFS
7234# We need space, tab and new line, in precisely that order. Quoting is
7235# there to prevent editors from complaining about space-tab.
7236# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7237# splitting by setting IFS to empty value.)
7238IFS=" "" $as_nl"
7239
7240# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 7241as_myself=
81ecdfbb
RW
7242case $0 in #((
7243 *[\\/]* ) as_myself=$0 ;;
7244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7250 done
7251IFS=$as_save_IFS
7252
7253 ;;
7254esac
7255# We did not find ourselves, most probably we were run as `sh COMMAND'
7256# in which case we are not to be found in the path.
7257if test "x$as_myself" = x; then
7258 as_myself=$0
7259fi
7260if test ! -f "$as_myself"; then
7261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7262 exit 1
7263fi
7264
7265# Unset variables that we do not need and which cause bugs (e.g. in
7266# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7267# suppresses any "Segmentation fault" message there. '((' could
7268# trigger a bug in pdksh 5.2.14.
7269for as_var in BASH_ENV ENV MAIL MAILPATH
7270do eval test x\${$as_var+set} = xset \
7271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7272done
b7026657
AC
7273PS1='$ '
7274PS2='> '
7275PS4='+ '
7276
7277# NLS nuisances.
81ecdfbb
RW
7278LC_ALL=C
7279export LC_ALL
7280LANGUAGE=C
7281export LANGUAGE
7282
7283# CDPATH.
7284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7285
7286
d0ac1c44
SM
7287# as_fn_error STATUS ERROR [LINENO LOG_FD]
7288# ----------------------------------------
81ecdfbb
RW
7289# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7290# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 7291# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
7292as_fn_error ()
7293{
d0ac1c44
SM
7294 as_status=$1; test $as_status -eq 0 && as_status=1
7295 if test "$4"; then
7296 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 7298 fi
d0ac1c44 7299 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
7300 as_fn_exit $as_status
7301} # as_fn_error
c906108c 7302
81ecdfbb
RW
7303
7304# as_fn_set_status STATUS
7305# -----------------------
7306# Set $? to STATUS, without forking.
7307as_fn_set_status ()
7308{
7309 return $1
7310} # as_fn_set_status
7311
7312# as_fn_exit STATUS
7313# -----------------
7314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7315as_fn_exit ()
7316{
7317 set +e
7318 as_fn_set_status $1
7319 exit $1
7320} # as_fn_exit
7321
7322# as_fn_unset VAR
7323# ---------------
7324# Portably unset VAR.
7325as_fn_unset ()
7326{
7327 { eval $1=; unset $1;}
7328}
7329as_unset=as_fn_unset
7330# as_fn_append VAR VALUE
7331# ----------------------
7332# Append the text in VALUE to the end of the definition contained in VAR. Take
7333# advantage of any shell optimizations that allow amortized linear growth over
7334# repeated appends, instead of the typical quadratic growth present in naive
7335# implementations.
7336if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7337 eval 'as_fn_append ()
7338 {
7339 eval $1+=\$2
7340 }'
7341else
7342 as_fn_append ()
7343 {
7344 eval $1=\$$1\$2
7345 }
7346fi # as_fn_append
7347
7348# as_fn_arith ARG...
7349# ------------------
7350# Perform arithmetic evaluation on the ARGs, and store the result in the
7351# global $as_val. Take advantage of shells that can avoid forks. The arguments
7352# must be portable across $(()) and expr.
7353if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7354 eval 'as_fn_arith ()
7355 {
7356 as_val=$(( $* ))
7357 }'
7358else
7359 as_fn_arith ()
7360 {
7361 as_val=`expr "$@" || test $? -eq 1`
7362 }
7363fi # as_fn_arith
7364
7365
7366if expr a : '\(a\)' >/dev/null 2>&1 &&
7367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
7368 as_expr=expr
7369else
7370 as_expr=false
7371fi
c906108c 7372
81ecdfbb 7373if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
7374 as_basename=basename
7375else
7376 as_basename=false
7377fi
c906108c 7378
81ecdfbb
RW
7379if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7380 as_dirname=dirname
7381else
7382 as_dirname=false
7383fi
c906108c 7384
81ecdfbb 7385as_me=`$as_basename -- "$0" ||
b7026657
AC
7386$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7387 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
7388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7389$as_echo X/"$0" |
7390 sed '/^.*\/\([^/][^/]*\)\/*$/{
7391 s//\1/
7392 q
7393 }
7394 /^X\/\(\/\/\)$/{
7395 s//\1/
7396 q
7397 }
7398 /^X\/\(\/\).*/{
7399 s//\1/
7400 q
7401 }
7402 s/.*/./; q'`
b7026657 7403
fdd6fa61
AG
7404# Avoid depending upon Character Ranges.
7405as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7406as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7407as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7408as_cr_digits='0123456789'
7409as_cr_alnum=$as_cr_Letters$as_cr_digits
7410
81ecdfbb
RW
7411ECHO_C= ECHO_N= ECHO_T=
7412case `echo -n x` in #(((((
7413-n*)
7414 case `echo 'xy\c'` in
7415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7416 xy) ECHO_C='\c';;
7417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7418 ECHO_T=' ';;
7419 esac;;
7420*)
7421 ECHO_N='-n';;
b7026657
AC
7422esac
7423
81ecdfbb
RW
7424rm -f conf$$ conf$$.exe conf$$.file
7425if test -d conf$$.dir; then
7426 rm -f conf$$.dir/conf$$.file
b7026657 7427else
81ecdfbb
RW
7428 rm -f conf$$.dir
7429 mkdir conf$$.dir 2>/dev/null
b7026657 7430fi
81ecdfbb
RW
7431if (echo >conf$$.file) 2>/dev/null; then
7432 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 7433 as_ln_s='ln -s'
81ecdfbb
RW
7434 # ... but there are two gotchas:
7435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 7437 # In both cases, we have to default to `cp -pR'.
81ecdfbb 7438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 7439 as_ln_s='cp -pR'
81ecdfbb
RW
7440 elif ln conf$$.file conf$$ 2>/dev/null; then
7441 as_ln_s=ln
7442 else
d0ac1c44 7443 as_ln_s='cp -pR'
fdd6fa61 7444 fi
b7026657 7445else
d0ac1c44 7446 as_ln_s='cp -pR'
b7026657 7447fi
81ecdfbb
RW
7448rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7449rmdir conf$$.dir 2>/dev/null
7450
7451
7452# as_fn_mkdir_p
7453# -------------
7454# Create "$as_dir" as a directory, including parents if necessary.
7455as_fn_mkdir_p ()
7456{
b7026657 7457
81ecdfbb
RW
7458 case $as_dir in #(
7459 -*) as_dir=./$as_dir;;
7460 esac
7461 test -d "$as_dir" || eval $as_mkdir_p || {
7462 as_dirs=
7463 while :; do
7464 case $as_dir in #(
7465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7466 *) as_qdir=$as_dir;;
7467 esac
7468 as_dirs="'$as_qdir' $as_dirs"
7469 as_dir=`$as_dirname -- "$as_dir" ||
7470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7471 X"$as_dir" : 'X\(//\)[^/]' \| \
7472 X"$as_dir" : 'X\(//\)$' \| \
7473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7474$as_echo X"$as_dir" |
7475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7476 s//\1/
7477 q
7478 }
7479 /^X\(\/\/\)[^/].*/{
7480 s//\1/
7481 q
7482 }
7483 /^X\(\/\/\)$/{
7484 s//\1/
7485 q
7486 }
7487 /^X\(\/\).*/{
7488 s//\1/
7489 q
7490 }
7491 s/.*/./; q'`
7492 test -d "$as_dir" && break
7493 done
7494 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 7495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
7496
7497
7498} # as_fn_mkdir_p
b7026657 7499if mkdir -p . 2>/dev/null; then
81ecdfbb 7500 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
7501else
7502 test -d ./-p && rmdir ./-p
7503 as_mkdir_p=false
7504fi
7505
d0ac1c44
SM
7506
7507# as_fn_executable_p FILE
7508# -----------------------
7509# Test if FILE is an executable regular file.
7510as_fn_executable_p ()
7511{
7512 test -f "$1" && test -x "$1"
7513} # as_fn_executable_p
7514as_test_x='test -x'
7515as_executable_p=as_fn_executable_p
b7026657
AC
7516
7517# Sed expression to map a string onto a valid CPP name.
7518as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7519
7520# Sed expression to map a string onto a valid variable name.
7521as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7522
7523
b7026657 7524exec 6>&1
81ecdfbb
RW
7525## ----------------------------------- ##
7526## Main body of $CONFIG_STATUS script. ##
7527## ----------------------------------- ##
7528_ASEOF
7529test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7530
7531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7532# Save the log message, to keep $0 and so on meaningful, and to
b7026657 7533# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
7534# values after options handling.
7535ac_log="
6bddc3e8 7536This file was extended by sim $as_me 0, which was
d0ac1c44 7537generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
7538
7539 CONFIG_FILES = $CONFIG_FILES
7540 CONFIG_HEADERS = $CONFIG_HEADERS
7541 CONFIG_LINKS = $CONFIG_LINKS
7542 CONFIG_COMMANDS = $CONFIG_COMMANDS
7543 $ $0 $@
7544
81ecdfbb
RW
7545on `(hostname || uname -n) 2>/dev/null | sed 1q`
7546"
7547
b7026657
AC
7548_ACEOF
7549
81ecdfbb
RW
7550case $ac_config_files in *"
7551"*) set x $ac_config_files; shift; ac_config_files=$*;;
7552esac
b7026657 7553
b15c5d7a
MF
7554case $ac_config_headers in *"
7555"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7556esac
fdd6fa61 7557
fdd6fa61 7558
81ecdfbb
RW
7559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7560# Files that config.status was made for.
7561config_files="$ac_config_files"
b15c5d7a 7562config_headers="$ac_config_headers"
6bddc3e8 7563config_commands="$ac_config_commands"
b7026657 7564
81ecdfbb 7565_ACEOF
fdd6fa61 7566
81ecdfbb 7567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 7568ac_cs_usage="\
81ecdfbb
RW
7569\`$as_me' instantiates files and other configuration actions
7570from templates according to the current configuration. Unless the files
7571and actions are specified as TAGs, all are instantiated by default.
b7026657 7572
81ecdfbb 7573Usage: $0 [OPTION]... [TAG]...
b7026657
AC
7574
7575 -h, --help print this help, then exit
81ecdfbb 7576 -V, --version print version number and configuration settings, then exit
d0ac1c44 7577 --config print configuration, then exit
81ecdfbb
RW
7578 -q, --quiet, --silent
7579 do not print progress messages
b7026657
AC
7580 -d, --debug don't remove temporary files
7581 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
7582 --file=FILE[:TEMPLATE]
7583 instantiate the configuration file FILE
b15c5d7a
MF
7584 --header=FILE[:TEMPLATE]
7585 instantiate the configuration header FILE
b7026657
AC
7586
7587Configuration files:
7588$config_files
7589
b15c5d7a
MF
7590Configuration headers:
7591$config_headers
7592
6bddc3e8
MF
7593Configuration commands:
7594$config_commands
7595
7596Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
7597sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 7598
81ecdfbb
RW
7599_ACEOF
7600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 7601ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 7602ac_cs_version="\\
6bddc3e8 7603sim config.status 0
d0ac1c44
SM
7604configured by $0, generated by GNU Autoconf 2.69,
7605 with options \\"\$ac_cs_config\\"
b7026657 7606
d0ac1c44 7607Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
7608This config.status script is free software; the Free Software Foundation
7609gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
7610
7611ac_pwd='$ac_pwd'
7612srcdir='$srcdir'
7613INSTALL='$INSTALL'
6bddc3e8
MF
7614MKDIR_P='$MKDIR_P'
7615AWK='$AWK'
81ecdfbb 7616test -n "\$AWK" || AWK=awk
b7026657
AC
7617_ACEOF
7618
81ecdfbb
RW
7619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7620# The default lists apply if the user does not specify any file.
b7026657
AC
7621ac_need_defaults=:
7622while test $# != 0
7623do
7624 case $1 in
d0ac1c44 7625 --*=?*)
81ecdfbb
RW
7626 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7627 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
7628 ac_shift=:
7629 ;;
d0ac1c44
SM
7630 --*=)
7631 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7632 ac_optarg=
7633 ac_shift=:
7634 ;;
81ecdfbb 7635 *)
b7026657
AC
7636 ac_option=$1
7637 ac_optarg=$2
7638 ac_shift=shift
7639 ;;
b7026657
AC
7640 esac
7641
7642 case $ac_option in
7643 # Handling of the options.
b7026657
AC
7644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7645 ac_cs_recheck=: ;;
81ecdfbb
RW
7646 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7647 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
7648 --config | --confi | --conf | --con | --co | --c )
7649 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 7650 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
7651 debug=: ;;
7652 --file | --fil | --fi | --f )
7653 $ac_shift
81ecdfbb
RW
7654 case $ac_optarg in
7655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 7656 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
7657 esac
7658 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 7659 ac_need_defaults=false;;
b15c5d7a
MF
7660 --header | --heade | --head | --hea )
7661 $ac_shift
7662 case $ac_optarg in
7663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7664 esac
7665 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7666 ac_need_defaults=false;;
7667 --he | --h)
7668 # Conflict between --help and --header
7669 as_fn_error $? "ambiguous option: \`$1'
7670Try \`$0 --help' for more information.";;
7671 --help | --hel | -h )
81ecdfbb 7672 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
7673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7674 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7675 ac_cs_silent=: ;;
7676
7677 # This is an error.
d0ac1c44 7678 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 7679Try \`$0 --help' for more information." ;;
b7026657 7680
81ecdfbb
RW
7681 *) as_fn_append ac_config_targets " $1"
7682 ac_need_defaults=false ;;
b7026657
AC
7683
7684 esac
7685 shift
c906108c 7686done
b7026657
AC
7687
7688ac_configure_extra_args=
7689
7690if $ac_cs_silent; then
7691 exec 6>/dev/null
7692 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 7693fi
c906108c 7694
b7026657 7695_ACEOF
81ecdfbb 7696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 7697if \$ac_cs_recheck; then
d0ac1c44 7698 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
7699 shift
7700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7701 CONFIG_SHELL='$SHELL'
7702 export CONFIG_SHELL
7703 exec "\$@"
b7026657 7704fi
c906108c 7705
b7026657 7706_ACEOF
81ecdfbb
RW
7707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7708exec 5>>config.log
7709{
7710 echo
7711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7712## Running $as_me. ##
7713_ASBOX
7714 $as_echo "$ac_log"
7715} >&5
b7026657 7716
81ecdfbb
RW
7717_ACEOF
7718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
7719#
7720# INIT-COMMANDS
7721#
7722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7723
81ecdfbb 7724_ACEOF
b7026657 7725
81ecdfbb 7726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 7727
81ecdfbb 7728# Handling of arguments.
b7026657
AC
7729for ac_config_target in $ac_config_targets
7730do
81ecdfbb 7731 case $ac_config_target in
b15c5d7a 7732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6bddc3e8 7733 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3f8414df 7734 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
81ecdfbb
RW
7735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7736
d0ac1c44 7737 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 7738 esac
b7026657 7739done
c906108c 7740
81ecdfbb 7741
b7026657
AC
7742# If the user did not use the arguments to specify the items to instantiate,
7743# then the envvar interface is used. Set only those that are not.
7744# We use the long form for the default assignment because of an extremely
7745# bizarre bug on SunOS 4.1.3.
7746if $ac_need_defaults; then
7747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 7748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 7749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 7750fi
c906108c 7751
b7026657 7752# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 7753# simply because there is no reason against having it here, and in addition,
b7026657 7754# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
7755# Hook for its removal unless debugging.
7756# Note that there is a small window in which the directory will not be cleaned:
7757# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
7758$debug ||
7759{
d0ac1c44 7760 tmp= ac_tmp=
81ecdfbb 7761 trap 'exit_status=$?
d0ac1c44
SM
7762 : "${ac_tmp:=$tmp}"
7763 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
7764' 0
7765 trap 'as_fn_exit 1' 1 2 13 15
b7026657 7766}
b7026657
AC
7767# Create a (secure) tmp directory for tmp files.
7768
7769{
81ecdfbb 7770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 7771 test -d "$tmp"
b7026657
AC
7772} ||
7773{
81ecdfbb
RW
7774 tmp=./conf$$-$RANDOM
7775 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
7776} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7777ac_tmp=$tmp
81ecdfbb
RW
7778
7779# Set up the scripts for CONFIG_FILES section.
7780# No need to generate them if there are no CONFIG_FILES.
7781# This happens for instance with `./config.status config.h'.
7782if test -n "$CONFIG_FILES"; then
7783
7784
7785ac_cr=`echo X | tr X '\015'`
7786# On cygwin, bash can eat \r inside `` if the user requested igncr.
7787# But we know of no other shell where ac_cr would be empty at this
7788# point, so we can use a bashism as a fallback.
7789if test "x$ac_cr" = x; then
7790 eval ac_cr=\$\'\\r\'
7791fi
7792ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7793if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 7794 ac_cs_awk_cr='\\r'
81ecdfbb
RW
7795else
7796 ac_cs_awk_cr=$ac_cr
7797fi
7798
d0ac1c44 7799echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
7800_ACEOF
7801
7802
7803{
7804 echo "cat >conf$$subs.awk <<_ACEOF" &&
7805 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7806 echo "_ACEOF"
7807} >conf$$subs.sh ||
d0ac1c44
SM
7808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7809ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
7810ac_delim='%!_!# '
7811for ac_last_try in false false false false false :; do
7812 . ./conf$$subs.sh ||
d0ac1c44 7813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
7814
7815 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7816 if test $ac_delim_n = $ac_delim_num; then
7817 break
7818 elif $ac_last_try; then
d0ac1c44 7819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
7820 else
7821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7822 fi
7823done
7824rm -f conf$$subs.sh
7825
7826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 7827cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
7828_ACEOF
7829sed -n '
7830h
7831s/^/S["/; s/!.*/"]=/
7832p
7833g
7834s/^[^!]*!//
7835:repl
7836t repl
7837s/'"$ac_delim"'$//
7838t delim
7839:nl
7840h
d0ac1c44 7841s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
7842t more1
7843s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7844p
7845n
7846b repl
7847:more1
7848s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7849p
7850g
7851s/.\{148\}//
7852t nl
7853:delim
7854h
d0ac1c44 7855s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
7856t more2
7857s/["\\]/\\&/g; s/^/"/; s/$/"/
7858p
7859b
7860:more2
7861s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7862p
7863g
7864s/.\{148\}//
7865t delim
7866' <conf$$subs.awk | sed '
7867/^[^""]/{
7868 N
7869 s/\n//
7870}
7871' >>$CONFIG_STATUS || ac_write_fail=1
7872rm -f conf$$subs.awk
7873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7874_ACAWK
d0ac1c44 7875cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
7876 for (key in S) S_is_set[key] = 1
7877 FS = "\a"
7878
7879}
b7026657 7880{
81ecdfbb
RW
7881 line = $ 0
7882 nfields = split(line, field, "@")
7883 substed = 0
7884 len = length(field[1])
7885 for (i = 2; i < nfields; i++) {
7886 key = field[i]
7887 keylen = length(key)
7888 if (S_is_set[key]) {
7889 value = S[key]
7890 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7891 len += length(value) + length(field[++i])
7892 substed = 1
7893 } else
7894 len += 1 + keylen
7895 }
7896
7897 print line
b7026657
AC
7898}
7899
81ecdfbb
RW
7900_ACAWK
7901_ACEOF
7902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7903if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7904 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7905else
7906 cat
d0ac1c44
SM
7907fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7908 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
7909_ACEOF
7910
d0ac1c44
SM
7911# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7912# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
7913# trailing colons and then remove the whole line if VPATH becomes empty
7914# (actually we leave an empty line to preserve line numbers).
7915if test "x$srcdir" = x.; then
d0ac1c44
SM
7916 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7917h
7918s///
7919s/^/:/
7920s/[ ]*$/:/
7921s/:\$(srcdir):/:/g
7922s/:\${srcdir}:/:/g
7923s/:@srcdir@:/:/g
7924s/^:*//
81ecdfbb 7925s/:*$//
d0ac1c44
SM
7926x
7927s/\(=[ ]*\).*/\1/
7928G
7929s/\n//
81ecdfbb
RW
7930s/^[^=]*=[ ]*$//
7931}'
7932fi
fdd6fa61 7933
81ecdfbb
RW
7934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7935fi # test -n "$CONFIG_FILES"
b7026657 7936
b15c5d7a
MF
7937# Set up the scripts for CONFIG_HEADERS section.
7938# No need to generate them if there are no CONFIG_HEADERS.
7939# This happens for instance with `./config.status Makefile'.
7940if test -n "$CONFIG_HEADERS"; then
7941cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7942BEGIN {
7943_ACEOF
7944
7945# Transform confdefs.h into an awk script `defines.awk', embedded as
7946# here-document in config.status, that substitutes the proper values into
7947# config.h.in to produce config.h.
7948
7949# Create a delimiter string that does not exist in confdefs.h, to ease
7950# handling of long lines.
7951ac_delim='%!_!# '
7952for ac_last_try in false false :; do
7953 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7954 if test -z "$ac_tt"; then
7955 break
7956 elif $ac_last_try; then
7957 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7958 else
7959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7960 fi
7961done
7962
7963# For the awk script, D is an array of macro values keyed by name,
7964# likewise P contains macro parameters if any. Preserve backslash
7965# newline sequences.
7966
7967ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7968sed -n '
7969s/.\{148\}/&'"$ac_delim"'/g
7970t rset
7971:rset
7972s/^[ ]*#[ ]*define[ ][ ]*/ /
7973t def
7974d
7975:def
7976s/\\$//
7977t bsnl
7978s/["\\]/\\&/g
7979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7980D["\1"]=" \3"/p
7981s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7982d
7983:bsnl
7984s/["\\]/\\&/g
7985s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7986D["\1"]=" \3\\\\\\n"\\/p
7987t cont
7988s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7989t cont
7990d
7991:cont
7992n
7993s/.\{148\}/&'"$ac_delim"'/g
7994t clear
7995:clear
7996s/\\$//
7997t bsnlc
7998s/["\\]/\\&/g; s/^/"/; s/$/"/p
7999d
8000:bsnlc
8001s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8002b cont
8003' <confdefs.h | sed '
8004s/'"$ac_delim"'/"\\\
8005"/g' >>$CONFIG_STATUS || ac_write_fail=1
8006
8007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8008 for (key in D) D_is_set[key] = 1
8009 FS = "\a"
8010}
8011/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8012 line = \$ 0
8013 split(line, arg, " ")
8014 if (arg[1] == "#") {
8015 defundef = arg[2]
8016 mac1 = arg[3]
8017 } else {
8018 defundef = substr(arg[1], 2)
8019 mac1 = arg[2]
8020 }
8021 split(mac1, mac2, "(") #)
8022 macro = mac2[1]
8023 prefix = substr(line, 1, index(line, defundef) - 1)
8024 if (D_is_set[macro]) {
8025 # Preserve the white space surrounding the "#".
8026 print prefix "define", macro P[macro] D[macro]
8027 next
8028 } else {
8029 # Replace #undef with comments. This is necessary, for example,
8030 # in the case of _POSIX_SOURCE, which is predefined and required
8031 # on some systems where configure will not decide to define it.
8032 if (defundef == "undef") {
8033 print "/*", prefix defundef, macro, "*/"
8034 next
8035 }
8036 }
8037}
8038{ print }
8039_ACAWK
8040_ACEOF
8041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8042 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8043fi # test -n "$CONFIG_HEADERS"
b7026657 8044
b15c5d7a
MF
8045
8046eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
8047shift
8048for ac_tag
8049do
8050 case $ac_tag in
8051 :[FHLC]) ac_mode=$ac_tag; continue;;
8052 esac
8053 case $ac_mode$ac_tag in
8054 :[FHL]*:*);;
d0ac1c44 8055 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
8056 :[FH]-) ac_tag=-:-;;
8057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8058 esac
8059 ac_save_IFS=$IFS
8060 IFS=:
8061 set x $ac_tag
8062 IFS=$ac_save_IFS
8063 shift
8064 ac_file=$1
8065 shift
b7026657 8066
81ecdfbb
RW
8067 case $ac_mode in
8068 :L) ac_source=$1;;
8069 :[FH])
8070 ac_file_inputs=
8071 for ac_f
8072 do
8073 case $ac_f in
d0ac1c44 8074 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
8075 *) # Look for the file first in the build tree, then in the source tree
8076 # (if the path is not absolute). The absolute path cannot be DOS-style,
8077 # because $ac_f cannot contain `:'.
8078 test -f "$ac_f" ||
8079 case $ac_f in
8080 [\\/$]*) false;;
8081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8082 esac ||
d0ac1c44 8083 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
8084 esac
8085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8086 as_fn_append ac_file_inputs " '$ac_f'"
8087 done
8088
8089 # Let's still pretend it is `configure' which instantiates (i.e., don't
8090 # use $as_me), people would be surprised to read:
8091 # /* config.h. Generated by config.status. */
8092 configure_input='Generated from '`
8093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8094 `' by configure.'
8095 if test x"$ac_file" != x-; then
8096 configure_input="$ac_file. $configure_input"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8098$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 8099 fi
81ecdfbb
RW
8100 # Neutralize special characters interpreted by sed in replacement strings.
8101 case $configure_input in #(
8102 *\&* | *\|* | *\\* )
8103 ac_sed_conf_input=`$as_echo "$configure_input" |
8104 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8105 *) ac_sed_conf_input=$configure_input;;
8106 esac
df1756f4 8107
81ecdfbb 8108 case $ac_tag in
d0ac1c44
SM
8109 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
8111 esac
8112 ;;
df1756f4
TG
8113 esac
8114
81ecdfbb 8115 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
8116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8117 X"$ac_file" : 'X\(//\)[^/]' \| \
8118 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
8119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8120$as_echo X"$ac_file" |
8121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8122 s//\1/
8123 q
8124 }
8125 /^X\(\/\/\)[^/].*/{
8126 s//\1/
8127 q
8128 }
8129 /^X\(\/\/\)$/{
8130 s//\1/
8131 q
8132 }
8133 /^X\(\/\).*/{
8134 s//\1/
8135 q
8136 }
8137 s/.*/./; q'`
8138 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
8139 ac_builddir=.
8140
81ecdfbb
RW
8141case "$ac_dir" in
8142.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8143*)
8144 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8145 # A ".." for each directory in $ac_dir_suffix.
8146 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8147 case $ac_top_builddir_sub in
8148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8150 esac ;;
8151esac
8152ac_abs_top_builddir=$ac_pwd
8153ac_abs_builddir=$ac_pwd$ac_dir_suffix
8154# for backward compatibility:
8155ac_top_builddir=$ac_top_build_prefix
b7026657
AC
8156
8157case $srcdir in
81ecdfbb 8158 .) # We are building in place.
b7026657 8159 ac_srcdir=.
81ecdfbb
RW
8160 ac_top_srcdir=$ac_top_builddir_sub
8161 ac_abs_top_srcdir=$ac_pwd ;;
8162 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 8163 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
8164 ac_top_srcdir=$srcdir
8165 ac_abs_top_srcdir=$srcdir ;;
8166 *) # Relative name.
8167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8168 ac_top_srcdir=$ac_top_build_prefix$srcdir
8169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 8170esac
81ecdfbb 8171ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 8172
b7026657 8173
81ecdfbb
RW
8174 case $ac_mode in
8175 :F)
8176 #
8177 # CONFIG_FILE
8178 #
c906108c 8179
b7026657
AC
8180 case $INSTALL in
8181 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 8182 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 8183 esac
6bddc3e8
MF
8184 ac_MKDIR_P=$MKDIR_P
8185 case $MKDIR_P in
8186 [\\/$]* | ?:[\\/]* ) ;;
8187 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8188 esac
81ecdfbb 8189_ACEOF
c906108c 8190
81ecdfbb
RW
8191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8192# If the template does not know about datarootdir, expand it.
8193# FIXME: This hack should be removed a few years after 2.60.
8194ac_datarootdir_hack=; ac_datarootdir_seen=
8195ac_sed_dataroot='
8196/datarootdir/ {
8197 p
8198 q
8199}
8200/@datadir@/p
8201/@docdir@/p
8202/@infodir@/p
8203/@localedir@/p
8204/@mandir@/p'
8205case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8206*datarootdir*) ac_datarootdir_seen=yes;;
8207*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8209$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8210_ACEOF
8211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8212 ac_datarootdir_hack='
8213 s&@datadir@&$datadir&g
8214 s&@docdir@&$docdir&g
8215 s&@infodir@&$infodir&g
8216 s&@localedir@&$localedir&g
8217 s&@mandir@&$mandir&g
8218 s&\\\${datarootdir}&$datarootdir&g' ;;
8219esac
b7026657 8220_ACEOF
81ecdfbb
RW
8221
8222# Neutralize VPATH when `$srcdir' = `.'.
8223# Shell code in configure.ac might set extrasub.
8224# FIXME: do we really want to maintain this feature?
8225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8226ac_sed_extra="$ac_vpsub
b7026657
AC
8227$extrasub
8228_ACEOF
81ecdfbb 8229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
8230:t
8231/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
8232s|@configure_input@|$ac_sed_conf_input|;t t
8233s&@top_builddir@&$ac_top_builddir_sub&;t t
8234s&@top_build_prefix@&$ac_top_build_prefix&;t t
8235s&@srcdir@&$ac_srcdir&;t t
8236s&@abs_srcdir@&$ac_abs_srcdir&;t t
8237s&@top_srcdir@&$ac_top_srcdir&;t t
8238s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8239s&@builddir@&$ac_builddir&;t t
8240s&@abs_builddir@&$ac_abs_builddir&;t t
8241s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8242s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 8243s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
8244$ac_datarootdir_hack
8245"
d0ac1c44
SM
8246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8247 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
8248
8249test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
8250 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8252 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 8254which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 8255$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 8256which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 8257
d0ac1c44 8258 rm -f "$ac_tmp/stdin"
81ecdfbb 8259 case $ac_file in
d0ac1c44
SM
8260 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8261 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 8262 esac \
d0ac1c44 8263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 8264 ;;
b15c5d7a
MF
8265 :H)
8266 #
8267 # CONFIG_HEADER
8268 #
8269 if test x"$ac_file" != x-; then
8270 {
8271 $as_echo "/* $configure_input */" \
8272 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8273 } >"$ac_tmp/config.h" \
8274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8275 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8277$as_echo "$as_me: $ac_file is unchanged" >&6;}
8278 else
8279 rm -f "$ac_file"
8280 mv "$ac_tmp/config.h" "$ac_file" \
8281 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8282 fi
8283 else
8284 $as_echo "/* $configure_input */" \
8285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8286 || as_fn_error $? "could not create -" "$LINENO" 5
8287 fi
8288# Compute "$ac_file"'s index in $config_headers.
8289_am_arg="$ac_file"
8290_am_stamp_count=1
8291for _am_header in $config_headers :; do
8292 case $_am_header in
8293 $_am_arg | $_am_arg:* )
8294 break ;;
8295 * )
8296 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8297 esac
8298done
8299echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8300$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8301 X"$_am_arg" : 'X\(//\)[^/]' \| \
8302 X"$_am_arg" : 'X\(//\)$' \| \
8303 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8304$as_echo X"$_am_arg" |
8305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8306 s//\1/
8307 q
8308 }
8309 /^X\(\/\/\)[^/].*/{
8310 s//\1/
8311 q
8312 }
8313 /^X\(\/\/\)$/{
8314 s//\1/
8315 q
8316 }
8317 /^X\(\/\).*/{
8318 s//\1/
8319 q
8320 }
8321 s/.*/./; q'`/stamp-h$_am_stamp_count
8322 ;;
df1756f4 8323
6bddc3e8
MF
8324 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8325$as_echo "$as_me: executing $ac_file commands" >&6;}
8326 ;;
8327 esac
8328
c906108c 8329
6bddc3e8
MF
8330 case $ac_file$ac_mode in
8331 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8332 # Older Autoconf quotes --file arguments for eval, but not when files
8333 # are listed without --file. Let's play safe and only enable the eval
8334 # if we detect the quoting.
8335 case $CONFIG_FILES in
8336 *\'*) eval set x "$CONFIG_FILES" ;;
8337 *) set x $CONFIG_FILES ;;
81ecdfbb 8338 esac
6bddc3e8
MF
8339 shift
8340 for mf
8341 do
8342 # Strip MF so we end up with the name of the file.
8343 mf=`echo "$mf" | sed -e 's/:.*$//'`
8344 # Check whether this is an Automake generated Makefile or not.
8345 # We used to match only the files named 'Makefile.in', but
8346 # some people rename them; so instead we look at the file content.
8347 # Grep'ing the first line is not enough: some people post-process
8348 # each Makefile.in and add a new line on top of each file to say so.
8349 # Grep'ing the whole file is not good either: AIX grep has a line
8350 # limit of 2048, but all sed's we know have understand at least 4000.
8351 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8352 dirpart=`$as_dirname -- "$mf" ||
8353$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8354 X"$mf" : 'X\(//\)[^/]' \| \
8355 X"$mf" : 'X\(//\)$' \| \
8356 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8357$as_echo X"$mf" |
8358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8359 s//\1/
8360 q
8361 }
8362 /^X\(\/\/\)[^/].*/{
8363 s//\1/
8364 q
8365 }
8366 /^X\(\/\/\)$/{
8367 s//\1/
8368 q
8369 }
8370 /^X\(\/\).*/{
8371 s//\1/
8372 q
8373 }
8374 s/.*/./; q'`
8375 else
8376 continue
8377 fi
8378 # Extract the definition of DEPDIR, am__include, and am__quote
8379 # from the Makefile without running 'make'.
8380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8381 test -z "$DEPDIR" && continue
8382 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8383 test -z "$am__include" && continue
8384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8385 # Find all dependency output files, they are included files with
8386 # $(DEPDIR) in their names. We invoke sed twice because it is the
8387 # simplest approach to changing $(DEPDIR) to its actual value in the
8388 # expansion.
8389 for file in `sed -n "
8390 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8391 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8392 # Make sure the directory exists.
8393 test -f "$dirpart/$file" && continue
8394 fdir=`$as_dirname -- "$file" ||
8395$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8396 X"$file" : 'X\(//\)[^/]' \| \
8397 X"$file" : 'X\(//\)$' \| \
8398 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8399$as_echo X"$file" |
8400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8401 s//\1/
8402 q
8403 }
8404 /^X\(\/\/\)[^/].*/{
8405 s//\1/
8406 q
8407 }
8408 /^X\(\/\/\)$/{
8409 s//\1/
8410 q
8411 }
8412 /^X\(\/\).*/{
8413 s//\1/
8414 q
8415 }
8416 s/.*/./; q'`
8417 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8418 # echo "creating $dirpart/$file"
8419 echo '# dummy' > "$dirpart/$file"
8420 done
8421 done
8422}
8423 ;;
81ecdfbb 8424
6bddc3e8 8425 esac
81ecdfbb
RW
8426done # for ac_tag
8427
8428
8429as_fn_exit 0
b7026657 8430_ACEOF
b7026657
AC
8431ac_clean_files=$ac_clean_files_save
8432
81ecdfbb 8433test $ac_write_fail = 0 ||
d0ac1c44 8434 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 8435
b7026657
AC
8436
8437# configure is writing to config.log, and then calls config.status.
8438# config.status does its own redirection, appending to config.log.
8439# Unfortunately, on DOS this fails, as config.log is still kept open
8440# by configure, so config.status won't be able to write to it; its
8441# output is simply discarded. So we exec the FD to /dev/null,
8442# effectively closing config.log, so it can be properly (re)opened and
8443# appended to by config.status. When coming back to configure, we
8444# need to make the FD available again.
8445if test "$no_create" != yes; then
8446 ac_cs_success=:
8447 ac_config_status_args=
8448 test "$silent" = yes &&
8449 ac_config_status_args="$ac_config_status_args --quiet"
8450 exec 5>/dev/null
8451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8452 exec 5>>config.log
8453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8454 # would make configure fail if this is the last instruction.
d0ac1c44 8455 $ac_cs_success || as_fn_exit 1
b7026657 8456fi
c906108c 8457
b7026657 8458#
81ecdfbb 8459# CONFIG_SUBDIRS section.
b7026657 8460#
c906108c
SS
8461if test "$no_recursion" != yes; then
8462
81ecdfbb
RW
8463 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8464 # so they do not pile up.
c906108c
SS
8465 ac_sub_configure_args=
8466 ac_prev=
d6416cdc
RW
8467 eval "set x $ac_configure_args"
8468 shift
8469 for ac_arg
8470 do
c906108c
SS
8471 if test -n "$ac_prev"; then
8472 ac_prev=
8473 continue
8474 fi
b7026657 8475 case $ac_arg in
c906108c
SS
8476 -cache-file | --cache-file | --cache-fil | --cache-fi \
8477 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8478 ac_prev=cache_file ;;
8479 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
8480 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8481 | --c=*)
8482 ;;
8483 --config-cache | -C)
c906108c
SS
8484 ;;
8485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8486 ac_prev=srcdir ;;
8487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8488 ;;
b7026657
AC
8489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8490 ac_prev=prefix ;;
8491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8492 ;;
81ecdfbb
RW
8493 --disable-option-checking)
8494 ;;
d6416cdc
RW
8495 *)
8496 case $ac_arg in
81ecdfbb 8497 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 8498 esac
81ecdfbb 8499 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
8500 esac
8501 done
8502
b7026657
AC
8503 # Always prepend --prefix to ensure using the same prefix
8504 # in subdir configurations.
d6416cdc
RW
8505 ac_arg="--prefix=$prefix"
8506 case $ac_arg in
81ecdfbb 8507 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 8508 esac
81ecdfbb
RW
8509 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8510
8511 # Pass --silent
8512 if test "$silent" = yes; then
8513 ac_sub_configure_args="--silent $ac_sub_configure_args"
8514 fi
8515
8516 # Always prepend --disable-option-checking to silence warnings, since
8517 # different subdirs can have different --enable and --with options.
8518 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
8519
8520 ac_popdir=`pwd`
8521 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
8522
8523 # Do not complain, so a configure script can configure whichever
8524 # parts of a large source tree are present.
d6416cdc 8525 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 8526
81ecdfbb
RW
8527 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8529 $as_echo "$ac_msg" >&6
8530 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
8531 ac_builddir=.
8532
81ecdfbb
RW
8533case "$ac_dir" in
8534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8535*)
8536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8537 # A ".." for each directory in $ac_dir_suffix.
8538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8539 case $ac_top_builddir_sub in
8540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8542 esac ;;
8543esac
8544ac_abs_top_builddir=$ac_pwd
8545ac_abs_builddir=$ac_pwd$ac_dir_suffix
8546# for backward compatibility:
8547ac_top_builddir=$ac_top_build_prefix
c906108c 8548
b7026657 8549case $srcdir in
81ecdfbb 8550 .) # We are building in place.
b7026657 8551 ac_srcdir=.
81ecdfbb
RW
8552 ac_top_srcdir=$ac_top_builddir_sub
8553 ac_abs_top_srcdir=$ac_pwd ;;
8554 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 8555 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
8556 ac_top_srcdir=$srcdir
8557 ac_abs_top_srcdir=$srcdir ;;
8558 *) # Relative name.
8559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8560 ac_top_srcdir=$ac_top_build_prefix$srcdir
8561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 8562esac
81ecdfbb 8563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 8564
c906108c 8565
d6416cdc 8566 cd "$ac_dir"
c906108c
SS
8567
8568 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
8569 if test -f "$ac_srcdir/configure.gnu"; then
8570 ac_sub_configure=$ac_srcdir/configure.gnu
8571 elif test -f "$ac_srcdir/configure"; then
8572 ac_sub_configure=$ac_srcdir/configure
8573 elif test -f "$ac_srcdir/configure.in"; then
8574 # This should be Cygnus configure.
8575 ac_sub_configure=$ac_aux_dir/configure
c906108c 8576 else
81ecdfbb
RW
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8578$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
8579 ac_sub_configure=
8580 fi
8581
8582 # The recursion is here.
8583 if test -n "$ac_sub_configure"; then
c906108c 8584 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
8585 case $cache_file in
8586 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
8587 *) # Relative name.
8588 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 8589 esac
c906108c 8590
81ecdfbb
RW
8591 { $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
8592$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 8593 # The eval makes quoting arguments work.
d6416cdc
RW
8594 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8595 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 8596 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
8597 fi
8598
d6416cdc 8599 cd "$ac_popdir"
c906108c
SS
8600 done
8601fi
81ecdfbb
RW
8602if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8604$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8605fi
c906108c 8606