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