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
600 sim_multi_igen_configs
711 program_transform_name
724 enable_option_checking
726 enable_maintainer_mode
737 enable_sim_hostendian
738 enable_build_warnings
739 enable_sim_build_warnings
740 enable_sim_reserved_bits
748 ac_precious_vars
='build_alias
760 # Initialize some variables set by options.
762 ac_init_version
=false
763 ac_unrecognized_opts
=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
774 program_transform_name
=s
,x
,x
,
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir
='${exec_prefix}/bin'
789 sbindir
='${exec_prefix}/sbin'
790 libexecdir
='${exec_prefix}/libexec'
791 datarootdir
='${prefix}/share'
792 datadir
='${datarootdir}'
793 sysconfdir
='${prefix}/etc'
794 sharedstatedir
='${prefix}/com'
795 localstatedir
='${prefix}/var'
796 includedir
='${prefix}/include'
797 oldincludedir
='/usr/include'
798 docdir
='${datarootdir}/doc/${PACKAGE}'
799 infodir
='${datarootdir}/info'
804 libdir
='${exec_prefix}/lib'
805 localedir
='${datarootdir}/locale'
806 mandir
='${datarootdir}/man'
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\
$ac_option
820 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 # Accept the important Cygnus configure options, so we can diagnose typos.
826 case $ac_dashdash$ac_option in
830 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
832 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
835 -build |
--build |
--buil |
--bui |
--bu)
836 ac_prev
=build_alias
;;
837 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
838 build_alias
=$ac_optarg ;;
840 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
841 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
842 ac_prev
=cache_file
;;
843 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
844 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
845 cache_file
=$ac_optarg ;;
848 cache_file
=config.cache
;;
850 -datadir |
--datadir |
--datadi |
--datad)
852 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
853 datadir
=$ac_optarg ;;
855 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
856 |
--dataroo |
--dataro |
--datar)
857 ac_prev
=datarootdir
;;
858 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
859 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
860 datarootdir
=$ac_optarg ;;
862 -disable-* |
--disable-*)
863 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
866 as_fn_error
"invalid feature name: $ac_useropt"
867 ac_useropt_orig
=$ac_useropt
868 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
873 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep
=', ';;
876 eval enable_
$ac_useropt=no
;;
878 -docdir |
--docdir |
--docdi |
--doc |
--do)
880 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
883 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
885 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
888 -enable-* |
--enable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error
"invalid feature name: $ac_useropt"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=\
$ac_optarg ;;
904 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
905 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
906 |
--exec |
--exe |
--ex)
907 ac_prev
=exec_prefix
;;
908 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
909 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
910 |
--exec=* |
--exe=* |
--ex=*)
911 exec_prefix
=$ac_optarg ;;
913 -gas |
--gas |
--ga |
--g)
914 # Obsolete; use --with-gas.
917 -help |
--help |
--hel |
--he |
-h)
919 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
920 ac_init_help
=recursive
;;
921 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
922 ac_init_help
=short
;;
924 -host |
--host |
--hos |
--ho)
925 ac_prev
=host_alias
;;
926 -host=* |
--host=* |
--hos=* |
--ho=*)
927 host_alias
=$ac_optarg ;;
929 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
931 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
933 htmldir
=$ac_optarg ;;
935 -includedir |
--includedir |
--includedi |
--included |
--include \
936 |
--includ |
--inclu |
--incl |
--inc)
937 ac_prev
=includedir
;;
938 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
939 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
940 includedir
=$ac_optarg ;;
942 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
944 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
945 infodir
=$ac_optarg ;;
947 -libdir |
--libdir |
--libdi |
--libd)
949 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
952 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
953 |
--libexe |
--libex |
--libe)
954 ac_prev
=libexecdir
;;
955 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
956 |
--libexe=* |
--libex=* |
--libe=*)
957 libexecdir
=$ac_optarg ;;
959 -localedir |
--localedir |
--localedi |
--localed |
--locale)
961 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
962 localedir
=$ac_optarg ;;
964 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
965 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
966 ac_prev
=localstatedir
;;
967 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
968 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
969 localstatedir
=$ac_optarg ;;
971 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
973 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
977 # Obsolete; use --without-fp.
980 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
981 |
--no-cr |
--no-c |
-n)
984 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
985 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
988 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
989 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
990 |
--oldin |
--oldi |
--old |
--ol |
--o)
991 ac_prev
=oldincludedir
;;
992 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
993 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
994 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
995 oldincludedir
=$ac_optarg ;;
997 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
999 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1000 prefix
=$ac_optarg ;;
1002 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1003 |
--program-pre |
--program-pr |
--program-p)
1004 ac_prev
=program_prefix
;;
1005 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1006 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1007 program_prefix
=$ac_optarg ;;
1009 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1010 |
--program-suf |
--program-su |
--program-s)
1011 ac_prev
=program_suffix
;;
1012 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1013 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1014 program_suffix
=$ac_optarg ;;
1016 -program-transform-name |
--program-transform-name \
1017 |
--program-transform-nam |
--program-transform-na \
1018 |
--program-transform-n |
--program-transform- \
1019 |
--program-transform |
--program-transfor \
1020 |
--program-transfo |
--program-transf \
1021 |
--program-trans |
--program-tran \
1022 |
--progr-tra |
--program-tr |
--program-t)
1023 ac_prev
=program_transform_name
;;
1024 -program-transform-name=* |
--program-transform-name=* \
1025 |
--program-transform-nam=* |
--program-transform-na=* \
1026 |
--program-transform-n=* |
--program-transform-=* \
1027 |
--program-transform=* |
--program-transfor=* \
1028 |
--program-transfo=* |
--program-transf=* \
1029 |
--program-trans=* |
--program-tran=* \
1030 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1031 program_transform_name
=$ac_optarg ;;
1033 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1035 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1036 pdfdir
=$ac_optarg ;;
1038 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1040 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1043 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1044 |
-silent |
--silent |
--silen |
--sile |
--sil)
1047 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1049 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1051 sbindir
=$ac_optarg ;;
1053 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1054 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1055 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1057 ac_prev
=sharedstatedir
;;
1058 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1059 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1060 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1062 sharedstatedir
=$ac_optarg ;;
1064 -site |
--site |
--sit)
1066 -site=* |
--site=* |
--sit=*)
1069 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1071 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1072 srcdir
=$ac_optarg ;;
1074 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1075 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1076 ac_prev
=sysconfdir
;;
1077 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1078 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1079 sysconfdir
=$ac_optarg ;;
1081 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1082 ac_prev
=target_alias
;;
1083 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1084 target_alias
=$ac_optarg ;;
1086 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1089 -version |
--version |
--versio |
--versi |
--vers |
-V)
1090 ac_init_version
=: ;;
1093 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1096 as_fn_error
"invalid package name: $ac_useropt"
1097 ac_useropt_orig
=$ac_useropt
1098 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1103 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep
=', ';;
1106 eval with_
$ac_useropt=\
$ac_optarg ;;
1108 -without-* |
--without-*)
1109 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1112 as_fn_error
"invalid package name: $ac_useropt"
1113 ac_useropt_orig
=$ac_useropt
1114 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep
=', ';;
1122 eval with_
$ac_useropt=no
;;
1125 # Obsolete; use --with-x.
1128 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1129 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1130 ac_prev
=x_includes
;;
1131 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1132 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1133 x_includes
=$ac_optarg ;;
1135 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1136 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1137 ac_prev
=x_libraries
;;
1138 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1139 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1140 x_libraries
=$ac_optarg ;;
1142 -*) as_fn_error
"unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information."
1147 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1151 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1153 eval $ac_envvar=\
$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 if test -n "$ac_prev"; then
1168 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error
"missing argument to $ac_option"
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1175 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 # Check all directory arguments for consistency.
1181 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val
=\$
$ac_var
1187 # Remove trailing slashes.
1190 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\
$ac_val;;
1193 # Be sure to have absolute directory names.
1195 [\\/$
]* | ?
:[\\/]* ) continue;;
1196 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1198 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target
=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x
; then
1210 if test "x$build_alias" = x
; then
1211 cross_compiling
=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1220 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1222 test "$silent" = yes && exec 6>/dev
/null
1225 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di
=`ls -di .` &&
1227 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error
"working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error
"pwd does not report name of working directory"
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted
=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir
=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1265 ac_srcdir_defaulted
=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1269 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1271 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1283 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 for ac_var
in $ac_precious_vars; do
1286 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1288 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1293 # Report the --help message.
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1299 \`configure' configures this package to adapt to many kinds of systems.
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1306 Defaults for the options are specified in brackets.
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1330 For better control, use the options below.
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1362 --x-includes=DIR X include files are
in DIR
1363 --x-libraries=DIR X library files are
in DIR
1366 --build=BUILD configure
for building on BUILD
[guessed
]
1367 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1368 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1372 if test -n "$ac_init_help"; then
1377 --disable-option-checking ignore unrecognized
--enable/--with options
1378 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1379 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1380 --enable-maintainer-mode Enable developer functionality.
1381 --enable-sim-bswap Use Host specific BSWAP instruction.
1382 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1383 --enable-sim-debug=opts Enable debugging flags
1384 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1385 --enable-sim-trace=opts Enable tracing flags
1386 --enable-sim-profile=opts Enable profiling flags
1387 --enable-sim-inline=inlines Specify
which functions should be inlined.
1388 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
1389 --enable-sim-hostendian=end Specify
host byte endian orientation.
1390 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
1391 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
1392 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1393 --enable-sim-endian=endian Specify target byte endian orientation.
1394 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
1395 --enable-sim-float Specify that the target processor has floating point hardware.
1396 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
1397 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
1400 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1401 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1402 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1403 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1404 --with-bugurl=URL Direct users to URL to report a bug
1405 --with-x use the X Window System
1407 Some influential environment variables
:
1408 CC C compiler
command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1411 nonstandard directory
<lib dir
>
1412 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1413 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1414 you have headers
in a nonstandard directory
<include dir
>
1416 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1418 Use these variables to override the choices made by
`configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1421 Report bugs to the package provider.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1485 generated by GNU Autoconf 2.64
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1508 *) ac_try_echo
=$ac_try;;
1510 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1514 if test -s conftest.err
; then
1515 grep -v '^ *+' conftest.err
>conftest.er1
1516 cat conftest.er1
>&5
1517 mv -f conftest.er1 conftest.err
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.
$ac_objext; then :
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.
$ac_ext >&5
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1534 } # ac_fn_c_try_compile
1536 # ac_fn_c_try_cpp LINENO
1537 # ----------------------
1538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1542 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } >/dev/null && {
1558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574 # -------------------------------------------------------
1575 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576 # the include files in INCLUDES and setting the cache variable VAR
1578 ac_fn_c_check_header_mongrel ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 $as_echo_n "(cached) " >&6
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1591 # Is the header compilable?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593 $as_echo_n "checking $2 usability... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1599 if ac_fn_c_try_compile "$LINENO"; then :
1600 ac_header_compiler=yes
1602 ac_header_compiler=no
1604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606 $as_echo "$ac_header_compiler" >&6; }
1608 # Is the header present?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610 $as_echo_n "checking $2 presence... " >&6; }
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1615 if ac_fn_c_try_cpp "$LINENO"; then :
1616 ac_header_preproc=yes
1618 ac_header_preproc=no
1620 rm -f conftest.err conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622 $as_echo "$ac_header_preproc" >&6; }
1624 # So? What about this header?
1625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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}: WARNING: $2: present but cannot be compiled" >&5
1634 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1636 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1640 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1650 eval "$3=\$ac_header_compiler"
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 } # ac_fn_c_check_header_mongrel
1660 # ac_fn_c_try_run LINENO
1661 # ----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663 # that executables *can* be run.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_link"
1669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1670 *) ac_try_echo
=$ac_try;;
1672 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>&5
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1678 { { case "(($ac_try" in
1679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_try") 2>&5
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; }; }; then :
1690 $as_echo "$as_me: program exited with status $ac_status" >&5
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=$ac_status
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1719 if ac_fn_c_try_compile "$LINENO"; then :
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_check_header_compile
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1743 *) ac_try_echo
=$ac_try;;
1745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1749 if test -s conftest.err
; then
1750 grep -v '^ *+' conftest.err
>conftest.er1
1751 cat conftest.er1
>&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest
$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 $as_test_x conftest
$ac_exeext
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1777 } # ac_fn_c_try_link
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func
()
1784 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1802 # include <limits.h>
1804 # include <assert.h>
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1831 if ac_fn_c_try_link
"$LINENO"; then :
1836 rm -f core conftest.err conftest.
$ac_objext \
1837 conftest
$ac_exeext conftest.
$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1844 } # ac_fn_c_check_func
1845 cat >config.log
<<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1849 It was created by $as_me, which was
1850 generated by GNU Autoconf 2.64. Invocation command line was
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir
=.
1886 $as_echo "PATH: $as_dir"
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1910 ac_must_keep_next
=false
1916 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1917 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1918 |
-silent |
--silent |
--silen |
--sile |
--sil)
1921 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1926 as_fn_append ac_configure_args1
" '$ac_arg'"
1927 if test $ac_must_keep_next = true
; then
1928 ac_must_keep_next
=false
# Got value, back to normal.
1931 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1932 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1933 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1934 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1935 case "$ac_configure_args0 " in
1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 -* ) ac_must_keep_next
=true
;;
1942 as_fn_append ac_configure_args
" '$ac_arg'"
1947 { ac_configure_args0
=; unset ac_configure_args0
;}
1948 { ac_configure_args1
=; unset ac_configure_args1
;}
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log. We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956 # Save into config.log some information that might help in debugging.
1961 ## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##
1966 # The following way of writing the cache mishandles newlines in values,
1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969 eval ac_val=\$$ac_var
1973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1977 _ | IFS | as_nl) ;; #(
1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979 *) { eval $ac_var=; unset $ac_var;} ;;
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2004 for ac_var in $ac_subst_vars
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 $as_echo "$ac_var='\''$ac_val'\''"
2014 if test -n "$ac_subst_files"; then
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2021 for ac_var
in $ac_subst_files
2023 eval ac_val
=\$
$ac_var
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 $as_echo "$ac_var='\''$ac_val'\''"
2032 if test -s confdefs.h; then
2042 test "$ac_signal" != 0 &&
2043 $as_echo "$as_me: caught signal $ac_signal"
2044 $as_echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal
in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest
* confdefs.h
2058 $as_echo "/* confdefs.h */" > confdefs.h
2060 # Predefined preprocessor variables.
2062 cat >>confdefs.h
<<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 cat >>confdefs.h
<<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h
<<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 cat >>confdefs.h
<<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 cat >>confdefs.h
<<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 cat >>confdefs.h
<<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092 ac_site_file1
=$CONFIG_SITE
2093 elif test "x$prefix" != xNONE
; then
2094 ac_site_file1
=$prefix/share
/config.site
2095 ac_site_file2
=$prefix/etc
/config.site
2097 ac_site_file1
=$ac_default_prefix/share
/config.site
2098 ac_site_file2
=$ac_default_prefix/etc
/config.site
2100 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2102 test "x$ac_site_file" = xNONE
&& continue
2103 if test -r "$ac_site_file"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2105 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2106 sed 's/^/| /' "$ac_site_file" >&5
2111 if test -r "$cache_file"; then
2112 # Some versions of bash will fail to source /dev/null (special
2113 # files actually), so we avoid doing that.
2114 if test -f "$cache_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2116 $as_echo "$as_me: loading cache $cache_file" >&6;}
2118 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2119 *) .
"./$cache_file";;
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2124 $as_echo "$as_me: creating cache $cache_file" >&6;}
2128 # Check that the precious variables saved in the cache have kept the same
2130 ac_cache_corrupted
=false
2131 for ac_var
in $ac_precious_vars; do
2132 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2133 eval ac_new_set
=\
$ac_env_${ac_var}_set
2134 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2135 eval ac_new_val
=\
$ac_env_${ac_var}_value
2136 case $ac_old_set,$ac_new_set in
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2139 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2140 ac_cache_corrupted
=: ;;
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2144 ac_cache_corrupted
=: ;;
2147 if test "x$ac_old_val" != "x$ac_new_val"; then
2148 # differences in whitespace do not lead to failure.
2149 ac_old_val_w
=`echo x $ac_old_val`
2150 ac_new_val_w
=`echo x $ac_new_val`
2151 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2153 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2154 ac_cache_corrupted
=:
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2157 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2158 eval $ac_var=\
$ac_old_val
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2161 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2163 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 # Pass precious variables to config.status.
2167 if test "$ac_new_set" = set; then
2169 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 *) ac_arg
=$ac_var=$ac_new_val ;;
2172 case " $ac_configure_args " in
2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2174 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2178 if $ac_cache_corrupted; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2182 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2183 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2185 ## -------------------- ##
2186 ## Main body of script. ##
2187 ## -------------------- ##
2190 ac_cpp
='$CPP $CPPFLAGS'
2191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2196 # This file contains common code used by all simulators.
2198 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2199 # directory. It is intended to be invoked before any target specific stuff.
2200 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2201 # It is intended to be invoked last.
2203 # The simulator's configure.in should look like:
2205 # dnl Process this file with autoconf to produce a configure script.
2206 # AC_PREREQ(2.64)dnl
2207 # AC_INIT(Makefile.in)
2208 # sinclude(../common/aclocal.m4)
2212 # ... target specific stuff ...
2216 # Include global overrides and fixes for Autoconf.
2243 # _AC_CHECK_DECL_BODY
2244 # -------------------
2245 # Shell function body for AC_CHECK_DECL.
2246 # _AC_CHECK_DECL_BODY
2248 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2250 # -------------------------------------------------------------
2251 # Helper to AC_CHECK_DECLS, which generates the check for a single
2252 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2253 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2266 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
2267 # Free Software Foundation, Inc.
2269 # This file is free software; the Free Software Foundation
2270 # gives unlimited permission to copy and/or distribute it,
2271 # with or without modifications, as long as this notice is preserved.
2275 # Based on depend.m4 from automake 1.9, modified for standalone use in
2276 # an environment where GNU make is required.
2278 # ZW_PROG_COMPILER_DEPENDENCIES
2279 # -----------------------------
2280 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
2281 # sets fooDEPMODE accordingly. Cache-variable compatible with
2282 # original; not side-effect compatible. As the users of this macro
2283 # may require accurate dependencies for correct builds, it does *not*
2284 # honor --disable-dependency-checking, and failure to detect a usable
2285 # method is an error. depcomp is assumed to be located in
2288 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
2294 # Choose a directory name for dependency files.
2299 # As AM_SET_DEPDIR, but also create the directory at config.status time.
2350 sim_inline
="-DDEFAULT_INLINE=0"
2387 # intl sister-directory configuration rules.
2390 # The idea behind this macro is that there's no need to repeat all the
2391 # autoconf probes done by the intl directory - it's already done them
2392 # for us. In fact, there's no need even to look at the cache for the
2393 # answers. All we need to do is nab a few pieces of information.
2394 # The intl directory is set up to make this easy, by generating a
2395 # small file which can be sourced as a shell script; then we produce
2396 # the necessary substitutions and definitions for this directory.
2400 # Autoconf M4 include file defining utility macros for complex Canadian
2412 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2414 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
2417 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2418 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2422 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2423 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2427 # Backported from Autoconf 2.5x; can go away when and if
2428 # we switch. Put the OS path separator in $PATH_SEPARATOR.
2433 # ACX_HAVE_GCC_FOR_TARGET
2434 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2437 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2438 # Searching for installed target binutils. We need to take extra care,
2439 # else we may find the wrong assembler, linker, etc., and lose.
2441 # First try --with-build-time-tools, if specified.
2443 # For build != host, we ask the installed GCC for the name of the tool it
2444 # uses, and accept it if it is an absolute path. This is because the
2445 # only good choice for a compiler is the same GCC version that is being
2446 # installed (or we couldn't make target libraries), and we assume that
2447 # on the host system we'll have not only the same GCC version, but also
2448 # the same binutils version.
2450 # For build == host, search the same directories that the installed
2451 # compiler will search. We used to do this for the assembler, linker,
2452 # and nm only; for simplicity of configuration, however, we extend this
2453 # criterion to tools (such as ar and ranlib) that are never invoked by
2454 # the compiler, to avoid mismatches.
2456 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
2457 # if build == target. This makes the most sense only when bootstrapping,
2458 # but we also do so when build != host. In this case, we hope that the
2459 # build and host systems will have similar contents of MD_EXEC_PREFIX.
2461 # If we do not find a suitable binary, then try the user's path.
2465 # AC_PROG_CPP_WERROR
2466 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2467 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
2468 # For now, using this also overrides header checks to use only the
2469 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2470 # bit harder from here).
2471 # Eventually autoconf will default to checking headers with the compiler
2472 # instead, and we'll have to do this differently.
2474 # AC_PROG_CPP_WERROR
2477 # We require the gnatbind program, and a compiler driver that
2478 # understands Ada. We use the user's CC setting, already found,
2479 # and possibly add $1 to the command-line parameters.
2481 # Sets the shell variable have_gnat to yes or no as appropriate, and
2482 # substitutes GNATBIND and GNATMAKE.
2509 ac_cpp
='$CPP $CPPFLAGS'
2510 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2515 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC
="$CC" # Let the user override the test.
2524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir
=.
2529 for ac_exec_ext
in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 if test -n "$CC"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2544 $as_echo "$CC" >&6; }
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2552 if test -z "$ac_cv_prog_CC"; then
2554 # Extract the first word of "gcc", so it can be a program name with args.
2555 set dummy gcc
; ac_word
=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2559 $as_echo_n "(cached) " >&6
2561 if test -n "$ac_ct_CC"; then
2562 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 for ac_exec_ext
in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_ac_ct_CC
="gcc"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2582 if test -n "$ac_ct_CC"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2584 $as_echo "$ac_ct_CC" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2590 if test "x$ac_ct_CC" = x
; then
2593 case $cross_compiling:$ac_tool_warned in
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2597 ac_tool_warned
=yes ;;
2605 if test -z "$CC"; then
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2608 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC
="$CC" # Let the user override the test.
2617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir
=.
2622 for ac_exec_ext
in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2646 if test -z "$CC"; then
2647 # Extract the first word of "cc", so it can be a program name with args.
2648 set dummy cc
; ac_word
=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_CC+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC
="$CC" # Let the user override the test.
2658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir
=.
2663 for ac_exec_ext
in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2666 ac_prog_rejected
=yes
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test $ac_prog_rejected = yes; then
2678 # We found a bogon in the path, so make sure we never use it.
2679 set dummy
$ac_cv_prog_CC
2681 if test $# != 0; then
2682 # We chose a different compiler from the bogus one.
2683 # However, it has the same basename, so the bogon will be chosen
2684 # first if we set CC to just the basename; use the full file name.
2686 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2702 if test -z "$CC"; then
2703 if test -n "$ac_tool_prefix"; then
2704 for ac_prog
in cl.exe
2706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2707 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC
="$CC" # Let the user override the test.
2716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir
=.
2721 for ac_exec_ext
in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 if test -n "$CC"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2736 $as_echo "$CC" >&6; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2743 test -n "$CC" && break
2746 if test -z "$CC"; then
2748 for ac_prog
in cl.exe
2750 # Extract the first word of "$ac_prog", so it can be a program name with args.
2751 set dummy
$ac_prog; ac_word
=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$ac_ct_CC"; then
2758 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir
=.
2765 for ac_exec_ext
in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_ac_ct_CC
="$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2778 if test -n "$ac_ct_CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2780 $as_echo "$ac_ct_CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$ac_ct_CC" && break
2790 if test "x$ac_ct_CC" = x
; then
2793 case $cross_compiling:$ac_tool_warned in
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned
=yes ;;
2806 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error
"no acceptable C compiler found in \$PATH
2809 See \`config.log' for more details." "$LINENO" 5; }
2811 # Provide some information about the compiler.
2812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2815 for ac_option
in --version -v -V -qversion; do
2816 { { ac_try
="$ac_compiler $ac_option >&5"
2818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822 $as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2825 if test -s conftest.err; then
2827 ... rest of stderr output deleted ...
2828 10q' conftest.err >conftest.er1
2829 cat conftest.er1 >&5
2830 rm -f conftest.er1 conftest.err
2832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2833 test $ac_status = 0; }
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2847 ac_clean_files_save=$ac_clean_files
2848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2849 # Try to create an executable without -o first, disregard a.out.
2850 # It will help us diagnose broken compilers, and finding out an intuition
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2853 $as_echo_n "checking for C compiler default output file name... " >&6; }
2854 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2856 # The possible output files:
2857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2860 for ac_file in $ac_files
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2869 if { { ac_try="$ac_link_default"
2871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2872 *) ac_try_echo
=$ac_try;;
2874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_link_default") 2>&5
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }; then :
2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2883 # so that the user can short-circuit this test for compilers unknown to
2885 for ac_file
in $ac_files ''
2887 test -f "$ac_file" ||
continue
2889 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2892 # We found the default executable, but exeext='' is most
2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2898 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2900 # We set ac_cv_exeext here because the later test for it is not
2901 # safe: cross compilers may not add the suffix if given an `-o'
2902 # argument, so we may need to know it at that point already.
2903 # Even if this section looks crufty: it has the advantage of
2910 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2916 $as_echo "$ac_file" >&6; }
2917 if test -z "$ac_file"; then :
2918 $as_echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.
$ac_ext >&5
2921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 { as_fn_set_status
77
2924 as_fn_error
"C compiler cannot create executables
2925 See \`config.log' for more details." "$LINENO" 5; }; }
2927 ac_exeext
=$ac_cv_exeext
2929 # Check that the compiler produces executables we can run. If not, either
2930 # the compiler is broken, or we cross compile.
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2932 $as_echo_n "checking whether the C compiler works... " >&6; }
2933 # If not cross compiling, check that we can run a simple program.
2934 if test "$cross_compiling" != yes; then
2935 if { ac_try
='./$ac_file'
2936 { { case "(($ac_try" in
2937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941 $as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_try") 2>&5
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }; }; then
2948 if test "$cross_compiling" = maybe; then
2951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953 as_fn_error "cannot run C compiled programs.
2954 If you meant to cross compile
, use \
`--host'.
2955 See \`config.log
' for more details." "$LINENO" 5; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2963 ac_clean_files=$ac_clean_files_save
2964 # Check that the compiler produces executables we can run. If not, either
2965 # the compiler is broken, or we cross compile.
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2967 $as_echo_n "checking whether we are cross compiling... " >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2969 $as_echo "$cross_compiling" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2972 $as_echo_n "checking for suffix of executables... " >&6; }
2973 if { { ac_try="$ac_link"
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_link") 2>&5
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; then :
2984 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2985 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2986 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2988 for ac_file
in conftest.exe conftest conftest.
*; do
2989 test -f "$ac_file" ||
continue
2991 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2992 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3001 See \`config.log' for more details." "$LINENO" 5; }
3003 rm -f conftest
$ac_cv_exeext
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3005 $as_echo "$ac_cv_exeext" >&6; }
3007 rm -f conftest.
$ac_ext
3008 EXEEXT
=$ac_cv_exeext
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3011 $as_echo_n "checking for suffix of object files... " >&6; }
3012 if test "${ac_cv_objext+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3026 rm -f conftest.o conftest.obj
3027 if { { ac_try
="$ac_compile"
3029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compile") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 for ac_file in conftest.o conftest.obj conftest.*; do
3039 test -f "$ac_file" || continue;
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error "cannot compute suffix of object files
: cannot compile
3053 See \
`config.log' for more details." "$LINENO" 5; }
3055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3058 $as_echo "$ac_cv_objext" >&6; }
3059 OBJEXT=$ac_cv_objext
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3062 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3063 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3080 if ac_fn_c_try_compile "$LINENO"; then :
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3090 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3091 if test $ac_compiler_gnu = yes; then
3096 ac_test_CFLAGS=${CFLAGS+set}
3097 ac_save_CFLAGS=$CFLAGS
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3099 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3100 if test "${ac_cv_prog_cc_g+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3118 if ac_fn_c_try_compile "$LINENO"; then :
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3133 if ac_fn_c_try_compile "$LINENO"; then :
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3149 if ac_fn_c_try_compile "$LINENO"; then :
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3160 $as_echo "$ac_cv_prog_cc_g" >&6; }
3161 if test "$ac_test_CFLAGS" = set; then
3162 CFLAGS=$ac_save_CFLAGS
3163 elif test $ac_cv_prog_cc_g = yes; then
3164 if test "$GCC" = yes; then
3170 if test "$GCC" = yes; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3178 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3181 ac_cv_prog_cc_c89=no
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3187 #include <sys/types.h>
3188 #include <sys/stat.h>
3189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3190 struct buf { int x; };
3191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3192 static char *e (p, i)
3198 static char *f (char * (*g) (char **, int), char **p, ...)
3203 s = g (p, va_arg (v,int));
3208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3209 function prototypes and stuff, but not '\xHH' hex character constants.
3210 These don't provoke an error unfortunately, instead are silently treated
3211 as 'x'. The following induces an error, until -std is added to get
3212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3213 array size at least. It's necessary to write '\x00'==0 to get something
3214 that's true only with -std. */
3215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3218 inside strings and character constants. */
3220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3222 int test (int i, double x);
3223 struct s1 {int (*f) (int a);};
3224 struct s2 {int (*f) (double a);};
3225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3239 CC="$ac_save_CC $ac_arg"
3240 if ac_fn_c_try_compile "$LINENO"; then :
3241 ac_cv_prog_cc_c89=$ac_arg
3243 rm -f core conftest.err conftest.$ac_objext
3244 test "x$ac_cv_prog_cc_c89" != "xno" && break
3246 rm -f conftest.$ac_ext
3251 case "x$ac_cv_prog_cc_c89" in
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3254 $as_echo "none needed" >&6; } ;;
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3257 $as_echo "unsupported" >&6; } ;;
3259 CC="$CC $ac_cv_prog_cc_c89"
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3263 if test "x$ac_cv_prog_cc_c89" != xno; then :
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3275 for ac_t in install-sh install.sh shtool; do
3276 if test -f "$ac_dir/$ac_t"; then
3278 ac_install_sh="$ac_aux_dir/$ac_t -c"
3283 if test -z "$ac_aux_dir"; then
3284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3287 # These three variables are undocumented and unsupported,
3288 # and are intended to be withdrawn in a future Autoconf release.
3289 # They can cause serious problems if a builder's source tree is in a directory
3290 # whose full name contains unusual characters.
3291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3293 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3296 # Make sure we can run config.sub.
3297 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3298 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3301 $as_echo_n "checking build system type... " >&6; }
3302 if test "${ac_cv_build+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 ac_build_alias=$build_alias
3306 test "x$ac_build_alias" = x &&
3307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3308 test "x$ac_build_alias" = x &&
3309 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3311 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3315 $as_echo "$ac_cv_build" >&6; }
3316 case $ac_cv_build in
3318 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3321 ac_save_IFS=$IFS; IFS='-'
3327 # Remember, the first character of IFS is used to create $*,
3328 # except with old shells:
3331 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3335 $as_echo_n "checking host system type... " >&6; }
3336 if test "${ac_cv_host+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3339 if test "x$host_alias" = x; then
3340 ac_cv_host=$ac_cv_build
3342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3343 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3348 $as_echo "$ac_cv_host" >&6; }
3351 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3354 ac_save_IFS=$IFS; IFS='-'
3360 # Remember, the first character of IFS is used to create $*,
3361 # except with old shells:
3364 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3368 $as_echo_n "checking target system type... " >&6; }
3369 if test "${ac_cv_target+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3372 if test "x$target_alias" = x; then
3373 ac_cv_target=$ac_cv_host
3375 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3376 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3381 $as_echo "$ac_cv_target" >&6; }
3382 case $ac_cv_target in
3384 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3386 target=$ac_cv_target
3387 ac_save_IFS=$IFS; IFS='-'
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3397 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3400 # The aliases save the names the user supplied, while $host etc.
3401 # will get canonicalized.
3402 test -n "$target_alias" &&
3403 test "$program_prefix$program_suffix$program_transform_name" = \
3405 program_prefix=${target_alias}-
3406 test "$program_prefix" != NONE &&
3407 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3408 # Use a double $ so make ignores it.
3409 test "$program_suffix" != NONE &&
3410 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3411 # Double any \ or $.
3412 # By default was `s
,x
,x
', remove it if useless.
3413 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3414 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3416 # Find a good install program. We prefer a C program (faster),
3417 # so one script is as good as another. But avoid the broken or
3418 # incompatible versions:
3419 # SysV /etc/install, /usr/sbin/install
3420 # SunOS /usr/etc/install
3421 # IRIX /sbin/install
3423 # AmigaOS /C/install, which installs bootblocks on floppy discs
3424 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
3425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3427 # OS/2's system install, which has a completely different semantic
3428 # ./install, which can be erroneously created by make from ./install.sh.
3429 # Reject install programs that cannot install multiple files.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3431 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3432 if test -z "$INSTALL"; then
3433 if test "${ac_cv_path_install+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
3436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir
=.
3441 # Account for people who put trailing slashes in PATH elements.
3442 case $as_dir/ in #((
3443 .
/ | .
// |
/[cC
]/* | \
3444 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3445 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3448 # OSF1 and SCO ODT 3.0 have their own names for install.
3449 # Don't use installbsd from OSF since it installs stuff as root
3451 for ac_prog
in ginstall scoinst
install; do
3452 for ac_exec_ext
in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3454 if test $ac_prog = install &&
3455 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3456 # AIX install. It has an incompatible calling convention.
3458 elif test $ac_prog = install &&
3459 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3460 # program-specific install script used by HP pwplus--don't use.
3463 rm -rf conftest.one conftest.two conftest.dir
3464 echo one
> conftest.one
3465 echo two
> conftest.two
3467 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3468 test -s conftest.one
&& test -s conftest.two
&&
3469 test -s conftest.dir
/conftest.one
&&
3470 test -s conftest.dir
/conftest.two
3472 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3485 rm -rf conftest.one conftest.two conftest.dir
3488 if test "${ac_cv_path_install+set}" = set; then
3489 INSTALL
=$ac_cv_path_install
3491 # As a last resort, use the slow shell script. Don't cache a
3492 # value for INSTALL within a source directory, because that will
3493 # break other packages using the cache if that directory is
3494 # removed, or if the value is a relative name.
3495 INSTALL
=$ac_install_sh
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3499 $as_echo "$INSTALL" >&6; }
3501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3502 # It thinks the first close brace ends the variable substitution.
3503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3505 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3507 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3509 rm -rf .tst
2>/dev
/null
3510 mkdir .tst
2>/dev
/null
3511 if test -d .tst
; then
3516 rmdir .tst
2>/dev
/null
3518 DEPDIR
="${am__leading_dot}deps"
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3532 if test -z "$CPP"; then
3533 if test "${ac_cv_prog_CPP+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3536 # Double quotes because CPP needs to be expanded
3537 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540 for ac_c_preproc_warn_flag
in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if ac_fn_c_try_cpp
"$LINENO"; then :
3560 # Broken: fails on valid input.
3563 rm -f conftest.err conftest.
$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3571 if ac_fn_c_try_cpp
"$LINENO"; then :
3572 # Broken: success on invalid input.
3575 # Passes both tests.
3579 rm -f conftest.err conftest.
$ac_ext
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.err conftest.
$ac_ext
3584 if $ac_preproc_ok; then :
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3597 $as_echo "$CPP" >&6; }
3599 for ac_c_preproc_warn_flag
in '' yes
3601 # Use a header file that comes with gcc, so configuring glibc
3602 # with a fresh cross-compiler works.
3603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 # <limits.h> exists even on freestanding compilers.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp. "Syntax error" is here to catch this case.
3607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3610 # include <limits.h>
3612 # include <assert.h>
3616 if ac_fn_c_try_cpp
"$LINENO"; then :
3619 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.
$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <ac_nonexistent.h>
3630 if ac_fn_c_try_cpp
"$LINENO"; then :
3631 # Broken: success on invalid input.
3634 # Passes both tests.
3638 rm -f conftest.err conftest.
$ac_ext
3641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.err conftest.
$ac_ext
3643 if $ac_preproc_ok; then :
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details." "$LINENO" 5; }
3653 ac_cpp
='$CPP $CPPFLAGS'
3654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3660 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3661 if test "${ac_cv_path_GREP+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3664 if test -z "$GREP"; then
3665 ac_path_GREP_found
=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3668 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3671 test -z "$as_dir" && as_dir
=.
3672 for ac_prog
in grep ggrep
; do
3673 for ac_exec_ext
in '' $ac_executable_extensions; do
3674 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3675 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3676 # Check for GNU ac_path_GREP and select it if it is found.
3677 # Check for GNU $ac_path_GREP
3678 case `"$ac_path_GREP" --version 2>&1` in
3680 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3683 $as_echo_n 0123456789 >"conftest.in"
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 $as_echo 'GREP' >> "conftest.nl"
3690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3691 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3692 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_GREP
="$ac_path_GREP"
3696 ac_path_GREP_max
=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3701 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3704 $ac_path_GREP_found && break 3
3709 if test -z "$ac_cv_path_GREP"; then
3710 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3713 ac_cv_path_GREP
=$GREP
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3718 $as_echo "$ac_cv_path_GREP" >&6; }
3719 GREP
="$ac_cv_path_GREP"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3723 $as_echo_n "checking for egrep... " >&6; }
3724 if test "${ac_cv_path_EGREP+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3728 then ac_cv_path_EGREP
="$GREP -E"
3730 if test -z "$EGREP"; then
3731 ac_path_EGREP_found
=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3734 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3737 test -z "$as_dir" && as_dir
=.
3738 for ac_prog
in egrep; do
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3741 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3742 # Check for GNU ac_path_EGREP and select it if it is found.
3743 # Check for GNU $ac_path_EGREP
3744 case `"$ac_path_EGREP" --version 2>&1` in
3746 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3749 $as_echo_n 0123456789 >"conftest.in"
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 $as_echo 'EGREP' >> "conftest.nl"
3756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3757 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3758 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_EGREP
="$ac_path_EGREP"
3762 ac_path_EGREP_max
=$ac_count
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3767 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3770 $ac_path_EGREP_found && break 3
3775 if test -z "$ac_cv_path_EGREP"; then
3776 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3779 ac_cv_path_EGREP
=$EGREP
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3785 $as_echo "$ac_cv_path_EGREP" >&6; }
3786 EGREP
="$ac_cv_path_EGREP"
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3790 $as_echo_n "checking for ANSI C header files... " >&6; }
3791 if test "${ac_cv_header_stdc+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3809 if ac_fn_c_try_compile
"$LINENO"; then :
3810 ac_cv_header_stdc
=yes
3812 ac_cv_header_stdc
=no
3814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 if test $ac_cv_header_stdc = yes; then
3817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824 $EGREP "memchr" >/dev
/null
2>&1; then :
3827 ac_cv_header_stdc
=no
3833 if test $ac_cv_header_stdc = yes; then
3834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 $EGREP "free" >/dev
/null
2>&1; then :
3844 ac_cv_header_stdc
=no
3850 if test $ac_cv_header_stdc = yes; then
3851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3852 if test "$cross_compiling" = yes; then :
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 #if ((' ' & 0x0FF) == 0x020)
3860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3863 # define ISLOWER(c) \
3864 (('a' <= (c) && (c) <= 'i') \
3865 || ('j' <= (c) && (c) <= 'r') \
3866 || ('s' <= (c) && (c) <= 'z'))
3867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3875 for (i = 0; i < 256; i++)
3876 if (XOR (islower (i), ISLOWER (i))
3877 || toupper (i) != TOUPPER (i))
3882 if ac_fn_c_try_run
"$LINENO"; then :
3885 ac_cv_header_stdc
=no
3887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3894 $as_echo "$ac_cv_header_stdc" >&6; }
3895 if test $ac_cv_header_stdc = yes; then
3897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3902 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3903 inttypes.h stdint.h unistd.h
3905 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3906 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3908 eval as_val
=\$
$as_ac_Header
3909 if test "x$as_val" = x
""yes; then :
3910 cat >>confdefs.h
<<_ACEOF
3911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3921 # autoconf.info says this should be called right after AC_INIT.
3922 ac_config_headers
="$ac_config_headers config.h:config.in"
3928 # Put a plausible default for CC_FOR_BUILD in Makefile.
3929 if test "x$cross_compiling" = "xno"; then
3930 CC_FOR_BUILD
='$(CC)'
3940 if test -n "$ac_tool_prefix"; then
3941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3942 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3948 if test -n "$RANLIB"; then
3949 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir
=.
3956 for ac_exec_ext
in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 RANLIB
=$ac_cv_prog_RANLIB
3969 if test -n "$RANLIB"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3971 $as_echo "$RANLIB" >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3979 if test -z "$ac_cv_prog_RANLIB"; then
3980 ac_ct_RANLIB
=$RANLIB
3981 # Extract the first word of "ranlib", so it can be a program name with args.
3982 set dummy ranlib
; ac_word
=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -n "$ac_ct_RANLIB"; then
3989 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir
=.
3996 for ac_exec_ext
in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4009 if test -n "$ac_ct_RANLIB"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4011 $as_echo "$ac_ct_RANLIB" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4017 if test "x$ac_ct_RANLIB" = x
; then
4020 case $cross_compiling:$ac_tool_warned in
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4024 ac_tool_warned
=yes ;;
4026 RANLIB
=$ac_ct_RANLIB
4029 RANLIB
="$ac_cv_prog_RANLIB"
4033 # Dependency checking.
4034 ac_config_commands
="$ac_config_commands depdir"
4037 depcc
="$CC" am_compiler_list
=
4039 am_depcomp
=$ac_aux_dir/depcomp
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 if test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # Copy depcomp to subdir because otherwise we won't find it if we're
4053 # using a relative directory.
4054 cp "$am_depcomp" conftest.dir
4056 # We will build objects and dependencies in a subdirectory because
4057 # it helps to detect inapplicable dependency modes. For instance
4058 # both Tru64's cc and ICC support -MD to output dependencies as a
4059 # side effect of compilation, but ICC will put the dependencies in
4060 # the current directory while Tru64 will put them in the object
4064 am_cv_CC_dependencies_compiler_type
=none
4065 if test "$am_compiler_list" = ""; then
4066 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 for depmode
in $am_compiler_list; do
4069 if test $depmode = none
; then break; fi
4071 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4072 # Setup a source with many dependencies, because some compilers
4073 # like to wrap large dependency lists on column 80 (with \), and
4074 # we should not choose a depcomp mode which is confused by this.
4076 # We need to recreate these files for each test, as the compiler may
4077 # overwrite some of them when testing with obscure command lines.
4078 # This happens at least with the AIX C compiler.
4080 for i
in 1 2 3 4 5 6; do
4081 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4082 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4083 # Solaris 8's {/usr,}/bin/sh.
4084 touch sub
/conftst
$i.h
4086 echo "include sub/conftest.Po" > confmf
4088 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4089 # mode. It turns out that the SunPro C++ compiler does not properly
4090 # handle `-M -o', and we need to detect this.
4091 depcmd
="depmode=$depmode \
4092 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4093 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4094 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4095 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4096 if env
$depcmd > conftest.err
2>&1 &&
4097 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4098 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4099 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4100 # icc doesn't choke on unknown options, it will just issue warnings
4101 # or remarks (even with -Werror). So we grep stderr for any message
4102 # that says an option was ignored or not supported.
4103 # When given -MP, icc 7.0 and 7.1 complain thusly:
4104 # icc: Command line warning: ignoring option '-M'; no argument required
4105 # The diagnosis changed in icc 8.0:
4106 # icc: Command line remark: option '-MP' not supported
4107 if (grep 'ignoring option' conftest.err ||
4108 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4109 am_cv_CC_dependencies_compiler_type
=$depmode
4110 $as_echo "$as_me:$LINENO: success" >&5
4114 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4115 sed -e 's/^/| /' < conftest.err
>&5
4121 am_cv_CC_dependencies_compiler_type
=none
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4126 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4127 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4128 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4129 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4134 # Check for the 'make' the user wants to use.
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy
$ac_prog; ac_word
=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_MAKE+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$MAKE"; then
4145 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir
=.
4152 for ac_exec_ext
in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_MAKE
="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 MAKE
=$ac_cv_prog_MAKE
4165 if test -n "$MAKE"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4167 $as_echo "$MAKE" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4174 test -n "$MAKE" && break
4178 case "`$MAKE --version 2>&1 | sed 1q`" in
4183 if test "$MAKE_IS_GNU" = yes; then
4193 # If we haven't got the data from the intl directory,
4194 # assume NLS is disabled.
4203 if test -f ..
/..
/intl
/config.intl
; then
4204 . ..
/..
/intl
/config.intl
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4207 $as_echo_n "checking whether NLS is requested... " >&6; }
4208 if test x
"$USE_NLS" != xyes
; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 $as_echo "yes" >&6; }
4215 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4219 $as_echo_n "checking for catalogs to be installed... " >&6; }
4220 # Look for .po and .gmo files in the source directory.
4223 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4224 # If there aren't any .gmo files the shell will give us the
4225 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4227 case "$cat" in *\
**)
4230 # The quadruple backslash is collapsed to a double backslash
4231 # by the backticks, then collapsed again by the double quotes,
4232 # leaving us with one backslash in the sed expression (right
4233 # before the dot that mustn't act as a wildcard).
4234 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4235 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4236 # The user is allowed to set LINGUAS to a list of languages to
4237 # install catalogs for. If it's empty that means "all of them."
4238 if test "x$LINGUAS" = x
; then
4239 CATALOGS
="$CATALOGS $cat"
4240 XLINGUAS
="$XLINGUAS $lang"
4242 case "$LINGUAS" in *$lang*)
4243 CATALOGS
="$CATALOGS $cat"
4244 XLINGUAS
="$XLINGUAS $lang"
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4251 $as_echo "$LINGUAS" >&6; }
4264 # Check for common headers.
4265 # FIXME: Seems to me this can cause problems for i386-windows hosts.
4266 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
4267 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
4269 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4270 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4271 eval as_val
=\$
$as_ac_Header
4272 if test "x$as_val" = x
""yes; then :
4273 cat >>confdefs.h
<<_ACEOF
4274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281 for ac_header
in sys
/time.h sys
/resource.h
4283 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4285 eval as_val
=\$
$as_ac_Header
4286 if test "x$as_val" = x
""yes; then :
4287 cat >>confdefs.h
<<_ACEOF
4288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 for ac_header
in fcntl.h fpu_control.h
4297 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4299 eval as_val
=\$
$as_ac_Header
4300 if test "x$as_val" = x
""yes; then :
4301 cat >>confdefs.h
<<_ACEOF
4302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309 for ac_header
in dlfcn.h errno.h sys
/stat.h
4311 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4312 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4313 eval as_val
=\$
$as_ac_Header
4314 if test "x$as_val" = x
""yes; then :
4315 cat >>confdefs.h
<<_ACEOF
4316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4323 for ac_func
in getrusage
time sigaction __setfpucw
4325 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4326 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4327 eval as_val
=\$
$as_ac_var
4328 if test "x$as_val" = x
""yes; then :
4329 cat >>confdefs.h
<<_ACEOF
4330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4337 # Check for socket libraries
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4339 $as_echo_n "checking for bind in -lsocket... " >&6; }
4340 if test "${ac_cv_lib_socket_bind+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 ac_check_lib_save_LIBS
=$LIBS
4344 LIBS
="-lsocket $LIBS"
4345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4348 /* Override any GCC internal prototype to avoid an error.
4349 Use char because int might match the return type of a GCC
4350 builtin and then its argument prototype would still apply. */
4363 if ac_fn_c_try_link
"$LINENO"; then :
4364 ac_cv_lib_socket_bind
=yes
4366 ac_cv_lib_socket_bind
=no
4368 rm -f core conftest.err conftest.
$ac_objext \
4369 conftest
$ac_exeext conftest.
$ac_ext
4370 LIBS
=$ac_check_lib_save_LIBS
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4373 $as_echo "$ac_cv_lib_socket_bind" >&6; }
4374 if test "x$ac_cv_lib_socket_bind" = x
""yes; then :
4375 cat >>confdefs.h
<<_ACEOF
4376 #define HAVE_LIBSOCKET 1
4379 LIBS
="-lsocket $LIBS"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4384 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4385 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_check_lib_save_LIBS
=$LIBS
4390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4393 /* Override any GCC internal prototype to avoid an error.
4394 Use char because int might match the return type of a GCC
4395 builtin and then its argument prototype would still apply. */
4399 char gethostbyname ();
4403 return gethostbyname ();
4408 if ac_fn_c_try_link
"$LINENO"; then :
4409 ac_cv_lib_nsl_gethostbyname
=yes
4411 ac_cv_lib_nsl_gethostbyname
=no
4413 rm -f core conftest.err conftest.
$ac_objext \
4414 conftest
$ac_exeext conftest.
$ac_ext
4415 LIBS
=$ac_check_lib_save_LIBS
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4418 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4419 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then :
4420 cat >>confdefs.h
<<_ACEOF
4421 #define HAVE_LIBNSL 1
4429 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4430 # using the same condition.
4432 # See if the user specified whether he wants zlib support or not.
4434 # Check whether --with-zlib was given.
4435 if test "${with_zlib+set}" = set; then :
4442 if test "$with_zlib" != "no"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4444 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4445 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4448 ac_func_search_save_LIBS
=$LIBS
4449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4452 /* Override any GCC internal prototype to avoid an error.
4453 Use char because int might match the return type of a GCC
4454 builtin and then its argument prototype would still apply. */
4458 char zlibVersion ();
4462 return zlibVersion ();
4467 for ac_lib
in '' z
; do
4468 if test -z "$ac_lib"; then
4469 ac_res
="none required"
4472 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4474 if ac_fn_c_try_link
"$LINENO"; then :
4475 ac_cv_search_zlibVersion
=$ac_res
4477 rm -f core conftest.err conftest.
$ac_objext \
4479 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4483 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4486 ac_cv_search_zlibVersion
=no
4489 LIBS
=$ac_func_search_save_LIBS
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4492 $as_echo "$ac_cv_search_zlibVersion" >&6; }
4493 ac_res
=$ac_cv_search_zlibVersion
4494 if test "$ac_res" != no
; then :
4495 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4496 for ac_header
in zlib.h
4498 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4499 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
4500 cat >>confdefs.h
<<_ACEOF
4501 #define HAVE_ZLIB_H 1
4510 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4511 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4516 .
${srcdir}/..
/..
/bfd
/configure.
host
4520 USE_MAINTAINER_MODE
=no
4521 # Check whether --enable-maintainer-mode was given.
4522 if test "${enable_maintainer_mode+set}" = set; then :
4523 enableval
=$enable_maintainer_mode; case "${enableval}" in
4524 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4526 *) as_fn_error
"\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT
="#" ;;
4528 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4529 echo "Setting maintainer mode" 6>&1
4537 # Check whether --enable-sim-bswap was given.
4538 if test "${enable_sim_bswap+set}" = set; then :
4539 enableval
=$enable_sim_bswap; case "${enableval}" in
4540 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4541 no
) sim_bswap
="-DWITH_BSWAP=0";;
4542 *) as_fn_error
"\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap
="";;
4544 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4545 echo "Setting bswap flags = $sim_bswap" 6>&1
4553 # Check whether --enable-sim-cflags was given.
4554 if test "${enable_sim_cflags+set}" = set; then :
4555 enableval
=$enable_sim_cflags; case "${enableval}" in
4556 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4557 trace
) as_fn_error
"\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags
="";;
4559 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4561 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4562 echo "Setting sim cflags = $sim_cflags" 6>&1
4570 # Check whether --enable-sim-debug was given.
4571 if test "${enable_sim_debug+set}" = set; then :
4572 enableval
=$enable_sim_debug; case "${enableval}" in
4573 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4574 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4575 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4577 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4578 echo "Setting sim debug = $sim_debug" 6>&1
4586 # Check whether --enable-sim-stdio was given.
4587 if test "${enable_sim_stdio+set}" = set; then :
4588 enableval
=$enable_sim_stdio; case "${enableval}" in
4589 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4590 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4591 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4593 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4594 echo "Setting stdio flags = $sim_stdio" 6>&1
4602 # Check whether --enable-sim-trace was given.
4603 if test "${enable_sim_trace+set}" = set; then :
4604 enableval
=$enable_sim_trace; case "${enableval}" in
4605 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4606 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4608 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4611 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4612 if test x
"$sim_trace" = x
; then
4613 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4615 sim_trace
="${sim_trace}|TRACE_$x"
4618 sim_trace
="$sim_trace)'" ;;
4620 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4621 echo "Setting sim trace = $sim_trace" 6>&1
4629 # Check whether --enable-sim-profile was given.
4630 if test "${enable_sim_profile+set}" = set; then :
4631 enableval
=$enable_sim_profile; case "${enableval}" in
4632 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4633 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4635 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4638 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4639 if test x
"$sim_profile" = x
; then
4640 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4642 sim_profile
="${sim_profile}|PROFILE_$x"
4645 sim_profile
="$sim_profile)'" ;;
4647 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4648 echo "Setting sim profile = $sim_profile" 6>&1
4651 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4657 # Check whether --with-pkgversion was given.
4658 if test "${with_pkgversion+set}" = set; then :
4659 withval
=$with_pkgversion; case "$withval" in
4660 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4662 *) PKGVERSION
="($withval) " ;;
4673 # Check whether --with-bugurl was given.
4674 if test "${with_bugurl+set}" = set; then :
4675 withval
=$with_bugurl; case "$withval" in
4676 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4679 *) BUGURL
="$withval"
4683 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4693 REPORT_BUGS_TO
="<$BUGURL>"
4694 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4701 cat >>confdefs.h
<<_ACEOF
4702 #define PKGVERSION "$PKGVERSION"
4706 cat >>confdefs.h
<<_ACEOF
4707 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4712 $as_echo_n "checking return type of signal handlers... " >&6; }
4713 if test "${ac_cv_type_signal+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #include <sys/types.h>
4724 return *(signal (0, 0)) (0) == 1;
4729 if ac_fn_c_try_compile
"$LINENO"; then :
4730 ac_cv_type_signal
=int
4732 ac_cv_type_signal
=void
4734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4737 $as_echo "$ac_cv_type_signal" >&6; }
4739 cat >>confdefs.h
<<_ACEOF
4740 #define RETSIGTYPE $ac_cv_type_signal
4750 sim_link_links
=tconfig.h
4751 if test -f ${srcdir}/tconfig.
in
4753 sim_link_files
=tconfig.
in
4755 sim_link_files
=..
/common
/tconfig.
in
4758 # targ-vals.def points to the libc macro description file.
4760 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4762 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4763 sim_link_links
="${sim_link_links} targ-vals.def"
4768 default_sim_inline
=""
4769 # Check whether --enable-sim-inline was given.
4770 if test "${enable_sim_inline+set}" = set; then :
4771 enableval
=$enable_sim_inline; sim_inline
=""
4772 case "$enableval" in
4773 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4774 0) sim_inline
="-DDEFAULT_INLINE=0";;
4775 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4776 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4777 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4780 *_INLINE
=*) new_flag
="-D$x";;
4781 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4782 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4783 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4785 if test x
"$sim_inline" = x
""; then
4786 sim_inline
="$new_flag"
4788 sim_inline
="$sim_inline $new_flag"
4792 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4793 echo "Setting inline flags = $sim_inline" 6>&1
4797 if test "x$cross_compiling" = "xno"; then
4798 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4799 sim_inline
="${default_sim_inline}"
4800 if test x
"$silent" != x
"yes"; then
4801 echo "Setting inline flags = $sim_inline" 6>&1
4807 sim_inline
="-DDEFAULT_INLINE=0"
4811 wire_alignment
="NONSTRICT_ALIGNMENT"
4812 default_alignment
=""
4814 # Check whether --enable-sim-alignment was given.
4815 if test "${enable_sim_alignment+set}" = set; then :
4816 enableval
=$enable_sim_alignment; case "${enableval}" in
4817 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4818 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4819 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4820 yes) if test x
"$wire_alignment" != x
; then
4821 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4823 if test x
"$default_alignment" != x
; then
4824 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4826 echo "No hard-wired alignment for target $target" 1>&6
4827 sim_alignment
="-DWITH_ALIGNMENT=0"
4830 no
) if test x
"$default_alignment" != x
; then
4831 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4833 if test x
"$wire_alignment" != x
; then
4834 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4836 echo "No default alignment for target $target" 1>&6
4837 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4840 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
4842 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4843 echo "Setting alignment flags = $sim_alignment" 6>&1
4846 if test x
"$default_alignment" != x
; then
4847 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4849 if test x
"$wire_alignment" != x
; then
4850 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4858 # Check whether --enable-sim-hostendian was given.
4859 if test "${enable_sim_hostendian+set}" = set; then :
4860 enableval
=$enable_sim_hostendian; case "${enableval}" in
4861 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4862 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4863 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4864 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4866 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4867 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4871 if test "x$cross_compiling" = "xno"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4873 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4874 if test "${ac_cv_c_bigendian+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 ac_cv_c_bigendian
=unknown
4878 # See if we're dealing with a universal compiler.
4879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #ifndef __APPLE_CC__
4882 not a universal capable compiler
4887 if ac_fn_c_try_compile
"$LINENO"; then :
4889 # Check for potential -arch flags. It is not universal unless
4890 # there are at least two -arch flags with different values.
4893 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4894 if test -n "$ac_prev"; then
4896 i?
86 | x86_64 | ppc | ppc64
)
4897 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4900 ac_cv_c_bigendian
=universal
4906 elif test "x$ac_word" = "x-arch"; then
4911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4912 if test $ac_cv_c_bigendian = unknown
; then
4913 # See if sys/param.h defines the BYTE_ORDER macro.
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <sys/types.h>
4917 #include <sys/param.h>
4922 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4923 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4932 if ac_fn_c_try_compile
"$LINENO"; then :
4933 # It does; now see whether it defined to BIG_ENDIAN or not.
4934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936 #include <sys/types.h>
4937 #include <sys/param.h>
4942 #if BYTE_ORDER != BIG_ENDIAN
4950 if ac_fn_c_try_compile
"$LINENO"; then :
4951 ac_cv_c_bigendian
=yes
4953 ac_cv_c_bigendian
=no
4955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 if test $ac_cv_c_bigendian = unknown
; then
4960 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4968 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4976 if ac_fn_c_try_compile
"$LINENO"; then :
4977 # It does; now see whether it defined to _BIG_ENDIAN or not.
4978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4993 if ac_fn_c_try_compile
"$LINENO"; then :
4994 ac_cv_c_bigendian
=yes
4996 ac_cv_c_bigendian
=no
4998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5002 if test $ac_cv_c_bigendian = unknown
; then
5003 # Compile a test program.
5004 if test "$cross_compiling" = yes; then :
5005 # Try to guess by grepping values from an object file.
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 short int ascii_mm[] =
5009 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5010 short int ascii_ii[] =
5011 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5012 int use_ascii (int i) {
5013 return ascii_mm[i] + ascii_ii[i];
5015 short int ebcdic_ii[] =
5016 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5017 short int ebcdic_mm[] =
5018 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5019 int use_ebcdic (int i) {
5020 return ebcdic_mm[i] + ebcdic_ii[i];
5027 return use_ascii (foo) == use_ebcdic (foo);
5032 if ac_fn_c_try_compile
"$LINENO"; then :
5033 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5034 ac_cv_c_bigendian
=yes
5036 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5037 if test "$ac_cv_c_bigendian" = unknown
; then
5038 ac_cv_c_bigendian
=no
5040 # finding both strings is unlikely to happen, but who knows?
5041 ac_cv_c_bigendian
=unknown
5045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 $ac_includes_default
5054 /* Are we little or big endian? From Harbison&Steele. */
5058 char c[sizeof (long int)];
5061 return u.c[sizeof (long int) - 1] == 1;
5067 if ac_fn_c_try_run
"$LINENO"; then :
5068 ac_cv_c_bigendian
=no
5070 ac_cv_c_bigendian
=yes
5072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5079 $as_echo "$ac_cv_c_bigendian" >&6; }
5080 case $ac_cv_c_bigendian in #(
5082 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5088 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5092 as_fn_error
"unknown endianness
5093 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5096 if test $ac_cv_c_bigendian = yes; then
5097 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5099 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5102 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
5107 # NOTE: Don't add -Wall or -Wunused, they both include
5108 # -Wunused-parameter which reports bogus warnings.
5109 # NOTE: If you add to this list, remember to update
5110 # gdb/doc/gdbint.texinfo.
5111 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5112 -Wformat -Wparentheses -Wpointer-arith"
5113 # GCC supports -Wuninitialized only with -O or -On, n != 0.
5114 if test x
${CFLAGS+set} = xset
; then
5118 build_warnings
="${build_warnings} -Wuninitialized"
5122 build_warnings
="${build_warnings} -Wuninitialized"
5124 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5125 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5126 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
5127 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5128 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5129 # -Woverloaded-virtual -Winline -Werror"
5130 # Check whether --enable-build-warnings was given.
5131 if test "${enable_build_warnings+set}" = set; then :
5132 enableval
=$enable_build_warnings; case "${enableval}" in
5134 no
) build_warnings
="-w";;
5135 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5136 build_warnings
="${build_warnings} ${t}";;
5137 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5138 build_warnings
="${t} ${build_warnings}";;
5139 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5141 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5142 echo "Setting compiler warning flags = $build_warnings" 6>&1
5145 # Check whether --enable-sim-build-warnings was given.
5146 if test "${enable_sim_build_warnings+set}" = set; then :
5147 enableval
=$enable_sim_build_warnings; case "${enableval}" in
5149 no
) build_warnings
="-w";;
5150 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5151 build_warnings
="${build_warnings} ${t}";;
5152 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5153 build_warnings
="${t} ${build_warnings}";;
5154 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5156 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5157 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5162 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5165 $as_echo_n "checking compiler warning flags... " >&6; }
5166 # Separate out the -Werror flag as some files just cannot be
5167 # compiled with it enabled.
5168 for w
in ${build_warnings}; do
5170 -Werr*) WERROR_CFLAGS
=-Werror ;;
5171 *) # Check that GCC accepts it
5172 saved_CFLAGS
="$CFLAGS"
5174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5185 if ac_fn_c_try_compile
"$LINENO"; then :
5186 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5189 CFLAGS
="$saved_CFLAGS"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5193 $as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
5197 default_sim_reserved_bits="1"
5198 # Check whether --enable-sim-reserved-bits was given.
5199 if test "${enable_sim_reserved_bits+set}" = set; then :
5200 enableval=$enable_sim_reserved_bits; case "${enableval}" in
5201 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
5202 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
5203 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value
\"" "$LINENO" 5; sim_reserved_bits="";;
5205 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5206 echo "Setting reserved flags
= $sim_reserved_bits" 6>&1
5209 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5215 # Instead of defining a `subtarget' macro, code should be checking
5216 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5220 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
5221 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
5222 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5223 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5224 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5225 *) SIM_SUBTARGET="";;
5232 # Select the byte order of the target
5237 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5238 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5239 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5240 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5241 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5242 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5243 mips*-*-*) default_endian=BIG_ENDIAN ;;
5244 *) default_endian=BIG_ENDIAN ;;
5247 wire_endian="$mips_endian"
5248 default_endian="$default_endian"
5249 # Check whether --enable-sim-endian was given.
5250 if test "${enable_sim_endian+set}" = set; then :
5251 enableval=$enable_sim_endian; case "${enableval}" in
5252 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN
";;
5253 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN
";;
5254 yes) if test x"$wire_endian" != x; then
5255 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5257 if test x"$default_endian" != x; then
5258 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5260 echo "No hard-wired endian
for target
$target" 1>&6
5261 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5264 no) if test x"$default_endian" != x; then
5265 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5267 if test x"$wire_endian" != x; then
5268 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5270 echo "No default endian
for target
$target" 1>&6
5271 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5274 *) as_fn_error "\"Unknown value
$enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5276 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5277 echo "Setting endian flags
= $sim_endian" 6>&1
5280 if test x"$default_endian" != x; then
5281 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5283 if test x"$wire_endian" != x; then
5284 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5295 # Select the bitsize of the target
5299 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5300 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5301 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5302 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5303 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5304 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5305 *) mips_bitsize=64 ; mips_msb=63 ;;
5307 wire_word_bitsize="$mips_bitsize"
5308 wire_word_msb="$mips_msb"
5309 wire_address_bitsize="$mips_addr_bitsize"
5310 wire_cell_bitsize=""
5311 # Check whether --enable-sim-bitsize was given.
5312 if test "${enable_sim_bitsize+set}" = set; then :
5313 enableval=$enable_sim_bitsize; sim_bitsize=
5314 case "${enableval}" in
5315 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5316 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5317 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5318 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5319 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5320 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5322 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5324 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5325 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5327 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5329 *) as_fn_error "\"--enable-sim-bitsize was given
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5332 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9]*,*//"`
5335 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5336 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5337 * ) as_fn_error "\"--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5340 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5343 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5344 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5345 * ) as_fn_error "\"--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
5347 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5348 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
5352 if test x"$wire_word_bitsize" != x; then
5353 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5355 if test x"$wire_word_msb" != x; then
5356 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5358 if test x"$wire_address_bitsize" != x; then
5359 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5361 if test x"$wire_cell_bitsize" != x; then
5362 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5370 # Select the floating hardware support of the target
5372 mips_fpu=HARDWARE_FLOATING_POINT
5375 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5376 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5377 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5378 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5379 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5380 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5381 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5382 *) mips_fpu=HARD_FLOATING_POINT ;;
5385 default_sim_float="$mips_fpu"
5386 default_sim_float_bitsize="$mips_fpu_bitsize"
5387 # Check whether --enable-sim-float was given.
5388 if test "${enable_sim_float+set}" = set; then :
5389 enableval=$enable_sim_float; case "${enableval}" in
5390 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
";;
5391 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT
";;
5392 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5393 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5394 *) as_fn_error "\"Unknown value
$enableval passed to
--enable-sim-float\"" "$LINENO" 5; sim_float="";;
5396 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5397 echo "Setting float flags
= $sim_float" 6>&1
5402 if test x"${default_sim_float}" != x""; then
5403 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5405 if test x"${default_sim_float_bitsize}" != x""; then
5406 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5415 # Select the level of SMP support
5421 default_sim_smp="$mips_smp"
5422 # Check whether --enable-sim-smp was given.
5423 if test "${enable_sim_smp+set}" = set; then :
5424 enableval=$enable_sim_smp; case "${enableval}" in
5425 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5426 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5427 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5429 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5430 echo "Setting smp flags
= $sim_smp" 6>&1
5433 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5434 if test x"$silent" != x"yes"; then
5435 echo "Setting smp flags
= $sim_smp" 6>&1
5443 # Select the IGEN architecture
5446 sim_igen_machine="-M mipsIV
"
5447 sim_m16_machine="-M mips16
,mipsIII
"
5448 sim_igen_filter="32,64,f
"
5450 sim_mach_default="mips8000
"
5453 mips*tx39*) sim_gen=IGEN
5454 sim_igen_filter="32,f
"
5455 sim_igen_machine="-M r3900
"
5457 mips64vr43*-*-*) sim_gen=IGEN
5458 sim_igen_machine="-M mipsIV
"
5459 sim_mach_default="mips8000
"
5461 mips64vr5*-*-*) sim_gen=IGEN
5462 sim_igen_machine="-M vr5000
"
5463 sim_mach_default="mips5000
"
5465 mips64vr41*) sim_gen=M16
5466 sim_igen_machine="-M vr4100
"
5467 sim_m16_machine="-M vr4100
"
5468 sim_igen_filter="32,64,f
"
5470 sim_mach_default="mips4100
"
5472 mips64vr-*-* | mips64vrel-*-*)
5474 sim_multi_configs="\
5475 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
5476 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
5477 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000\
5478 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
5479 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
5480 sim_multi_default=mips5000
5482 mips*-sde-elf*) sim_gen=M16
5483 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5484 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5485 sim_igen_filter="32,64,f
"
5486 sim_mach_default="mipsisa64r2
"
5488 mips64*-*-*) sim_igen_filter="32,64,f
"
5491 mips16*-*-*) sim_gen=M16
5492 sim_igen_filter="32,64,f
"
5495 mipsisa32r2*-*-*) sim_gen=M16
5496 sim_igen_machine="-M mips32r2
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
"
5497 sim_m16_machine="-M mips16
,mips16e
,mips32r2
"
5498 sim_igen_filter="32,f
"
5499 sim_mach_default="mipsisa32r2
"
5501 mipsisa32*-*-*) sim_gen=M16
5502 sim_igen_machine="-M mips32
,mips16
,mips16e
,smartmips
"
5503 sim_m16_machine="-M mips16
,mips16e
,mips32
"
5504 sim_igen_filter="32,f
"
5505 sim_mach_default="mipsisa32
"
5507 mipsisa64r2*-*-*) sim_gen=M16
5508 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
5509 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
5510 sim_igen_filter="32,64,f
"
5511 sim_mach_default="mipsisa64r2
"
5513 mipsisa64sb1*-*-*) sim_gen=IGEN
5514 sim_igen_machine="-M mips64
,mips3d
,sb1
"
5515 sim_igen_filter="32,64,f
"
5516 sim_mach_default="mips_sb1
"
5518 mipsisa64*-*-*) sim_gen=M16
5519 sim_igen_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
5520 sim_m16_machine="-M mips16
,mips16e
,mips64
"
5521 sim_igen_filter="32,64,f
"
5522 sim_mach_default="mipsisa64
"
5524 mips*lsi*) sim_gen=M16
5525 sim_igen_machine="-M mipsIII
,mips16
"
5526 sim_m16_machine="-M mips16
,mipsIII
"
5527 sim_igen_filter="32,f
"
5529 sim_mach_default="mips4000
"
5531 mips*-*-*) sim_gen=IGEN
5532 sim_igen_filter="32,f
"
5536 # The MULTI generator can combine several simulation engines into one.
5537 # executable. A configuration which uses the MULTI should set two
5538 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5540 # ${sim_multi_configs} is the list of engines to build. Each
5541 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5544 # - NAME is a C-compatible prefix for the engine,
5545 # - MACHINE is a -M argument,
5546 # - FILTER is a -F argument, and
5547 # - BFDMACHS is a comma-separated list of bfd machines that the
5548 # simulator can run.
5550 # Each entry will have a separate simulation engine whose prefix is
5551 # m32<NAME>. If the machine list includes "mips16
", there will also
5552 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5553 # generated using the same machine list as the 32-bit version,
5554 # but the filter will be "16" instead of FILTER.
5556 # The simulator compares the bfd mach against BFDMACHS to decide
5557 # which engine to use. Entries in BFDMACHS should be bfd_mach
5558 # values with "bfd_mach_
" removed. ${sim_multi_default} says
5559 # which entry should be the default.
5560 if test ${sim_gen} = MULTI; then
5562 # Simple sanity check.
5563 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5564 as_fn_error "Error
in configure.
in: MULTI simulator not
set up correctly
" "$LINENO" 5
5567 # Start in a known state.
5568 rm -f multi-include.h multi-run.c
5571 sim_multi_obj=multi-run.o
5572 sim_multi_igen_configs=
5575 cat << __EOF__ > multi-run.c
5576 /* Main entry point for MULTI simulators.
5577 Copyright (C) 2003, 2007, 2010 Free Software Foundation, Inc.
5579 This program is free software; you can redistribute it and/or modify
5580 it under the terms of the GNU General Public License as published by
5581 the Free Software Foundation; either version 3 of the License, or
5582 (at your option) any later version.
5584 This program is distributed in the hope that it will be useful,
5585 but WITHOUT ANY WARRANTY; without even the implied warranty of
5586 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5587 GNU General Public License for more details.
5589 You should have received a copy of the GNU General Public License
5590 along with this program. If not, see <http://www.gnu.org/licenses/>.
5594 This file was generated by sim/mips/configure. */
5596 #include "sim-main.h
"
5597 #include "multi-include.h
"
5603 sim_engine_run (SIM_DESC sd,
5606 int signal) /* ignore */
5610 if (STATE_ARCHITECTURE (sd) == NULL)
5611 mach = bfd_mach_${sim_multi_default};
5613 mach = STATE_ARCHITECTURE (SD)->mach;
5619 for fc in ${sim_multi_configs}; do
5621 # Split up the entry. ${c} contains the first three elements.
5622 # Note: outer sqaure brackets are m4 quotes.
5623 c=`echo ${fc} | sed 's/:[^:]*$//'`
5624 bfdmachs=`echo ${fc} | sed 's/.*://'`
5625 name=`echo ${c} | sed 's/:.*//'`
5626 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5627 filter=`echo ${c} | sed 's/.*://'`
5629 # Build the following lists:
5631 # sim_multi_flags: all -M and -F flags used by the simulator
5632 # sim_multi_src: all makefile-generated source files
5633 # sim_multi_obj: the objects for ${sim_multi_src}
5634 # sim_multi_igen_configs: igen configuration strings.
5636 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5637 # or m16) followed by the NAME, MACHINE and FILTER part of
5638 # the ${sim_multi_configs} entry.
5639 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5641 # Check whether mips16 handling is needed.
5644 # Run igen twice, once for normal mode and once for mips16.
5647 # The top-level function for the mips16 simulator is
5648 # in a file m16${name}_run.c, generated by the
5649 # tmp-run-multi Makefile rule.
5650 sim_multi_src="${sim_multi_src} m16
${name}_run.c
"
5651 sim_multi_obj="${sim_multi_obj} m16
${name}_run.o
"
5652 sim_multi_flags="${sim_multi_flags} -F 16"
5659 # Now add the list of igen-generated files to ${sim_multi_src}
5660 # and ${sim_multi_obj}.
5662 for base in engine icache idecode model semantics support; do
5663 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c
"
5664 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h
"
5665 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o
"
5667 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5670 # Add an include for the engine.h file. This file declares the
5671 # top-level foo_engine_run() function.
5672 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5674 # Add case statements for this engine to sim_engine_run().
5675 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5676 echo " case bfd_mach_${mach}:" >> multi-run.c
5677 if test ${mach} = ${sim_multi_default}; then
5678 echo " default:" >> multi-run.c
5679 sim_seen_default
=yes
5682 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5684 echo " break;" >> multi-run.c
5687 # Check whether we added a 'default:' label.
5688 if test ${sim_seen_default} = no
; then
5689 as_fn_error
"Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5692 cat << __EOF__ >> multi-run.c
5697 mips_mach_multi (SIM_DESC sd)
5699 if (STATE_ARCHITECTURE (sd) == NULL)
5700 return bfd_mach_${sim_multi_default};
5702 switch (STATE_ARCHITECTURE (SD)->mach)
5706 # Add case statements for this engine to mips_mach_multi().
5707 for fc in ${sim_multi_configs}; do
5709 # Split up the entry. ${c} contains the first three elements.
5710 # Note: outer sqaure brackets are m4 quotes.
5711 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5712 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5714 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5715 echo " case bfd_mach_${mach}:" >> multi-run.c
5719 cat << __EOF__ >> multi-run.c
5720 return (STATE_ARCHITECTURE (SD)->mach);
5722 return bfd_mach_${sim_multi_default};
5727 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5730 sim_multi_src
=doesnt-exist.c
5732 if test x
"${sim_mach_default}" = x
""; then
5733 as_fn_error
"Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5735 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5737 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5738 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5749 # Add simulated hardware devices
5755 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5756 mips_extra_objs
="dv-sockser.o"
5757 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
5764 if test x
"$hw_enabled" = x
"yes"; then
5769 if test "$hw_devices"; then
5770 hardware
="$hw_devices"
5772 hardware
="cfi core pal glue"
5774 hardware
="$hardware $hw_extra_devices"
5775 sim_hw_cflags
="-DWITH_HW=1"
5777 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5778 # Check whether --enable-sim-hardware was given.
5779 if test "${enable_sim_hardware+set}" = set; then :
5780 enableval
=$enable_sim_hardware;
5781 case "${enableval}" in
5784 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5785 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5786 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5788 if test "$sim_hw_p" != yes; then
5790 sim_hw_cflags
="-DWITH_HW=0"
5793 sim_hw_cflags
="-DWITH_HW=1"
5796 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
5797 for i
in $hardware ; do
5800 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
5804 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
5805 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5809 if test "$sim_hw_p" != yes; then
5811 sim_hw_cflags
="-DWITH_HW=0"
5814 if test x
"$silent" != x
"yes"; then
5815 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5819 case " $hardware " in
5820 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
5821 $as_echo_n "checking for log2 in -lm... " >&6; }
5822 if test "${ac_cv_lib_m_log2+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 ac_check_lib_save_LIBS
=$LIBS
5827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5830 /* Override any GCC internal prototype to avoid an error.
5831 Use char because int might match the return type of a GCC
5832 builtin and then its argument prototype would still apply. */
5845 if ac_fn_c_try_link
"$LINENO"; then :
5846 ac_cv_lib_m_log2
=yes
5850 rm -f core conftest.err conftest.
$ac_objext \
5851 conftest
$ac_exeext conftest.
$ac_ext
5852 LIBS
=$ac_check_lib_save_LIBS
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
5855 $as_echo "$ac_cv_lib_m_log2" >&6; }
5856 if test "x$ac_cv_lib_m_log2" = x
""yes; then :
5857 cat >>confdefs.h
<<_ACEOF
5870 # Choose simulator engine
5872 *) mips_igen_engine
="engine.o"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5879 $as_echo_n "checking for X... " >&6; }
5882 # Check whether --with-x was given.
5883 if test "${with_x+set}" = set; then :
5887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5888 if test "x$with_x" = xno
; then
5889 # The user explicitly disabled X.
5892 case $x_includes,$x_libraries in #(
5893 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
5894 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 # One or both of the vars are not set, and there is no cached value.
5898 ac_x_includes
=no ac_x_libraries
=no
5899 rm -f -r conftest.dir
5900 if mkdir conftest.dir
; then
5902 cat >Imakefile
<<'_ACEOF'
5904 @echo incroot='${INCROOT}'
5906 @echo usrlibdir='${USRLIBDIR}'
5908 @echo libdir='${LIBDIR}'
5910 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5912 for ac_var
in incroot usrlibdir libdir
; do
5913 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5915 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5916 for ac_extension
in a so sl dylib la dll
; do
5917 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5918 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5919 ac_im_usrlibdir
=$ac_im_libdir; break
5922 # Screen out bogus values from the imake configuration. They are
5923 # bogus both because they are the default anyway, and because
5924 # using them would break gcc on systems where it needs fixed includes.
5925 case $ac_im_incroot in
5926 /usr
/include
) ac_x_includes
= ;;
5927 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5929 case $ac_im_usrlibdir in
5930 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
5931 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5935 rm -f -r conftest.dir
5938 # Standard set of common directories for X headers.
5939 # Check X11 before X11Rn because it is often a symlink to the current release.
5953 /usr/local/X11/include
5954 /usr/local/X11R7/include
5955 /usr/local/X11R6/include
5956 /usr/local/X11R5/include
5957 /usr/local/X11R4/include
5959 /usr/local/include/X11
5960 /usr/local/include/X11R7
5961 /usr/local/include/X11R6
5962 /usr/local/include/X11R5
5963 /usr/local/include/X11R4
5967 /usr/XFree86/include/X11
5971 /usr/unsupported/include
5973 /usr/local/x11r5/include
5974 /usr/lpp/Xamples/include
5976 /usr/openwin/include
5977 /usr/openwin/share/include'
5979 if test "$ac_x_includes" = no
; then
5980 # Guess where to find include files, by looking for Xlib.h.
5981 # First, try using that file with no special directory specified.
5982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <X11/Xlib.h>
5986 if ac_fn_c_try_cpp
"$LINENO"; then :
5987 # We can compile using X headers with no special include directory.
5990 for ac_dir
in $ac_x_header_dirs; do
5991 if test -r "$ac_dir/X11/Xlib.h"; then
5992 ac_x_includes
=$ac_dir
5997 rm -f conftest.err conftest.
$ac_ext
5998 fi # $ac_x_includes = no
6000 if test "$ac_x_libraries" = no
; then
6001 # Check for the libraries.
6002 # See if we find them without any special options.
6003 # Don't add to $LIBS permanently.
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 #include <X11/Xlib.h>
6017 if ac_fn_c_try_link
"$LINENO"; then :
6019 # We can link X programs with no special library path.
6023 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6025 # Don't even attempt the hair of trying to link an X program!
6026 for ac_extension
in a so sl dylib la dll
; do
6027 if test -r "$ac_dir/libX11.$ac_extension"; then
6028 ac_x_libraries
=$ac_dir
6034 rm -f core conftest.err conftest.
$ac_objext \
6035 conftest
$ac_exeext conftest.
$ac_ext
6036 fi # $ac_x_libraries = no
6038 case $ac_x_includes,$ac_x_libraries in #(
6040 # Didn't find X, or a directory has "'" in its name.
6041 ac_cv_have_x
="have_x=no";; #(
6043 # Record where we found X for the cache.
6044 ac_cv_have_x
="have_x=yes\
6045 ac_x_includes='$ac_x_includes'\
6046 ac_x_libraries='$ac_x_libraries'"
6052 eval "$ac_cv_have_x"
6055 if test "$have_x" != yes; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6057 $as_echo "$have_x" >&6; }
6060 # If each of the values was on the command line, it overrides each guess.
6061 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6062 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6063 # Update the cache value to reflect the command line values.
6064 ac_cv_have_x
="have_x=yes\
6065 ac_x_includes='$x_includes'\
6066 ac_x_libraries='$x_libraries'"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6068 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6074 for ac_header
in string.h
strings.h stdlib.h stdlib.h
6076 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6077 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6078 eval as_val
=\$
$as_ac_Header
6079 if test "x$as_val" = x
""yes; then :
6080 cat >>confdefs.h
<<_ACEOF
6081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
6089 $as_echo_n "checking for fabs in -lm... " >&6; }
6090 if test "${ac_cv_lib_m_fabs+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 ac_check_lib_save_LIBS
=$LIBS
6095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6098 /* Override any GCC internal prototype to avoid an error.
6099 Use char because int might match the return type of a GCC
6100 builtin and then its argument prototype would still apply. */
6113 if ac_fn_c_try_link
"$LINENO"; then :
6114 ac_cv_lib_m_fabs
=yes
6118 rm -f core conftest.err conftest.
$ac_objext \
6119 conftest
$ac_exeext conftest.
$ac_ext
6120 LIBS
=$ac_check_lib_save_LIBS
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
6123 $as_echo "$ac_cv_lib_m_fabs" >&6; }
6124 if test "x$ac_cv_lib_m_fabs" = x
""yes; then :
6125 cat >>confdefs.h
<<_ACEOF
6133 for ac_func
in aint anint sqrt
6135 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6136 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6137 eval as_val
=\$
$as_ac_var
6138 if test "x$as_val" = x
""yes; then :
6139 cat >>confdefs.h
<<_ACEOF
6140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6148 ac_sources
="$sim_link_files"
6149 ac_dests
="$sim_link_links"
6150 while test -n "$ac_sources"; do
6151 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
6152 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
6153 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
6155 ac_config_links
="$ac_config_links $ac_config_links_1"
6158 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
6159 cgen_breaks
="break cgen_rtx_error";
6162 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
6164 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
6166 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
6168 ac_config_commands
="$ac_config_commands Makefile"
6170 ac_config_commands
="$ac_config_commands stamp-h"
6172 cat >confcache
<<\_ACEOF
6173 # This file is a shell script that caches the results of configure
6174 # tests run on this system so they can be shared between configure
6175 # scripts and configure runs, see configure's option --config-cache.
6176 # It is not useful on other systems. If it contains results you don't
6177 # want to keep, you may remove or edit it.
6179 # config.status only pays attention to the cache file if you give it
6180 # the --recheck option to rerun configure.
6182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6188 # The following way of writing the cache mishandles newlines in values,
6189 # but we know of no workaround that is simple, portable, and efficient.
6190 # So, we kill variables containing newlines.
6191 # Ultrix sh set writes to stderr and can't be redirected directly,
6192 # and sets the high bit in the cache file unless we assign to the vars.
6194 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6195 eval ac_val
=\$
$ac_var
6199 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6203 _ | IFS | as_nl
) ;; #(
6204 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6205 *) { eval $ac_var=; unset $ac_var;} ;;
6211 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6212 *${as_nl}ac_space
=\
*)
6213 # `set' does not quote correctly, so add quotes: double-quote
6214 # substitution turns \\\\ into \\, and sed turns \\ into \.
6217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6220 # `set' quotes correctly as required by POSIX, so do not add quotes.
6221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6234 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6235 if test -w "$cache_file"; then
6236 test "x$cache_file" != "x/dev/null" &&
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6238 $as_echo "$as_me: updating cache $cache_file" >&6;}
6239 cat confcache
>$cache_file
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6242 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6247 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6248 # Let make expand exec_prefix.
6249 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6251 DEFS
=-DHAVE_CONFIG_H
6255 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6256 # 1. Remove the extension, and $U if already installed.
6257 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6258 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6259 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6260 # will be set to the directory where LIBOBJS objects are built.
6261 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6262 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6266 LTLIBOBJS
=$ac_ltlibobjs
6269 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6270 as_fn_error
"conditional \"GMAKE\" was never defined.
6271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6275 : ${CONFIG_STATUS=./config.status}
6277 ac_clean_files_save
=$ac_clean_files
6278 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6280 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6282 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6284 # Generated by $as_me.
6285 # Run this file to recreate the current configuration.
6286 # Compiler output produced by configure, useful for debugging
6287 # configure, is in config.log if it exists.
6293 SHELL=\${CONFIG_SHELL-$SHELL}
6296 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6297 ## -------------------- ##
6298 ## M4sh Initialization. ##
6299 ## -------------------- ##
6301 # Be more Bourne compatible
6302 DUALCASE
=1; export DUALCASE
# for MKS sh
6303 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6306 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6307 # is contrary to our usage. Disable this feature.
6308 alias -g '${1+"$@"}'='"$@"'
6309 setopt NO_GLOB_SUBST
6311 case `(set -o) 2>/dev/null` in #(
6323 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6324 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6326 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6327 # Prefer a ksh shell builtin over an external printf program on Solaris,
6328 # but without wasting forks for bash or zsh.
6329 if test -z "$BASH_VERSION$ZSH_VERSION" \
6330 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6331 as_echo='print
-r --'
6332 as_echo_n='print
-rn --'
6333 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6334 as_echo='printf %s
\n'
6335 as_echo_n='printf %s
'
6337 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6338 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6339 as_echo_n='/usr
/ucb
/echo -n'
6341 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6342 as_echo_n_body='eval
6346 expr "X$arg" : "X\\(.*\\)$as_nl";
6347 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6349 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6351 export as_echo_n_body
6352 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6355 as_echo='sh
-c $as_echo_body as_echo
'
6358 # The user is always right.
6359 if test "${PATH_SEPARATOR+set}" != set; then
6361 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6362 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6369 # We need space, tab and new line, in precisely that order. Quoting is
6370 # there to prevent editors from complaining about space-tab.
6371 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6372 # splitting by setting IFS to empty value.)
6375 # Find who we are. Look in the path if we contain no directory separator.
6377 *[\\/]* ) as_myself=$0 ;;
6378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6389 # We did not find ourselves, most probably we were run as `sh COMMAND'
6390 # in which case we are not to be found in the path.
6391 if test "x$as_myself" = x
; then
6394 if test ! -f "$as_myself"; then
6395 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6399 # Unset variables that we do not need and which cause bugs (e.g. in
6400 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6401 # suppresses any "Segmentation fault" message there. '((' could
6402 # trigger a bug in pdksh 5.2.14.
6403 for as_var
in BASH_ENV ENV MAIL MAILPATH
6404 do eval test x\
${$as_var+set} = xset \
6405 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6418 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6421 # as_fn_error ERROR [LINENO LOG_FD]
6422 # ---------------------------------
6423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6425 # script with status $?, using 1 if that was 0.
6428 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6430 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6433 $as_echo "$as_me: error: $1" >&2
6434 as_fn_exit
$as_status
6438 # as_fn_set_status STATUS
6439 # -----------------------
6440 # Set $? to STATUS, without forking.
6444 } # as_fn_set_status
6448 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6458 # Portably unset VAR.
6461 { eval $1=; unset $1;}
6463 as_unset
=as_fn_unset
6464 # as_fn_append VAR VALUE
6465 # ----------------------
6466 # Append the text in VALUE to the end of the definition contained in VAR. Take
6467 # advantage of any shell optimizations that allow amortized linear growth over
6468 # repeated appends, instead of the typical quadratic growth present in naive
6470 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6471 eval 'as_fn_append ()
6482 # as_fn_arith ARG...
6483 # ------------------
6484 # Perform arithmetic evaluation on the ARGs, and store the result in the
6485 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6486 # must be portable across $(()) and expr.
6487 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6488 eval 'as_fn_arith ()
6495 as_val
=`expr "$@" || test $? -eq 1`
6500 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6501 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6507 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6508 as_basename
=basename
6513 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6519 as_me
=`$as_basename -- "$0" ||
6520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6521 X"$0" : 'X\(//\)$' \| \
6522 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6524 sed '/^.*\/\([^/][^/]*\)\/*$/{
6538 # Avoid depending upon Character Ranges.
6539 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6540 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6541 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6542 as_cr_digits
='0123456789'
6543 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6545 ECHO_C
= ECHO_N
= ECHO_T
=
6546 case `echo -n x` in #(((((
6548 case `echo 'xy\c'` in
6549 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6551 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6558 rm -f conf$$ conf$$.exe conf$$.
file
6559 if test -d conf$$.dir
; then
6560 rm -f conf$$.dir
/conf$$.
file
6563 mkdir conf$$.dir
2>/dev
/null
6565 if (echo >conf$$.
file) 2>/dev
/null
; then
6566 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6568 # ... but there are two gotchas:
6569 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6570 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6571 # In both cases, we have to default to `cp -p'.
6572 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6574 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6582 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6583 rmdir conf$$.dir
2>/dev
/null
6588 # Create "$as_dir" as a directory, including parents if necessary.
6593 -*) as_dir
=.
/$as_dir;;
6595 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6599 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6600 *) as_qdir
=$as_dir;;
6602 as_dirs
="'$as_qdir' $as_dirs"
6603 as_dir
=`$as_dirname -- "$as_dir" ||
6604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6605 X"$as_dir" : 'X\(//\)[^/]' \| \
6606 X"$as_dir" : 'X\(//\)$' \| \
6607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6608 $as_echo X"$as_dir" |
6609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6626 test -d "$as_dir" && break
6628 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6629 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6633 if mkdir
-p .
2>/dev
/null
; then
6634 as_mkdir_p
='mkdir -p "$as_dir"'
6636 test -d .
/-p && rmdir .
/-p
6640 if test -x / >/dev
/null
2>&1; then
6643 if ls -dL / >/dev
/null
2>&1; then
6650 if test -d "$1"; then
6656 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6657 ???[sx]*):;;*)false;;esac;fi
6661 as_executable_p
=$as_test_x
6663 # Sed expression to map a string onto a valid CPP name.
6664 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6666 # Sed expression to map a string onto a valid variable name.
6667 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6671 ## ----------------------------------- ##
6672 ## Main body of $CONFIG_STATUS script. ##
6673 ## ----------------------------------- ##
6675 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6678 # Save the log message, to keep $0 and so on meaningful, and to
6679 # report actual input values of CONFIG_FILES etc. instead of their
6680 # values after options handling.
6682 This file was extended by $as_me, which was
6683 generated by GNU Autoconf 2.64. Invocation command line was
6685 CONFIG_FILES = $CONFIG_FILES
6686 CONFIG_HEADERS = $CONFIG_HEADERS
6687 CONFIG_LINKS = $CONFIG_LINKS
6688 CONFIG_COMMANDS = $CONFIG_COMMANDS
6691 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6696 case $ac_config_files in *"
6697 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6700 case $ac_config_headers in *"
6701 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6706 # Files that config.status was made for.
6707 config_files="$ac_config_files"
6708 config_headers="$ac_config_headers"
6709 config_links="$ac_config_links"
6710 config_commands="$ac_config_commands"
6714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6716 \`$as_me' instantiates files and other configuration actions
6717 from templates according to the current configuration. Unless the files
6718 and actions are specified as TAGs, all are instantiated by default.
6720 Usage: $0 [OPTION]... [TAG]...
6722 -h, --help print this help, then exit
6723 -V, --version print version number and configuration settings, then exit
6724 -q, --quiet, --silent
6725 do not print progress messages
6726 -d, --debug don't remove temporary files
6727 --recheck update $as_me by reconfiguring in the same conditions
6728 --file=FILE[:TEMPLATE]
6729 instantiate the configuration file FILE
6730 --header=FILE[:TEMPLATE]
6731 instantiate the configuration header FILE
6733 Configuration files:
6736 Configuration headers:
6739 Configuration links:
6742 Configuration commands:
6745 Report bugs to the package provider."
6748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6751 configured by $0, generated by GNU Autoconf 2.64,
6752 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6754 Copyright (C) 2009 Free Software Foundation, Inc.
6755 This config.status script is free software; the Free Software Foundation
6756 gives unlimited permission to copy, distribute and modify it."
6761 test -n "\$AWK" || AWK=awk
6764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6765 # The default lists apply if the user does not specify any file.
6771 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6772 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6783 # Handling of the options.
6784 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6786 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6787 $as_echo "$ac_cs_version"; exit ;;
6788 --debug |
--debu |
--deb |
--de |
--d |
-d )
6790 --file |
--fil |
--fi |
--f )
6793 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6795 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6796 ac_need_defaults
=false
;;
6797 --header |
--heade |
--head |
--hea )
6800 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6802 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6803 ac_need_defaults
=false
;;
6805 # Conflict between --help and --header
6806 as_fn_error
"ambiguous option: \`$1'
6807 Try \`$0 --help' for more information.";;
6808 --help |
--hel |
-h )
6809 $as_echo "$ac_cs_usage"; exit ;;
6810 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6811 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6815 -*) as_fn_error
"unrecognized option: \`$1'
6816 Try \`$0 --help' for more information." ;;
6818 *) as_fn_append ac_config_targets
" $1"
6819 ac_need_defaults
=false
;;
6825 ac_configure_extra_args
=
6827 if $ac_cs_silent; then
6829 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6834 if \$ac_cs_recheck; then
6835 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6837 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6838 CONFIG_SHELL='$SHELL'
6844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6849 ## Running $as_me. ##
6855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6859 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6865 # Handling of arguments.
6866 for ac_config_target
in $ac_config_targets
6868 case $ac_config_target in
6869 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6870 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6871 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
6872 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6873 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6874 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6875 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
6876 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
6878 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6883 # If the user did not use the arguments to specify the items to instantiate,
6884 # then the envvar interface is used. Set only those that are not.
6885 # We use the long form for the default assignment because of an extremely
6886 # bizarre bug on SunOS 4.1.3.
6887 if $ac_need_defaults; then
6888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6890 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
6891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6894 # Have a temporary directory for convenience. Make it in the build tree
6895 # simply because there is no reason against having it here, and in addition,
6896 # creating and moving files from /tmp can sometimes cause problems.
6897 # Hook for its removal unless debugging.
6898 # Note that there is a small window in which the directory will not be cleaned:
6899 # after its creation but before its name has been assigned to `$tmp'.
6903 trap 'exit_status=$?
6904 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6906 trap 'as_fn_exit 1' 1 2 13 15
6908 # Create a (secure) tmp directory for tmp files.
6911 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6912 test -n "$tmp" && test -d "$tmp"
6915 tmp
=.
/conf$$
-$RANDOM
6916 (umask 077 && mkdir
"$tmp")
6917 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6919 # Set up the scripts for CONFIG_FILES section.
6920 # No need to generate them if there are no CONFIG_FILES.
6921 # This happens for instance with `./config.status config.h'.
6922 if test -n "$CONFIG_FILES"; then
6925 ac_cr
=`echo X | tr X '\015'`
6926 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6927 # But we know of no other shell where ac_cr would be empty at this
6928 # point, so we can use a bashism as a fallback.
6929 if test "x$ac_cr" = x
; then
6930 eval ac_cr
=\$
\'\\r
\'
6932 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6939 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6944 echo "cat >conf$$subs.awk <<_ACEOF" &&
6945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6948 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6949 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6951 for ac_last_try in false false false false false :; do
6952 . ./conf$$subs.sh ||
6953 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6955 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6956 if test $ac_delim_n = $ac_delim_num; then
6958 elif $ac_last_try; then
6959 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6961 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6967 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6971 s/^/S["/; s
/!.
*/"]=/
6981 s/\(.\{148\}\).*/\1/
6983 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6988 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6995 s/\(.\{148\}\).*/\1/
6997 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7001 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7006 ' <conf$$subs.awk | sed '
7011 ' >>$CONFIG_STATUS || ac_write_fail=1
7012 rm -f conf$$subs.awk
7013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7015 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
7016 for (key in S) S_is_set[key] = 1
7022 nfields = split(line, field, "@
")
7024 len = length(field[1])
7025 for (i = 2; i < nfields; i++) {
7027 keylen = length(key)
7028 if (S_is_set[key]) {
7030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7031 len += length(value) + length(field[++i])
7042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7043 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7044 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7047 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
7048 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
7051 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7052 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
7053 # trailing colons and then remove the whole line if VPATH becomes empty
7054 # (actually we leave an empty line to preserve line numbers).
7055 if test "x
$srcdir" = x.; then
7056 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7060 s/^\([^=]*=[ ]*\):*/\1/
7066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7067 fi # test -n "$CONFIG_FILES"
7069 # Set up the scripts for CONFIG_HEADERS section.
7070 # No need to generate them if there are no CONFIG_HEADERS.
7071 # This happens for instance with `./config.status Makefile'.
7072 if test -n "$CONFIG_HEADERS"; then
7073 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7077 # Transform confdefs.h into an awk script `defines.awk', embedded as
7078 # here-document in config.status, that substitutes the proper values into
7079 # config.h.in to produce config.h.
7081 # Create a delimiter string that does not exist in confdefs.h, to ease
7082 # handling of long lines.
7084 for ac_last_try in false false :; do
7085 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7086 if test -z "$ac_t"; then
7088 elif $ac_last_try; then
7089 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
7091 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7095 # For the awk script, D is an array of macro values keyed by name,
7096 # likewise P contains macro parameters if any. Preserve backslash
7097 # newline sequences.
7099 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7101 s/.\{148\}/&'"$ac_delim"'/g
7104 s/^[ ]*#[ ]*define[ ][ ]*/ /
7111 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7113 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7118 D["\
1"]=" \
3\\\\\\n
"\\/p
7120 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7125 s/.\{148\}/&'"$ac_delim"'/g
7130 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7133 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7135 ' <confdefs.h | sed '
7136 s/'"$ac_delim"'/"\\\
7137 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7140 for (key in D) D_is_set[key] = 1
7143 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7145 split(line, arg, " ")
7146 if (arg[1] == "#") {
7150 defundef
= substr
(arg
[1], 2)
7153 split(mac1
, mac2
, "(") #)
7155 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7156 if (D_is_set
[macro
]) {
7157 # Preserve the white space surrounding the "#".
7158 print prefix
"define", macro P
[macro
] D
[macro
]
7161 # Replace #undef with comments. This is necessary, for example,
7162 # in the case of _POSIX_SOURCE, which is predefined and required
7163 # on some systems where configure will not decide to define it.
7164 if (defundef
== "undef") {
7165 print
"/*", prefix defundef
, macro
, "*/"
7173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7174 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7175 fi # test -n "$CONFIG_HEADERS"
7178 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7183 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7185 case $ac_mode$ac_tag in
7187 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7188 :[FH
]-) ac_tag
=-:-;;
7189 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7206 -) ac_f
="$tmp/stdin";;
7207 *) # Look for the file first in the build tree, then in the source tree
7208 # (if the path is not absolute). The absolute path cannot be DOS-style,
7209 # because $ac_f cannot contain `:'.
7213 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7215 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7217 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7218 as_fn_append ac_file_inputs
" '$ac_f'"
7221 # Let's still pretend it is `configure' which instantiates (i.e., don't
7222 # use $as_me), people would be surprised to read:
7223 # /* config.h. Generated by config.status. */
7224 configure_input
='Generated from '`
7225 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7227 if test x
"$ac_file" != x-
; then
7228 configure_input
="$ac_file. $configure_input"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7230 $as_echo "$as_me: creating $ac_file" >&6;}
7232 # Neutralize special characters interpreted by sed in replacement strings.
7233 case $configure_input in #(
7234 *\
&* |
*\|
* |
*\\* )
7235 ac_sed_conf_input
=`$as_echo "$configure_input" |
7236 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7237 *) ac_sed_conf_input
=$configure_input;;
7241 *:-:* |
*:-) cat >"$tmp/stdin" \
7242 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7247 ac_dir
=`$as_dirname -- "$ac_file" ||
7248 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7249 X"$ac_file" : 'X\(//\)[^/]' \| \
7250 X"$ac_file" : 'X\(//\)$' \| \
7251 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7252 $as_echo X"$ac_file" |
7253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7270 as_dir
="$ac_dir"; as_fn_mkdir_p
7274 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7276 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7277 # A ".." for each directory in $ac_dir_suffix.
7278 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7279 case $ac_top_builddir_sub in
7280 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7281 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7284 ac_abs_top_builddir
=$ac_pwd
7285 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7286 # for backward compatibility:
7287 ac_top_builddir
=$ac_top_build_prefix
7290 .
) # We are building in place.
7292 ac_top_srcdir
=$ac_top_builddir_sub
7293 ac_abs_top_srcdir
=$ac_pwd ;;
7294 [\\/]* | ?
:[\\/]* ) # Absolute name.
7295 ac_srcdir
=$srcdir$ac_dir_suffix;
7296 ac_top_srcdir
=$srcdir
7297 ac_abs_top_srcdir
=$srcdir ;;
7299 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7300 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7301 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7303 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7313 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7314 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7319 # If the template does not know about datarootdir, expand it.
7320 # FIXME: This hack should be removed a few years after 2.60.
7321 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7333 *datarootdir
*) ac_datarootdir_seen
=yes;;
7334 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7339 ac_datarootdir_hack='
7340 s&@datadir@&$datadir&g
7341 s&@docdir@&$docdir&g
7342 s&@infodir@&$infodir&g
7343 s&@localedir@&$localedir&g
7344 s&@mandir@&$mandir&g
7345 s&\\\${datarootdir}&$datarootdir&g' ;;
7349 # Neutralize VPATH when `$srcdir' = `.'.
7350 # Shell code in configure.ac might set extrasub.
7351 # FIXME: do we really want to maintain this feature?
7352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7353 ac_sed_extra="$ac_vpsub
7356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7358 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7359 s|@configure_input@|
$ac_sed_conf_input|
;t t
7360 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7361 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7362 s
&@srcdir@
&$ac_srcdir&;t t
7363 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7364 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7365 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7366 s
&@builddir@
&$ac_builddir&;t t
7367 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7368 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7369 s
&@INSTALL@
&$ac_INSTALL&;t t
7370 $ac_datarootdir_hack
7372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7373 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7379 which seems to be undefined. Please make sure it is defined." >&5
7380 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7381 which seems to be undefined. Please make sure it is defined." >&2;}
7385 -) cat "$tmp/out" && rm -f "$tmp/out";;
7386 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7388 || as_fn_error "could not create $ac_file" "$LINENO" 5
7394 if test x"$ac_file" != x-; then
7396 $as_echo "/* $configure_input */" \
7397 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7398 } >"$tmp/config.h" \
7399 || as_fn_error "could not create $ac_file" "$LINENO" 5
7400 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7402 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7405 mv "$tmp/config.h" "$ac_file" \
7406 || as_fn_error "could not create $ac_file" "$LINENO" 5
7409 $as_echo "/* $configure_input */" \
7410 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7411 || as_fn_error "could not create -" "$LINENO" 5
7419 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
7422 # Prefer the file from the source tree if names are identical.
7423 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7424 ac_source=$srcdir/$ac_source
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7428 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7430 if test ! -r "$ac_source"; then
7431 as_fn_error "$ac_source: file not found" "$LINENO" 5
7435 # Try a relative symlink, then a hard link, then a copy.
7437 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7438 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7440 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7441 ln "$ac_source" "$ac_file" 2>/dev/null ||
7442 cp -p "$ac_source" "$ac_file" ||
7443 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7446 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7447 $as_echo "$as_me: executing $ac_file commands" >&6;}
7452 case $ac_file$ac_mode in
7453 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7454 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7455 rm -f Makesim1.tmp Makesim2.tmp Makefile
7456 sed -n -e '/^
## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7457 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
7458 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7459 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7460 <Makefile.sim
>Makefile
7461 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7463 "stamp-h":C
) echo > stamp-h
;;
7471 ac_clean_files
=$ac_clean_files_save
7473 test $ac_write_fail = 0 ||
7474 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7477 # configure is writing to config.log, and then calls config.status.
7478 # config.status does its own redirection, appending to config.log.
7479 # Unfortunately, on DOS this fails, as config.log is still kept open
7480 # by configure, so config.status won't be able to write to it; its
7481 # output is simply discarded. So we exec the FD to /dev/null,
7482 # effectively closing config.log, so it can be properly (re)opened and
7483 # appended to by config.status. When coming back to configure, we
7484 # need to make the FD available again.
7485 if test "$no_create" != yes; then
7487 ac_config_status_args
=
7488 test "$silent" = yes &&
7489 ac_config_status_args
="$ac_config_status_args --quiet"
7491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7494 # would make configure fail if this is the last instruction.
7495 $ac_cs_success || as_fn_exit $?
7497 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7499 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}