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