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