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