2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test 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
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
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 :
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
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.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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."
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."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
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
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
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.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
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.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
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. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
699 program_transform_name
712 enable_option_checking
714 enable_maintainer_mode
725 enable_sim_hostendian
726 enable_sim_default_model
727 enable_sim_environment
729 enable_build_warnings
730 enable_sim_build_warnings
733 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 ac_unrecognized_opts
=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
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.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
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 ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
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 ;;
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
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=no
;;
867 -docdir |
--docdir |
--docdi |
--doc |
--do)
869 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
872 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
874 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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
888 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep
=', ';;
891 eval enable_
$ac_useropt=\
$ac_optarg ;;
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 ;;
902 -gas |
--gas |
--ga |
--g)
903 # Obsolete; use --with-gas.
906 -help |
--help |
--hel |
--he |
-h)
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
;;
913 -host |
--host |
--hos |
--ho)
914 ac_prev
=host_alias
;;
915 -host=* |
--host=* |
--hos=* |
--ho=*)
916 host_alias
=$ac_optarg ;;
918 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
920 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
922 htmldir
=$ac_optarg ;;
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 ;;
931 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
933 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
934 infodir
=$ac_optarg ;;
936 -libdir |
--libdir |
--libdi |
--libd)
938 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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 ;;
948 -localedir |
--localedir |
--localedi |
--localed |
--locale)
950 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
951 localedir
=$ac_optarg ;;
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 ;;
960 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
962 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
966 # Obsolete; use --without-fp.
969 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
970 |
--no-cr |
--no-c |
-n)
973 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
974 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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 ;;
986 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
988 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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 ;;
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 ;;
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 ;;
1022 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1024 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1025 pdfdir
=$ac_optarg ;;
1027 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1029 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1032 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1033 |
-silent |
--silent |
--silen |
--sile |
--sil)
1036 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1038 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1040 sbindir
=$ac_optarg ;;
1042 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1043 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1044 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1046 ac_prev
=sharedstatedir
;;
1047 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1048 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1049 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1051 sharedstatedir
=$ac_optarg ;;
1053 -site |
--site |
--sit)
1055 -site=* |
--site=* |
--sit=*)
1058 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1060 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1061 srcdir
=$ac_optarg ;;
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 ;;
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 ;;
1075 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1078 -version |
--version |
--versio |
--versi |
--vers |
-V)
1079 ac_init_version
=: ;;
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
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval with_
$ac_useropt=\
$ac_optarg ;;
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
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval with_
$ac_useropt=no
;;
1114 # Obsolete; use --with-x.
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 ;;
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 ;;
1131 -*) as_fn_error
"unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information."
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'" ;;
1142 eval $ac_envvar=\
$ac_optarg
1143 export $ac_envvar ;;
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}
1156 if test -n "$ac_prev"; then
1157 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error
"missing argument to $ac_option"
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1164 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 # Check all directory arguments for consistency.
1170 for 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
1175 eval ac_val
=\$
$ac_var
1176 # Remove trailing slashes.
1179 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\
$ac_val;;
1182 # Be sure to have absolute directory names.
1184 [\\/$
]* | ?
:[\\/]* ) continue;;
1185 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1187 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
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.
1195 target
=$target_alias
1197 # FIXME: To remove some day.
1198 if 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
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error
"working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error
"pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted
=no
1256 if 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"
1260 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1272 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for 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}
1282 # Report the --help message.
1284 if 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.
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
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 \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine 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]
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
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
]
1357 if test -n "$ac_init_help"; then
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.
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
1389 Some 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
>
1398 PKG_CONFIG path to pkg-config utility
1400 directories to add to pkg-config
's search path
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
1406 Use these variables to override the choices made by
`configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1409 Report bugs to the package provider.
1414 if 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"; } ||
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1439 .) # We are building in place.
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 ;;
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 ;;
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1473 generated by GNU Autoconf 2.64
1475 Copyright (C) 2009 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
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"
1495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1496 *) ac_try_echo
=$ac_try;;
1498 eval 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
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
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 :
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.
$ac_ext >&5
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1522 } # ac_fn_c_try_compile
1524 # ac_fn_c_try_cpp LINENO
1525 # ----------------------
1526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1530 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval 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
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
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
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
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
1566 ac_fn_c_check_header_mongrel ()
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; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
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; }
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 ac_header_compiler=yes
1590 ac_header_compiler=no
1592 rm -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; }
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; }
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1603 if ac_fn_c_try_cpp "$LINENO"; then :
1604 ac_header_preproc=yes
1606 ac_header_preproc=no
1608 rm -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; }
1612 # So? What about this header?
1613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
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;}
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;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 $as_echo_n "(cached) " >&6
1638 eval "$3=\$ac_header_compiler"
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 } # ac_fn_c_check_header_mongrel
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.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1658 *) ac_try_echo
=$ac_try;;
1660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
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;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=$ac_status
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;}
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.
1694 ac_fn_c_check_header_compile ()
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; }
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 $as_echo_n "(cached) " >&6
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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;}
1719 } # ac_fn_c_check_header_compile
1721 # ac_fn_c_try_link LINENO
1722 # -----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
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"
1730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1731 *) ac_try_echo
=$ac_try;;
1733 eval 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
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
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
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.
$ac_ext >&5
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
;}
1765 } # ac_fn_c_try_link
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func
()
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; }
1775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
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
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. */
1790 # include <limits.h>
1792 # include <assert.h>
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. */
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
1819 if ac_fn_c_try_link
"$LINENO"; then :
1824 rm -f core conftest.err conftest.
$ac_objext \
1825 conftest
$ac_exeext conftest.
$ac_ext
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
;}
1832 } # ac_fn_c_check_func
1833 cat >config.log
<<_ACEOF
1834 This file contains any messages produced by compilers while
1835 running configure, to aid debugging if configure makes a mistake.
1837 It was created by $as_me, which was
1838 generated by GNU Autoconf 2.64. Invocation command line was
1850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir
=.
1874 $as_echo "PATH: $as_dir"
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.
1898 ac_must_keep_next
=false
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)
1909 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
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.
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 ;;
1927 -* ) ac_must_keep_next
=true
;;
1930 as_fn_append ac_configure_args
" '$ac_arg'"
1935 { ac_configure_args0
=; unset ac_configure_args0
;}
1936 { ac_configure_args1
=; unset ac_configure_args1
;}
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.
1943 trap 'exit_status=$?
1944 # Save into config.log some information that might help in debugging.
1949 ## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##
1954 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 ## ----------------- ##
1988 ## Output variables. ##
1989 ## ----------------- ##
1992 for ac_var in $ac_subst_vars
1994 eval ac_val=\$$ac_var
1996 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -n "$ac_subst_files"; then
2004 ## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##
2009 for ac_var
in $ac_subst_files
2011 eval ac_val
=\$
$ac_var
2013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 $as_echo "$ac_var='\''$ac_val'\''"
2020 if test -s confdefs.h; then
2030 test "$ac_signal" != 0 &&
2031 $as_echo "$as_me: caught signal $ac_signal"
2032 $as_echo "$as_me: exit $exit_status"
2034 rm -f core *.core core.conftest.* &&
2035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038 for ac_signal
in 1 2 13 15; do
2039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2044 rm -f -r conftest
* confdefs.h
2046 $as_echo "/* confdefs.h */" > confdefs.h
2048 # Predefined preprocessor variables.
2050 cat >>confdefs.h
<<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2054 cat >>confdefs.h
<<_ACEOF
2055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2058 cat >>confdefs.h
<<_ACEOF
2059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 cat >>confdefs.h
<<_ACEOF
2063 #define PACKAGE_STRING "$PACKAGE_STRING"
2066 cat >>confdefs.h
<<_ACEOF
2067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2070 cat >>confdefs.h
<<_ACEOF
2071 #define PACKAGE_URL "$PACKAGE_URL"
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer an explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 ac_site_file1
=$CONFIG_SITE
2081 elif test "x$prefix" != xNONE
; then
2082 ac_site_file1
=$prefix/share
/config.site
2083 ac_site_file2
=$prefix/etc
/config.site
2085 ac_site_file1
=$ac_default_prefix/share
/config.site
2086 ac_site_file2
=$ac_default_prefix/etc
/config.site
2088 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
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
2099 if 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;}
2106 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2107 *) .
"./$cache_file";;
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2112 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116 # Check that the precious variables saved in the cache have kept the same
2118 ac_cache_corrupted
=false
2119 for 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
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
=: ;;
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
=: ;;
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
=:
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
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;}
2154 # Pass precious variables to config.status.
2155 if test "$ac_new_set" = set; then
2157 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158 *) ac_arg
=$ac_var=$ac_new_val ;;
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'" ;;
2166 if $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
2173 ## -------------------- ##
2174 ## Main body of script. ##
2175 ## -------------------- ##
2178 ac_cpp
='$CPP $CPPFLAGS'
2179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2184 # This file contains common code used by all simulators.
2186 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2187 # directory. It is intended to be invoked before any target specific stuff.
2188 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2189 # It is intended to be invoked last.
2191 # The simulator's configure.in should look like:
2193 # dnl Process this file with autoconf to produce a configure script.
2194 # AC_PREREQ(2.64)dnl
2195 # AC_INIT(Makefile.in)
2196 # sinclude(../common/aclocal.m4)
2200 # ... target specific stuff ...
2204 # Include global overrides and fixes for Autoconf.
2231 # _AC_CHECK_DECL_BODY
2232 # -------------------
2233 # Shell function body for AC_CHECK_DECL.
2234 # _AC_CHECK_DECL_BODY
2236 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
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.
2300 sim_inline
="-DDEFAULT_INLINE=0"
2337 # intl sister-directory configuration rules.
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.
2350 # Autoconf M4 include file defining utility macros for complex Canadian
2362 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2364 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
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.
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.
2377 # Backported from Autoconf 2.5x; can go away when and if
2378 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2383 # ACX_HAVE_GCC_FOR_TARGET
2384 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
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.
2391 # First try --with-build-time-tools, if specified.
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.
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.
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.
2411 # If we do not find a suitable binary, then try the user's path.
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.
2424 # AC_PROG_CPP_WERROR
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.
2431 # Sets the shell variable have_gnat to yes or no as appropriate, and
2432 # substitutes GNATBIND and GNATMAKE.
2459 ac_cpp
='$CPP $CPPFLAGS'
2460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2465 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC
="$CC" # Let the user override the test.
2474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir
=.
2479 for ac_exec_ext
in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 if test -n "$CC"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2494 $as_echo "$CC" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2502 if test -z "$ac_cv_prog_CC"; then
2504 # Extract the first word of "gcc", so it can be a program name with args.
2505 set dummy gcc
; ac_word
=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir
=.
2519 for ac_exec_ext
in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_CC
="gcc"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2532 if test -n "$ac_ct_CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2534 $as_echo "$ac_ct_CC" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2540 if test "x$ac_ct_CC" = x
; then
2543 case $cross_compiling:$ac_tool_warned in
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547 ac_tool_warned
=yes ;;
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2558 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC
="$CC" # Let the user override the test.
2567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir
=.
2572 for ac_exec_ext
in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587 $as_echo "$CC" >&6; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2596 if test -z "$CC"; then
2597 # Extract the first word of "cc", so it can be a program name with args.
2598 set dummy cc
; ac_word
=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC
="$CC" # Let the user override the test.
2608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir
=.
2613 for ac_exec_ext
in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616 ac_prog_rejected
=yes
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test $ac_prog_rejected = yes; then
2628 # We found a bogon in the path, so make sure we never use it.
2629 set dummy
$ac_cv_prog_CC
2631 if test $# != 0; then
2632 # We chose a different compiler from the bogus one.
2633 # However, it has the same basename, so the bogon will be chosen
2634 # first if we set CC to just the basename; use the full file name.
2636 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 for ac_prog
in cl.exe
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC
="$CC" # Let the user override the test.
2666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir
=.
2671 for ac_exec_ext
in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 if test -n "$CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686 $as_echo "$CC" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2693 test -n "$CC" && break
2696 if test -z "$CC"; then
2698 for ac_prog
in cl.exe
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy
$ac_prog; ac_word
=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_ac_ct_CC
="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2730 $as_echo "$ac_ct_CC" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2737 test -n "$ac_ct_CC" && break
2740 if test "x$ac_ct_CC" = x
; then
2743 case $cross_compiling:$ac_tool_warned in
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned
=yes ;;
2756 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758 as_fn_error
"no acceptable C compiler found in \$PATH
2759 See \`config.log' for more details." "$LINENO" 5; }
2761 # Provide some information about the compiler.
2762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2765 for ac_option
in --version -v -V -qversion; do
2766 { { ac_try
="$ac_compiler $ac_option >&5"
2768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2772 $as_echo "$ac_try_echo"; } >&5
2773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2775 if test -s conftest.err; then
2777 ... rest of stderr output deleted ...
2778 10q' conftest.err >conftest.er1
2779 cat conftest.er1 >&5
2780 rm -f conftest.er1 conftest.err
2782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; }
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2797 ac_clean_files_save=$ac_clean_files
2798 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2799 # Try to create an executable without -o first, disregard a.out.
2800 # It will help us diagnose broken compilers, and finding out an intuition
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2803 $as_echo_n "checking for C compiler default output file name... " >&6; }
2804 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2806 # The possible output files:
2807 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2810 for ac_file in $ac_files
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819 if { { ac_try="$ac_link_default"
2821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2822 *) ac_try_echo
=$ac_try;;
2824 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2825 $as_echo "$ac_try_echo"; } >&5
2826 (eval "$ac_link_default") 2>&5
2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; }; then :
2830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2835 for ac_file
in $ac_files ''
2837 test -f "$ac_file" ||
continue
2839 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2842 # We found the default executable, but exeext='' is most
2846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2848 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2860 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2866 $as_echo "$ac_file" >&6; }
2867 if test -z "$ac_file"; then :
2868 $as_echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.
$ac_ext >&5
2871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 { as_fn_set_status
77
2874 as_fn_error
"C compiler cannot create executables
2875 See \`config.log' for more details." "$LINENO" 5; }; }
2877 ac_exeext
=$ac_cv_exeext
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2882 $as_echo_n "checking whether the C compiler works... " >&6; }
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885 if { ac_try
='./$ac_file'
2886 { { case "(($ac_try" in
2887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_try") 2>&5
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }; }; then
2898 if test "$cross_compiling" = maybe; then
2901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error "cannot run C compiled programs.
2904 If you meant to cross compile
, use \
`--host'.
2905 See \`config.log
' for more details." "$LINENO" 5; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2910 $as_echo "yes" >&6; }
2912 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2913 ac_clean_files=$ac_clean_files_save
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2917 $as_echo_n "checking whether we are cross compiling... " >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2919 $as_echo "$cross_compiling" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2922 $as_echo_n "checking for suffix of executables... " >&6; }
2923 if { { ac_try="$ac_link"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_link") 2>&5
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
2934 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2935 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2938 for ac_file
in conftest.exe conftest conftest.
*; do
2939 test -f "$ac_file" ||
continue
2941 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2942 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." "$LINENO" 5; }
2953 rm -f conftest
$ac_cv_exeext
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2955 $as_echo "$ac_cv_exeext" >&6; }
2957 rm -f conftest.
$ac_ext
2958 EXEEXT
=$ac_cv_exeext
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2961 $as_echo_n "checking for suffix of object files... " >&6; }
2962 if test "${ac_cv_objext+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2976 rm -f conftest.o conftest.obj
2977 if { { ac_try
="$ac_compile"
2979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_compile") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error "cannot compute suffix of object files
: cannot compile
3003 See \
`config.log' for more details." "$LINENO" 5; }
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3008 $as_echo "$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3014 $as_echo_n "(cached) " >&6
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3030 if ac_fn_c_try_compile "$LINENO"; then :
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3041 if test $ac_compiler_gnu = yes; then
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3050 if test "${ac_cv_prog_cc_g+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3068 if ac_fn_c_try_compile "$LINENO"; then :
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 if ac_fn_c_try_compile "$LINENO"; then :
3086 ac_c_werror_flag=$ac_save_c_werror_flag
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 if ac_fn_c_try_compile "$LINENO"; then :
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_c_werror_flag=$ac_save_c_werror_flag
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3110 $as_echo "$ac_cv_prog_cc_g" >&6; }
3111 if test "$ac_test_CFLAGS" = set; then
3112 CFLAGS=$ac_save_CFLAGS
3113 elif test $ac_cv_prog_cc_g = yes; then
3114 if test "$GCC" = yes; then
3120 if test "$GCC" = yes; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3128 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 ac_cv_prog_cc_c89=no
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3137 #include <sys/types.h>
3138 #include <sys/stat.h>
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3153 s = g (p, va_arg (v,int));
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3172 int test (int i, double x);
3173 struct s1 {int (*f) (int a);};
3174 struct s2 {int (*f) (double a);};
3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3189 CC="$ac_save_CC $ac_arg"
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_c89=$ac_arg
3193 rm -f core conftest.err conftest.$ac_objext
3194 test "x$ac_cv_prog_cc_c89" != "xno" && break
3196 rm -f conftest.$ac_ext
3201 case "x$ac_cv_prog_cc_c89" in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3204 $as_echo "none needed" >&6; } ;;
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3207 $as_echo "unsupported" >&6; } ;;
3209 CC="$CC $ac_cv_prog_cc_c89"
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3213 if test "x$ac_cv_prog_cc_c89" != xno; then :
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3225 for ac_t in install-sh install.sh shtool; do
3226 if test -f "$ac_dir/$ac_t"; then
3228 ac_install_sh="$ac_aux_dir/$ac_t -c"
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3246 # Make sure we can run config.sub.
3247 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3248 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3251 $as_echo_n "checking build system type... " >&6; }
3252 if test "${ac_cv_build+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3255 ac_build_alias=$build_alias
3256 test "x$ac_build_alias" = x &&
3257 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3258 test "x$ac_build_alias" = x &&
3259 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3260 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3261 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3265 $as_echo "$ac_cv_build" >&6; }
3266 case $ac_cv_build in
3268 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3271 ac_save_IFS=$IFS; IFS='-'
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3281 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3285 $as_echo_n "checking host system type... " >&6; }
3286 if test "${ac_cv_host+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3289 if test "x$host_alias" = x; then
3290 ac_cv_host=$ac_cv_build
3292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3298 $as_echo "$ac_cv_host" >&6; }
3301 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3304 ac_save_IFS=$IFS; IFS='-'
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3314 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3318 $as_echo_n "checking target system type... " >&6; }
3319 if test "${ac_cv_target+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3322 if test "x$target_alias" = x; then
3323 ac_cv_target=$ac_cv_host
3325 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3326 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3331 $as_echo "$ac_cv_target" >&6; }
3332 case $ac_cv_target in
3334 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3336 target=$ac_cv_target
3337 ac_save_IFS=$IFS; IFS='-'
3343 # Remember, the first character of IFS is used to create $*,
3344 # except with old shells:
3347 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3350 # The aliases save the names the user supplied, while $host etc.
3351 # will get canonicalized.
3352 test -n "$target_alias" &&
3353 test "$program_prefix$program_suffix$program_transform_name" = \
3355 program_prefix=${target_alias}-
3356 test "$program_prefix" != NONE &&
3357 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3358 # Use a double $ so make ignores it.
3359 test "$program_suffix" != NONE &&
3360 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3361 # Double any \ or $.
3362 # By default was `s
,x
,x
', remove it if useless.
3363 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3364 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3366 # Find a good install program. We prefer a C program (faster),
3367 # so one script is as good as another. But avoid the broken or
3368 # incompatible versions:
3369 # SysV /etc/install, /usr/sbin/install
3370 # SunOS /usr/etc/install
3371 # IRIX /sbin/install
3373 # AmigaOS /C/install, which installs bootblocks on floppy discs
3374 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
3375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3377 # OS/2's system install, which has a completely different semantic
3378 # ./install, which can be erroneously created by make from ./install.sh.
3379 # Reject install programs that cannot install multiple files.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3381 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3382 if test -z "$INSTALL"; then
3383 if test "${ac_cv_path_install+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 # Account for people who put trailing slashes in PATH elements.
3392 case $as_dir/ in #((
3393 .
/ | .
// |
/[cC
]/* | \
3394 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3395 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3398 # OSF1 and SCO ODT 3.0 have their own names for install.
3399 # Don't use installbsd from OSF since it installs stuff as root
3401 for ac_prog
in ginstall scoinst
install; do
3402 for ac_exec_ext
in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3404 if test $ac_prog = install &&
3405 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3406 # AIX install. It has an incompatible calling convention.
3408 elif test $ac_prog = install &&
3409 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3410 # program-specific install script used by HP pwplus--don't use.
3413 rm -rf conftest.one conftest.two conftest.dir
3414 echo one
> conftest.one
3415 echo two
> conftest.two
3417 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3418 test -s conftest.one
&& test -s conftest.two
&&
3419 test -s conftest.dir
/conftest.one
&&
3420 test -s conftest.dir
/conftest.two
3422 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3435 rm -rf conftest.one conftest.two conftest.dir
3438 if test "${ac_cv_path_install+set}" = set; then
3439 INSTALL
=$ac_cv_path_install
3441 # As a last resort, use the slow shell script. Don't cache a
3442 # value for INSTALL within a source directory, because that will
3443 # break other packages using the cache if that directory is
3444 # removed, or if the value is a relative name.
3445 INSTALL
=$ac_install_sh
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3449 $as_echo "$INSTALL" >&6; }
3451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3452 # It thinks the first close brace ends the variable substitution.
3453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3457 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3461 ac_cpp
='$CPP $CPPFLAGS'
3462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3466 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3467 # On Suns, sometimes $CPP names a directory.
3468 if test -n "$CPP" && test -d "$CPP"; then
3471 if test -z "$CPP"; then
3472 if test "${ac_cv_prog_CPP+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3475 # Double quotes because CPP needs to be expanded
3476 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479 for ac_c_preproc_warn_flag
in '' yes
3481 # Use a header file that comes with gcc, so configuring glibc
3482 # with a fresh cross-compiler works.
3483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484 # <limits.h> exists even on freestanding compilers.
3485 # On the NeXT, cc -E runs the code through the compiler's parser,
3486 # not just through cpp. "Syntax error" is here to catch this case.
3487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3490 # include <limits.h>
3492 # include <assert.h>
3496 if ac_fn_c_try_cpp
"$LINENO"; then :
3499 # Broken: fails on valid input.
3502 rm -f conftest.err conftest.
$ac_ext
3504 # OK, works on sane cases. Now check whether nonexistent headers
3505 # can be detected and how.
3506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508 #include <ac_nonexistent.h>
3510 if ac_fn_c_try_cpp
"$LINENO"; then :
3511 # Broken: success on invalid input.
3514 # Passes both tests.
3518 rm -f conftest.err conftest.
$ac_ext
3521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522 rm -f conftest.err conftest.
$ac_ext
3523 if $ac_preproc_ok; then :
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3536 $as_echo "$CPP" >&6; }
3538 for ac_c_preproc_warn_flag
in '' yes
3540 # Use a header file that comes with gcc, so configuring glibc
3541 # with a fresh cross-compiler works.
3542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543 # <limits.h> exists even on freestanding compilers.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3549 # include <limits.h>
3551 # include <assert.h>
3555 if ac_fn_c_try_cpp
"$LINENO"; then :
3558 # Broken: fails on valid input.
3561 rm -f conftest.err conftest.
$ac_ext
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567 #include <ac_nonexistent.h>
3569 if ac_fn_c_try_cpp
"$LINENO"; then :
3570 # Broken: success on invalid input.
3573 # Passes both tests.
3577 rm -f conftest.err conftest.
$ac_ext
3580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3581 rm -f conftest.err conftest.
$ac_ext
3582 if $ac_preproc_ok; then :
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3588 See \`config.log' for more details." "$LINENO" 5; }
3592 ac_cpp
='$CPP $CPPFLAGS'
3593 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3599 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3600 if test "${ac_cv_path_GREP+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -z "$GREP"; then
3604 ac_path_GREP_found
=false
3605 # Loop through the user's path and test for each of PROGNAME-LIST
3606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3607 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3610 test -z "$as_dir" && as_dir
=.
3611 for ac_prog
in grep ggrep
; do
3612 for ac_exec_ext
in '' $ac_executable_extensions; do
3613 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3614 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3615 # Check for GNU ac_path_GREP and select it if it is found.
3616 # Check for GNU $ac_path_GREP
3617 case `"$ac_path_GREP" --version 2>&1` in
3619 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3622 $as_echo_n 0123456789 >"conftest.in"
3625 cat "conftest.in" "conftest.in" >"conftest.tmp"
3626 mv "conftest.tmp" "conftest.in"
3627 cp "conftest.in" "conftest.nl"
3628 $as_echo 'GREP' >> "conftest.nl"
3629 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3630 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3631 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3632 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3633 # Best one so far, save it but keep looking for a better one
3634 ac_cv_path_GREP
="$ac_path_GREP"
3635 ac_path_GREP_max
=$ac_count
3637 # 10*(2^10) chars as input seems more than enough
3638 test $ac_count -gt 10 && break
3640 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3643 $ac_path_GREP_found && break 3
3648 if test -z "$ac_cv_path_GREP"; then
3649 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3652 ac_cv_path_GREP
=$GREP
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3657 $as_echo "$ac_cv_path_GREP" >&6; }
3658 GREP
="$ac_cv_path_GREP"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3662 $as_echo_n "checking for egrep... " >&6; }
3663 if test "${ac_cv_path_EGREP+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3666 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3667 then ac_cv_path_EGREP
="$GREP -E"
3669 if test -z "$EGREP"; then
3670 ac_path_EGREP_found
=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3673 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3676 test -z "$as_dir" && as_dir
=.
3677 for ac_prog
in egrep; do
3678 for ac_exec_ext
in '' $ac_executable_extensions; do
3679 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3680 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3681 # Check for GNU ac_path_EGREP and select it if it is found.
3682 # Check for GNU $ac_path_EGREP
3683 case `"$ac_path_EGREP" --version 2>&1` in
3685 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3688 $as_echo_n 0123456789 >"conftest.in"
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 $as_echo 'EGREP' >> "conftest.nl"
3695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3696 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3697 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_EGREP
="$ac_path_EGREP"
3701 ac_path_EGREP_max
=$ac_count
3703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3706 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3709 $ac_path_EGREP_found && break 3
3714 if test -z "$ac_cv_path_EGREP"; then
3715 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3718 ac_cv_path_EGREP
=$EGREP
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3724 $as_echo "$ac_cv_path_EGREP" >&6; }
3725 EGREP
="$ac_cv_path_EGREP"
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3729 $as_echo_n "checking for ANSI C header files... " >&6; }
3730 if test "${ac_cv_header_stdc+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3748 if ac_fn_c_try_compile
"$LINENO"; then :
3749 ac_cv_header_stdc
=yes
3751 ac_cv_header_stdc
=no
3753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3755 if test $ac_cv_header_stdc = yes; then
3756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 $EGREP "memchr" >/dev
/null
2>&1; then :
3766 ac_cv_header_stdc
=no
3772 if test $ac_cv_header_stdc = yes; then
3773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 $EGREP "free" >/dev
/null
2>&1; then :
3783 ac_cv_header_stdc
=no
3789 if test $ac_cv_header_stdc = yes; then
3790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3791 if test "$cross_compiling" = yes; then :
3794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3798 #if ((' ' & 0x0FF) == 0x020)
3799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3802 # define ISLOWER(c) \
3803 (('a' <= (c) && (c) <= 'i') \
3804 || ('j' <= (c) && (c) <= 'r') \
3805 || ('s' <= (c) && (c) <= 'z'))
3806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3814 for (i = 0; i < 256; i++)
3815 if (XOR (islower (i), ISLOWER (i))
3816 || toupper (i) != TOUPPER (i))
3821 if ac_fn_c_try_run
"$LINENO"; then :
3824 ac_cv_header_stdc
=no
3826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3833 $as_echo "$ac_cv_header_stdc" >&6; }
3834 if test $ac_cv_header_stdc = yes; then
3836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3841 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3842 inttypes.h stdint.h unistd.h
3844 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3845 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3847 eval as_val
=\$
$as_ac_Header
3848 if test "x$as_val" = x
""yes; then :
3849 cat >>confdefs.h
<<_ACEOF
3850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860 # autoconf.info says this should be called right after AC_INIT.
3861 ac_config_headers
="$ac_config_headers config.h:config.in"
3867 # Put a plausible default for CC_FOR_BUILD in Makefile.
3868 if test "x$cross_compiling" = "xno"; then
3869 CC_FOR_BUILD
='$(CC)'
3879 if test -n "$ac_tool_prefix"; then
3880 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3881 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3887 if test -n "$RANLIB"; then
3888 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir
=.
3895 for ac_exec_ext
in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 RANLIB
=$ac_cv_prog_RANLIB
3908 if test -n "$RANLIB"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3910 $as_echo "$RANLIB" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3918 if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB
=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921 set dummy ranlib
; ac_word
=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3948 if test -n "$ac_ct_RANLIB"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3950 $as_echo "$ac_ct_RANLIB" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3956 if test "x$ac_ct_RANLIB" = x
; then
3959 case $cross_compiling:$ac_tool_warned in
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned
=yes ;;
3965 RANLIB
=$ac_ct_RANLIB
3968 RANLIB
="$ac_cv_prog_RANLIB"
3973 # If we haven't got the data from the intl directory,
3974 # assume NLS is disabled.
3983 if test -f ..
/..
/intl
/config.intl
; then
3984 . ..
/..
/intl
/config.intl
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3987 $as_echo_n "checking whether NLS is requested... " >&6; }
3988 if test x
"$USE_NLS" != xyes
; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3995 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3999 $as_echo_n "checking for catalogs to be installed... " >&6; }
4000 # Look for .po and .gmo files in the source directory.
4003 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4004 # If there aren't any .gmo files the shell will give us the
4005 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4007 case "$cat" in *\
**)
4010 # The quadruple backslash is collapsed to a double backslash
4011 # by the backticks, then collapsed again by the double quotes,
4012 # leaving us with one backslash in the sed expression (right
4013 # before the dot that mustn't act as a wildcard).
4014 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4015 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4016 # The user is allowed to set LINGUAS to a list of languages to
4017 # install catalogs for. If it's empty that means "all of them."
4018 if test "x$LINGUAS" = x
; then
4019 CATALOGS
="$CATALOGS $cat"
4020 XLINGUAS
="$XLINGUAS $lang"
4022 case "$LINGUAS" in *$lang*)
4023 CATALOGS
="$CATALOGS $cat"
4024 XLINGUAS
="$XLINGUAS $lang"
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4031 $as_echo "$LINGUAS" >&6; }
4044 # Check for common headers.
4045 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4046 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4047 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4049 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4051 eval as_val
=\$
$as_ac_Header
4052 if test "x$as_val" = x
""yes; then :
4053 cat >>confdefs.h
<<_ACEOF
4054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 for ac_header
in sys
/time.h sys
/resource.h
4063 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4064 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4065 eval 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
4075 for ac_header
in fcntl.h fpu_control.h
4077 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4079 eval 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
4089 for ac_header
in dlfcn.h errno.h sys
/stat.h
4091 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4092 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4093 eval 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
4103 for ac_func
in getrusage
time sigaction __setfpucw
4105 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4106 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4107 eval as_val
=\$
$as_ac_var
4108 if test "x$as_val" = x
""yes; then :
4109 cat >>confdefs.h
<<_ACEOF
4110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4117 # Check for socket libraries
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4119 $as_echo_n "checking for bind in -lsocket... " >&6; }
4120 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4123 ac_check_lib_save_LIBS
=$LIBS
4124 LIBS
="-lsocket $LIBS"
4125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4128 /* Override any GCC internal prototype to avoid an error.
4129 Use char because int might match the return type of a GCC
4130 builtin and then its argument prototype would still apply. */
4143 if ac_fn_c_try_link
"$LINENO"; then :
4144 ac_cv_lib_socket_bind
=yes
4146 ac_cv_lib_socket_bind
=no
4148 rm -f core conftest.err conftest.
$ac_objext \
4149 conftest
$ac_exeext conftest.
$ac_ext
4150 LIBS
=$ac_check_lib_save_LIBS
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4153 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4154 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4155 cat >>confdefs.h
<<_ACEOF
4156 #define HAVE_LIBSOCKET 1
4159 LIBS
="-lsocket $LIBS"
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4164 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4165 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4168 ac_check_lib_save_LIBS
=$LIBS
4170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4173 /* Override any GCC internal prototype to avoid an error.
4174 Use char because int might match the return type of a GCC
4175 builtin and then its argument prototype would still apply. */
4179 char gethostbyname ();
4183 return gethostbyname ();
4188 if ac_fn_c_try_link
"$LINENO"; then :
4189 ac_cv_lib_nsl_gethostbyname
=yes
4191 ac_cv_lib_nsl_gethostbyname
=no
4193 rm -f core conftest.err conftest.
$ac_objext \
4194 conftest
$ac_exeext conftest.
$ac_ext
4195 LIBS
=$ac_check_lib_save_LIBS
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4198 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4199 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4200 cat >>confdefs.h
<<_ACEOF
4201 #define HAVE_LIBNSL 1
4209 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4210 # using the same condition.
4212 # See if the user specified whether he wants zlib support or not.
4214 # Check whether --with-zlib was given.
4215 if test "${with_zlib+set}" = set; then :
4222 if test "$with_zlib" != "no"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4224 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4225 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4228 ac_func_search_save_LIBS
=$LIBS
4229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4232 /* Override any GCC internal prototype to avoid an error.
4233 Use char because int might match the return type of a GCC
4234 builtin and then its argument prototype would still apply. */
4238 char zlibVersion ();
4242 return zlibVersion ();
4247 for ac_lib
in '' z
; do
4248 if test -z "$ac_lib"; then
4249 ac_res
="none required"
4252 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4254 if ac_fn_c_try_link
"$LINENO"; then :
4255 ac_cv_search_zlibVersion
=$ac_res
4257 rm -f core conftest.err conftest.
$ac_objext \
4259 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4263 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4266 ac_cv_search_zlibVersion
=no
4269 LIBS
=$ac_func_search_save_LIBS
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4272 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4273 ac_res
=$ac_cv_search_zlibVersion
4274 if test "$ac_res" != no
; then :
4275 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4276 for ac_header
in zlib.h
4278 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4279 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4280 cat >>confdefs.h
<<_ACEOF
4281 #define HAVE_ZLIB_H 1
4290 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4291 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4296 .
${srcdir}/..
/..
/bfd
/configure.
host
4300 USE_MAINTAINER_MODE
=no
4301 # Check whether --enable-maintainer-mode was given.
4302 if test "${enable_maintainer_mode+set}" = set; then :
4303 enableval
=$enable_maintainer_mode; case "${enableval}" in
4304 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4306 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4308 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4309 echo "Setting maintainer mode" 6>&1
4317 # Check whether --enable-sim-bswap was given.
4318 if test "${enable_sim_bswap+set}" = set; then :
4319 enableval
=$enable_sim_bswap; case "${enableval}" in
4320 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4321 no
) sim_bswap
="-DWITH_BSWAP=0";;
4322 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4324 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4325 echo "Setting bswap flags = $sim_bswap" 6>&1
4333 # Check whether --enable-sim-cflags was given.
4334 if test "${enable_sim_cflags+set}" = set; then :
4335 enableval
=$enable_sim_cflags; case "${enableval}" in
4336 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4337 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4339 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4341 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4342 echo "Setting sim cflags = $sim_cflags" 6>&1
4350 # Check whether --enable-sim-debug was given.
4351 if test "${enable_sim_debug+set}" = set; then :
4352 enableval
=$enable_sim_debug; case "${enableval}" in
4353 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4354 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4355 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4357 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4358 echo "Setting sim debug = $sim_debug" 6>&1
4366 # Check whether --enable-sim-stdio was given.
4367 if test "${enable_sim_stdio+set}" = set; then :
4368 enableval
=$enable_sim_stdio; case "${enableval}" in
4369 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4370 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4371 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4373 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4374 echo "Setting stdio flags = $sim_stdio" 6>&1
4382 # Check whether --enable-sim-trace was given.
4383 if test "${enable_sim_trace+set}" = set; then :
4384 enableval
=$enable_sim_trace; case "${enableval}" in
4385 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4386 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4388 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4391 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4392 if test x
"$sim_trace" = x
; then
4393 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4395 sim_trace
="${sim_trace}|TRACE_$x"
4398 sim_trace
="$sim_trace)'" ;;
4400 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4401 echo "Setting sim trace = $sim_trace" 6>&1
4409 # Check whether --enable-sim-profile was given.
4410 if test "${enable_sim_profile+set}" = set; then :
4411 enableval
=$enable_sim_profile; case "${enableval}" in
4412 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4413 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4415 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4418 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4419 if test x
"$sim_profile" = x
; then
4420 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4422 sim_profile
="${sim_profile}|PROFILE_$x"
4425 sim_profile
="$sim_profile)'" ;;
4427 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4428 echo "Setting sim profile = $sim_profile" 6>&1
4431 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4437 # Check whether --with-pkgversion was given.
4438 if test "${with_pkgversion+set}" = set; then :
4439 withval
=$with_pkgversion; case "$withval" in
4440 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4442 *) PKGVERSION
="($withval) " ;;
4453 # Check whether --with-bugurl was given.
4454 if test "${with_bugurl+set}" = set; then :
4455 withval
=$with_bugurl; case "$withval" in
4456 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4459 *) BUGURL
="$withval"
4463 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4473 REPORT_BUGS_TO
="<$BUGURL>"
4474 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4481 cat >>confdefs.h
<<_ACEOF
4482 #define PKGVERSION "$PKGVERSION"
4486 cat >>confdefs.h
<<_ACEOF
4487 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4492 $as_echo_n "checking return type of signal handlers... " >&6; }
4493 if test "${ac_cv_type_signal+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <sys/types.h>
4504 return *(signal (0, 0)) (0) == 1;
4509 if ac_fn_c_try_compile
"$LINENO"; then :
4510 ac_cv_type_signal
=int
4512 ac_cv_type_signal
=void
4514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4517 $as_echo "$ac_cv_type_signal" >&6; }
4519 cat >>confdefs.h
<<_ACEOF
4520 #define RETSIGTYPE $ac_cv_type_signal
4530 sim_link_links
=tconfig.h
4531 if test -f ${srcdir}/tconfig.
in
4533 sim_link_files
=tconfig.
in
4535 sim_link_files
=..
/common
/tconfig.
in
4538 # targ-vals.def points to the libc macro description file.
4540 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4542 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4543 sim_link_links
="${sim_link_links} targ-vals.def"
4548 wire_endian
="LITTLE_ENDIAN"
4550 # Check whether --enable-sim-endian was given.
4551 if test "${enable_sim_endian+set}" = set; then :
4552 enableval
=$enable_sim_endian; case "${enableval}" in
4553 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4554 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4555 yes) if test x
"$wire_endian" != x
; then
4556 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4558 if test x
"$default_endian" != x
; then
4559 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4561 echo "No hard-wired endian for target $target" 1>&6
4562 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
4565 no
) if test x
"$default_endian" != x
; then
4566 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4568 if test x
"$wire_endian" != x
; then
4569 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4571 echo "No default endian for target $target" 1>&6
4572 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4575 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian
="";;
4577 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
4578 echo "Setting endian flags = $sim_endian" 6>&1
4581 if test x
"$default_endian" != x
; then
4582 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4584 if test x
"$wire_endian" != x
; then
4585 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4592 wire_alignment
="STRICT_ALIGNMENT"
4593 default_alignment
="STRICT_ALIGNMENT"
4595 # Check whether --enable-sim-alignment was given.
4596 if test "${enable_sim_alignment+set}" = set; then :
4597 enableval
=$enable_sim_alignment; case "${enableval}" in
4598 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4599 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4600 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4601 yes) if test x
"$wire_alignment" != x
; then
4602 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4604 if test x
"$default_alignment" != x
; then
4605 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4607 echo "No hard-wired alignment for target $target" 1>&6
4608 sim_alignment
="-DWITH_ALIGNMENT=0"
4611 no
) if test x
"$default_alignment" != x
; then
4612 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4614 if test x
"$wire_alignment" != x
; then
4615 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4617 echo "No default alignment for target $target" 1>&6
4618 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4621 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4623 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4624 echo "Setting alignment flags = $sim_alignment" 6>&1
4627 if test x
"$default_alignment" != x
; then
4628 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4630 if test x
"$wire_alignment" != x
; then
4631 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4639 # Check whether --enable-sim-hostendian was given.
4640 if test "${enable_sim_hostendian+set}" = set; then :
4641 enableval
=$enable_sim_hostendian; case "${enableval}" in
4642 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4643 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4644 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4645 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4647 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4648 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4652 if test "x$cross_compiling" = "xno"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4654 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4655 if test "${ac_cv_c_bigendian+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 ac_cv_c_bigendian
=unknown
4659 # See if we're dealing with a universal compiler.
4660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #ifndef __APPLE_CC__
4663 not a universal capable compiler
4668 if ac_fn_c_try_compile
"$LINENO"; then :
4670 # Check for potential -arch flags. It is not universal unless
4671 # there are at least two -arch flags with different values.
4674 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4675 if test -n "$ac_prev"; then
4677 i?
86 | x86_64 | ppc | ppc64
)
4678 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4681 ac_cv_c_bigendian
=universal
4687 elif test "x$ac_word" = "x-arch"; then
4692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4693 if test $ac_cv_c_bigendian = unknown
; then
4694 # See if sys/param.h defines the BYTE_ORDER macro.
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <sys/types.h>
4698 #include <sys/param.h>
4703 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4704 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4713 if ac_fn_c_try_compile
"$LINENO"; then :
4714 # It does; now see whether it defined to BIG_ENDIAN or not.
4715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <sys/types.h>
4718 #include <sys/param.h>
4723 #if BYTE_ORDER != BIG_ENDIAN
4731 if ac_fn_c_try_compile
"$LINENO"; then :
4732 ac_cv_c_bigendian
=yes
4734 ac_cv_c_bigendian
=no
4736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4740 if test $ac_cv_c_bigendian = unknown
; then
4741 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4749 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4757 if ac_fn_c_try_compile
"$LINENO"; then :
4758 # It does; now see whether it defined to _BIG_ENDIAN or not.
4759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4774 if ac_fn_c_try_compile
"$LINENO"; then :
4775 ac_cv_c_bigendian
=yes
4777 ac_cv_c_bigendian
=no
4779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4783 if test $ac_cv_c_bigendian = unknown
; then
4784 # Compile a test program.
4785 if test "$cross_compiling" = yes; then :
4786 # Try to guess by grepping values from an object file.
4787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 short int ascii_mm[] =
4790 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4791 short int ascii_ii[] =
4792 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4793 int use_ascii (int i) {
4794 return ascii_mm[i] + ascii_ii[i];
4796 short int ebcdic_ii[] =
4797 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4798 short int ebcdic_mm[] =
4799 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4800 int use_ebcdic (int i) {
4801 return ebcdic_mm[i] + ebcdic_ii[i];
4808 return use_ascii (foo) == use_ebcdic (foo);
4813 if ac_fn_c_try_compile
"$LINENO"; then :
4814 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4815 ac_cv_c_bigendian
=yes
4817 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4818 if test "$ac_cv_c_bigendian" = unknown
; then
4819 ac_cv_c_bigendian
=no
4821 # finding both strings is unlikely to happen, but who knows?
4822 ac_cv_c_bigendian
=unknown
4826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 $ac_includes_default
4835 /* Are we little or big endian? From Harbison&Steele. */
4839 char c[sizeof (long int)];
4842 return u.c[sizeof (long int) - 1] == 1;
4848 if ac_fn_c_try_run
"$LINENO"; then :
4849 ac_cv_c_bigendian
=no
4851 ac_cv_c_bigendian
=yes
4853 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4854 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4860 $as_echo "$ac_cv_c_bigendian" >&6; }
4861 case $ac_cv_c_bigendian in #(
4863 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4869 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4873 as_fn_error
"unknown endianness
4874 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4877 if test $ac_cv_c_bigendian = yes; then
4878 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4880 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4883 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4888 default_sim_default_model
="bf537"
4889 # Check whether --enable-sim-default-model was given.
4890 if test "${enable_sim_default_model+set}" = set; then :
4891 enableval
=$enable_sim_default_model; case "${enableval}" in
4892 yes|no
) as_fn_error
"\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
4893 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
4895 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
4896 echo "Setting default model = $sim_default_model" 6>&1
4899 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
4904 # Check whether --enable-sim-environment was given.
4905 if test "${enable_sim_environment+set}" = set; then :
4906 enableval
=$enable_sim_environment; case "${enableval}" in
4907 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
4908 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
4909 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
4910 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
4911 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
4912 sim_environment
="";;
4914 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
4915 echo "Setting sim environment = $sim_environment" 6>&1
4918 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
4922 default_sim_inline
=""
4923 # Check whether --enable-sim-inline was given.
4924 if test "${enable_sim_inline+set}" = set; then :
4925 enableval
=$enable_sim_inline; sim_inline
=""
4926 case "$enableval" in
4927 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4928 0) sim_inline
="-DDEFAULT_INLINE=0";;
4929 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4930 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4931 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4934 *_INLINE
=*) new_flag
="-D$x";;
4935 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4936 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4937 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4939 if test x
"$sim_inline" = x
""; then
4940 sim_inline
="$new_flag"
4942 sim_inline
="$sim_inline $new_flag"
4946 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4947 echo "Setting inline flags = $sim_inline" 6>&1
4951 if test "x$cross_compiling" = "xno"; then
4952 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4953 sim_inline
="${default_sim_inline}"
4954 if test x
"$silent" != x
"yes"; then
4955 echo "Setting inline flags = $sim_inline" 6>&1
4961 sim_inline
="-DDEFAULT_INLINE=0"
4966 # NOTE: Don't add -Wall or -Wunused, they both include
4967 # -Wunused-parameter which reports bogus warnings.
4968 # NOTE: If you add to this list, remember to update
4969 # gdb/doc/gdbint.texinfo.
4970 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4971 -Wformat -Wparentheses -Wpointer-arith"
4972 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4973 if test x
${CFLAGS+set} = xset
; then
4977 build_warnings
="${build_warnings} -Wuninitialized"
4981 build_warnings
="${build_warnings} -Wuninitialized"
4983 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4984 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4985 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4986 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4987 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4988 # -Woverloaded-virtual -Winline -Werror"
4989 # Check whether --enable-build-warnings was given.
4990 if test "${enable_build_warnings+set}" = set; then :
4991 enableval
=$enable_build_warnings; case "${enableval}" in
4993 no
) build_warnings
="-w";;
4994 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4995 build_warnings
="${build_warnings} ${t}";;
4996 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4997 build_warnings
="${t} ${build_warnings}";;
4998 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5000 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5001 echo "Setting compiler warning flags = $build_warnings" 6>&1
5004 # Check whether --enable-sim-build-warnings was given.
5005 if test "${enable_sim_build_warnings+set}" = set; then :
5006 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5008 no
) build_warnings
="-w";;
5009 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5010 build_warnings
="${build_warnings} ${t}";;
5011 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5012 build_warnings
="${t} ${build_warnings}";;
5013 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5015 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5016 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5021 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5024 $as_echo_n "checking compiler warning flags... " >&6; }
5025 # Separate out the -Werror flag as some files just cannot be
5026 # compiled with it enabled.
5027 for w
in ${build_warnings}; do
5029 -Werr*) WERROR_CFLAGS
=-Werror ;;
5030 *) # Check that GCC accepts it
5031 saved_CFLAGS
="$CFLAGS"
5033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5044 if ac_fn_c_try_compile
"$LINENO"; then :
5045 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5048 CFLAGS
="$saved_CFLAGS"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5052 $as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
5056 if test x"yes" = x"yes"; then
5064 hardware="cfi core pal glue
"
5066 hardware="$hardware \
5097 sim_hw_cflags="-DWITH_HW=1"
5099 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5100 # Check whether --enable-sim-hardware was given.
5101 if test "${enable_sim_hardware+set}" = set; then :
5102 enableval=$enable_sim_hardware;
5103 case "${enableval}" in
5106 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5107 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5108 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5110 if test "$sim_hw_p" != yes; then
5112 sim_hw_cflags="-DWITH_HW=0"
5115 sim_hw_cflags="-DWITH_HW=1"
5118 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
5119 for i in $hardware ; do
5122 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
5126 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5127 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5131 if test "$sim_hw_p" != yes; then
5133 sim_hw_cflags="-DWITH_HW=0"
5136 if test x"$silent" != x"yes"; then
5137 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5142 for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
5144 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
5145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5146 eval as_val=\$$as_ac_var
5147 if test "x
$as_val" = x""yes; then :
5148 cat >>confdefs.h <<_ACEOF
5149 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
5155 for ac_header in sys/ioctl.h sys/mman.h net/if.h linux/if_tun.h linux/mii.h
5157 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
5158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5159 eval as_val=\$$as_ac_Header
5160 if test "x
$as_val" = x""yes; then :
5161 cat >>confdefs.h <<_ACEOF
5162 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
5170 BFIN_SIM_EXTRA_OBJS=
5176 cat >>confdefs.h <<_ACEOF
5177 #define HAVE_DV_SOCKSER 1
5180 BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o
"
5184 BFIN_SIM_EXTRA_OBJS=${BFIN_SIM_EXTRA_OBJS}
5194 if test "x
$ac_cv_env_PKG_CONFIG_set" != "xset
"; then
5195 if test -n "$ac_tool_prefix"; then
5196 # Extract the first word of "${ac_tool_prefix}pkg-config
", so it can be a program name with args.
5197 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5199 $as_echo_n "checking
for $ac_word...
" >&6; }
5200 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5201 $as_echo_n "(cached
) " >&6
5205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5226 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5227 if test -n "$PKG_CONFIG"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $PKG_CONFIG" >&5
5229 $as_echo "$PKG_CONFIG" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5232 $as_echo "no
" >&6; }
5237 if test -z "$ac_cv_path_PKG_CONFIG"; then
5238 ac_pt_PKG_CONFIG=$PKG_CONFIG
5239 # Extract the first word of "pkg-config
", so it can be a program name with args.
5240 set dummy pkg-config; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5242 $as_echo_n "checking
for $ac_word...
" >&6; }
5243 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5244 $as_echo_n "(cached
) " >&6
5246 case $ac_pt_PKG_CONFIG in
5248 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5269 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5270 if test -n "$ac_pt_PKG_CONFIG"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_pt_PKG_CONFIG" >&5
5272 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5275 $as_echo "no
" >&6; }
5278 if test "x
$ac_pt_PKG_CONFIG" = x; then
5281 case $cross_compiling:$ac_tool_warned in
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5284 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5285 ac_tool_warned=yes ;;
5287 PKG_CONFIG=$ac_pt_PKG_CONFIG
5290 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5294 if test -n "$PKG_CONFIG"; then
5295 _pkg_min_version=0.9.0
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is
at least version
$_pkg_min_version" >&5
5297 $as_echo_n "checking pkg-config is
at least version
$_pkg_min_version...
" >&6; }
5298 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5300 $as_echo "yes" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5303 $as_echo "no
" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for SDL
" >&5
5310 $as_echo_n "checking
for SDL...
" >&6; }
5312 if test -n "$SDL_CFLAGS"; then
5313 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
5314 elif test -n "$PKG_CONFIG"; then
5315 if test -n "$PKG_CONFIG" && \
5316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \
$PKG_CONFIG --exists --print-errors \"sdl
\""; } >&5
5317 ($PKG_CONFIG --exists --print-errors "sdl
") 2>&5
5319 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5320 test $ac_status = 0; }; then
5321 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl
" 2>/dev/null`
5322 test "x$?
" != "x0
" && pkg_failed=yes
5329 if test -n "$SDL_LIBS"; then
5330 pkg_cv_SDL_LIBS="$SDL_LIBS"
5331 elif test -n "$PKG_CONFIG"; then
5332 if test -n "$PKG_CONFIG" && \
5333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \
$PKG_CONFIG --exists --print-errors \"sdl
\""; } >&5
5334 ($PKG_CONFIG --exists --print-errors "sdl
") 2>&5
5336 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5337 test $ac_status = 0; }; then
5338 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl
" 2>/dev/null`
5339 test "x$?
" != "x0
" && pkg_failed=yes
5349 if test $pkg_failed = yes; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5351 $as_echo "no
" >&6; }
5353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5354 _pkg_short_errors_supported=yes
5356 _pkg_short_errors_supported=no
5358 if test $_pkg_short_errors_supported = yes; then
5359 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl
" 2>&1`
5361 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl
" 2>&1`
5363 # Put the nasty error message in config.log where it belongs
5364 echo "$SDL_PKG_ERRORS" >&5
5367 elif test $pkg_failed = untried; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5369 $as_echo "no
" >&6; }
5372 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
5373 SDL_LIBS=$pkg_cv_SDL_LIBS
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5375 $as_echo "yes" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlopen
in -ldl" >&5
5378 $as_echo_n "checking
for dlopen
in -ldl...
" >&6; }
5379 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5380 $as_echo_n "(cached
) " >&6
5382 ac_check_lib_save_LIBS=$LIBS
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 /* Override any GCC internal prototype to avoid an error.
5388 Use char because int might match the return type of a GCC
5389 builtin and then its argument prototype would still apply. */
5402 if ac_fn_c_try_link "$LINENO"; then :
5403 ac_cv_lib_dl_dlopen=yes
5405 ac_cv_lib_dl_dlopen=no
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_dl_dlopen" >&5
5412 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5413 if test "x
$ac_cv_lib_dl_dlopen" = x""yes; then :
5415 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
5419 SDL_CFLAGS= SDL_LIBS=
5428 ac_sources="$sim_link_files"
5429 ac_dests="$sim_link_links"
5430 while test -n "$ac_sources"; do
5431 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5432 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5433 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5435 ac_config_links="$ac_config_links $ac_config_links_1"
5438 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5439 cgen_breaks="break cgen_rtx_error
";
5442 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
5444 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
5446 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
5448 ac_config_commands="$ac_config_commands Makefile
"
5450 ac_config_commands="$ac_config_commands stamp-h
"
5452 cat >confcache <<\_ACEOF
5453 # This file is a shell script that caches the results of configure
5454 # tests run on this system so they can be shared between configure
5455 # scripts and configure runs, see configure's option --config-cache.
5456 # It is not useful on other systems. If it contains results you don't
5457 # want to keep, you may remove or edit it.
5459 # config.status only pays attention to the cache file if you give it
5460 # the --recheck option to rerun configure.
5462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5468 # The following way of writing the cache mishandles newlines in values,
5469 # but we know of no workaround that is simple, portable, and efficient.
5470 # So, we kill variables containing newlines.
5471 # Ultrix sh set writes to stderr and can't be redirected directly,
5472 # and sets the high bit in the cache file unless we assign to the vars.
5474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5475 eval ac_val=\$$ac_var
5479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
5480 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
5483 _ | IFS | as_nl) ;; #(
5484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5485 *) { eval $ac_var=; unset $ac_var;} ;;
5491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5492 *${as_nl}ac_space=\ *)
5493 # `set' does not quote correctly, so add quotes: double-quote
5494 # substitution turns \\\\ into \\, and sed turns \\ into \.
5497 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
5500 # `set' quotes correctly as required by POSIX, so do not add quotes.
5501 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
5510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5515 if test -w "$cache_file"; then
5516 test "x
$cache_file" != "x
/dev
/null
" &&
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
5518 $as_echo "$as_me: updating cache
$cache_file" >&6;}
5519 cat confcache >$cache_file
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
5522 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
5527 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5528 # Let make expand exec_prefix.
5529 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5531 DEFS=-DHAVE_CONFIG_H
5535 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
5536 # 1. Remove the extension, and $U if already installed.
5537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5538 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5540 # will be set to the directory where LIBOBJS objects are built.
5541 as_fn_append ac_libobjs " \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
5542 as_fn_append ac_ltlibobjs " \
${LIBOBJDIR}$ac_i"'$U.lo'
5546 LTLIBOBJS=$ac_ltlibobjs
5551 : ${CONFIG_STATUS=./config.status}
5553 ac_clean_files_save=$ac_clean_files
5554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$CONFIG_STATUS" >&5
5556 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
5558 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5560 # Generated by $as_me.
5561 # Run this file to recreate the current configuration.
5562 # Compiler output produced by configure, useful for debugging
5563 # configure, is in config.log if it exists.
5569 SHELL=\${CONFIG_SHELL-$SHELL}
5572 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5573 ## -------------------- ##
5574 ## M4sh Initialization. ##
5575 ## -------------------- ##
5577 # Be more Bourne compatible
5578 DUALCASE=1; export DUALCASE # for MKS sh
5579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5582 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5583 # is contrary to our usage. Disable this feature.
5584 alias -g '${1+"$@"}'='"$@
"'
5585 setopt NO_GLOB_SUBST
5587 case `(set -o) 2>/dev/null` in #(
5599 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5600 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5603 # Prefer a ksh shell builtin over an external printf program on Solaris,
5604 # but without wasting forks for bash or zsh.
5605 if test -z "$BASH_VERSION$ZSH_VERSION" \
5606 && (test "X
`print -r -- $as_echo`" = "X
$as_echo") 2>/dev/null; then
5607 as_echo='print -r --'
5608 as_echo_n='print -rn --'
5609 elif (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
5610 as_echo='printf %s\n'
5611 as_echo_n='printf %s'
5613 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
5614 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5615 as_echo_n='/usr/ucb/echo -n'
5617 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
5618 as_echo_n_body='eval
5622 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
5623 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
5625 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
5627 export as_echo_n_body
5628 as_echo_n='sh -c $as_echo_n_body as_echo'
5631 as_echo='sh -c $as_echo_body as_echo'
5634 # The user is always right.
5635 if test "${PATH_SEPARATOR+set}" != set; then
5637 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5638 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5645 # We need space, tab and new line, in precisely that order. Quoting is
5646 # there to prevent editors from complaining about space-tab.
5647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5648 # splitting by setting IFS to empty value.)
5651 # Find who we are. Look in the path if we contain no directory separator.
5653 *[\\/]* ) as_myself=$0 ;;
5654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5665 # We did not find ourselves, most probably we were run as `sh COMMAND'
5666 # in which case we are not to be found in the path.
5667 if test "x
$as_myself" = x; then
5670 if test ! -f "$as_myself"; then
5671 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
5675 # Unset variables that we do not need and which cause bugs (e.g. in
5676 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "||
exit 1"
5677 # suppresses any "Segmentation fault
" message there. '((' could
5678 # trigger a bug in pdksh 5.2.14.
5679 for as_var in BASH_ENV ENV MAIL MAILPATH
5680 do eval test x\${$as_var+set} = xset \
5681 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5697 # as_fn_error ERROR [LINENO LOG_FD]
5698 # ---------------------------------
5699 # Output "`basename $0`: error
: ERROR
" to stderr. If LINENO and LOG_FD are
5700 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5701 # script with status $?, using 1 if that was 0.
5704 as_status=$?; test $as_status -eq 0 && as_status=1
5706 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5707 $as_echo "$as_me:${as_lineno-$LINENO}: error
: $1" >&$3
5709 $as_echo "$as_me: error
: $1" >&2
5710 as_fn_exit $as_status
5714 # as_fn_set_status STATUS
5715 # -----------------------
5716 # Set $? to STATUS, without forking.
5720 } # as_fn_set_status
5724 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5734 # Portably unset VAR.
5737 { eval $1=; unset $1;}
5739 as_unset=as_fn_unset
5740 # as_fn_append VAR VALUE
5741 # ----------------------
5742 # Append the text in VALUE to the end of the definition contained in VAR. Take
5743 # advantage of any shell optimizations that allow amortized linear growth over
5744 # repeated appends, instead of the typical quadratic growth present in naive
5746 if (eval "as_var
=1; as_var
+=2; test x\
$as_var = x12
") 2>/dev/null; then :
5747 eval 'as_fn_append ()
5758 # as_fn_arith ARG...
5759 # ------------------
5760 # Perform arithmetic evaluation on the ARGs, and store the result in the
5761 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5762 # must be portable across $(()) and expr.
5763 if (eval "test \$
(( 1 + 1 )) = 2") 2>/dev/null; then :
5764 eval 'as_fn_arith ()
5771 as_val=`expr "$@
" || test $? -eq 1`
5776 if expr a : '\(a\)' >/dev/null 2>&1 &&
5777 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
5783 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
5784 as_basename=basename
5789 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
5795 as_me=`$as_basename -- "$0" ||
5796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5797 X"$0" : 'X\(//\)$' \| \
5798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5800 sed '/^.*\/\([^/][^/]*\)\/*$/{
5814 # Avoid depending upon Character Ranges.
5815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5818 as_cr_digits='0123456789'
5819 as_cr_alnum=$as_cr_Letters$as_cr_digits
5821 ECHO_C= ECHO_N= ECHO_T=
5822 case `echo -n x` in #(((((
5824 case `echo 'xy\c'` in
5825 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5827 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5834 rm -f conf$$ conf$$.exe conf$$.file
5835 if test -d conf$$.dir; then
5836 rm -f conf$$.dir/conf$$.file
5839 mkdir conf$$.dir 2>/dev/null
5841 if (echo >conf$$.file) 2>/dev/null; then
5842 if ln -s conf$$.file conf$$ 2>/dev/null; then
5844 # ... but there are two gotchas:
5845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5847 # In both cases, we have to default to `cp -p'.
5848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5850 elif ln conf$$.file conf$$ 2>/dev/null; then
5858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5859 rmdir conf$$.dir 2>/dev/null
5864 # Create "$as_dir" as a directory, including parents if necessary.
5869 -*) as_dir=./$as_dir;;
5871 test -d "$as_dir" || eval $as_mkdir_p || {
5875 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s
/'/'\\\\\\\\''/g
"`;; #'(
5876 *) as_qdir=$as_dir;;
5878 as_dirs="'$as_qdir' $as_dirs"
5879 as_dir=`$as_dirname -- "$as_dir" ||
5880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5881 X"$as_dir" : 'X\(//\)[^/]' \| \
5882 X"$as_dir" : 'X\(//\)$' \| \
5883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5884 $as_echo X"$as_dir" |
5885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5902 test -d "$as_dir" && break
5904 test -z "$as_dirs" || eval "mkdir
$as_dirs"
5905 } || test -d "$as_dir" || as_fn_error "cannot create directory
$as_dir"
5909 if mkdir -p . 2>/dev/null; then
5910 as_mkdir_p='mkdir -p "$as_dir"'
5912 test -d ./-p && rmdir ./-p
5916 if test -x / >/dev/null 2>&1; then
5919 if ls -dL / >/dev/null 2>&1; then
5926 if test -d "$1"; then
5932 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5933 ???[sx]*):;;*)false;;esac;fi
5937 as_executable_p=$as_test_x
5939 # Sed expression to map a string onto a valid CPP name.
5940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5942 # Sed expression to map a string onto a valid variable name.
5943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5947 ## ----------------------------------- ##
5948 ## Main body of $CONFIG_STATUS script. ##
5949 ## ----------------------------------- ##
5951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5954 # Save the log message, to keep $0 and so on meaningful, and to
5955 # report actual input values of CONFIG_FILES etc. instead of their
5956 # values after options handling.
5958 This
file was extended by
$as_me, which was
5959 generated by GNU Autoconf
2.64. Invocation
command line was
5961 CONFIG_FILES
= $CONFIG_FILES
5962 CONFIG_HEADERS
= $CONFIG_HEADERS
5963 CONFIG_LINKS
= $CONFIG_LINKS
5964 CONFIG_COMMANDS
= $CONFIG_COMMANDS
5967 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
5972 case $ac_config_files in *"
5973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5976 case $ac_config_headers in *"
5977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5982 # Files that config.status was made for.
5983 config_files="$ac_config_files"
5984 config_headers="$ac_config_headers"
5985 config_links="$ac_config_links"
5986 config_commands="$ac_config_commands"
5990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5992 \
`$as_me' instantiates files and other configuration actions
5993 from templates according to the current configuration. Unless the files
5994 and actions are specified as TAGs, all are instantiated by default.
5996 Usage: $0 [OPTION]... [TAG]...
5998 -h, --help print this help, then exit
5999 -V, --version print version number and configuration settings, then exit
6000 -q, --quiet, --silent
6001 do not print progress messages
6002 -d, --debug don't remove temporary files
6003 --recheck update $as_me by reconfiguring in the same conditions
6004 --file=FILE[:TEMPLATE]
6005 instantiate the configuration file FILE
6006 --header=FILE[:TEMPLATE]
6007 instantiate the configuration header FILE
6009 Configuration files:
6012 Configuration headers:
6015 Configuration links:
6018 Configuration commands:
6021 Report bugs to the package provider."
6024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6027 configured by $0, generated by GNU Autoconf 2.64,
6028 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6030 Copyright (C) 2009 Free Software Foundation, Inc.
6031 This config.status script is free software; the Free Software Foundation
6032 gives unlimited permission to copy, distribute and modify it."
6037 test -n "\$AWK" || AWK=awk
6040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6041 # The default lists apply if the user does not specify any file.
6047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6059 # Handling of the options.
6060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6063 $as_echo "$ac_cs_version"; exit ;;
6064 --debug | --debu | --deb | --de | --d | -d )
6066 --file | --fil | --fi | --f )
6069 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6071 as_fn_append CONFIG_FILES " '$ac_optarg'"
6072 ac_need_defaults=false;;
6073 --header | --heade | --head | --hea )
6076 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
6078 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6079 ac_need_defaults=false;;
6081 # Conflict between --help and --header
6082 as_fn_error "ambiguous option: \`$1'
6083 Try \`$0 --help' for more information.
";;
6084 --help | --hel | -h )
6085 $as_echo "$ac_cs_usage"; exit ;;
6086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6091 -*) as_fn_error "unrecognized option
: \
`$1'
6092 Try \`$0 --help' for more information." ;;
6094 *) as_fn_append ac_config_targets " $1"
6095 ac_need_defaults=false ;;
6101 ac_configure_extra_args=
6103 if $ac_cs_silent; then
6105 ac_configure_extra_args="$ac_configure_extra_args --silent"
6109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6110 if \$ac_cs_recheck; then
6111 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6113 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6114 CONFIG_SHELL='$SHELL'
6120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6124 sed 'h
;s
/.
/-/g
;s
/^...
/## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6125 ## Running $as_me. ##
6131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6136 # Handling of arguments.
6137 for ac_config_target
in $ac_config_targets
6139 case $ac_config_target in
6140 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6141 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6142 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6143 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6144 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6145 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6146 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6148 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6153 # If the user did not use the arguments to specify the items to instantiate,
6154 # then the envvar interface is used. Set only those that are not.
6155 # We use the long form for the default assignment because of an extremely
6156 # bizarre bug on SunOS 4.1.3.
6157 if $ac_need_defaults; then
6158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6160 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6164 # Have a temporary directory for convenience. Make it in the build tree
6165 # simply because there is no reason against having it here, and in addition,
6166 # creating and moving files from /tmp can sometimes cause problems.
6167 # Hook for its removal unless debugging.
6168 # Note that there is a small window in which the directory will not be cleaned:
6169 # after its creation but before its name has been assigned to `$tmp'.
6173 trap 'exit_status=$?
6174 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6176 trap 'as_fn_exit 1' 1 2 13 15
6178 # Create a (secure) tmp directory for tmp files.
6181 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6182 test -n "$tmp" && test -d "$tmp"
6185 tmp
=.
/conf$$
-$RANDOM
6186 (umask 077 && mkdir
"$tmp")
6187 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6189 # Set up the scripts for CONFIG_FILES section.
6190 # No need to generate them if there are no CONFIG_FILES.
6191 # This happens for instance with `./config.status config.h'.
6192 if test -n "$CONFIG_FILES"; then
6195 ac_cr
=`echo X | tr X '\015'`
6196 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6197 # But we know of no other shell where ac_cr would be empty at this
6198 # point, so we can use a bashism as a fallback.
6199 if test "x$ac_cr" = x
; then
6200 eval ac_cr
=\$
\'\\r
\'
6202 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6203 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6209 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6214 echo "cat >conf$$subs.awk <<_ACEOF" &&
6215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6218 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6219 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6221 for ac_last_try in false false false false false :; do
6222 . ./conf$$subs.sh ||
6223 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6225 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6226 if test $ac_delim_n = $ac_delim_num; then
6228 elif $ac_last_try; then
6229 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6231 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6237 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6241 s/^/S["/; s
/!.
*/"]=/
6251 s/\(.\{148\}\).*/\1/
6253 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6258 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6265 s/\(.\{148\}\).*/\1/
6267 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6271 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6276 ' <conf$$subs.awk | sed '
6281 ' >>$CONFIG_STATUS || ac_write_fail=1
6282 rm -f conf$$subs.awk
6283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6285 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6286 for (key in S) S_is_set[key] = 1
6292 nfields = split(line, field, "@
")
6294 len = length(field[1])
6295 for (i = 2; i < nfields; i++) {
6297 keylen = length(key)
6298 if (S_is_set[key]) {
6300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6301 len += length(value) + length(field[++i])
6312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6313 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6314 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6317 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6318 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6321 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6322 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6323 # trailing colons and then remove the whole line if VPATH becomes empty
6324 # (actually we leave an empty line to preserve line numbers).
6325 if test "x
$srcdir" = x.; then
6326 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6330 s/^\([^=]*=[ ]*\):*/\1/
6336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6337 fi # test -n "$CONFIG_FILES"
6339 # Set up the scripts for CONFIG_HEADERS section.
6340 # No need to generate them if there are no CONFIG_HEADERS.
6341 # This happens for instance with `./config.status Makefile'.
6342 if test -n "$CONFIG_HEADERS"; then
6343 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6347 # Transform confdefs.h into an awk script `defines.awk', embedded as
6348 # here-document in config.status, that substitutes the proper values into
6349 # config.h.in to produce config.h.
6351 # Create a delimiter string that does not exist in confdefs.h, to ease
6352 # handling of long lines.
6354 for ac_last_try in false false :; do
6355 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6356 if test -z "$ac_t"; then
6358 elif $ac_last_try; then
6359 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6361 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6365 # For the awk script, D is an array of macro values keyed by name,
6366 # likewise P contains macro parameters if any. Preserve backslash
6367 # newline sequences.
6369 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6371 s/.\{148\}/&'"$ac_delim"'/g
6374 s/^[ ]*#[ ]*define[ ][ ]*/ /
6381 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6383 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6388 D["\
1"]=" \
3\\\\\\n
"\\/p
6390 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6395 s/.\{148\}/&'"$ac_delim"'/g
6400 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6403 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6405 ' <confdefs.h | sed '
6406 s/'"$ac_delim"'/"\\\
6407 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6410 for (key in D) D_is_set[key] = 1
6413 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6415 split(line, arg, " ")
6416 if (arg[1] == "#") {
6420 defundef
= substr
(arg
[1], 2)
6423 split(mac1
, mac2
, "(") #)
6425 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6426 if (D_is_set
[macro
]) {
6427 # Preserve the white space surrounding the "#".
6428 print prefix
"define", macro P
[macro
] D
[macro
]
6431 # Replace #undef with comments. This is necessary, for example,
6432 # in the case of _POSIX_SOURCE, which is predefined and required
6433 # on some systems where configure will not decide to define it.
6434 if (defundef
== "undef") {
6435 print
"/*", prefix defundef
, macro
, "*/"
6443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6444 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6445 fi # test -n "$CONFIG_HEADERS"
6448 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6453 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6455 case $ac_mode$ac_tag in
6457 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6458 :[FH
]-) ac_tag
=-:-;;
6459 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6476 -) ac_f
="$tmp/stdin";;
6477 *) # Look for the file first in the build tree, then in the source tree
6478 # (if the path is not absolute). The absolute path cannot be DOS-style,
6479 # because $ac_f cannot contain `:'.
6483 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6485 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6487 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6488 as_fn_append ac_file_inputs
" '$ac_f'"
6491 # Let's still pretend it is `configure' which instantiates (i.e., don't
6492 # use $as_me), people would be surprised to read:
6493 # /* config.h. Generated by config.status. */
6494 configure_input
='Generated from '`
6495 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6497 if test x
"$ac_file" != x-
; then
6498 configure_input
="$ac_file. $configure_input"
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6500 $as_echo "$as_me: creating $ac_file" >&6;}
6502 # Neutralize special characters interpreted by sed in replacement strings.
6503 case $configure_input in #(
6504 *\
&* |
*\|
* |
*\\* )
6505 ac_sed_conf_input
=`$as_echo "$configure_input" |
6506 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6507 *) ac_sed_conf_input
=$configure_input;;
6511 *:-:* |
*:-) cat >"$tmp/stdin" \
6512 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6517 ac_dir
=`$as_dirname -- "$ac_file" ||
6518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6519 X"$ac_file" : 'X\(//\)[^/]' \| \
6520 X"$ac_file" : 'X\(//\)$' \| \
6521 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6522 $as_echo X"$ac_file" |
6523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6540 as_dir
="$ac_dir"; as_fn_mkdir_p
6544 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6546 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6547 # A ".." for each directory in $ac_dir_suffix.
6548 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6549 case $ac_top_builddir_sub in
6550 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6551 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6554 ac_abs_top_builddir
=$ac_pwd
6555 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6556 # for backward compatibility:
6557 ac_top_builddir
=$ac_top_build_prefix
6560 .
) # We are building in place.
6562 ac_top_srcdir
=$ac_top_builddir_sub
6563 ac_abs_top_srcdir
=$ac_pwd ;;
6564 [\\/]* | ?
:[\\/]* ) # Absolute name.
6565 ac_srcdir
=$srcdir$ac_dir_suffix;
6566 ac_top_srcdir
=$srcdir
6567 ac_abs_top_srcdir
=$srcdir ;;
6569 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6570 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6571 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6573 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6583 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6584 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6589 # If the template does not know about datarootdir, expand it.
6590 # FIXME: This hack should be removed a few years after 2.60.
6591 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6602 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6603 *datarootdir
*) ac_datarootdir_seen
=yes;;
6604 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6606 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6609 ac_datarootdir_hack='
6610 s&@datadir@&$datadir&g
6611 s&@docdir@&$docdir&g
6612 s&@infodir@&$infodir&g
6613 s&@localedir@&$localedir&g
6614 s&@mandir@&$mandir&g
6615 s&\\\${datarootdir}&$datarootdir&g' ;;
6619 # Neutralize VPATH when `$srcdir' = `.'.
6620 # Shell code in configure.ac might set extrasub.
6621 # FIXME: do we really want to maintain this feature?
6622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6623 ac_sed_extra="$ac_vpsub
6626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6628 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6629 s|@configure_input@|
$ac_sed_conf_input|
;t t
6630 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6631 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6632 s
&@srcdir@
&$ac_srcdir&;t t
6633 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6634 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6635 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6636 s
&@builddir@
&$ac_builddir&;t t
6637 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6638 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6639 s
&@INSTALL@
&$ac_INSTALL&;t t
6640 $ac_datarootdir_hack
6642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
6643 || as_fn_error "could not create
$ac_file" "$LINENO" 5
6645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6646 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
6647 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6649 which seems to be undefined. Please make sure it is defined." >&5
6650 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6651 which seems to be undefined. Please make sure it is defined." >&2;}
6655 -) cat "$tmp/out" && rm -f "$tmp/out";;
6656 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6658 || as_fn_error "could not create $ac_file" "$LINENO" 5
6664 if test x"$ac_file" != x-; then
6666 $as_echo "/* $configure_input */" \
6667 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6668 } >"$tmp/config.h" \
6669 || as_fn_error "could not create $ac_file" "$LINENO" 5
6670 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6672 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6675 mv "$tmp/config.h" "$ac_file" \
6676 || as_fn_error "could not create $ac_file" "$LINENO" 5
6679 $as_echo "/* $configure_input */" \
6680 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6681 || as_fn_error "could not create -" "$LINENO" 5
6689 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
6692 # Prefer the file from the source tree if names are identical.
6693 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6694 ac_source=$srcdir/$ac_source
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6698 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6700 if test ! -r "$ac_source"; then
6701 as_fn_error "$ac_source: file not found" "$LINENO" 5
6705 # Try a relative symlink, then a hard link, then a copy.
6707 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6708 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6710 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6711 ln "$ac_source" "$ac_file" 2>/dev/null ||
6712 cp -p "$ac_source" "$ac_file" ||
6713 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6716 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6717 $as_echo "$as_me: executing $ac_file commands" >&6;}
6722 case $ac_file$ac_mode in
6723 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6724 rm -f Makesim1.tmp Makesim2.tmp Makefile
6725 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6726 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
6727 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6728 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6729 <Makefile.sim
>Makefile
6730 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6732 "stamp-h":C
) echo > stamp-h
;;
6740 ac_clean_files
=$ac_clean_files_save
6742 test $ac_write_fail = 0 ||
6743 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
6746 # configure is writing to config.log, and then calls config.status.
6747 # config.status does its own redirection, appending to config.log.
6748 # Unfortunately, on DOS this fails, as config.log is still kept open
6749 # by configure, so config.status won't be able to write to it; its
6750 # output is simply discarded. So we exec the FD to /dev/null,
6751 # effectively closing config.log, so it can be properly (re)opened and
6752 # appended to by config.status. When coming back to configure, we
6753 # need to make the FD available again.
6754 if test "$no_create" != yes; then
6756 ac_config_status_args
=
6757 test "$silent" = yes &&
6758 ac_config_status_args
="$ac_config_status_args --quiet"
6760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6763 # would make configure fail if this is the last instruction.
6764 $ac_cs_success || as_fn_exit $?
6766 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6768 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}